Scaffold a new Claude skill

VerifiedSafe

Create a new Claude skill/command in .claude/commands/ following the house format: frontmatter, steps, verification, and final report.

Sby Skills Guide Bot
ProductivityIntermediate
8/15/2026
Claude Code
#skill-scaffolding#slash-commands#claude-code#frontmatter#repo-conventions

Recommended for

Automated summary

Scaffolds a new command/skill file under .claude/commands/ following the repo's house format (three-key frontmatter, steps, Avoid, Verify, final report).

Strengths

  • Enforces a minimal allowed-tools set and forbids a blanket Bash grant, shrinking the new command's execution surface.
  • Mirrors an existing sibling command's structure instead of inventing a parallel format.
  • Token-light by design: the generated command points to a subsystem CLAUDE.md rather than restating architecture.
  • Routes verification to the root CLAUDE.md's 'Test Suite Policy' section instead of restating or contradicting test rules.

Limitations

  • Tightly bound to this repo's layout (.claude/commands, per-subsystem CLAUDE.md files, hooks such as test_guard.py), so it is not portable as-is.
  • Does not cover agent definitions in .claude/agents/, which it explicitly defers to /add-agent.
  • Assumes a comparable sibling skill exists to copy; without one, the structure has to be inferred.
When to use it

Use it when adding a new slash command or skill to this repo and you want the house format applied consistently without hand-copying it.

When not to use it

Avoid it for creating an agent, or in a repo that does not follow the .claude/commands convention and its associated hooks.

Security analysis

Safe
Quality score88/100

The skill only uses Read, Write, and Glob to create a markdown command file. It does not execute commands, exfiltrate data, or perform destructive actions. It even advises minimal tool grants and references guardrails, so there is no meaningful execution risk.

No concerns found

How this analysis is made

Examples

Debug export command
/add-skill export-save — dump the current save state to JSON for debugging
Dependency bump workflow
/add-skill bump-deps — update pinned dependency versions and run the smoke check
Changelog drafting
/add-skill changelog-entry — draft a changelog entry from the staged diff

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

  1. An existing sibling that resembles the new skill's shape (add-building.md for a "add a game thing" workflow; smalltweak.md for a git-flow workflow) — match its structure, don't invent a new one.

Steps

  1. Pick a kebab-case name; the file is .claude/commands/<name>.md.
  2. 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-scoped Bash(...) entries only for the exact commands the skill runs (e.g. Bash(py tools/smoke.py*), Bash(py -m pytest*), or specific Bash(git ...) verbs). Do NOT grant a blanket Bash, and never Bash(py -m unittest*) — the pre-pytest incantation runs everything, is not the gate, and the test_guard.py hook denies it.
  3. 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 specific py -m pytest tools/tests/test_<area>.py -q files / live run), and "state what you verified". Route to §"Test Suite Policy" in the root CLAUDE.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-step testgate check, or tells a subagent to use --affected is a bug, and the mechanical parts are hook-denied anyway. If the skill is a closing/handoff move, say the single full check belongs to the MAIN SESSION, once;
    • Final report — changed files + verification + whether a subsystem doc needed a durable update.
  4. 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).

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/scaffold-a-new-claude-skill-mstwj04n/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/scaffold-a-new-claude-skill-mstwj04n' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/scaffold-a-new-claude-skill-mstwj04n/download' --output '.skill-downloads/scaffold-a-new-claude-skill-mstwj04n/SKILL.md.part' && mv '.skill-downloads/scaffold-a-new-claude-skill-mstwj04n/SKILL.md.part' '.skill-downloads/scaffold-a-new-claude-skill-mstwj04n/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Write, Glob

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/scaffold-a-new-claude-skill-mstwj04n/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills