add-agent
БесплатноБез исполняемых скриптовНе проверенScaffold a new agent definition file inside an existing addon or framework
от jmagly★ 233 звезды на GitHubОб этом скилле
Add Agent
Scaffold a new agent definition file inside an existing addon or framework.
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "I need a new agent" → scaffold agent in specified target
- "build me an agent" → scaffold agent with interactive guidance
- "write an agent for X" → scaffold agent named after the described role
- "agent for
" → derive name from role, prompt for target
Trigger Patterns Reference
| Pattern | Example | Action |
|---|---|---|
| Named add | "add agent security-auditor --to sdlc-complete" | Scaffold directly |
| Role description | "create an agent that reviews PRs" | Derive name, scaffold |
| Interactive | "add agent --interactive" | Guided mode, ask for name/target/template |
| Target omitted | "add agent code-reviewer" | Ask which addon or framework |
Process
1. Parse Arguments
Extract from $ARGUMENTS:
<name>— kebab-case agent name (required)--to <target>— addon or framework directory name (required)--template <type>— one ofsimple(default),complex,orchestrator,validator--interactive— enable guided design questions
If either <name> or --to is missing, ask before proceeding.
2. Validate Target
Confirm the target addon or framework exists:
# Check addons
ls agentic/code/addons/<target>/
# Check frameworks
ls agentic/code/frameworks/<target>/
If not found, report available targets and stop.
3. Interactive Design (if --interactive)
Ask the following before generating:
- Role: What is this agent's primary role?
- Expertise: What domains or technologies does it specialize in?
- Responsibilities: What are its 3-5 key responsibilities?
- Tools needed: Which tools does it require? (Read, Write, Bash, Grep, WebFetch, Task)
- Model tier: haiku (fast/utility), sonnet (balanced), opus (reasoning-heavy)
- Output format: What structured output should it produce?
- Workflow: How should it approach tasks?
4. Select Template
Templates live in $AIWG_ROOT/templates/agent-scaffolding/. The complex template
includes grounding, uncertainty handling, and recovery safeguards; the orchestrator
template includes workflow patterns and agent assignment tables.
| Template | Use When | Default Model | Tools |
|---|---|---|---|
simple |
Single-purpose utility agent | haiku | Read, Write |
complex |
Domain expert, reviewer, analyst | sonnet | Read, Write, Grep |
orchestrator |
Coordinates other agents | opus | Task |
validator |
Read-only quality/compliance gate | haiku | Read, Grep |
5. Run Scaffolding
aiwg add-agent <name> --to <target> --template <type>
This generates <target>/agents/<name>.md with the appropriate frontmatter and section stubs.
6. Customize the Generated File
The generated agent file requires population of these sections:
---
name: <name>
description: <one-sentence purpose>
model: <claude-haiku-4-5|claude-sonnet-5|claude-opus-5> # Pin specific variant; bare aliases (`sonnet`) inherit the parent session's 1M-context attributes and hit the usage-credit gate on subagent dispatch. See #1442.
tools: <comma-separated tool list>
category: <phase or domain>
---
# Agent Title
[Role description]
## Expertise
[Domain knowledge and skills]
## Responsibilities
[Numbered list of what this agent does]
## Workflow
[How it approaches tasks — research, draft, validate, output]
## Output Format
[Expected structure of deliverables]
7. Validate Against 10 Golden Rules
After creation, run the agent linter:
aiwg lint agents <target>/agents/<name>.md --verbose
Follow the Agent Design Bible. Its failure prevention guidance draws on REF-001 (Bandara et al.) and REF-002 (Roig 2025).
| Rule | Check |
|---|---|
| 1. Single Responsibility | One clear purpose, no "and" overload |
| 2. Minimal Tools | 0-3 tools, each justified |
| 3. Explicit I/O | Inputs and outputs defined |
| 4. Grounding | Verify before acting (Archetype 1) |
| 5. Uncertainty | Escalate ambiguity (Archetype 2) |
| 6. Context Scope | Filter distractors (Archetype 3) |
| 7. Recovery | Handle errors (Archetype 4) |
| 8. Model Tier | Match task complexity |
| 9. Parallel Ready | Concurrent execution safe |
| 10. Observable | Traceable output |
8. Update Manifest
The CLI tool updates <target>/manifest.json automatically. Verify:
{
"agents": ["existing-agent", "<name>"]
}
Generated Structure
<target>/agents/<name>.md
Manifest updated: <target>/manifest.json
Output Format
Agent Created: <name>
─────────────────────
Location: <target>/agents/<name>.md
Template: <type>
Model: <model>
Created:
✓ <target>/agents/<name>.md
✓ manifest.json updated
Validation:
✓ Single responsib
Установить add-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-agent?
Scaffold a new agent definition file inside an existing addon or framework
Как установить скилл add-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic