| name | agent-template |
| description | Generate custom agent from template |
| user-invocable | true |
Agent Template Generator
Generate a custom agent file based on requirements.
Usage: /agent-template [agent-name] [purpose]
Templates
| Purpose | Template | Tools | Color | Model |
|---|
| Review/Audit | Reviewer | Read, Grep, Glob, Bash | yellow | sonnet |
| Generate/Create | Generator | Read, Write, Grep, Glob | cyan | sonnet |
| Fix/Modify | Fixer | Read, Write, Edit, Bash, Grep | red | sonnet |
| Test/Validate | Tester | Read, Bash, Grep, Glob | green | sonnet |
| Document | Documenter | Read, Write, Grep, Glob | cyan | sonnet |
| Orchestrate | Orchestrator | Read, Write, Bash, Grep, Glob, Task | cyan | haiku |
Process
-
Gather Requirements
- Agent name (lowercase, hyphenated)
- Purpose
- Tools needed
- Model (haiku/sonnet/opus)
- Linked skill (if any)
-
Select Template based on purpose
-
Generate File at .claude/agents/[name].md
-
Validate with /agent-check
Frontmatter Reference
---
name: agent-name
description: >
Use this agent when [triggering conditions]. Examples:
<example>
Context: [situation]
user: "[request]"
assistant: "[response]"
<commentary>[why this agent]</commentary>
</example>
color: cyan
tools:
- Read
- Write
- Edit
- Bash
- Grep
- Glob
- Task
- WebFetch
- WebSearch
- TodoWrite
- NotebookEdit
model:
Reviewer Template Structure
---
name: [name]
description: [brief purpose]
color: yellow
tools:
- Read
- Grep
- Glob
- Bash
model: sonnet
skills:
- linked-skill
---
# [Name] Agent
## Activation
When to trigger
## Review Checklist
- [ ] Check items
## Output Format
Report structure
Example
/agent-template security-scanner "scan code for vulnerabilities"
Output: Created .claude/agents/security-scanner.md