Create a new Claude Code agent with proper YAML frontmatter structure. Use when the user wants to add a specialized agent to a plugin. Handles agent file creation with name, description, tools, model selection, and color configuration.
Create new Claude Code agents with proper configuration and structure.
Agents are markdown files in the agents/ directory with YAML frontmatter:
---
name: agent-name
description: Full description of what the agent does and when to use it
tools: Glob, Grep, Read, Write, Edit, Bash, WebFetch, WebSearch, TodoWrite
model: sonnet
color: green
---
# Agent Title
Agent prompt content goes here...
| Field | Description | Example |
|-------|-------------|---------|
| name | Unique identifier (kebab-case) | code-reviewer |
| description | One-line summary of agent's purpose | Reviews code for quality and best practices |
| tools | Comma-separated list of available tools | Glob, Grep, Read, Write, Edit, Bash |
| model | Model to use: opus, sonnet, or haiku | sonnet |
| color | Status line color | green, blue, purple, red, orange, cyan, magenta, yellow, pink, teal, violet |
Common tool combinations by agent type:
Glob, Grep, Read, Write, Edit, Bash, TodoWrite
Glob, Grep, Read, WebFetch, WebSearch, TodoWrite
Glob, Grep, Read, Write, Edit, Bash, WebFetch, WebSearch, TodoWrite
plugins/<plugin-name>/agents/<agent-name>.md---
name: code-reviewer
description: Reviews code changes for quality, security, and best practices. Use when user wants code reviewed, needs security audit, or asks about code quality.
tools: Glob, Grep, Read, TodoWrite
model: sonnet
color: yellow
---
# Code Reviewer Agent
You are an expert code reviewer focused on quality, security, and maintainability.
## Review Checklist
- Code correctness and logic
- Security vulnerabilities
- Performance considerations
- Code style and consistency
- Test coverage
- Documentation
## Output Format
Provide structured feedback with:
1. Summary of changes
2. Issues found (categorized by severity)
3. Recommendations
4. Approval status
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer