create-subagent
Installation
SKILL.md
Create Subagent
Scaffold a new subagent in agents/ and link it into the right plugin.
For Claude Code, subagents are distributed via plugins. The AGENTS.md format is also compatible with other coding tools (Cursor, Copilot, Codex, Gemini, VS Code, Zed).
Workflow
-
Find repo root Run:
git rev-parse --show-toplevelStore result as<repo-root>. -
Gather info via script Run:
node <skill-dir>/scripts/gather-subagent-info.cjsThe script prompts the user in the terminal and returns one JSON line:{ name, description, triggers, tools, plugin } -
Create agent directory and AGENTS.md Create
<repo-root>/agents/<name>/AGENTS.mdwith a minimal skeleton — do not impose a structure: