plugin: agentdev
updated: 2026-01-20
Frontmatter Schemas
Agent Frontmatter
---
name: agent-name # Required: lowercase-with-hyphens
description: | # Required: detailed with examples
Use this agent when [scenario]. Examples:
(1) "Task description" - launches agent for X
(2) "Task description" - launches agent for Y
(3) "Task description" - launches agent for Z
model: sonnet # Required: sonnet | opus | haiku
color: purple # Optional: purple | cyan | green | orange | blue | red
tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write # Required: comma-separated, space after comma
skills: skill1, skill2 # Optional: referenced skills
---
Field Reference
| Field |
Required |
Values |
Description |
name |
Yes |
lowercase-with-hyphens |
Agent identifier |
description |
Yes |
Multi-line string |
3-5 usage examples |
model |
Yes |
sonnet, opus, haiku |
AI model to use |
color |
No |
See colors below |
Terminal color |
tools |
Yes |
Tool list |
Available tools |
skills |
No |
Skill list |
Referenced skills |
Color Guidelines
| Color |
Agent Type |
Examples |
purple |
Planning |
architect, api-architect |
green |
Implementation |
developer, ui-developer |
cyan |
Review |
reviewer, designer |
orange |
Testing |
test-architect, tester |
blue |
Utility |
cleaner, api-analyst |
red |
Critical/Security |
(rarely used) |
Tool Patterns by Agent Type
Orchestrators (Commands):
- Must have:
Task, TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Bash
- Often:
AskUserQuestion, Glob, Grep
- Never:
Write, Edit
Planners:
- Must have:
TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write (for docs)
- Often:
Glob, Grep, Bash
Implementers:
- Must have:
TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write, Edit
- Often:
Bash, Glob, Grep
Reviewers:
- Must have:
TaskCreate, TaskUpdate, TaskList, TaskGet, Read
- Often:
Glob, Grep, Bash
- Never:
Write, Edit
Command Frontmatter
---
description: | # Required: workflow description
Full description of what this command does.
Workflow: PHASE 1 → PHASE 2 → PHASE 3
allowed-tools: Task, Bash # Required: comma-separated
skills: skill1, skill2 # Optional: referenced skills
---
Field Reference
| Field |
Required |
Values |
Description |
description |
Yes |
Multi-line |
Command purpose and workflow |
allowed-tools |
Yes |
Tool list |
Tools command can use |
skills |
No |
Skill list |
Referenced skills |
Validation Checklist
Agent Frontmatter
Command Frontmatter
Common Errors
Invalid YAML Syntax
# WRONG - missing colon
name agent-name
# CORRECT
name: agent-name
Incorrect Tool Format
# WRONG - no spaces after commas
tools: TaskCreate, TaskUpdate, TaskList, TaskGet,Read,Write
# CORRECT
tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write
Missing Examples
# WRONG - too generic
description: Use this agent for development tasks.
# CORRECT
description: |
Use this agent when implementing TypeScript features. Examples:
(1) "Create a user service" - implements service with full CRUD
(2) "Add validation" - adds Zod schemas to endpoints
(3) "Fix type errors" - resolves TypeScript compilation issues
1---2name: schemas3description: YAML frontmatter schemas for Claude Code agents and commands. Use when creating or validating agent/command files.4---5plugin: agentdev6updated: 2026-01-2078# Frontmatter Schemas910## Agent Frontmatter1112```yaml13---14name: agent-name # Required: lowercase-with-hyphens15description: | # Required: detailed with examples16 Use this agent when [scenario]. Examples:17 (1) "Task description" - launches agent for X18 (2) "Task description" - launches agent for Y19 (3) "Task description" - launches agent for Z20model: sonnet # Required: sonnet | opus | haiku21color: purple # Optional: purple | cyan | green | orange | blue | red22tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write # Required: comma-separated, space after comma23skills: skill1, skill2 # Optional: referenced skills24---25```2627### Field Reference2829| Field | Required | Values | Description |30|-------|----------|--------|-------------|31| `name` | Yes | `lowercase-with-hyphens` | Agent identifier |32| `description` | Yes | Multi-line string | 3-5 usage examples |33| `model` | Yes | `sonnet`, `opus`, `haiku` | AI model to use |34| `color` | No | See colors below | Terminal color |35| `tools` | Yes | Tool list | Available tools |36| `skills` | No | Skill list | Referenced skills |3738### Color Guidelines3940| Color | Agent Type | Examples |41|-------|------------|----------|42| `purple` | Planning | architect, api-architect |43| `green` | Implementation | developer, ui-developer |44| `cyan` | Review | reviewer, designer |45| `orange` | Testing | test-architect, tester |46| `blue` | Utility | cleaner, api-analyst |47| `red` | Critical/Security | (rarely used) |4849### Tool Patterns by Agent Type5051**Orchestrators (Commands):**52- Must have: `Task`, `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Bash`53- Often: `AskUserQuestion`, `Glob`, `Grep`54- Never: `Write`, `Edit`5556**Planners:**57- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Write` (for docs)58- Often: `Glob`, `Grep`, `Bash`5960**Implementers:**61- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Write`, `Edit`62- Often: `Bash`, `Glob`, `Grep`6364**Reviewers:**65- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`66- Often: `Glob`, `Grep`, `Bash`67- Never: `Write`, `Edit`6869---7071## Command Frontmatter7273```yaml74---75description: | # Required: workflow description76 Full description of what this command does.77 Workflow: PHASE 1 → PHASE 2 → PHASE 378allowed-tools: Task, Bash # Required: comma-separated79skills: skill1, skill2 # Optional: referenced skills80---81```8283### Field Reference8485| Field | Required | Values | Description |86|-------|----------|--------|-------------|87| `description` | Yes | Multi-line | Command purpose and workflow |88| `allowed-tools` | Yes | Tool list | Tools command can use |89| `skills` | No | Skill list | Referenced skills |9091---9293## Validation Checklist9495### Agent Frontmatter96- [ ] Opening `---` present97- [ ] `name` is lowercase-with-hyphens98- [ ] `description` includes 3+ examples99- [ ] `model` is valid (sonnet/opus/haiku)100- [ ] `tools` is comma-separated with spaces101- [ ] Closing `---` present102- [ ] No YAML syntax errors103104### Command Frontmatter105- [ ] Opening `---` present106- [ ] `description` explains workflow107- [ ] `allowed-tools` includes Task, TaskCreate, TaskUpdate, TaskList, TaskGet for orchestrators108- [ ] Closing `---` present109- [ ] No YAML syntax errors110111---112113## Common Errors114115### Invalid YAML Syntax116```yaml117# WRONG - missing colon118name agent-name119120# CORRECT121name: agent-name122```123124### Incorrect Tool Format125```yaml126# WRONG - no spaces after commas127tools: TaskCreate, TaskUpdate, TaskList, TaskGet,Read,Write128129# CORRECT130tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write131```132133### Missing Examples134```yaml135# WRONG - too generic136description: Use this agent for development tasks.137138# CORRECT139description: |140 Use this agent when implementing TypeScript features. Examples:141 (1) "Create a user service" - implements service with full CRUD142 (2) "Add validation" - adds Zod schemas to endpoints143 (3) "Fix type errors" - resolves TypeScript compilation issues144```