scaffold-exercises
Skill5 starsChanged 4 months agoMITView on GitHub
สร้างโครงสร้าง directory ของ exercise พร้อม section, problem, solution และ explainer ให้ผ่าน linting ใช้เมื่อ user อยาก scaffold exercises, สร้าง exercise stub หรือตั้ง section ใหม่ของคอร์ส
91 other projects use a version of this, 88 of them edited.
Adopted by
Most recently taken up by
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- 5thlayer/skillworksedited, first seen Nov 8, 2026
- dfirmin/compassedited, first seen Nov 8, 2026
- op3616windows/skillsedited, first seen Nov 8, 2026
- Tresnanda/kybernedited, first seen Nov 8, 2026
- pankaj-mahaur/Agent-Daemonedited, first seen Nov 6, 2026
Other versions91 projects use a version of this.
Word for word · 0
None found.
Edited · 88
- mattpocock/skills★ 309k19% same
- vinvcn/mattpocock-skills-zh-CN★ 5.5k23% same
- devcxl/mattpocock-skills-zh★ 52228% same
- amazingloft999-droid/mattpocock-skills★ 42219% same
- InditexTech/weavejs★ 26619% same
- loulanyue/skills★ 23119% same
- tt-a1i/matt-skills-with-to-goal★ 19219% same
- aurorasoft2/Matt_Pocock_Skills★ 13319% same
- Tresnanda/kybern★ 8319% same
- VisualxIntelligence/mattpocok-skills★ 5519% same
78 more not listed
Wrote their own version · 3
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- imMamdouhaboammar/matts-skills-into-chatgpt★ 8same name
- Artknighty/skills-ptbr★ 0same 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 repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- design-an-interfaceSkill
- qaSkill
- request-refactor-planSkill
- ubiquitous-languageSkill
- 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
- claude-handoffSkill
- loop-meSkill
- setup-ts-deep-modulesSkill
- wizardSkill
- writing-beatsSkill
- writing-fragmentsSkill
- writing-shapeSkill
- git-guardrails-claude-codeSkill
- migrate-to-shoehornSkill
- setup-pre-commitSkill
- edit-articleSkill
- obsidian-vaultSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- teachSkill
- writing-great-skillsSkill
The file
Files
Scaffold Exercises
สร้างโครงสร้าง directory ของ exercise ให้ผ่าน pnpm ai-hero-cli internal lint แล้ว commit ด้วย git commit
การตั้งชื่อ directory
- Section:
XX-section-name/อยู่ในexercises/(เช่น01-retrieval-skill-building) - Exercise:
XX.YY-exercise-name/อยู่ในแต่ละ section (เช่น01.03-retrieval-with-bm25) - เลข section =
XX, เลข exercise =XX.YY - ชื่อเป็น dash-case (ตัวพิมพ์เล็ก คั่นด้วย hyphen)
Variant ของ exercise
แต่ละ exercise ต้องมี subfolder อย่างน้อยหนึ่งแบบจากรายการนี้:
problem/- พื้นที่ทำงานของผู้เรียน มี TODO ให้ทำsolution/- implementation อ้างอิงexplainer/- เนื้อหาเชิงแนวคิด ไม่มี TODO
ตอน stub ให้ default เป็น explainer/ ยกเว้นแผนระบุไว้เป็นอย่างอื่น
ไฟล์ที่ต้องมี
แต่ละ subfolder (problem/, solution/, explainer/) ต้องมี readme.md ที่:
- ไม่ว่างเปล่า (ต้องมีเนื้อหาจริง แค่บรรทัด title บรรทัดเดียวก็ใช้ได้)
- ไม่มีลิงก์เสีย
ตอน stub ให้สร้าง readme แบบ minimal ที่มี title กับคำอธิบาย:
# Exercise Title
Description hereถ้า subfolder มี code ก็ต้องมี main.ts ด้วย (>1 บรรทัด) แต่สำหรับ stub มีแค่ readme อย่างเดียวก็พอ
Workflow
- Parse แผน - ดึงชื่อ section, ชื่อ exercise และประเภท variant ออกมา
- สร้าง directory -
mkdir -pสำหรับแต่ละ path - สร้าง readme stub -
readme.mdหนึ่งไฟล์ต่อหนึ่ง variant folder พร้อม title - รัน lint -
pnpm ai-hero-cli internal lintเพื่อ validate - แก้ error ที่เจอ - วนแก้จนกว่า lint จะผ่าน
สรุปกฎของ lint
ตัว linter (pnpm ai-hero-cli internal lint) เช็คว่า:
- แต่ละ exercise มี subfolder (
problem/,solution/,explainer/) - มี
problem/,explainer/หรือexplainer.1/อย่างน้อยหนึ่งอัน readme.mdมีอยู่และไม่ว่างเปล่าใน subfolder หลัก- ไม่มีไฟล์
.gitkeep - ไม่มีไฟล์
speaker-notes.md - ไม่มีลิงก์เสียใน readme
- ไม่มีคำสั่ง
pnpm run exerciseใน readme - ต้องมี
main.tsในแต่ละ subfolder ยกเว้นเป็นแบบ readme อย่างเดียว
การย้าย/เปลี่ยนชื่อ exercise
เวลาเปลี่ยนเลขหรือย้าย exercise:
- ใช้
git mv(ไม่ใช่mv) เพื่อ rename directory - เก็บ history ของ git ไว้ - อัปเดต prefix ตัวเลขให้ลำดับยังถูกต้อง
- รัน lint ใหม่หลังย้ายเสร็จ
ตัวอย่าง:
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddingsตัวอย่าง: stub จากแผน
สมมติได้แผนแบบนี้มา:
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 stub:
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.

