К основному содержанию
скилл CX Codex

subagent-creator — скилл для Claude Code: что делает и как установить

Помогает описать субагента: файл с frontmatter, промпт, шаги и формат отчёта. Нужен, когда задаче требуется отдельный контекст.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add tech-leads-club/agent-skills --skill subagent-creator -a claude-code
Открыть на GitHub

Что делает subagent-creator

Скилл объясняет, как собрать субагента: это markdown-файл с frontmatter и промптом, которому основной агент передаёт задачи. Внутри разбор полей — name в kebab-case, description, model со значениями inherit или fast, флаг readonly для запрета записи.

Поле description важнее остальных: по нему агент решает, когда делегировать сам. Скилл даёт формулировки вроде «Use proactively when…» и готовые шаблоны под четырёх типичных субагентов — верификатор, дебаггер, аудитор безопасности, ревьюер кода. Каждый шаблон задаёт шаги при вызове и формат отчёта: что проверить, что вернуть, как разложить замечания по серьёзности.

Перед сохранением прогоняет чек-лист: одна ясная обязанность, короткий промпт, понятный вывод. Советует начать с 2-3 субагентов, а не с десятка. Готовый файл скилл предлагает сохранить в .agent/subagents/[name].md. Для субагентов под Cursor он не подходит — там нужен cursor-subagent-creator.

Какие задачи решает

  • описать субагента с изолированным контекстом под свою задачу
  • настроить description так, чтобы агент делегировал сам
  • собрать верификатора, который проверяет уже готовую работу
  • разложить аудит кода на шаги и отчёт по серьёзности
  • закрыть субагенту запись через readonly

Примеры запросов агенту

  • Через скилл subagent-creator создай субагента-верификатора, который после каждой задачи проверяет, что код реально работает, и пишет короткий отчёт.
  • Нужен дебаггер: опиши субагента, который ловит падение теста, находит причину и предлагает минимальный фикс.
  • Перепиши description у субагента, чтобы он подключался сам при работе с авторизацией и чувствительными данными.

Как установить subagent-creator

1Через Skills CLI (Vercel)

npx skills add tech-leads-club/agent-skills --skill subagent-creator -a claude-code

2Вручную: положить файлы

~/.claude/skills/subagent-creator/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/subagent-creator/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о subagent-creator

Как установить subagent-creator в Claude Code?

Одна команда: npx skills add tech-leads-club/agent-skills --skill subagent-creator -a claude-code. Файл скилла появится по пути ~/.claude/skills/subagent-creator/SKILL.md.

Что делает subagent-creator?

Ведёт по шагам создания субагента: назначение, поля frontmatter, промпт, формат вывода. Даёт готовые шаблоны верификатора, дебаггера, аудитора безопасности и ревьюера кода.

Чем субагент отличается от скилла?

Субагент получает собственное окно контекста и подходит для многошаговых задач и параллельной работы. Скилл — это знание или процедура без изоляции, для быстрых действий.

Исходный текст

SKILL.md · MIT
---
name: subagent-creator
description: 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).
---

# 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.
```

© tech-leads-club · MIT · tech-leads-club/agent-skills

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
skill-creator официальный openai Руководство по созданию и обновлению скиллов для ИИ-агентов. Помогает упаковать рабочие процессы, скрипты и документацию без лишней траты токенов. CX Codex +1 4 900установок agentica-prompts parcadei Скилл задаёт шаблоны и правила промптов для агентов Agentica и REPL. Убирает двусмысленность инструкций и организует обмен данными через файлы. CX Codex +1 478установок subagent-driven-development NeoLabHQ Раздаёт задачи плана свежим субагентам и вставляет код-ревью между ними, чтобы не тащить грязный контекст через всю сессию. CX Codex +1 1 300установок semgrep-rule-variant-creator trailofbits Переносит готовые правила Semgrep на выбранные языки и создаёт отдельные каталоги с правилами и тестами. Нужен, когда исходное правило уже написано. CX Codex +1 5 300установок prd-creator pageai Скилл превращает сырую идею приложения в PRD с проверяемыми критериями и разбивает её на задачи в JSON. Пригодится, когда нужно описать фичу до начала кода. CX Codex +1 5 100установок cli-creator официальный openai Скилл создаёт долговечные CLI-утилиты из OpenAPI, curl-примеров или скриптов. Он настраивает запуск команд из любого каталога с выводом в JSON. CX Codex +1 3 200установок

Из того же набора11

security-best-practices Скилл проводит ревью кода на соответствие практикам безопасности для Python, JavaScript/TypeScript и Go и предлагает правки. CX Codex +1 358установок tlc-spec-driven Организует разработку фич по спецификации через четыре фазы: Specify, Design, Tasks и Execute. Автоматически подбирает глубину и проверяет гейты скриптами на Python. CX Codex +1 1 200установок technical-design-doc-creator Помогает составить технический дизайн-документ (TDD, RFC, спеку) перед разработкой через интерактивные вопросы. Пригодится при согласовании архитектуры и миграций в команде. CX Codex +1 609установок domain-analysis Разбирает кодовую базу на поддомены Core, Supporting и Generic и подсказывает, где провести границы сервисов. Пригодится перед распилом монолита. CX Codex +1 358установок nestjs-modular-monolith Ведёт от анализа домена до кода: границы модулей, DDD, Clean Architecture и CQRS в одном бэкенде на NestJS. CX Codex +1 329установок mermaid-studio Скилл для создания диаграмм Mermaid, проверки синтаксиса и рендера в SVG, PNG или ASCII. Пригодится, когда нужно описать архитектуру или схему базы данных. CX Codex +1 324установок coding-guidelines Скилл задаёт поведенческие правила для агента при написании и рефакторинге кода. Он снижает число типичных ошибок нейросетей, отдавая приоритет аккуратности перед скоростью. CX Codex +1 322установок perf-lighthouse Скилл запускает аудит Lighthouse через консоль или Node API, считывает метрики и настраивает бюджеты производительности. Помогает внедрить проверки скорости в CI и разобрать JSON-отчёты. CX Codex +1 320установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой