$npx -y skills add WILLOSCAR/research-units-pipeline-skills --skill exercise-builderUse when a tutorial module plan exists but each module still needs a verifiable teaching loop. Trigger: exercises, practice, verification checklist, 教程练习, 可验证作业. Use when: tutorial 的 C2,已有 outline/module_plan.yml,需要为每个模块补齐 exercise / expected output / verification steps
| 1 | # Exercise Builder |
| 2 | |
| 3 | Adds the minimal deterministic exercise contract to each planned tutorial module. |
| 4 | |
| 5 | ## Input |
| 6 | |
| 7 | - `outline/module_plan.yml` |
| 8 | |
| 9 | ## Output |
| 10 | |
| 11 | - updated `outline/module_plan.yml` |
| 12 | |
| 13 | ## Contract |
| 14 | |
| 15 | Each module must end up with at least one `exercise` containing: |
| 16 | - `prompt` |
| 17 | - `expected_output` |
| 18 | - `verification_steps` |
| 19 | |
| 20 | ## Script boundary |
| 21 | |
| 22 | `scripts/run.py` should: |
| 23 | - load the current module plan |
| 24 | - fill missing exercises deterministically |
| 25 | - write the plan back in place |
| 26 | |
| 27 | Keep exercise phrasing logic in shared tutorial tooling rather than hardcoding it repeatedly in the skill script. |
| 28 | |
| 29 | ## Acceptance |
| 30 | |
| 31 | - every module has `exercises` |
| 32 | - every exercise includes `expected_output` |
| 33 | - every exercise includes `verification_steps` |
| 34 | |
| 35 | ## Non-goals |
| 36 | |
| 37 | - source coverage auditing |
| 38 | - prose tutorial writing |