Loading...
Loading...
Interactive sub-agent creation skill for Claude Code. Use when user wants to create a custom subagent or mentions needing a specialized agent for specific tasks. This skill guides the entire subagent creation process including identifier design, system prompt generation, skill/context selection, and writing properly formatted agent files to .claude/agents.
npx skill4agent add ghosttypes/ff-5mp-api-ts sub-agent-creator.claude/agents/| Rule | Requirement | Consequence |
|---|---|---|
| Single-line description | | Validation failure |
No literal | Use actual newlines in body, not | Validation failure |
| Valid colors only | If specified: red, blue, green, yellow, purple, orange, pink, cyan | Agent won't load |
| Valid models only | | Validation failure |
| Name format | Lowercase letters, numbers, hyphens only | Validation failure |
# WRONG - Multi-line YAML syntax
description: |
Expert code reviewer.
Use after code changes.
# WRONG - Actual newlines in value
description: Expert code reviewer.
Use after code changes.
# RIGHT - ONE continuous line
description: Expert code reviewer. Use proactively after code changes.# WRONG - Literal \n in body
---
name: test-runner
description: Run tests
---
You are a test runner.\nWhen invoked:\n1. Run tests\n2. Report results
# RIGHT - Actual newlines
---
name: test-runner
description: Run tests
---
You are a test runner.
When invoked:
1. Run tests
2. Report resultsinherithaiku.claude/skills/ls .claude/skills/find . -name "*.md" -type f | head -20references/agent-creation-prompt.md.claude/agents/<identifier>.md---
name: <identifier>
description: <single-line description with when to use>
model: inherit
---
<system prompt in markdown body>modelinherittoolsskillspython .claude/skills/sub-agent-creator/scripts/validate_agent.py .claude/agents/<identifier>.md---
name: agent-identifier
description: Brief single-line description starting with what it does. Use proactively when [trigger condition].
model: inherit
skills:
- relevant-skill-1
- relevant-skill-2
---
You are an expert [domain] specialist.
When invoked:
1. [First step]
2. [Second step]
3. [Continue as needed]
Your approach:
- [Guideline 1]
- [Guideline 2]
For each [task], provide:
- [Output format 1]
- [Output format 2]
Focus on [core principle].descriptiondescription: Test execution specialist. Use proactively after writing tests or modifying test files.
description: Database query analyst. Use when needing to analyze data or generate reports from BigQuery.
description: Code archaeology expert. Use when exploring legacy codebases or understanding unfamiliar code./agents