From scaffold
Interview the user, then author a new Claude Code subagent into their personal config repo (agents/<name>.md). Use when the user says "add an agent", "create a subagent", "build me an agent for X", "/add-agent", or describes a delegated persona that needs isolated context or parallelism. Asks targeted questions first so the agent's description, tools, and model are right.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scaffold:add-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Author a new subagent into the user's config repo (default `~/claude-config`).
Author a new subagent into the user's config repo (default ~/claude-config).
Subagents are personas you delegate to — they run in isolated context, which
is the point: heavy multi-file reads or parallel fan-out that would otherwise
pollute the main session.
If the work is a workflow the main session could just run with its own tools,
it should be a skill (/add-skill), not an agent — cheaper, visible,
course-correctable. Only build an agent when isolated context or parallelism
is the actual reason. If in doubt, say so and recommend a skill.
Resolve in order: $CLAUDE_CONFIG_REPO, then ~/claude-config, then ask. If no
agents/ dir exists, suggest /scaffold-config first.
Use AskUserQuestion for choices, plain questions for free text. Get:
code-reviewer, solution-architect,
code-archaeologist). Matches [a-z0-9-]+, not already taken.description and is what triggers delegation — make it specific.Read, Grep, Glob, WebSearch); builders need Edit, Write, Bash. Default to least privilege.haiku for cheap/fast scans, sonnet/opus for
heavier reasoning. Omit to inherit.Write agents/<name>.md:
---
name: <name>
description: <role>. Use when <situations to delegate>. <key qualifiers>.
tools: Read, Grep, Glob # least privilege; omit to inherit all
model: sonnet # optional
---
# <name>
<system prompt: who this agent is, how it works, what it returns to the caller,
and what it must not do>
Keep the body focused: define the persona, its method, its output format, and its boundaries.
bash <repo>/bootstrap.sh validate../bootstrap.sh (agents symlink into ~/.claude/agents/); a new session
picks it up.Bash/Write to a read-only researcher.npx claudepluginhub markusjohansen/mj-plugins --plugin scaffoldCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.