create-subagent
БесплатноБез исполняемых скриптовНе проверенGuide for creating specialized Claude Code subagents with proper YAML frontmatter, focused descriptions, system prompts, and tool configurations. Use when the…
Об этом скилле
Create Subagent Guide
This skill helps you create specialized Claude Code subagents following official best practices and standards. Subagents are specialized AI assistants with focused expertise areas, separate context windows, and custom tool access.
Quick Start
When creating a new subagent, follow this workflow:
- Understand the purpose - What specific task/domain should this subagent handle?
- Choose location - Project-level (.claude/agents/) or user-level (~/.claude/agents/)?
- Select model - Haiku for quick tasks, Sonnet for complex work, Opus for advanced reasoning
- Define tool access - Restrict tools for security or leave unrestricted for flexibility
- Write system prompt - Detailed instructions defining expertise and behavior
- Test invocation - Verify automatic delegation and explicit invocation work
File Format
Every subagent is a Markdown file with YAML frontmatter:
---
name: your-subagent-name
description: When and why this subagent should be invoked
model: sonnet # Optional: sonnet, opus, haiku, or inherit
tools: Read, Write, Bash, Grep # Optional: comma-separated list
---
Your subagent's detailed system prompt goes here...
Configuration Fields
Required:
name: Unique identifier (lowercase letters, numbers, hyphens only)description: Natural language explanation of purpose and when to use
Optional:
model: Choosehaiku(fast/cheap),sonnet(balanced),opus(advanced), orinherit(use main model)tools: Comma-separated tool list; omit to inherit all tools from main thread
File Locations
Project-level (.claude/agents/):
- Highest priority (overrides user-level if name conflicts)
- Project-specific scope
- Shared with team via version control
- Best for team-wide specialized agents
User-level (~/.claude/agents/):
- Available across all projects
- Personal agents for your workflow
- Not shared via git
- Best for personal productivity agents
Plugin-level:
- Bundled with plugins
- Automatically available when plugin installed
- Best for distributing agents to wider audience
Description Best Practices
Write descriptions that help Claude autonomously decide when to delegate:
EXCELLENT - Specific with "use PROACTIVELY":
description: Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.
GOOD - Clear purpose and trigger terms:
description: Expert data scientist for advanced analytics, machine learning, and statistical modeling. Handles complex data analysis, predictive modeling, and business intelligence. Use PROACTIVELY for data analysis tasks, ML modeling, statistical analysis, and data-driven insights.
BAD - Too vague:
description: Helps with code
Key principles:
- Include "Use PROACTIVELY" or "MUST BE USED" for automatic delegation
- Specify exact expertise areas and domains
- Mention specific file types, frameworks, or technologies
- Describe both WHAT it does and WHEN to use it
- Be specific enough to distinguish from similar agents
Model Selection Guide
Choose the right model for your subagent's complexity:
Haiku - Fast, cost-effective (use for):
- Quick, straightforward tasks
- Simple file operations
- Basic code formatting
- Running tests and reporting results
- Simple search and retrieval tasks
Sonnet (default) - Balanced performance (use for):
- Complex analysis and reasoning
- Code review and refactoring
- Architecture decisions
- Multi-step workflows
- Most production subagents
Opus - Maximum capability (use for):
- Advanced reasoning and planning
- Complex system design
- Multi-agent orchestration
- Critical security analysis
- Novel problem solving
Inherit - Match main model:
- When consistency is important
- For experimental agents
- When model choice is user-dependent
Tool Restrictions
Control which tools the subagent can access:
Unrestricted (omit tools field):
---
name: full-access-agent
description: Agent with access to all tools
model: sonnet
---
Inherits all tools including MCP server tools.
Restricted (specify tools):
---
name: read-only-analyzer
description: Security-focused read-only code analyzer
model: sonnet
tools: Read, Grep, Glob
---
Common tool combinations:
Read-only analysis:
tools: Read, Grep, Glob
Code modification:
tools: Read, Write, Edit, Grep, Glob
Development workflow:
tools: Read, Write, Edit, Bash, Grep, Glob
Full capabilities with restrictions:
tools: Read, Write, Edit, Bash, Grep, Glob, Task, WebFetch
Available tools include:
- Read, Write, Edit, NotebookEdit
- Bash, BashOutput, KillShell
- Grep, Glob
Установить create-subagent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-subagent?
Guide for creating specialized Claude Code subagents with proper YAML frontmatter, focused descriptions, system prompts, and tool configurations. Use when the user wants to create a new subagent, custom agent, specialized AI assistant, or mentions creating/designing/building agents or subagents.
Как установить скилл create-subagent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-subagent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic