Scaffold Exercises
Scaffolds numbered course section and exercise directories with explainer, problem, and solution stubs that pass the linter.
- CCM score
- 66 of 100
- skills.sh installs
- 5.8K
- GitHub stars
- 6.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers creating section folders (
XX-section-name) and exercise folders (XX.YY-exercise-name) in dash-case from a course plan - Creates
problem/,solution/, andexplainer/variants per exercise, defaulting toexplainer/when no variant is specified - Enforces that each variant has a non-empty
readme.mdwith no broken links, checked bypnpm ai-hero-cli internal lint - Provides
git mvguidance for renumbering or moving exercises so git history is preserved, then re-running lint
Install
$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill scaffold-exercises -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
搭建练习
创建能通过 pnpm ai-hero-cli internal lint 的 exercise directory structures,然后用 git commit 提交。
目录命名
- Sections:
exercises/下的XX-section-name/(例如01-retrieval-skill-building) - Exercises:section 下的
XX.YY-exercise-name/(例如01.03-retrieval-with-bm25) - Section number =
XX,exercise number =XX.YY - Names 使用 dash-case(小写、连字符)
Exercise 变体
每个 exercise 至少需要这些 subfolders 中的一个:
problem/- student workspace,包含 TODOssolution/- reference implementationexplainer/- conceptual material,不含 TODOs
创建 stub 时,除非 plan 指定其他 variant,否则默认使用 explainer/。
必需文件
每个 subfolder(problem/、solution/、explainer/)都需要一个 readme.md,要求:
- 非空(必须有真实内容,即使只有一行 title 也可以)
- 没有 broken links
创建 stub 时,生成带 title 和 description 的最小 readme:
# Exercise Title
Description here
如果 subfolder 有 code,还需要 main.ts(>1 行)。但对 stubs 来说,readme-only exercise 可以接受。
工作流
- Parse the plan - 提取 section names、exercise names 和 variant types
- Create directories - 对每个 path 执行
mkdir -p - Create stub readmes - 每个 variant folder 一个带 title 的
readme.md - Run lint - 执行
pnpm ai-hero-cli internal lint验证 - Fix any errors - 迭代直到 lint 通过
Details
- Repository
- github.com/vinvcn/mattpocock-skills-zh-cn
- Categories
- Learning & Teaching, Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the scaffold-exercises skill do?
It creates exercise directory structures with sections, exercises, answers and explainers, and makes sure they pass linting. It works on course chapters, exercise stubs and new course sections in the mattpocock-skills-zh-cn repository. After creating the stubs it runs the lint command and commits the result with git.
How do I install the scaffold-exercises skill?
Run npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill scaffold-exercises -y inside a project. Once installed, the agent can create exercise stubs from a course plan that you describe.
Which skills lead the scaffold-exercises skill in the Learning & Teaching category?
scaffold-exercises ranks in the top 25 on the Learning & Teaching category page. The skills listed alongside it there are teach, show-me, gws-classroom and recipe-create-classroom-course. It is most useful when you need the folder layout and lint compliance for a course.
More from vinvcn/mattpocock-skills-zh-cn
All 24- Setup Pre Commit5.8K
- Migrate To Shoehorn5.8K
- Teach5.6K
- Grilling4.9K
- Domain Modeling4.6K
- Code Review4.6K
- Ask Matt4.6K
- Diagnosing Bugs4.6K
- Implement4.5K
- Codebase Design4.5K
- Research4.4K
- Writing Shape3.9K
- Writing Fragments3.9K
- Writing Beats3.9K
- Grill Me7.1K
- Grill With Docs6.7K
- Setup Matt Pocock Skills6.4K
- Handoff6.3K
- Tdd6.3K
- Improve Codebase Architecture6.2K
- Prototype6.2K
- Triage6K
- Git Guardrails Claude Code5.8K
Similar to Scaffold Exercises
More Learning & Teachinglesson-generatorPlugindair-ai/dair-academy-plugins619 starsGenerate compact, standalone multi-lesson course artifacts with lesson navigation, learning objectives, flashcards, quizzes, knowledge checks, and source links
skill-generatorSkillcatlog22/claude-code-workflow168 installsScaffolds new Claude Code skills in sequential or autonomous execution modes with full package output.
tutorial-engineerSkillsickn33/agentic-awesome-skills374 installsStep-by-step tutorial builder that turns a codebase or feature into a verified, progressive learning path.
skill-creatorSkillstarchild-ai-agent/official-skills7.8K installsScaffold new skills with valid frontmatter, directory layout, and a starter SKILL.md for reusable workflows.
learning-path-builderSkillrysweet/amplihack345 installsPersonalized learning path builder that sequences docs, tutorials, and exercises for interactive onboarding sessions.
skill-designerSkilltradermonty/claude-trading-skills3.6K installsStructured prompt builder that generates Claude CLI design prompts for creating complete skill directories from idea specs.