Source profileQuality 91/100

vinnie357/claude-skills/plugins/tools/claude-code/skills/claude-agents/SKILL.md

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.

Source repository stars
24
Declared platforms
1
Static risk flags
0
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

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

Best for

  • Use when writing agents/*.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/vinnie357/claude-skills --skill "plugins/tools/claude-code/skills/claude-agents"
Safe inspection promptEditorial

Inspect the Agent Skill "claude-agents" from https://github.com/vinnie357/claude-skills/blob/258ac739a89d44fc78ad40e5724eb0526ff11d75/plugins/tools/claude-code/skills/claude-agents/SKILL.md at commit 258ac739a89d44fc78ad40e5724eb0526ff11d75. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    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

    Find files: Glob to locate target filesRead code: Examine contentsCheck patterns: Grep for anti-patterns
  2. 02

    When spawning as part of a team

    Invoke /core:agent-loop for the 4-phase / 6-tier execution model. Invoke /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.

    Invoke /core:agent-loop for the 4-phase / 6-tier execution model. Invoke /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 re…Glob patterns like /core: do not expand in Agent prompts. List skill names explicitly.
  3. 03

    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 independe…

    Specific tool access: Limited or specialized tool setsDefined behaviors: Pre-configured instructions and constraintsTask focus: Optimized for particular workflows
  4. 04

    Agents vs Skills

    Review the “Agents vs Skills” section in the pinned source before continuing.

    Review and apply the “Agents vs Skills” source section.
  5. 05

    Agent File Structure

    Agents are defined in markdown files located in: - Plugin: /agents/ - User-level: .claude/agents/

    Plugin: /agents/User-level: .claude/agents/Use kebab-case: code-reviewer.md

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars24SourceRepository attention, not individual Skill quality
Compatibility1 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
vinnie357/claude-skills
Skill path
plugins/tools/claude-code/skills/claude-agents/SKILL.md
Commit
258ac739a89d44fc78ad40e5724eb0526ff11d75
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

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 /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

FeatureAgentsSkills
ActivationExplicitly launched via Agent toolAuto-activated based on context
Tool AccessConfigurable, can be restrictedInherit from parent context
StateIndependent, isolatedShare parent context
Use CaseComplex multi-step tasksKnowledge and guidelines
PersistenceSingle executionAlways 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
- **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):

FieldRequiredMeaning
nameyesUnique identifier, lowercase letters and hyphens. Hooks receive this value as agent_type. The filename does not need to match.
descriptionyesWhen Claude delegates to this subagent.
toolsnoTool allowlist. Omit to inherit all tools. To preload skill content use skills — never list Skill here.
disallowedToolsnoDenylist removed from the inherited or specified tool set.
modelnosonnet, opus, haiku, fable, a full model ID (e.g. claude-opus-4-8), or inherit. Defaults to inherit.
permissionModenodefault, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual (alias of default, v2.1.200+). Ignored for plugin subagents.
maxTurnsnoMaximum agentic turns before the subagent stops.
skillsnoSkills preloaded into context at startup. See Preloading Skills below.
mcpServersnoMCP servers available to this subagent (name reference or inline config). Ignored for plugin subagents.
hooksnoLifecycle hooks scoped to this subagent. Ignored for plugin subagents.
memorynoPersistent memory scope: user, project, or local.
backgroundnotrue forces background execution. Unset lets Claude choose; defaults to background as of v2.1.198.
effortnolow, medium, high, xhigh, or max (model-dependent).
isolationnoworktree runs the subagent in a temporary git worktree, auto-cleaned if the subagent makes no changes.
colornored, blue, green, yellow, purple, orange, pink, cyan.
initialPromptnoAuto-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, 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.

Agent Spawning Naming Convention

Build the name parameter from four segments: <issue>-<role>-<model>-<n>. Every segment is a placeholder. None of the four is a literal.

SegmentWhat 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-1
  • 318-impl-sonnet-2
  • 318-ci-haiku-3
  • 317-plan-fable-4

Read 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.

Common Agent Patterns

Four recurring shapes, each with a runnable template:

  • Read-only analysis (security scans, code reviews, audits): restrict tools to Read, Grep, Glob. Template: templates/read-only-analyzer.md
  • Write-capable (generating tests, docs, code): add Write. Template: templates/write-capable-agent.md
  • Full-access (refactoring, migrations, complex modifications): omit tools entirely for no restrictions. Template: templates/full-access-agent.md
  • MCP-enabled (browser automation, external APIs): mix core tools with MCP tool names. Template: templates/mcp-agent.md

Minimal 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.

Security

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.

References

  • templates/basic-agent.md — official minimal example
  • templates/read-only-analyzer.md — security analysis pattern
  • templates/write-capable-agent.md — test generation pattern
  • templates/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 examples
  • references/plugin-config.md — plugin.json wiring, invoking agents, agent communication, troubleshooting
  • Claude Code Agents: https://code.claude.com/docs/en/agents
  • Subagents (Agent Tool): https://code.claude.com/docs/en/sub-agents

Frequently asked questions

What to verify before installation and use

What does the claude-agents source document cover?

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

How do I install claude-agents?

The source record exposes this install command: npx skills add https://github.com/vinnie357/claude-skills --skill "plugins/tools/claude-code/skills/claude-agents". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code.

Alternatives

Compare before choosing