scaffold-exercises
Skill3 starsChanged 4 months agoMITView on GitHub
建立帶有 section、題目、解答與講解、且能通過 lint 檢查的練習目錄結構。當使用者想要建立練習骨架、建立練習樁,或設定新的課程 section 時使用。
41 other projects use a version of this, 40 of them edited.
Adopted by
Most recently taken up by
- mattpocock/skillsedited, first seen Oct 8, 2026
- hmjBill/skillsedited, first seen Oct 5, 2026
- nomdedev/agent-manager-templateedited, first seen Sep 30, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Sep 27, 2026
- Danceiny/skillsedited, first seen Sep 20, 2026
- MortuisVMain/ai-agent-superpowersedited, first seen Sep 15, 2026
Used with
Projects with it also use edit-article, request-refactor-plan and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
kayamanSkilledit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Also in 17 projects that use this
kayamanSkillrequest-refactor-plan
Guides creating a detailed refactor plan with tiny commits via user interview, then files it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.
Also in 16 projects that use this
Jonathan0823Skilldesign-an-interface
Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".
Also in 16 projects that use this
kennethkeimSkillubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
Also in 16 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 40
- mattpocock/skills★ 335k19% same
- vinvcn/mattpocock-skills-zh-CN★ 4.6k26% same
- devcxl/mattpocock-skills-zh★ 42629% same
- amazingloft999-droid/mattpocock-skills★ 42219% same
- loulanyue/skills★ 23119% same
- tt-a1i/matt-skills-with-to-goal★ 18219% same
- aurorasoft2/Matt_Pocock_Skills★ 13319% same
- VisualxIntelligence/mattpocok-skills★ 5519% same
- leandrocfe/skills★ 3819% same
- VoDaiLocz/kilo-kit-mcp★ 2719% same
30 more not listed
Wrote their own version · 1
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grill-with-docsSkill
- implementSkill
- improve-codebase-architectureSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- setup-matt-pocock-skillsSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- wizardSkill
- claude-handoffSkill
- loop-meSkill
- setup-ts-deep-modulesSkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- git-guardrails-claude-codeSkill
- migrate-to-shoehornSkill
- setup-pre-commitSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
- writing-for-agentsSkill
The file
Files
建立練習骨架(Scaffold Exercises)
建立能通過 pnpm ai-hero-cli internal lint 的練習目錄結構,然後用 git commit 提交。
目錄命名
- Sections:
exercises/內部的XX-section-name/(例如01-retrieval-skill-building) - 練習:section 內部的
XX.YY-exercise-name/(例如01.03-retrieval-with-bm25) - Section 號碼 =
XX,練習號碼 =XX.YY - 名稱使用 dash-case(小寫、連字號)
練習變體
每個練習至少需要以下子資料夾之一:
problem/- 帶有 TODO 的學生工作區solution/- 參考實作explainer/- 概念性材料,沒有 TODO
建立樁時,除非計畫另有指定,否則預設使用 explainer/。
必備檔案
每個子資料夾(problem/、solution/、explainer/)需要一個 readme.md,它必須:
- 不是空的(必須有真實內容,即使是單一標題行也可以)
- 沒有壞掉的連結
建立樁時,建立一個帶有標題與描述的最小 readme:
# Exercise Title
Description here如果子資料夾有程式碼,它也需要一個 main.ts(>1 行)。但對於樁,一個只有 readme 的練習也可以。
工作流程
- 解析計畫 - 擷取 section 名稱、練習名稱與變體類型
- 建立目錄 - 為每個路徑
mkdir -p - 建立樁 readmes - 每個變體資料夾一個帶有標題的
readme.md - 執行 lint -
pnpm ai-hero-cli internal lint來驗證 - 修正任何錯誤 - 反覆直到 lint 通過
Lint 規則摘要
linter(pnpm ai-hero-cli internal lint)檢查:
- 每個練習都有子資料夾(
problem/、solution/、explainer/) problem/、explainer/或explainer.1/至少有一個存在- 主要子資料夾中
readme.md存在且非空 - 沒有
.gitkeep檔案 - 沒有
speaker-notes.md檔案 - readme 中沒有壞掉的連結
- readme 中沒有
pnpm run exercise命令 - 每個子資料夾需要
main.ts,除非它只有 readme
移動/重新命名練習
重新編號或移動練習時:
- 使用
git mv(不是mv)來重新命名目錄 - 保留 git 歷史 - 更新數字前綴以維持順序
- 移動後重新執行 lint
範例:
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings範例:從計畫建立樁
給定一個像這樣的計畫:
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 樁:
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"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

