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---56plugin: agentdev7updated: 2026-01-2089# Frontmatter Schemas1011## Agent Frontmatter1213```yaml14---15name: agent-name # Required: lowercase-with-hyphens16description: | # Required: detailed with examples17 Use this agent when [scenario]. Examples:18 (1) "Task description" - launches agent for X19 (2) "Task description" - launches agent for Y20 (3) "Task description" - launches agent for Z21model: sonnet # Required: sonnet | opus | haiku22color: purple # Optional: purple | cyan | green | orange | blue | red23tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write # Required: comma-separated, space after comma24skills: skill1, skill2 # Optional: referenced skills25---26```2728### Field Reference2930| Field | Required | Values | Description |31|-------|----------|--------|-------------|32| `name` | Yes | `lowercase-with-hyphens` | Agent identifier |33| `description` | Yes | Multi-line string | 3-5 usage examples |34| `model` | Yes | `sonnet`, `opus`, `haiku` | AI model to use |35| `color` | No | See colors below | Terminal color |36| `tools` | Yes | Tool list | Available tools |37| `skills` | No | Skill list | Referenced skills |3839### Color Guidelines4041| Color | Agent Type | Examples |42|-------|------------|----------|43| `purple` | Planning | architect, api-architect |44| `green` | Implementation | developer, ui-developer |45| `cyan` | Review | reviewer, designer |46| `orange` | Testing | test-architect, tester |47| `blue` | Utility | cleaner, api-analyst |48| `red` | Critical/Security | (rarely used) |4950### Tool Patterns by Agent Type5152**Orchestrators (Commands):**53- Must have: `Task`, `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Bash`54- Often: `AskUserQuestion`, `Glob`, `Grep`55- Never: `Write`, `Edit`5657**Planners:**58- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Write` (for docs)59- Often: `Glob`, `Grep`, `Bash`6061**Implementers:**62- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`, `Write`, `Edit`63- Often: `Bash`, `Glob`, `Grep`6465**Reviewers:**66- Must have: `TaskCreate, TaskUpdate, TaskList, TaskGet`, `Read`67- Often: `Glob`, `Grep`, `Bash`68- Never: `Write`, `Edit`6970---7172## Command Frontmatter7374```yaml75---76description: | # Required: workflow description77 Full description of what this command does.78 Workflow: PHASE 1 → PHASE 2 → PHASE 379allowed-tools: Task, Bash # Required: comma-separated80skills: skill1, skill2 # Optional: referenced skills81---82```8384### Field Reference8586| Field | Required | Values | Description |87|-------|----------|--------|-------------|88| `description` | Yes | Multi-line | Command purpose and workflow |89| `allowed-tools` | Yes | Tool list | Tools command can use |90| `skills` | No | Skill list | Referenced skills |9192---9394## Validation Checklist9596### Agent Frontmatter97- [ ] Opening `---` present98- [ ] `name` is lowercase-with-hyphens99- [ ] `description` includes 3+ examples100- [ ] `model` is valid (sonnet/opus/haiku)101- [ ] `tools` is comma-separated with spaces102- [ ] Closing `---` present103- [ ] No YAML syntax errors104105### Command Frontmatter106- [ ] Opening `---` present107- [ ] `description` explains workflow108- [ ] `allowed-tools` includes Task, TaskCreate, TaskUpdate, TaskList, TaskGet for orchestrators109- [ ] Closing `---` present110- [ ] No YAML syntax errors111112---113114## Common Errors115116### Invalid YAML Syntax117```yaml118# WRONG - missing colon119name agent-name120121# CORRECT122name: agent-name123```124125### Incorrect Tool Format126```yaml127# WRONG - no spaces after commas128tools: TaskCreate, TaskUpdate, TaskList, TaskGet,Read,Write129130# CORRECT131tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write132```133134### Missing Examples135```yaml136# WRONG - too generic137description: Use this agent for development tasks.138139# CORRECT140description: |141 Use this agent when implementing TypeScript features. Examples:142 (1) "Create a user service" - implements service with full CRUD143 (2) "Add validation" - adds Zod schemas to endpoints144 (3) "Fix type errors" - resolves TypeScript compilation issues145```