> 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
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Replace with description of the skill and when Claude should use it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Use when creating new skills, editing existing skills, or verifying skills work before deployment
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.