agent-create
Skill0 starsChanged 6 months agoMITView on GitHub
Create a new subagent at `.claude/agents/<name>.md` from a natural-language description. Triggered by /agent-create. Reads CLAUDE.md to inherit project style/constraints, drafts a properly-formatted agent.md, uses the Write tool (which prompts the user with the full content for permission), and tells the user how to view the new agent. Use when the user wants a new agent and doesn't want to hand-write the .md frontmatter and prompt.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- alexaiarchitect/google-adk-skillstheir own version, first seen Oct 20, 2026
- Marco-Satis/claude-setuptheir own version, first seen Oct 20, 2026
- muranUSTB/skills-create_skillstheir own version, first seen Jan 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- muranUSTB/skills-create_skills★ 17same name
- alexaiarchitect/google-adk-skills★ 0same name
- Marco-Satis/claude-setup★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- agent-editSkill
- claude-editSkill
- dashboardSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create a brand-new subagent file from a natural-language description.
- Distinctive: line 29
Check that no agent with this name already exists:
- Very specific: line 33
If either exists: tell the user that agent already exists, suggest /agent-edit <name> "..." to modify it, and stop.
- Very specific: line 37
Default to project-level: .claude/agents/<name>.md.
- Very specific: line 39
Only put the agent at ~/.claude/agents/<name>.md if the user explicitly says "user-level" or "global" in their description.
- Distinctive: line 48
If no CLAUDE.md, just use defaults.
- Very specific: line 74
Read-only inspector (reviewer, auditor, analyzer) → Read, Glob, Grep
- Very specific: line 84
Default: sonnet if unsure.
- Distinctive: line 92
Use the Write tool with the resolved path.
- Distinctive: line 94
Ask for permission to write
- Distinctive: line 95
Create the file only on user approval
- Distinctive: line 97
If the user rejects, stop.
- Very specific: line 114
Never overwrite an existing agent: If the file exists, refuse and route the user to /agent-edit.
- Distinctive: line 117
No fake confidence: If the user's description is too vague to draft a focused agent (e.g., "make a helper agent"), ASK what specifically it …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
agent-create skill
Create a brand-new subagent file from a natural-language description. The user names the agent and describes what it should do; you (the LLM) draft the .md, propose it via the Write tool, and the user approves.
This completes the CRUD triad alongside /dashboard (read), /agent-edit (update), and is the recommended Create path instead of Claude Code's interactive /agents wizard for users who already know what they want.
Trigger
/agent-create <name> "<natural-language description>"Examples:
/agent-create design-reviewer "审 UI 一致性、组件 token 用法、a11y 基础"/agent-create db-migrator "draft + review database migrations, never destructive"/agent-create release-notes "summarize git diffs into release notes for non-engineers"
Pipeline
Step A. Validate the name
The <name> arg must be a kebab-case identifier (lowercase letters, digits, hyphens). Reject names with spaces, uppercase, slashes, or special chars — tell the user the rule and stop.
Check that no agent with this name already exists:
.claude/agents/<name>.md~/.claude/agents/<name>.md
If either exists: tell the user that agent already exists, suggest /agent-edit <name> "..." to modify it, and stop. Do NOT silently overwrite.
Step B. Pick the destination
Default to project-level: .claude/agents/<name>.md.
Only put the agent at ~/.claude/agents/<name>.md if the user explicitly says "user-level" or "global" in their description. Otherwise project-level is correct (most agents should live with the project that defines their context).
Step C. Read CLAUDE.md to inherit project style
Find CLAUDE.md (project then user). If it exists, read it and note:
- Tone (terse manifesto vs. verbose? casual vs. formal?)
- Hard rules / aversions (so the new agent doesn't violate them)
- Existing structural patterns (numbered principles? heading style?)
If no CLAUDE.md, just use defaults.
Step D. Draft the agent .md
Compose the file with this structure (be CRITICAL of your own draft — see ## Hard rules below):
---
name: <kebab-case-name>
description: <one-line description starting with "Use this agent when..." or similar trigger phrase>
tools: <minimal toolset — see "Tool selection" below>
model: <opus | sonnet | haiku — see "Model selection" below>
---
You are a <role> with expertise in <domain>. <One-line positioning that reflects the user's description.>
When invoked:
1. <Step from user's description>
2. <Step>
3. <Step>
4. <Provide actionable feedback / ship the artifact>
<Optional: a domain-specific checklist or anti-pattern list that's actually load-bearing for this agent. NOT a copy-paste of generic best practices.>Tool selection (right-size, don't grab everything):
- Read-only inspector (reviewer, auditor, analyzer) →
Read, Glob, Grep - Editor / refactor →
Read, Edit, Glob, Grep(no Write — Edit covers both) - Build something new →
Read, Write, Edit, Bash, Glob, Grep - Net access required → add
WebFetch, WebSearch
Model selection:
- Routine, mechanical, single-domain →
haiku - Standard implementation, code review, judgment calls →
sonnet - Architecture, multi-file refactor, deep reasoning →
opus
Default: sonnet if unsure.
Step E. Cross-check against CLAUDE.md
Before proposing the file: re-read CLAUDE.md and check that your draft doesn't violate any of its principles. If there's a tension (e.g., CLAUDE.md says "never auto-format" but your agent's bio says "auto-formats files"), flag it explicitly to the user — don't bury it.
Step F. Propose the file via the Write tool
Use the Write tool with the resolved path. Claude Code will:
- Show the user the full proposed content
- Ask for permission to write
- Create the file only on user approval
If the user rejects, stop. Do not retry without new instructions.
Step G. Report back
Tell the user, in one short message:
- The new agent's name + role + tier (one sentence)
- Where the file landed (project or user dir)
- How to see it:
/dashboard --agent <name>to view its full persona;/dashboardto see it in the team grid - How to refine:
/agent-edit <name> "..."for any tweaks
Example:
已创建 design-reviewer (Sonnet 级 · UI 审查师) →
.claude/agents/design-reviewer.md看人设:/dashboard --agent design-reviewer想改:/agent-edit design-reviewer "..."
Hard rules
- Never overwrite an existing agent. If the file exists, refuse and route the user to
/agent-edit. - Never write outside
.claude/agents/or~/.claude/agents/. Anything else is out of scope. - Frontmatter is mandatory with at least
name,description,tools,model. No skipping fields. - No fake confidence. If the user's description is too vague to draft a focused agent (e.g., "make a helper agent"), ASK what specifically it should do — don't guess.
- Don't pad the body. A 50-line agent is better than a 200-line agent. Karpathy's CLAUDE.md is 50 lines and it's the load-bearing one in this project. Be concise.
- No CLAUDE.md violations. Cross-check before proposing.
- No "best-of" naming gimmicks. The name should describe what the agent DOES, not be cute.
code-reviewer✓ ,super-genius-coder-9000✗.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

