Loading...
Loading...
Scaffolds new sub-agent definitions. Automates the entire process from category selection, file creation, model/tools least privilege configuration, to quality checks. Can be used with commands like "Make an Agent", "Add sub-agent", "create-agent".
npx skill4agent add fandhe-ai/agent-cli-skills create-agent.claude/agents/<category>/<name>.md/create-agent quality/lint-runner # Create with specified category
/create-agent research/doc-fetcher # Add to research category
/create-agent author/template-writer # Add to author category
/create-agent # Interactive confirmation when arguments are omittedsample/agent.sample.md| Category | Path | Role | Recommended Model |
|---|---|---|---|
| research/ | | Research, information gathering, WebFetch | |
| author/ | | Creation, editing (uses Edit/Write/Bash) | |
| quality/ | | Review, linting, validation (read-only) | |
| Use Case | model |
|---|---|
| Mechanical, aggregation, linting, frontmatter validation | |
| Reading comprehension, generation, review, research | |
| Complex design decisions, architecture | |
| Agent Category | Allowed Tools |
|---|---|
| Read-only (research/・quality/) | Only |
| Creation/editing (author/) | Above + |
EditWriteBashagent-authorfrontmatter-linter.claude/agents/frontmatter-linterdotclaude-via-temp.md.claude/agents/<category>/<agent-name>research/author/quality/agent-authordotclaude-via-temp.md_/dotclaude/agents/<category>/<name>.md.claude/agents/subagent_type: agent-author
prompt: |
Purpose: Create a sub-agent definition for <category>/<agent-name>
Input:
- Agent Name: <agent-name>
- Category: <category> (research/author/quality/)
- Role & Responsibilities: <content received from user>
- Template: sample/agent.sample.md included with this skill
- Reference Existing Agents: Existing files under .claude/agents/
Output Path: .claude/agents/<category>/<agent-name>.md
Application Rules:
- .claude/rules/agent-authoring.md (frontmatter, tools least privilege, category placement, body outline)
- .claude/rules/dotclaude-via-temp.md (create via _/dotclaude/ and finalize with mv)
Required Items:
- frontmatter: name (kebab-case), description (specifically describe delegation scenarios),
model (follow selection criteria), tools (least privilege principle)
- Body: # Agent Name → ## Role → ## Target Scope → ## Compliance Rules → ## Procedures/Perspectives →
## Completion Criteria → ## Report Format
- Do not include Edit, Write, or Bash in read-only Agentsagent-authormodeltoolsEditWriteBashquality/namemodeltoolsdescription.claude/agents/<category>/agent-author✅ Created .claude/agents/<category>/<agent-name>.md
Agent frontmatter summary:
name: <agent-name>
model: <model>
tools: [<tool-list>]
To update the Sub-agents table and structure tree in CLAUDE.md:
/update-docs
Please execute the above command.
To call this sub-agent within a skill, use:
subagent_type: <agent-name>.claude/agents/<category>/<agent-name>.mdagent-author_/dotclaude/agents/mv.claude/agents/create-agentmvname:<agent-name>toolssubagent_type: <agent-name>agent-author.claude/agents/_/dotclaude/agents/mv.claude/agents/create-agentmv.claude/rules/dotclaude-via-temp.mdrm -rf _/dotclaudermdirEditWriteBashresearch/quality/subagent_type:name:/update-docsCLAUDE.md