scaffold-exercises
创建包含章节、题目、解答和讲解的练习目录结构,并确保其通过代码检查。适用于用户想要搭建练习脚手架、创建练习存根或设置新课程章节时。
机器翻译查看英文原文
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Scaffold Exercises
- Directory naming
- Exercise variants
- Required files
- Workflow
- Lint rules summary
- Moving/renaming exercises
- Example: stubbing from a plan
Create exercise directory structures that pass pnpm ai-hero-cli internal lint, then commit with git commit. Sections: XX-section-name/ inside exercises/ (e.g., 01-retrieval-skill-building) Exercises: XX.YY-exercise-name/ inside a section (e.g., 01.03-retrieval-with-bm25) Section number = XX, exercise number = XX.YY Names are dash-case (lowercase, hyphens) Each exercise needs at least one of these subfolders: problem/ - student workspace with TODOs solution/ - reference implementation explainer/ - conceptual material, no TODOs When stubbing, default to explainer/ unless the plan specifies otherwise. Each subfolder (problem/, solution/, explainer/) needs a readme.md that: Is not empty (must have real content, even a single title line works) Has no broken links When stubbing, create a minimal readme with a title and a description: If the subfolder has code, it also needs a main.ts (>1 line). But for stubs, a readme-only exercise is fine. 1. Parse the plan - extract section names, exercise names, and variant types 2. Create directories - mkdir -p for each path 3. Create stub readmes - one readme.md per variant folder with a title 4. Run lint - pnpm ai-hero-cli internal lint to validate
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- mattpocock/skills
- 源文件
- skills/misc/scaffold-exercises/SKILL.md
- 固定版本
- 4ae2317ddb22b046e26455e4f9c9b3aaaf62212d
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Matt Pocock Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T22:01:34.095Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。