/mattpocock-skills:scaffold-exercisesfrom mattpocock-skills
Scaffolds exercise directory structures with sections, problems, solutions, and explainers, then validates with a linter. Useful for creating course exercise stubs or setting up new curriculum chapters.
Ships in mattpocock-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
创建能通过 pnpm ai-hero-cli internal lint 的 exercise directory structures,然后用 git commit 提交。
exercises/ 下的 XX-section-name/(例如 01-retrieval-skill-building)XX.YY-exercise-name/(例如 01.03-retrieval-with-bm25)XX,exercise number = XX.YY每个 exercise 至少需要这些 subfolders 中的一个:
problem/ - student workspace,包含 TODOssolution/ - reference implementationexplainer/ - conceptual material,不含 TODOs创建 stub 时,除非 plan 指定其他 variant,否则默认使用 explainer/。
每个 subfolder(problem/、solution/、explainer/)都需要一个 readme.md,要求:
创建 stub 时,生成带 title 和 description 的最小 readme:
# Exercise Title
Description here
如果 subfolder 有 code,还需要 main.ts(>1 行)。但对 stubs 来说,readme-only exercise 可以接受。
mkdir -preadme.mdpnpm ai-hero-cli internal lint 验证linter(pnpm ai-hero-cli internal lint)检查:
problem/、solution/、explainer/)problem/、explainer/ 或 explainer.1/ 之一readme.md.gitkeep filesspeaker-notes.md filespnpm run exercise commandsmain.ts重新编号或移动 exercises 时:
git mv(不是 mv)重命名 directories,保留 git historyExample:
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings
给定这样的 plan:
Section 05: Memory Skill Building
- 05.01 Introduction to Memory
- 05.02 Short-term Memory (explainer + problem + solution)
- 05.03 Long-term Memory
创建:
mkdir -p exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer
mkdir -p exercises/05-memory-skill-building/05.02-short-term-memory/{explainer,problem,solution}
mkdir -p exercises/05-memory-skill-building/05.03-long-term-memory/explainer
然后创建 readme stubs:
exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer/readme.md -> "# Introduction to Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/explainer/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/problem/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/solution/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.03-long-term-memory/explainer/readme.md -> "# Long-term Memory"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vinvcn/mattpocock-skills-zh-cn --plugin mattpocock-skills38 skills in this plugin
/ask-matt询问当前情境适合哪个技能或流程;它是本仓库所有 skills 的路由器。/chief-of-staff在单个 session 中通过协调 subagents 来推进一个长期目标。/claude-handoff把当前对话交接给一个全新的 background agent,让它立即接手工作。/codebase-design用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。/code-review从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/spec 的要求?)两个轴线审查变更。两个审查会在并行子代理中运行,并并排报告。适用于用户想审查 branch、PR、进行中的变更,或要求“review since X”时。/diagnosing-bugs面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。Other plugins' skills for the same job