Develop new Claude Code agents. Use when creating, developing, reviewing, improving, or working on agents. Examples: "create an agent for X", "review the researcher agent", "improve the code-reviewer agent", "work on the python-developer agent".
Guides the complete workflow for developing new Claude Code agents, from initial description to tested, documented agent ready for use.
| Step | Description |
|---|---|
| 1. Interview | Clarify scope, tools, constraints |
| 2. Analyze | Create analysis document |
| 3. Design | Define agent structure |
| 4. Create | Write agent definition |
| 5. Test | Symlink and validate |
This skill incorporates best practices from comprehensive research on AI agent development (see research/2026-04-08-ai-agent-development-best-practices/):
/develop-agent "description"Ask these agent-specific questions to clarify scope:
Scope & Purpose:
Input & Output:
Tools & Capabilities:
Constraints:
Narrow Scope Validation:
Apply the Three Tests for Narrow Scope:
Trigger Test: Does this agent have exactly one trigger condition?
Action Test: Does this agent produce exactly one type of output?
Failure Test: If one part fails, does the rest still make sense?
Complexity Detection:
If answers reveal complex functionality (multiple workflows, intricate logic, many edge cases):
If straightforward (clear, focused task):
ALWAYS create an analysis document in the idea folder:
ideas/{agent-name}/analysis/functional.md
Analysis document structure:
# {Agent Name} - Functional Analysis
**Date:** YYYY-MM-DD
**Analyst:** [skill or functional-analyst]
## Purpose
[One paragraph describing what the agent does and why]
## Scope
### In Scope
- [Task 1]
- [Task 2]
### Out of Scope
- [Excluded task 1]
- [Excluded task 2]
## Inputs
| Input | Type | Description |
|-------|------|-------------|
| [input1] | [type] | [description] |
## Outputs
| Output | Type | Location |
|--------|------|----------|
| [output1] | [type] | [path] |
## Tools Required
| Tool | Usage | Risk Level |
|------|-------|------------|
| [tool1] | [what it's used for] | [read/modify/delete] |
## Constraints
- [Constraint 1]
- [Constraint 2]
## Workflow
1. [Step 1]
2. [Step 2]
3. [Step 3]
## Example Scenarios
### Scenario 1: [Name]
**Input:** ...
**Expected Output:** ...
## Decisions Made
| Decision | Rationale |
|----------|-----------|
| [decision] | [why] |
## Related Agents
- [agent1] - [relationship]
- [agent2] - [relationship]
## Scope Validation
- Trigger Test: [single trigger condition]
- Action Test: [single output type]
- Failure Test: [contained failure scope]
| Color | Agent Types |
|---|---|
green | Development, implementation |
blue | Analysis, research |
cyan | Documentation, knowledge |
yellow | Coordination, planning |
magenta | Testing, validation |
red | Security, review |
Create the agent file:
ideas/{agent-name}/artifacts/agent/{agent-name}.md
See references/system-prompt.md for the complete framework. Every agent must include:
---