description: Scaffold a new Claude command/skill in .claude/commands/ following this repo's house format (frontmatter + steps + verify + final report). argument-hint: <skill name + one-line purpose> allowed-tools: Read, Write, Glob
Scaffold a new skill: $ARGUMENTS. Skills in this repo live as
.claude/commands/<name>.md and are the project's slash commands. Keep the new one
token-light — it should point agents at the right subsystem doc rather than
re-explaining architecture. (Scaffolding an AGENT definition in
.claude/agents/ instead? That's /add-agent.)
Read first
- An existing sibling that resembles the new skill's shape (
add-building.mdfor a "add a game thing" workflow;smalltweak.mdfor a git-flow workflow) — match its structure, don't invent a new one.
Steps
- Pick a kebab-case name; the file is
.claude/commands/<name>.md. - Write the frontmatter (three keys, same order as siblings):
description:one sentence, imperative — this is what shows in the skill list.argument-hint:<what the user passes>.allowed-tools:the MINIMAL set. Read/Edit/Write/Grep/Glob for edit workflows; add narrowly-scopedBash(...)entries only for the exact commands the skill runs (e.g.Bash(py tools/smoke.py*),Bash(py -m pytest*), or specificBash(git ...)verbs). Do NOT grant a blanketBash, and neverBash(py -m unittest*)— the pre-pytest incantation runs everything, is not the gate, and thetest_guard.pyhook denies it.
- Write the body in the house shape:
- a one-line restatement using
**$ARGUMENTS**+ any lock/scope caveat; - Read first (token-light) — name the ONE subsystem doc to load
(
engine|game|editor/<sub>/CLAUDE.md) instead of pasting architecture; - Steps — numbered, smallest-change-first;
- Avoid — the repo-specific foot-guns for this task;
- Verify — the narrowest check (
py tools/smoke.py/ the specificpy -m pytest tools/tests/test_<area>.py -qfiles / live run), and "state what you verified". Route to §"Test Suite Policy" in the rootCLAUDE.md; never state a different rule in the new skill. That section is the ONLY authority on when tests run — a skill that says "run the full suite", writes a per-steptestgate check, or tells a subagent to use--affectedis a bug, and the mechanical parts are hook-denied anyway. If the skill is a closing/handoff move, say the single fullcheckbelongs to the MAIN SESSION, once; - Final report — changed files + verification + whether a subsystem doc needed a durable update.
- a one-line restatement using
- Keep it short. If it's growing past ~60 lines, the detail probably belongs in a subsystem CLAUDE.md that the skill links to.
Verify
- The file parses as valid front-matter markdown (three
----fenced keys) and reads cleanly. It should appear as/<name>after the session reloads skills.
Final report
- The new file path; its
allowed-tools; which subsystem doc it routes to. - Tag every claim measured / verified / inferred (see
/report).
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,463
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,362
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
1,247