subagent-creator
Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier". Do NOT use for Cursor-specific subagents (use cursor-subagent-creator instead).
Best use case
subagent-creator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier". Do NOT use for Cursor-specific subagents (use cursor-subagent-creator instead).
Teams using subagent-creator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/subagent-creator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How subagent-creator Compares
| Feature / Agent | subagent-creator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier". Do NOT use for Cursor-specific subagents (use cursor-subagent-creator instead).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# Subagent Creator This skill provides guidance for creating effective, agent-agnostic subagents. ## What are Subagents? Subagents are specialized assistants that an AI agent can delegate tasks to. Characteristics: - **Isolated context**: Each subagent has its own context window - **Parallel execution**: Multiple subagents can run simultaneously - **Specialization**: Configured with specific prompts and expertise - **Reusable**: Defined once, used in multiple contexts ### When to Use Subagents vs Skills ``` Is the task complex with multiple steps? ├─ YES → Does it require isolated context? │ ├─ YES → Use SUBAGENT │ └─ NO → Use SKILL │ └─ NO → Use SKILL ``` **Use Subagents for:** - Complex workflows requiring isolated context - Long-running tasks that benefit from specialization - Verification and auditing (independent perspective) - Parallel workstreams **Use Skills for:** - Quick, one-off actions - Domain knowledge without context isolation - Reusable procedures that don't need isolation ## Subagent Structure A subagent is typically a markdown file with frontmatter metadata: ```markdown --- name: agent-name description: Description of when to use this subagent. model: inherit # or fast, or specific model ID readonly: false # true to restrict write permissions --- You are an [expert in X]. When invoked: 1. [Step 1] 2. [Step 2] 3. [Step 3] [Detailed instructions about expected behavior] Report [type of expected result]: - [Output format] - [Metrics or specific information] ``` ## Subagent Creation Process ### 1. Define the Purpose - What specific responsibility does the subagent have? - Why does it need isolated context? - Does it involve multiple complex steps? - Does it require deep specialization? ### 2. Configure the Metadata #### name (required) Unique identifier. Use kebab-case. ```yaml name: security-auditor ``` #### description (critical) CRITICAL for automatic delegation. Explains when to use this subagent. **Good descriptions:** - "Security specialist. Use when implementing auth, payments, or handling sensitive data." - "Debugging specialist for errors and test failures. Use when encountering issues." - "Validates completed work. Use after tasks are marked done." **Phrases that encourage automatic delegation:** - "Use proactively when..." - "Always use for..." - "Automatically delegate when..." #### model (optional) ```yaml model: inherit # Uses same model as parent (default) model: fast # Uses fast model for quick tasks ``` #### readonly (optional) ```yaml readonly: true # Restricts write permissions ``` ### 3. Write the Subagent Prompt Define: 1. **Identity**: "You are an [expert]..." 2. **When invoked**: Context of use 3. **Process**: Specific steps to follow 4. **Expected output**: Format and content **Template:** ```markdown You are an [expert in X] specialized in [Y]. When invoked: 1. [First action] 2. [Second action] 3. [Third action] [Detailed instructions about approach] Report [type of result]: - [Specific format] - [Information to include] - [Metrics or criteria] [Philosophy or principles to follow] ``` ## Common Subagent Patterns ### 1. Verification Agent **Purpose**: Independently validates that completed work actually works. ```markdown --- name: verifier description: Validates completed work. Use after tasks are marked done. model: fast --- You are a skeptical validator. When invoked: 1. Identify what was declared as complete 2. Verify the implementation exists and is functional 3. Execute tests or relevant verification steps 4. Look for edge cases that may have been missed Be thorough. Report: - What was verified and passed - What is incomplete or broken - Specific issues to address ``` ### 2. Debugger **Purpose**: Expert in root cause analysis. ```markdown --- name: debugger description: Debugging specialist. Use when encountering errors or test failures. --- You are a debugging expert. When invoked: 1. Capture the error message and stack trace 2. Identify reproduction steps 3. Isolate the failure location 4. Implement minimal fix 5. Verify the solution works For each issue, provide: - Root cause explanation - Evidence supporting the diagnosis - Specific code fix - Testing approach ``` ### 3. Security Auditor **Purpose**: Security expert auditing code. ```markdown --- name: security-auditor description: Security specialist. Use for auth, payments, or sensitive data. --- You are a security expert. When invoked: 1. Identify security-sensitive code paths 2. Check for common vulnerabilities 3. Confirm secrets are not hardcoded 4. Review input validation Report findings by severity: - **Critical** (must fix before deploy) - **High** (fix soon) - **Medium** (address when possible) - **Low** (suggestions) ``` ### 4. Code Reviewer **Purpose**: Code review with focus on quality. ```markdown --- name: code-reviewer description: Code review specialist. Use when changes are ready for review. --- You are a code review expert. When invoked: 1. Analyze the code changes 2. Check readability, performance, patterns, error handling 3. Identify code smells and potential bugs 4. Suggest specific improvements Report: **✅ Approved / ⚠️ Approved with caveats / ❌ Changes needed** **Issues Found:** - **[Severity]** [Location]: [Issue] - Suggestion: [How to fix] ``` ## Best Practices ### ✅ DO - **Write focused subagents**: One clear responsibility - **Invest in the description**: Determines when to delegate - **Keep prompts concise**: Direct and specific - **Share with team**: Version control subagent definitions - **Test the description**: Check correct subagent is triggered ### ❌ AVOID - **Vague descriptions**: "Use for general tasks" gives no signal - **Prompts too long**: 2000 words don't make it smarter - **Too many subagents**: Start with 2-3 focused ones ## Quality Checklist Before finalizing: - [ ] Description is specific about when to delegate - [ ] Name uses kebab-case - [ ] One clear responsibility (not generic) - [ ] Prompt is concise but complete - [ ] Instructions are actionable - [ ] Output format is well defined - [ ] Model configuration appropriate ## Output Messages When creating a subagent: ``` ✅ Subagent created successfully! 📁 Location: .agent/subagents/[name].md 🎯 Purpose: [brief description] 🔧 How to invoke: - Automatic: Agent delegates when it detects [context] - Explicit: /[name] [instruction] 💡 Tip: Include keywords like "use proactively" to encourage delegation. ```
Related Skills
cursor-subagent-creator
Creates Cursor-specific AI subagents with isolated context for complex multi-step workflows. Use when creating subagents for Cursor editor specifically, following Cursor's patterns and directories (.cursor/agents/). Triggers on "cursor subagent", "cursor agent". Do NOT use for generic subagent creation outside Cursor (use subagent-creator instead).
technical-design-doc-creator
Creates comprehensive Technical Design Documents (TDD) with mandatory and optional sections through interactive discovery. Use when user asks to "write a design doc", "create a TDD", "technical spec", "architecture document", "RFC", "design proposal", or needs to document a technical decision before implementation. Do NOT use for README files, API docs, or general documentation (use docs-writer instead).
the-fool
Use when challenging ideas, plans, decisions, or proposals. Invoke to play devil's advocate, run a pre-mortem, red team, stress test assumptions, audit evidence quality, or find blind spots before committing. Do NOT use for building plans, making decisions, or generating solutions — this skill only challenges and critiques.
create-adr
Creates Architecture Decision Records (ADRs) to document significant architectural choices and their rationale for future team members. Use when the user says "write an ADR", "document this decision", "record why we chose X", "add an architecture decision record", "create an ADR for", or wants to capture the reasoning behind a technical choice so the team understands it later. Do NOT use when the decision hasn't been made yet (use create-rfc instead), for implementation planning (use technical-design-doc-creator), or for general documentation.
gh-fix-ci
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions. Uses `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treats external providers (for example Buildkite) as out of scope and reports only the details URL. Do NOT use for addressing PR review comments (use gh-address-comments) or general CI outside GitHub Actions.
create-rfc
Creates structured Request for Comments (RFC) documents for proposing and deciding on significant changes. Use when the user says "write an RFC", "create a proposal", "I need to propose a change", "draft an RFC", "document a decision", or needs stakeholder alignment before making a major technical or process decision. Do NOT use for TDDs/implementation docs (use technical-design-doc-creator instead), README files, or general documentation.
skill-architect
Expert guide for designing and building high-quality skills from scratch through structured conversation. Use when someone wants to create a new skill, build a skill, design a skill, or asks for help making Agents do something consistently. Also use when someone says "turn this into a skill", "I want to automate this workflow", "how do I teach my Agent to do X", or mentions creating SKILL.md files. Covers standalone skills and MCP-enhanced workflows. Do NOT use for creating subagents (use subagent-creator) or technical design documents (use create-technical-design-doc).
domain-analysis
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "where should I draw service boundaries?", "identify bounded contexts", "classify subdomains", "DDD analysis", or analyzing domain cohesion. Do NOT use for grouping existing components into domains (use domain-identification-grouping) or dependency analysis (use coupling-analysis).
figma
Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Use when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting. Covers general Figma data fetching and exploration. Do NOT use when the goal is specifically pixel-perfect code implementation from a Figma design (use figma-implement-design instead).
decomposition-planning-roadmap
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what order should I extract services?", "plan my migration", "create a decomposition roadmap", "prioritize what to split", "monolith to microservices strategy", or tracking decomposition progress. Do NOT use for domain analysis (use domain-analysis) or component sizing (use component-identification-sizing).
figma-implement-design
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Use when the user provides Figma URLs or node IDs and asks to implement designs or components that must match Figma specs. Requires a working Figma MCP server connection. Do NOT use for general Figma data fetching, variable exploration, or MCP troubleshooting (use figma instead).
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications. Generates creative, polished code that avoids generic AI aesthetics. Do NOT use for design review or audit (use web-design-guidelines or web-quality-audit).