Agent Add
Role: implementation.
Implementation constraints
- Follow the official sub-agent schema and token budgets.
- Delegate the build to the agent-create skill; do not improvise structure.
- Be concise. Report the created agent file, no narration.
Steps
1. Parse arguments
Capture the agent name/spec or URL from $ARGUMENTS.
2. Delegate
Invoke the agent-create skill with the arguments.
3. Record the decision-log row
agent-create Step 15 appends a keep row to docs/model-effort-decisions.md
when the target repo has that file. Do not skip it. In a repo without the
file, nothing happens.
4. Report
Output the created file path, and the decision-log row when one was added.
Apply the guidelines defined in skills/agent-create/SKILL.md to the current
task. Read the skill file and follow its steps exactly.
If $ARGUMENTS starts with http:// or https://, fetch the URL with
WebFetch first and extract the relevant guidance, then use that content as
the agent description.
Pass these flags through to the skill as context:
--plugin <dir>→ target plugin directory (resolved by agent-create Step 0)--name <name>→ set agent name (skips name prompt)--type review|team→ set agent type (skips type prompt)--model sonnet|opus|haiku|fable|inherit|<full model ID>→ sets the agent's model (invalid values rejected against agent-contract.json)--effort low|medium|high|xhigh|max→ sets the agent's reasoning effort (invalid values rejected against agent-contract.json)--memory user|project|local/--isolation worktree/--color <color>/--max-turns <int>/--background true|false/--skills <name1,name2,...>→ optional native fields, no forced defaults--context diff-only|full-file|project-structure→ setsContext needs:field--lang <exts>→ adds language scope declaration to the body--dry→ show generated content without writing to disk or updating registry
Apply this skill to: $ARGUMENTS