Agent skill · Workflow & Productivity

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill create-agent --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/agent/create-agent/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Official Documentation
  2. File Location
  3. Agent File Format
  4. Built-in Subagent Types
  5. Design Principles
  6. Example: Read-Only Reviewer
  7. Checklist
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going