meta-agent-creator — скилл для Claude Code: создание субагентов
Скилл meta-agent-creator для Claude Code помогает создавать субагентов и настраивать их параметры. Используйте его при проектировании делегирования задач и ограничении доступа к инструментам.
MIT 104 установок ★ 29 обновлён 2026-08-17
npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-codeЧто делает meta-agent-creator
Скилл помогает описать специализированного субагента в Markdown-файле с YAML-полями. Он разбирает области действия агента, доступ к инструментам, выбор модели и режим разрешений. Также рассматривает предварительную загрузку скиллов и хуки жизненного цикла.
Для агента можно задать инструменты и права, а в описании — условия передачи ему задачи. Скилл охватывает проектные и пользовательские файлы, настройки CLI и плагины. Вложенное делегирование не поддерживается: субагент не может запускать других субагентов.
Какие задачи решает
- создать отдельного субагента для узкой задачи
- ограничить доступ агента к инструментам
- выбрать модель и режим разрешений
- настроить условия передачи задач субагенту
Примеры запросов агенту
- Создай субагента для проверки тестов и опиши его настройки.
- Настрой агента-ревьюера только для чтения файлов.
- Как передавать задачи субагенту по описанию агента?
Как установить meta-agent-creator
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-code2Вручную: положить файлы
~/.claude/skills/meta-agent-creator/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/meta-agent-creator/
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill meta-agent-creator -a codex2Вручную: положить файлы
.agents/skills/meta-agent-creator/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill meta-agent-creator -a cursor2Вручную: положить файлы
.cursor/skills/meta-agent-creator/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install oakoss/agent-skills skills/meta-agent-creator2Вручную: положить файлы
.github/skills/meta-agent-creator/SKILL.md1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill meta-agent-creator -a gemini-cli2Командой платформы
gemini skills install https://github.com/oakoss/agent-skills --path skills/meta-agent-creatorВручную: положить файлы
.devin/skills/meta-agent-creator/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill meta-agent-creator -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о meta-agent-creator
Как установить meta-agent-creator в Claude Code?
Выполни npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-code. Файл скилла находится по пути ~/.claude/skills/meta-agent-creator/SKILL.md.
Что делает meta-agent-creator?
Помогает создавать субагентов в Markdown-файлах и настраивать их инструменты, модель, разрешения, скиллы и хуки.
Могут ли субагенты запускать других субагентов?
Нет, вложенный запуск субагентов не поддерживается. Делегирование строится из основного диалога.
Исходный текст
SKILL.md · MIT
---
name: meta-agent-creator
description: |
Creates custom subagents for Claude Code with YAML frontmatter configuration in Markdown files. Covers agent scoping (project, user, CLI, plugin), tool access control, model selection, permission modes, skill preloading, and lifecycle hooks.
Use when building specialized subagents, configuring tool access, selecting models, setting permission modes, or designing delegation patterns. Use for agent creation, subagent configuration, custom agent setup.
license: MIT
metadata:
author: oakoss
version: '1.0'
source: https://code.claude.com/docs/en/sub-agents
disable-model-invocation: true
---
# Custom Agent Creator
## Overview
Subagents are specialized AI assistants defined as Markdown files with YAML frontmatter. Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. When a task matches a subagent's description, the parent conversation delegates to it automatically, preserving main context while enforcing constraints.
**When to use:** Isolating high-volume operations (tests, logs), enforcing read-only access for reviewers, routing simple tasks to cheaper models, running parallel research, creating reusable team workflows.
**When NOT to use:** Tasks requiring frequent back-and-forth, quick targeted changes, workflows needing nested delegation (subagents cannot spawn subagents), latency-sensitive operations where fresh context gathering is costly.
## Quick Reference
| Pattern | Configuration | Key Points |
| ----------------------- | ------------------------------ | ------------------------------------------------------- |
| File location (project) | `.claude/agents/name.md` | Shared via version control, priority 2 |
| File location (user) | `~/.claude/agents/name.md` | Available across all projects, priority 3 |
| Required fields | `name`, `description` | Only two fields are mandatory |
| Tool restriction | `tools: Read, Grep, Glob` | Allowlist; inherits all if omitted |
| Tool denial | `disallowedTools: Write, Edit` | Denylist; removed from inherited set |
| Model selection | `model: haiku` | Options: `sonnet`, `opus`, `haiku`, `inherit` (default) |
| Permission mode | `permissionMode: dontAsk` | Controls permission prompt behavior |
| Skill preloading | `skills: [auth, api-patterns]` | Injected at startup; no inheritance from parent |
| Lifecycle hooks | `hooks: { PreToolUse: [...] }` | Validate or block tool usage conditionally |
| CLI-defined agent | `claude --agents '{...}'` | Session-only, highest priority, JSON format |
| Interactive creation | `/agents` command | Guided setup with Claude generation |
| Proactive triggers | `"Use proactively after..."` | Include in description for auto-delegation |
## Common Mistakes
| Mistake | Correct Pattern |
| ----------------------------------------------- | ---------------------------------------------------------------- |
| Using opus for simple checklist reviews | Use haiku for read-only reviews and style checks |
| Omitting output format in system prompt | Include structured output template for consistent results |
| Listing tools explicitly when all are needed | Omit `tools` field to inherit all tools including MCP |
| Expecting skills from parent conversation | Explicitly list skills in the `skills` field |
| Generic description without triggers | Include specific trigger phrases like "Use proactively when..." |
| Giving a single agent too many responsibilities | Design focused agents with one clear purpose each |
| Using `bypassPermissions` without caution | Prefer `acceptEdits` or `dontAsk` for safer automation |
| Creating deeply nested agent workflows | Chain subagents from main conversation; nesting is not supported |
## Delegation
- **Agent pattern discovery**: Use `Explore` agent to find existing agents in `.claude/agents/`
- **Interactive creation**: Use `/agents` command for guided setup with Claude generation
- **Code review of agent files**: Use `Task` agent to validate system prompts and configuration
## References
- [Agent configuration: YAML fields, file locations, and priority order](references/agent-configuration.md)
- [Tool selection: access patterns, common combinations, and model guide](references/tool-selection.md)
- [Templates: ready-to-use agent patterns for common workflows](references/templates.md)
© oakoss · MIT · oakoss/agent-skills