create-agent
Create a new custom subagent for Task() delegation. Use when adding a reusable agent prompt, when the user asks to "add an agent", or when a complex workflow should be delegated to a specialized agent.
npx skills add majiayu000/claude-skill-registry --skill create-agent --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Creating a New Agent ## Official Documentation - **Primary**: https://code.claude.com/docs/en/sub-agents.md - **Best Practices**: https://code.claude.com/docs/en/best-practices.md (section: "Create custom subagents") ## File Location Create `.claude/agents/<agent-name>.md` ## Agent File Format ```yaml --- name: agent-name # Required: lowercase-with-dashes description: What the agent does and when to delegate to it. Be specific about trigger conditions. # Optional fields below: tools: Read, Grep, Glob, Bash # Comma-separated; inherits all if omitted disallowedTools: Edit, Write # Explicitly deny tools model: sonnet # sonnet, opus, haiku, or inherit (default) permissionMode: default # default, acceptEdits, dontAsk, bypassPermissions, plan skills: skill-a, skill-b # Skills to preload into agent context --- You are a [role description]. ## Your Task When invoked: 1. First step 2. Second step 3. Third step ## Guidelines - Specific instruction - Another instruction ## Output Format Describe expected output format. ``` ## Built-in Subagent Types Before creating a custom agent, consider if a built-in type suffices: | Type | Purpose | Tools | |------|---------|-------| | `Explore` | Fast
- Official Documentation
- File Location
- Agent File Format
- Built-in Subagent Types
- Design Principles
- Example: Read-Only Reviewer
- Checklist
What does the create-agent skill do?
Create a new custom subagent for Task() delegation. Use when adding a reusable agent prompt, when the user asks to "add an agent", or when a complex workflow should be delegated to a specialized agent.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill create-agent --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
