// YAML frontmatter schemas for Claude Code agents and commands. Use when creating or validating agent/command files.
| name | schemas |
| description | YAML frontmatter schemas for Claude Code agents and commands. Use when creating or validating agent/command files. |
---
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: TodoWrite, Read, Write # Required: comma-separated, space after comma
skills: skill1, skill2 # Optional: referenced skills
---
| 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 | 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) |
Orchestrators (Commands):
Task, TodoWrite, Read, BashAskUserQuestion, Glob, GrepWrite, EditPlanners:
TodoWrite, Read, Write (for docs)Glob, Grep, BashImplementers:
TodoWrite, Read, Write, EditBash, Glob, GrepReviewers:
TodoWrite, ReadGlob, Grep, BashWrite, Edit---
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 | 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 |
--- presentname is lowercase-with-hyphensdescription includes 3+ examplesmodel is valid (sonnet/opus/haiku)tools is comma-separated with spaces--- present--- presentdescription explains workflowallowed-tools includes Task for orchestrators--- present# WRONG - missing colon
name agent-name
# CORRECT
name: agent-name
# WRONG - no spaces after commas
tools: TodoWrite,Read,Write
# CORRECT
tools: TodoWrite, Read, Write
# 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