/all-skills:claude-agentsfrom all-skills
Guides creating custom subagents for Claude Code with configurable tools, model, skills, and permissions. Use when writing agents/*.md files or troubleshooting agent invocation.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for creating custom agents that provide specialized behaviors and tool access for specific tasks.
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.
Agents are specialized Claude instances with:
| 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 |
Agents are defined in markdown files located in:
<plugin-root>/agents/.claude/agents/code-reviewer.md---
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.
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.
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, Grep
skills:
- elixir:phoenix
- elixir:testing
---
Skills not listed in skills remain invocable through the Skill tool during the run — skills only controls what loads automatically at startup. Never list Skill in tools: to enable this; skills is the dedicated field.
Build the name parameter from four segments: <issue>-<role>-<model>-<n>. Every segment is a placeholder. None of the four is a literal.
| Segment | What goes there |
|---|---|
<issue> | The number of the tracker issue this agent's team works on — 318 for claude-skills-318. With no tracker issue, use a short task slug (audit-ci). |
<role> | The agent's job on that team (test-author, impl, ci, review). |
<model> | The model tier the agent runs on (haiku, sonnet, opus, fable). |
<n> | The session-global spawn counter. |
Join the segments with hyphens. The assembled name must match ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$. Keep every segment kebab-case, and never use a space.
A session that works issue 318 and then moves to 317 names its agents in this order:
318-test-author-sonnet-1318-impl-sonnet-2318-ci-haiku-3317-plan-fable-4Read 318-ci-haiku-3 as the CI runner on issue 318's team, running haiku, third agent spawned this session. Each segment answers one question without opening the agent: the issue groups one team under a shared prefix, the role says what the agent does, and the model shows which tier it activated with.
Example spawning:
Agent({
name: '318-impl-sonnet-2',
description: 'Implement feature endpoint',
prompt: '...'
})
The counter is ONE GLOBAL SERIES PER SESSION. The first agent spawned takes 1, the second takes 2, whatever its issue, role, or model tier. The trailing number therefore gives both a unique name and the agent's spawn order. Assign the counter at spawn time. Never reset it mid-session, and never carry it into another session. This is a prompt-discipline convention, not an enforced mechanism.
name parameter changes report deliveryPassing the Agent tool's name parameter (the convention above) converts the spawned agent into a teammate rather than a plain subagent. This changes how its report reaches the lead: a teammate's plain final text is never delivered — only a SendMessage call reaches the lead. Every spawn prompt built from this convention must instruct the agent to call SendMessage with its full report on completion.
Term collision. This file uses name for two different things. The frontmatter name: field in an agents/*.md file is an agent-type identifier — it does NOT create a teammate. The Agent tool's name parameter at spawn time is the one that does. Say "the Agent tool's name parameter" whenever meaning the latter; conflating the two implies every agent file has broken reporting, which is false.
Escalation re-spawns take a fresh name. When the escalation ladder (haiku → sonnet → opus, per /core:agent-loop "Model Escalation") promotes a failed agent, spawn it under a new name carrying the new model tier and the next counter value — never resume the failed agent under its own name as its escalation. Resuming revives the original agent on its original model while its name still advertises the old tier.
Enforcement backstop. No agent frontmatter field controls report delivery. The TeammateIdle hook (see /extras-claude-code:claude-teams references/agent-teams.md) is the available mechanism for enforcing that a teammate reports before going idle.
Four recurring shapes, each with a runnable template:
tools to Read, Grep, Glob. Template: templates/read-only-analyzer.md. Reviewer agents: no Bash; a separate execution-hands agent runs commands (/core:agent-loop references/reviewer.md); findings per /extras-claude-code:claude-output-styles assets/review-findings-format.md; model chosen by tier.Write. Template: templates/write-capable-agent.mdtools entirely for no restrictions. Template: templates/full-access-agent.mdtemplates/mcp-agent.mdMinimal starting point: templates/basic-agent.md. Best-practice worked examples (clear purpose, appropriate tool access, explicit instructions): references/patterns.md. Plugin wiring, invocation mechanics, and troubleshooting: references/plugin-config.md.
Grant only the tools an agent's task requires — a read-only analyzer never needs Bash or Write. Never hardcode credentials, API keys, private URLs, or access tokens in agent files; agent bodies are prompts checked into repos and plugins. Worked tool-restriction and input-validation examples: references/patterns.md.
templates/basic-agent.md — official minimal exampletemplates/read-only-analyzer.md — security analysis patterntemplates/write-capable-agent.md — test generation patterntemplates/full-access-agent.md — refactoring pattern (no tool restrictions)templates/mcp-agent.md — MCP tools pattern (browser automation)references/patterns.md — writing style, common patterns, and worked best-practice/security examplesreferences/plugin-config.md — plugin.json wiring, invoking agents, agent communication, troubleshootingreferences/patterns.md (opens in a new tab)references/plugin-config.md (opens in a new tab)templates/basic-agent.md (opens in a new tab)templates/full-access-agent.md (opens in a new tab)templates/mcp-agent.md (opens in a new tab)templates/read-only-analyzer.md (opens in a new tab)templates/write-capable-agent.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
108 skills in this plugin
/accessibilityGuide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards./actTest GitHub Actions locally using act. Use when debugging workflows locally, testing workflow changes before pushing, or troubleshooting action failures./actionsCreate and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace./agent-loopGeneric epic-to-PR agent workflow (codename Forge) with 4-phase execution, a 6-tier hierarchy, and paired-team fan-out. Use when coordinating any feature delivery, working an issue or epic ("work epic <id>", "work issue <id>", "use Forge on the next bees ready item", "forge <id>"), picking up an epic in a fresh session (decomposing path) or with pre-existing issues (dispatching path), implementing a multi-step task that benefits from plan→test→implement→review phases, asking clarifying questions before decomposing, forming a team and assigning models per tier, or orchestrating multi-agent workflows. Loads on casual feature requests too — not only when the word "epic" appears.npx claudepluginhub vinnie357/claude-skills --plugin all-skills2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026
Other plugins' skills for the same job