Agent skill

Scaffold Exercises

by vinvcn in vinvcn/mattpocock-skills-zh-CN

创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。

MITAuto-check passedDevelopment

Install Scaffold Exercises

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

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

GitHub CLI
$ gh skill install vinvcn/mattpocock-skills-zh-CN 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/vinvcn/mattpocock-skills-zh-CN.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
4.7k
Token cost
~748 tokens
SKILL.md length
202 words
Files
2
Skills in repo
32
Repo updated
First seen
Licence
MIT

At a glance

创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。

  • Works in 5 steps: Parse the plan - 提取 section… → Create directories - 对每个 path 执行 mkdir -p → Create stub readmes - 每个 variant folder… → …
  • Tasks that involve Linting and formatting
  • SKILL.md covers 目录命名, Exercise 变体, 必需文件 and 工作流, plus 3 more sections
  • Calls pnpm and git

What it does

Scaffold Exercises is an agent skill from vinvcn/mattpocock-skills-zh-CN. 创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。

Its SKILL.md is about 750 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: 这是 mattpocock/skills 的简体中文本地化版本。 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. Parse the plan - 提取 section names、exercise names 和 variant types
  2. Create directories - 对每个 path 执行 mkdir -p
  3. Create stub readmes - 每个 variant folder 一个带 title 的 readme.md
  4. Run lint - 执行 pnpm ai-hero-cli internal lint 验证
  5. Fix any errors - 迭代直到 lint 通过

What it can do on your machine

Read from SKILL.md and the folder at commit bf98e53. 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 748 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 202 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
~748

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 vinvcn/mattpocock-skills-zh-CN at commit bf98e53, republished under its MIT licence (© vinvcn). 202 words, ~748 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
创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。

搭建练习

创建能通过 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,包含 TODOs
  • solution/ - reference implementation
  • explainer/ - conceptual material,不含 TODOs

创建 stub 时,除非 plan 指定其他 variant,否则默认使用 explainer/。

必需文件

每个 subfolder(problem/、solution/、explainer/)都需要一个 readme.md,要求:

  • 非空(必须有真实内容,即使只有一行 title 也可以)
  • 没有 broken links

创建 stub 时,生成带 title 和 description 的最小 readme:

md
# Exercise Title

Description here

如果 subfolder 有 code,还需要 main.ts(>1 行)。但对 stubs 来说,readme-only exercise 可以接受。

工作流

  1. Parse the plan - 提取 section names、exercise names 和 variant types
  2. Create directories - 对每个 path 执行 mkdir -p
  3. Create stub readmes - 每个 variant folder 一个带 title 的 readme.md
  4. Run lint - 执行 pnpm ai-hero-cli internal lint 验证
  5. Fix any errors - 迭代直到 lint 通过

Lint 规则摘要

linter(pnpm ai-hero-cli internal lint)检查:

  • 每个 exercise 有 subfolders(problem/、solution/、explainer/)
  • 至少存在 problem/、explainer/ 或 explainer.1/ 之一
  • primary subfolder 中存在非空 readme.md
  • 没有 .gitkeep files
  • 没有 speaker-notes.md files
  • readmes 中没有 broken links
  • readmes 中没有 pnpm run exercise commands
  • 除非是 readme-only,否则每个 subfolder 都需要 main.ts

移动/重命名 exercises

重新编号或移动 exercises 时:

  1. 使用 git mv(不是 mv)重命名 directories,保留 git history
  2. 更新 numeric prefix 以维持顺序
  3. 移动后重新运行 lint

Example:

bash
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings

示例:从 plan 生成 stubs

给定这样的 plan:

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

© vinvcn, 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 vinvcn/mattpocock-skills-zh-CN.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit bf98e53

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 skillvinvcn/mattpocock-skills-zh-CN4.7k—~748Automated safety check: PassMIT
Scaffold Exercisesfossasia/eventyay-interpretation1.6k11 repos~898Automated safety check: PassApache-2.0
WooCommerce Dev Cyclewoocommerce/woocommerce11k3 repos~431Automated safety check: PassCustom licence
Check Pushpockethost/pockethost1.4k—~665Automated safety check: PassMIT
Antfuoyjt/uniapp-vue3-template627—~1.3kAutomated safety check: PassMIT
Add Plugin Ruleeslint-config/airbnb-extended130—~646Automated safety check: PassMIT

Similar skills

  • 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
  • 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
  • Check Push

    pockethost/pockethost

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

    1.4k GitHub stars~665 tokensUpdated 12 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.

    130 GitHub stars~646 tokensUpdated today
    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 today
    DevelopmentAuto-check: notes

More from vinvcn/mattpocock-skills-zh-CN

All 32 skills in this repo
  • Git Guardrails Claude Code

    vinvcn/mattpocock-skills-zh-CN

    设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。

    4.7k GitHub stars~461 tokensUpdated yesterday
    Auto-check passed
  • Codebase Design

    vinvcn/mattpocock-skills-zh-CN

    用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。

    4.7k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Diagnosing Bugs

    vinvcn/mattpocock-skills-zh-CN

    面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。

    4.7k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Domain Modeling

    vinvcn/mattpocock-skills-zh-CN

    构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。

    4.7k GitHub stars~477 tokensUpdated yesterday
    Auto-check passed
  • Migrate To Shoehorn

    vinvcn/mattpocock-skills-zh-CN

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

    4.7k GitHub stars~603 tokensUpdated yesterday
    Auto-check passed
  • PR

    vinvcn/mattpocock-skills-zh-CN

    用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时. An agent skill from vinvcn/mattpocock-skills-zh-CN.

    4.7k GitHub stars~729 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Scaffold Exercises

What does Scaffold Exercises do?

创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。. Scaffold Exercises is an agent skill from vinvcn/mattpocock-skills-zh-CN.

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 vinvcn/mattpocock-skills-zh-CN --skill scaffold-exercises -a claude-code`. Or copy the skill folder (skills/misc/scaffold-exercises in vinvcn/mattpocock-skills-zh-CN) 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 vinvcn/mattpocock-skills-zh-CN --skill scaffold-exercises -a codex`. Or copy the skill folder (skills/misc/scaffold-exercises in vinvcn/mattpocock-skills-zh-CN) 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 vinvcn/mattpocock-skills-zh-CN --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 748 tokens (SKILL.md is roughly 3k 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: Scaffold Exercises (fossasia/eventyay-interpretation, 1.6k stars), WooCommerce Dev Cycle (woocommerce/woocommerce, 11k 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?

vinvcn (a GitHub user) maintains it in vinvcn/mattpocock-skills-zh-CN, which has 4,682 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 8, 2026.

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