From curry-train
Scaffold a new model + dataset + config triple inside an existing curryTrain project. Activate when the user asks to "add a new model to curryTrain", "scaffold a new experiment", "generate model.py / dataset.py / config.yaml for X", or describes an idea they want to start training. Delegates the actual generation to the scaffolder agent.
npx claudepluginhub curryfromuestc/curry-train --plugin curry-trainThis skill uses the workspace's default tool permissions.
Create a four-file model package (`config.py`, `model.py`, `checkpoint.py`, `protocol.py`) under `curry_train/models/<name>/`, plus a starter Hydra config and a minimal dataset adapter. Most of the actual file generation is handed off to the **scaffolder** agent (see `agents/scaffolder.md`).
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
Create a four-file model package (config.py, model.py, checkpoint.py, protocol.py) under curry_train/models/<name>/, plus a starter Hydra config and a minimal dataset adapter. Most of the actual file generation is handed off to the scaffolder agent (see agents/scaffolder.md).
<model-name> (required): kebab-case identifier. Becomes the registered name in register_model(...). Reject names with spaces, slashes, or non-ASCII characters.--task (optional): one of lm, cls, mt, cv, snn. Drives the dataset adapter template the agent picks.--from (optional): a HuggingFace model path the user wants to start from (e.g. --from=Qwen/Qwen2.5-1.5B). The scaffolder uses this to derive shapes and pre-fill config.py.Verify the user is inside a curryTrain project. Look for curry_train/__init__.py and curry_train/models.py. If missing, point the user to /curry-train:init.
Validate the model name. Lowercase, alphanumeric, hyphens only. If conflict with an existing curry_train/models/<name>/ directory, halt and ask whether to overwrite.
Delegate to the scaffolder agent. Spawn the scaffolder subagent with:
skills/stage1-scaffolder/SKILL.md.configs/<name>.yaml.Run preflight asserts. After scaffolding, immediately invoke the checks listed in skills/stage1-preflight-asserts/SKILL.md (zero_grad / mode / shape / leakage). Surface failures back to the user before they try to train.
Suggest the next two stages. Print:
skills/stage2-overfit-single-batch (the gold-standard sanity check).hpo-proposer agent territory in Stage 4.--task=snn), the scaffolder uses primitive-lif-neuron and emits a 4D tensor shape contract (B, T, N, D). For non-SNN, shape stays (B, N, D).--from was passed: the scaffolder must fall back to asking the user to provide a local config / weights path. See primitive-hf-bridge skill for the offline fallback procedure.