This skill helps you design autonomous agents for Claude Code plugins by guiding markdown YAML frontmatter setup and system prompts.
npx playbooks add skill s-hiraoku/harnesses-factory --skill agent-development
Agents are autonomous AI specialists defined as markdown files with YAML frontmatter and system prompt body.
---
name: my-agent
description: Use this agent when... with 2-4 triggering examples
model: inherit
color: blue
tools: Tool1, Tool2
---
System prompt instructions here.
| Field | Description |
|-------|-------------|
| name | Lowercase identifier (3-50 chars, hyphens only) |
| description | "Use this agent when..." with triggering conditions |
| Field | Description |
|-------|-------------|
| model | inherit, sonnet, opus, or haiku |
| color | Visual identifier: blue, cyan, green, yellow, magenta, red |
| tools | Array restricting tool access |
Use second-person language in the markdown body:
You are a [role] specialized in [domain].
## Process
1. First, analyze...
2. Then, evaluate...
3. Finally, provide...
## Output Format
Structure your response as...
## Quality Standards
Ensure all outputs...
The description teaches Claude when to activate the agent:
description: |
Use this agent when reviewing code changes for quality and security.
Examples:
- User asks "review my PR" → triggers because code review requested
- User commits changes and wants feedback → triggers for post-commit review
- User mentions security concerns in code → triggers for security-focused review
.claude/agents/my-agent.md # Project scope
~/.claude/agents/my-agent.md # User scope
plugin/agents/my-agent.md # Plugin scopeWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.