Command Palette

Search for a command to run...

Назад к скиллам
скилл № 44149

claude-agents

Guide for creating custom agents (subagents) for Claude Code. Use when writing agents/*.md files, choosing agent frontmatter (tools, model, skills…

БесплатноБез исполняемых скриптов
vinnie357от vinnie357★ 30 звёзд на GitHub

Установить claude-agents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

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

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

Claude Code Agents

Guide for creating custom agents that provide specialized behaviors and tool access for specific tasks.

When spawning as part of a team

Invoke /core:agent-loop for the 4-phase / 6-tier execution model. Invoke /extras-claude-code:claude-teams if the agent joins a multi-agent team. Invoke /core:anti-fabrication always — every claim about a tool, file, or test result requires tool execution.

Glob patterns like /core:* do not expand in Agent prompts. List skill names explicitly.

What Are Agents?

Agents are specialized Claude instances with:

  • Specific tool access: Limited or specialized tool sets
  • Defined behaviors: Pre-configured instructions and constraints
  • Task focus: Optimized for particular workflows
  • Autonomous operation: Can execute multi-step tasks independently

Agents vs Skills

Feature Agents Skills
Activation Explicitly launched via Agent tool Auto-activated based on context
Tool Access Configurable, can be restricted Inherit from parent context
State Independent, isolated Share parent context
Use Case Complex multi-step tasks Knowledge and guidelines
Persistence Single execution Always available when loaded

Agent File Structure

Location

Agents are defined in markdown files located in:

  • Plugin: <plugin-root>/agents/
  • User-level: .claude/agents/

File Naming

  • Use kebab-case: code-reviewer.md
  • File name becomes the agent type
  • Be descriptive about the agent's purpose

Basic Agent Format

---
name: code-reviewer
description: Reviews code for quality and best practices
tools: Read, Grep, Glob
model: sonnet
---

You are a code reviewer. Analyze code for quality, security, and best practices.

## Workflow

1. **Find files**: Glob to locate target files
2. **Read code**: Examine contents
3. **Check patterns**: Grep for anti-patterns
4. **Report**: Provide prioritized feedback

## Guidelines

- **Specific**: Reference file:line locations — per `assets/review-findings-format.md` in `/extras-claude-code:claude-output-styles`
- **Actionable**: Suggest concrete fixes
- **Prioritized**: Critical issues first

Writing style: direct, imperative language. Open with "You are a [role]. Your role is to [primary function]" rather than "I am a specialized [role]...". Use numbered workflow steps with specific commands, not bullet lists describing capabilities. Full style guidance and worked best-practice examples: references/patterns.md.

Agent Configuration

YAML Frontmatter

Complete field reference (source: https://code.claude.com/docs/en/sub-agents):

Field Required Meaning
name yes Unique identifier, lowercase letters and hyphens. Hooks receive this value as agent_type. The filename does not need to match.
description yes When Claude delegates to this subagent.
tools no Tool allowlist. Omit to inherit all tools. To preload skill content use skills — never list Skill here.
disallowedTools no Denylist removed from the inherited or specified tool set.
model no sonnet, opus, haiku, fable, a full model ID (e.g. claude-opus-4-8), or inherit. Defaults to inherit.
permissionMode no default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual (alias of default, v2.1.200+). Ignored for plugin subagents.
maxTurns no Maximum agentic turns before the subagent stops.
skills no Skills preloaded into context at startup. See Preloading Skills below.
mcpServers no MCP servers available to this subagent (name reference or inline config). Ignored for plugin subagents.
hooks no Lifecycle hooks scoped to this subagent. Ignored for plugin subagents.
memory no Persistent memory scope: user, project, or local.
background no true forces background execution. Unset lets Claude choose; defaults to background as of v2.1.198.
effort no low, medium, high, xhigh, or max (model-dependent).
isolation no worktree runs the subagent in a temporary git worktree, auto-cleaned if the subagent makes no changes.
color no red, blue, green, yellow, purple, orange, pink, cyan.
initialPrompt no Auto-submitted first user turn when run as a main-session agent (--agent).

Model selection: match the model to task complexity — haiku for simple/repetitive tasks, sonnet for standard tasks, opus/fable for complex reasoning, inherit (default) to match the parent session's model.

Preloading Skills

The skills field preloads full skill content into the subagent's context at startup — not just the description shown during discovery. Use the namespaced form for plugin skills:

---
name: phoenix-reviewer
description: Reviews Phoenix application code
tools: Read, Glob,
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/patterns.md
  • references/plugin-config.md
  • templates/basic-agent.md
  • templates/full-access-agent.md
  • templates/mcp-agent.md
  • templates/read-only-analyzer.md
  • templates/write-capable-agent.md

FAQ

Что делает скилл claude-agents?

Guide for creating custom agents (subagents) for Claude Code. Use when writing agents/*.md files, choosing agent frontmatter (tools, model, skills, permissionMode, maxTurns), restricting a subagent tool allowlist, preloading skills into an agent, or troubleshooting agent invocation.

Как установить скилл claude-agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл claude-agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить claude-agents с