| name | schemas |
| description | YAML frontmatter schemas for Claude Code agents and commands. Use when creating or validating agent/command files. |
plugin: agentdev
updated: 2026-01-20
Frontmatter Schemas
Agent Frontmatter
---
name: agent-name
description: |
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
color: purple
tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write
skills: skill1, skill2
---
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: |
Full description of what this command does.
Workflow: PHASE 1 → PHASE 2 → PHASE 3
allowed-tools: Task, Bash
skills: skill1, skill2
---
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
name agent-name
name: agent-name
Incorrect Tool Format
tools: TaskCreate, TaskUpdate, TaskList, TaskGet,Read,Write
tools: TaskCreate, TaskUpdate, TaskList, TaskGet, Read, Write
Missing Examples
description: Use this agent for development tasks.
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