Subagent System

Create and manage Claude Code subagents with Markdown and YAML frontmatter.

497|68|Updated Sep 7, 2025
One-click install
npx skills add https://github.com/CaptainCrouton89/.claude --skill subagent-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Subagent System
Source: https://github.com/CaptainCrouton89/.claude/tree/main/.claude/skills/subagent-system
Command: npx skills add https://github.com/CaptainCrouton89/.claude --skill subagent-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides you in creating and managing specialized Claude Code subagents, allowing you to delegate task-specific workflows to pre-configured AI personalities. It solves the problem of maintaining context, leveraging specialized expertise, and applying flexible permissions for complex, multi-faceted tasks.

Core Features & Use Cases

  • Specialized AI Personalities: Define subagents with custom system prompts, specific tools, and separate context windows.
  • Automatic & Explicit Delegation: Claude can proactively delegate tasks based on descriptions, or you can explicitly invoke subagents by name.
  • Use Case: When you have a complex task like "review code for security issues and then fix failing tests," you can delegate the security review to a code-reviewer subagent and the test fixing to a test-runner subagent, ensuring each part of the task is handled by a specialist.

Quick Start

Open the interactive subagents interface

/agents

Or create a project-scoped subagent manually

mkdir -p .claude/agents

Then create a Markdown file like .claude/agents/test-runner.md

---

name: test-runner

description: Use proactively to run tests and fix failures

---

You are a test automation expert...

Frequently Asked Questions about Subagent System

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate tasks to specialized AI agents in my workflow?

Delegating tasks to specialized AI agents involves creating subagents with custom system prompts, specific tools, and separate context windows. Use the /agents interface or manually create Markdown files in .claude/agents/ with YAML frontmatter defining agent name, description, and tools. Claude can then proactively delegate based on descriptions or you can explicitly invoke subagents by name.

What is a subagent system and when should I use it?

A subagent system creates pre-configured AI personalities for task-specific workflows, solving problems of maintaining context and applying flexible permissions across complex tasks. Use subagents when you need specialized expertise handling different parts of a workflow—for example, delegating security review to one agent and test fixing to another.

Can I configure different tool permissions for each subagent?

Yes. Subagents support per-agent tool permissions and scope configuration. Each subagent is defined with its own set of tools in the Markdown frontmatter, allowing you to restrict capabilities to what each specialist needs and maintain security boundaries across delegated work.

How do I set up subagents for code review and testing workflows?

Create subagents by defining Markdown files in .claude/agents/ with unique names, descriptions triggering automatic delegation, and system prompts reflecting each role's expertise. For code review and testing, define a code-reviewer subagent and a test-runner subagent, each with appropriate tools and instructions for their specialized tasks.

What's the difference between automatic and explicit subagent delegation?

Automatic delegation occurs when Claude proactively invokes a subagent based on task descriptions and the agent's defined purpose. Explicit delegation happens when you directly invoke a subagent by name. Both approaches use the same underlying architecture and version-controlled best practices.

Do I need version control for managing subagents across projects?

Yes. Best practices include version-controlled subagent definitions in .claude/agents/ directories, enabling consistent application across projects and user contexts. This ensures your specialized agent configurations remain auditable and reproducible.