majiayu000/agent-creator
> This skill should be used when the user asks to "create an agent", "write a subagent", "generate agent definition", "add agent to plugin", "write agent frontmatter", "create autonomous agent", "build subagent", needs agent structure guidance, YAML frontmatter configuration, invocation criteria with examples, or wants to add specialized subagents to Claude Code plugins with proper capabilities lists and tool access definitions.
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-creator
Creates subagent definitions for Claude Code. Subagents are specialized assistants
that Claude can invoke for specific tasks.
When to use: User requests an agent, wants to add specialized subagent to plugin, or needs agent structure guidance.
References: Consult
plugins/meta/claude-docs/skills/official-docs/reference/plugins-reference.md and
plugins/meta/claude-docs/skills/official-docs/reference/sub-agents.md for specifications.
Claude Code has two distinct agent types with different requirements:
Purpose: Agents distributed via plugins for team/community use
Required frontmatter fields:
description (required) - What this agent specializes incapabilities (required) - Array of specific capabilitiesLocation: plugins/<category>/<plugin-name>/agents/agent-name.md
Example:
---
description: Expert code reviewer validating security and quality
capabilities: ["vulnerability detection", "code quality review", "best practices"]
---
Purpose: Personal agents for individual workflows
Required frontmatter fields:
name (required) - Agent identifierdescription (required) - When to invoke this agenttools (optional) - Comma-separated tool listmodel (optional) - Model alias (sonnet, opus, haiku)Location: .claude/agents/agent-name.md or ~/.claude/agents/agent-name.md
Example:
---
name: code-reviewer
description: Expert code review. Use after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
Key difference: User agents have name field and system prompt. Plugin agents have capabilities array and documentation.
Every plugin agent MUST include:
description and capabilities arrayagents/agent-name.md within pluginAsk the user:
If personal use: Use user agent format with name, description, system prompt. See plugins/meta/claude-docs/skills/official-docs/reference/sub-agents.md for examples.
If plugin: Continue with plugin agent format below.
Ask the user:
Create descriptive kebab-case name:
security-reviewerperformance-testerapi-documenterIdentify 3-5 specific capabilities:
Use this template:
---
description: One-line agent description
capabilities: ["capability-1", "capability-2", "capability-3"]
---
# Agent Name
Detailed description of agent's role and expertise.
## Capabilities
- **Capability 1**: What this enables
- **Capability 2**: What this enables
- **Capability 3**: What this enables
## When to Use This Agent
Claude should invoke when:
- Specific condition 1
- Specific condition 2
- Specific condition 3
## Context and Examples
**Example 1: Scenario Name**
User requests: "Help with X"
Agent provides: Specific assistance using capabilities
**Example 2: Another Scenario**
When Y happens, agent does Z.
For plugin agents:
Check plugins/meta/claude-docs/skills/official-docs/reference/plugins-reference.md (requires capabilities array).
For user agents:
Check plugins/meta/claude-docs/skills/official-docs/reference/sub-agents.md (requires name field).
User: "Create an agent for security reviews"
Process:
security-revieweragents/security-reviewer.mdOutput: Agent that Claude invokes for security-related code review
User: "I need an agent for performance testing"
Process:
performance-testeragents/performance-tester.mdOutput: Agent that Claude invokes for performance concerns
Take majiayu000/agent-creator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.