---
name: create-agent-0ab96a79cc4b
description: 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 Agent Skill

Create new Claude Code agents with proper configuration and structure.

## Agent File Format

Agents are markdown files in the `agents/` directory with YAML frontmatter:

```markdown
---
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...
```

## Required Frontmatter Fields

| 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` |

## Model Selection Guidelines

- **opus**: Strategic decisions, complex architecture, security-critical, compliance, executive-level analysis
- **sonnet**: Technical implementation, code writing, general development tasks (most common)
- **haiku**: Quick lookups, simple transformations, fast responses

## Available Tools

Common tool combinations by agent type:

### Code Development Agents
```
Glob, Grep, Read, Write, Edit, Bash, TodoWrite
```

### Research/Analysis Agents
```
Glob, Grep, Read, WebFetch, WebSearch, TodoWrite
```

### Full-Featured Agents
```
Glob, Grep, Read, Write, Edit, Bash, WebFetch, WebSearch, TodoWrite
```

## Creation Process

1. Determine the agent's purpose and expertise area
2. Choose appropriate model based on complexity
3. Select tools needed for the agent's tasks
4. Write clear, actionable agent prompt
5. Save to `plugins/<plugin-name>/agents/<agent-name>.md`

## Example Agent

```markdown
---
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
```


---
Source attribution: jpoutrin
Original project: https://github.com/jpoutrin/product-forge/blob/0ebe7aea08747cb1c121bc77652d458b9e8ee782/plugins/claude-code-dev/skills/create-agent/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 jpoutrin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: jpoutrin
Original project: https://github.com/jpoutrin/product-forge/blob/0ebe7aea08747cb1c121bc77652d458b9e8ee782/plugins/claude-code-dev/skills/create-agent/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Product Management
Roles: Backend Developer, ML / AI Engineer, Product Manager
Specialties: API
Tools: Yaml
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 55db95cdd1e6a99b5c701f4fd3412fa0469f734ccfd0607061cc57f5685a914b
