Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

create-subagent

БесплатноБез исполняемых скриптовНе проверен

Guide for creating specialized Claude Code subagents with proper YAML frontmatter, focused descriptions, system prompts, and tool configurations. Use when the…

ronnycodingот ronnycoding★ 20 звёзд на GitHub16 установок в других каталогах

Об этом скилле

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:

  1. Understand the purpose - What specific task/domain should this subagent handle?
  2. Choose location - Project-level (.claude/agents/) or user-level (~/.claude/agents/)?
  3. Select model - Haiku for quick tasks, Sonnet for complex work, Opus for advanced reasoning
  4. Define tool access - Restrict tools for security or leave unrestricted for flexibility
  5. Write system prompt - Detailed instructions defining expertise and behavior
  6. 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: Choose haiku (fast/cheap), sonnet (balanced), opus (advanced), or inherit (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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить create-subagent с