Agent skill

Scaffold Exercises

by devcxl in devcxl/mattpocock-skills-zh

创建包含 section、problem、solution 和 explainer 的练习目录结构,且能通过 lint 检查。当用户想要搭建练习框架、创建练习模板或设置新的课程章节时使用。

MITAuto-check passedDevelopment

Install Scaffold Exercises

skills CLI
$ npx skills add devcxl/mattpocock-skills-zh --skill scaffold-exercises -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install devcxl/mattpocock-skills-zh scaffold-exercises --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/devcxl/mattpocock-skills-zh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/misc/scaffold-exercises .claude/skills/scaffold-exercises && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scaffold-exercises
GitHub stars
433
Token cost
~659 tokens
SKILL.md length
134 words
Files
2
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

创建包含 section、problem、solution 和 explainer 的练习目录结构,且能通过 lint 检查。当用户想要搭建练习框架、创建练习模板或设置新的课程章节时使用。

  • Works in 5 steps: 解析计划 — 提取章节名称、练习名称和变体类型 → 创建目录 — 使用 mkdir -p 创建每个路径 → 创建 readme 模板 — 每个变体文件夹一个 readme.md,包含标题 → …
  • Tasks that involve Linting and formatting
  • SKILL.md covers 目录命名规则, 练习变体, 必需文件 and 工作流程, plus 3 more sections
  • Calls pnpm and git

What it does

Scaffold Exercises is an agent skill from devcxl/mattpocock-skills-zh. 创建包含 section、problem、solution 和 explainer 的练习目录结构,且能通过 lint 检查。当用户想要搭建练习框架、创建练习模板或设置新的课程章节时使用。

Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Linting and formatting. It works with pnpm. The repository describes itself as: Matt Pocock 技能集的中文翻译版 — 地道中文,原汁原味的技术术语。基于 mattpocock/skills 复刻。每日中午12点钟同步. The licence is MIT.

When your agent uses it

  • Tasks that involve Linting and formatting

Example prompts

  • “/scaffold-exercises”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 解析计划 — 提取章节名称、练习名称和变体类型
  2. 创建目录 — 使用 mkdir -p 创建每个路径
  3. 创建 readme 模板 — 每个变体文件夹一个 readme.md,包含标题
  4. 运行 lint — 执行 pnpm ai-hero-cli internal lint 进行验证
  5. 修复错误 — 反复修改直到 lint 通过

What it can do on your machine

Read from SKILL.md and the folder at commit b72cc5b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scaffold Exercises loads about 659 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 134 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~659

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from devcxl/mattpocock-skills-zh at commit b72cc5b, republished under its MIT licence (© devcxl). 134 words, ~659 tokens.

Download SKILL.mdSave it as .claude/skills/scaffold-exercises/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
scaffold-exercises
description
创建包含 section、problem、solution 和 explainer 的练习目录结构,且能通过 lint 检查。当用户想要搭建练习框架、创建练习模板或设置新的课程章节时使用。

搭建练习框架

创建能通过 pnpm ai-hero-cli internal lint 检查的练习目录结构,然后使用 git commit 提交。

目录命名规则

  • 章节(Sections):位于 exercises/ 下的 XX-section-name/ 格式(例如 01-retrieval-skill-building)
  • 练习(Exercises):位于章节内的 XX.YY-exercise-name/ 格式(例如 01.03-retrieval-with-bm25)
  • 章节编号 = XX,练习编号 = XX.YY
  • 名称使用短横线命名法(小写字母、连字符)

练习变体

每个练习至少需要以下子文件夹之一:

  • problem/ — 学生工作区,包含 TODO
  • solution/ — 参考实现
  • explainer/ — 概念讲解材料,不包含 TODO

创建模板时,除非计划另有说明,否则默认使用 explainer/。

必需文件

每个子文件夹(problem/、solution/、explainer/)需要一个 readme.md,要求:

  • 不能为空(必须有实际内容,哪怕只有一行标题也可以)
  • 不能有损坏的链接

创建模板时,创建一个包含标题和描述的极简 readme:

md
# Exercise Title

Description here

如果子文件夹包含代码,还需要一个 main.ts(超过 1 行)。但对于模板来说,仅有 readme 的练习也是可以的。

工作流程

  1. 解析计划 — 提取章节名称、练习名称和变体类型
  2. 创建目录 — 使用 mkdir -p 创建每个路径
  3. 创建 readme 模板 — 每个变体文件夹一个 readme.md,包含标题
  4. 运行 lint — 执行 pnpm ai-hero-cli internal lint 进行验证
  5. 修复错误 — 反复修改直到 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

移动/重命名练习

在重新编号或移动练习时:

  1. 使用 git mv(而不是 mv)重命名目录 — 这样可以保留 git 历史
  2. 更新数字前缀以保持顺序
  3. 移动后重新运行 lint

示例:

bash
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

创建:

bash
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"

© devcxl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/misc/scaffold-exercises of devcxl/mattpocock-skills-zh.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit b72cc5b

Compare with similar skills

Scaffold Exercises next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scaffold Exercises compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scaffold Exercises this skilldevcxl/mattpocock-skills-zh433—~659Automated safety check: PassMIT
WooCommerce Dev Cyclewoocommerce/woocommerce11k3 repos~431Automated safety check: PassCustom licence
Scaffold Exercisesfossasia/eventyay-interpretation1.6k11 repos~898Automated safety check: PassApache-2.0
Check Pushpockethost/pockethost1.4k—~665Automated safety check: PassMIT
Antfuoyjt/uniapp-vue3-template627—~1.3kAutomated safety check: PassMIT
Add Plugin Ruleeslint-config/airbnb-extended129—~646Automated safety check: PassMIT

Similar skills

  • WooCommerce Dev Cycle

    woocommerce/woocommerce

    Workflow for WooCommerce development: run PHP and JavaScript tests, lint and fix code style on the current branch, and follow guides for i18n and markdown.

    11k GitHub starsUsed in 3 repos~431 tokens
    DevelopmentAuto-check passed
  • Scaffold Exercises

    fossasia/eventyay-interpretation

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting.

    1.6k GitHub starsUsed in 11 repos~898 tokens
    DevelopmentAuto-check passed
  • Check Push

    pockethost/pockethost

    Run pnpm check:push (lint, types, tests) before git push or PR-ready work.

    1.4k GitHub stars~665 tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Antfu

    oyjt/uniapp-vue3-template

    Anthony Fu's {Opinionated} preferences and best practices for web development

    627 GitHub stars~1.3k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Add Plugin Rule

    eslint-config/airbnb-extended

    Fix the "<Plugin Updated with <rule" build error from script/checkUpdates.ts by adding a new or deprecated plugin rule to the right rules/ file.

    129 GitHub stars~646 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Kouchou AI Development

    digitaldemocracy2030/kouchou-ai

    Local development setup, build and lint commands, environment configuration, and deployment helpers for the kouchou-ai repo.

    171 GitHub stars~540 tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from devcxl/mattpocock-skills-zh

All 20 skills in this repo
  • Triage

    devcxl/mattpocock-skills-zh

    将 issue 和外部 PR 推过一组分诊角色的状态机——分类、验证、必要时盘问,并写出 agent 就绪的任务简报. An agent skill from devcxl/mattpocock-skills-zh.

    433 GitHub starsUsed in 1 repo~816 tokens
    Auto-check passed
  • Git Guardrails Claude Code

    devcxl/mattpocock-skills-zh

    设置 Claude Code 钩子,在危险 Git 命令(push、reset --hard、clean、branch -D 等)执行前将其拦截。当用户想要防止破坏性 Git 操作、添加 Git 安全钩子或在 Claude Code 中阻止 git push/reset 时使用。

    433 GitHub stars~420 tokensUpdated 2 days ago
    Auto-check passed
  • Codebase Design

    devcxl/mattpocock-skills-zh

    设计深度模块的共享词汇。当用户想要设计或改进模块的接口、寻找深化机会、决定 seam 的位置、让代码更可测试或更易被 AI 导航,或者其他 skill 需要深度模块词汇时使用。

    433 GitHub stars~809 tokensUpdated 2 days ago
    Auto-check passed
  • Diagnosing Bugs

    devcxl/mattpocock-skills-zh

    针对棘手 bug 和性能回归的诊断循环。当用户说"诊断"/"调试这个",或报告某处崩溃/报错/不正常/缓慢时使用. An agent skill from devcxl/mattpocock-skills-zh.

    433 GitHub stars~958 tokensUpdated 2 days ago
    Auto-check passed
  • Domain Modeling

    devcxl/mattpocock-skills-zh

    构建和完善项目的领域模型。当讨论代码库术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR 时使用. An agent skill from devcxl/mattpocock-skills-zh.

    433 GitHub stars~412 tokensUpdated 2 days ago
    Auto-check passed
  • Migrate To Shoehorn

    devcxl/mattpocock-skills-zh

    将测试文件从 as 类型断言迁移到 @total-typescript/shoehorn。当用户提到 shoehorn、想要在测试中替换 as、或需要部分测试数据时使用。

    433 GitHub stars~522 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Scaffold Exercises

What does Scaffold Exercises do?

创建包含 section、problem、solution 和 explainer 的练习目录结构,且能通过 lint 检查。当用户想要搭建练习框架、创建练习模板或设置新的课程章节时使用。. Scaffold Exercises is an agent skill from devcxl/mattpocock-skills-zh.

When should I use Scaffold Exercises?

Scaffold Exercises fits situations like: tasks that involve Linting and formatting.

How do I install Scaffold Exercises in Claude Code?

Run `npx skills add devcxl/mattpocock-skills-zh --skill scaffold-exercises -a claude-code`. Or copy the skill folder (skills/misc/scaffold-exercises in devcxl/mattpocock-skills-zh) into .claude/skills/scaffold-exercises in your project. Claude Code loads it when a task matches its description.

How do I install Scaffold Exercises in Codex?

Run `npx skills add devcxl/mattpocock-skills-zh --skill scaffold-exercises -a codex`. Or copy the skill folder (skills/misc/scaffold-exercises in devcxl/mattpocock-skills-zh) into .agents/skills/scaffold-exercises in your project. Codex loads it when a task matches its description.

Can I use Scaffold Exercises in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add devcxl/mattpocock-skills-zh --skill scaffold-exercises -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scaffold-exercises, .gemini/skills/scaffold-exercises, .github/skills/scaffold-exercises and .opencode/skills/scaffold-exercises in your project.

What does Scaffold Exercises need to run?

Going by SKILL.md and its folder, Scaffold Exercises needs the command-line tools its instructions call (pnpm and git).

Does Scaffold Exercises access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Scaffold Exercises safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scaffold Exercises use?

Scaffold Exercises is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scaffold Exercises use?

About 659 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Scaffold Exercises?

Skills that share tags, products or a category with Scaffold Exercises: WooCommerce Dev Cycle (woocommerce/woocommerce, 11k stars), Scaffold Exercises (fossasia/eventyay-interpretation, 1.6k stars), Check Push (pockethost/pockethost, 1.4k stars) and Antfu (oyjt/uniapp-vue3-template, 627 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scaffold Exercises?

devcxl (a GitHub user) maintains it in devcxl/mattpocock-skills-zh, which has 433 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 5, 2026.

Source: devcxl/mattpocock-skills-zh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.