new-agent
Scaffold a new toolkit agent so every entry lands consistent: the definition, its mirrored doc, and the README table row, in one pass.
Inputs
Ask the user for these if not provided:
- name: kebab-case, unique (becomes
agents/<name>.md). Verify it does not already exist underagents/. - description: one or two sentences covering what it does and when to use it. This drives automatic delegation, so make it specific.
- tools: the minimal set the agent needs (e.g.
Read, Grep, Glob, Bashfor a read-only reviewer). Omit to inherit all tools. - model: optional (
sonnet,opus,haiku); omit to inherit.
Steps
Create
agents/<name>.mdwith this frontmatter, then the system prompt body:--- name: <name> description: <description> tools: <comma-separated tools> # omit line to inherit all model: <model> # omit line to inherit --- <System prompt: role, scope, method, and reporting/output format.>Create
docs/agents/<name>.md: the human-facing doc covering purpose, scope, how to use it, and ideally a short example of its output. Go beyond the frontmatter; a one-line stub will fail review.Add a README row. In the
## Agentstable inREADME.md, add:| `<name>` | <short description> | [docs](docs/agents/<name>.md) |Validate. Run
.claude/scripts/lint-toolkit.shand fix anything it reports. For a qualitative pass, suggest the user invoke thetoolkit-linteragent.
Notes
- Keep the top-level
agents//skills/folders for published toolkit items only. Repo-maintenance tooling lives in.claude/. - Follow repo conventions: no em dashes; single root
.gitignore. - The pre-commit hook runs the lint script automatically, so a scaffold that skips step 2 or 3 will block the commit until fixed.