sub-agents
Skill0 starsChanged 2 months agoMITView on GitHub
Create and configure Claude Code sub-agents with custom prompts, tools, and models
7 other projects use a version of this.
Adopted by
Most recently taken up by
- blindlove200/sub-agents-skillstheir own version, first seen Nov 8, 2026
- shinpr/sub-agents-skillstheir own version, first seen Nov 1, 2026
- parcadei/Continuous-Claudeword for word, first seen Oct 17, 2026
- parcadei/Continuous-Claude-v2word for word, first seen Oct 8, 2026
- opencue/cuecardstheir own version, first seen Aug 17, 2026
- modal-projects/modal-auto-research-skillstheir own version, first seen Apr 14, 2026
Other versions7 projects use a version of this.
Word for word · 3
- parcadei/Continuous-Claude★ 3.9k100% same
- parcadei/Continuous-Claude-v2★ 3.9k100% same
- parcadei/Continuous-Claude-v3★ 3.9k100% same
Edited · 0
None found.
Wrote their own version · 4
- shinpr/sub-agents-skills★ 99same name
- modal-projects/modal-auto-research-skills★ 47same name
- opencue/cuecards★ 10same name
- blindlove200/sub-agents-skills★ 5same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- agentica-spawnSkill
- agent-orchestrationSkill
- background-agent-pingsSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- goal-driven-parallel-orchestratorSkill
- nested-subagentsSkill
- no-polling-agentsSkill
- parallel-agent-contractsSkill
- parallel-agentsSkill
- parallel-repo-safetySkill
- subagent-driven-developmentSkill
- using-git-worktreesSkill
- verbatim-goal-anchoringSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create specialized AI agents with isolated contexts for specific tasks.
- Distinctive: line 175
Restrict tools: - Only grant what's needed
- Very specific: line 177
Version control: - Check .claude/agents/ into git
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sub-Agents Reference
Create specialized AI agents with isolated contexts for specific tasks.
When to Use
- "How do I create a sub-agent?"
- "Configure agent tools"
- "What built-in agents exist?"
- "Agent model selection"
- "Agent chaining patterns"
Quick Start
Interactive (Recommended)
/agentsOpens menu to create, edit, and manage agents.
Manual Creation
mkdir -p .claude/agents
cat > .claude/agents/reviewer.md << 'EOF'
---
name: reviewer
description: Code review specialist. Use proactively after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
You are a senior code reviewer focusing on quality and security.
## Review Checklist
- Code clarity and naming
- Error handling
- Security vulnerabilities
- Test coverage
EOFCLI-Based
claude --agents '{
"reviewer": {
"description": "Code reviewer",
"prompt": "Review for quality and security",
"tools": ["Read", "Bash"],
"model": "sonnet"
}
}'Agent File Format
---
name: agent-name
description: When/why to use this agent
tools: Read, Edit, Bash # Optional, inherits all if omitted
model: sonnet # sonnet, haiku, claude-opus-4-5-20251101, inherit
---
System prompt content here...Configuration Fields
| Field | Required | Options |
name | Yes | lowercase, hyphens |
description | Yes | When to use |
tools | No | Tool list (inherits all if omitted) |
model | No | sonnet, haiku, claude-opus-4-5-20251101, inherit |
Built-In Agents
| Agent | Model | Tools | Purpose |
| General-purpose | Sonnet | All | Complex multi-step tasks |
| Plan | Sonnet | Read-only | Plan mode research |
| Explore | Haiku | Read-only | Fast codebase search |
Model Selection
| Model | Speed | Best For |
| Haiku | Fastest | Search, quick lookups |
| Sonnet | Fast | Most tasks (default) |
| Opus | Slower | Complex reasoning |
Tool Combinations
# Code Reviewer (read-only)
tools: Read, Grep, Glob, Bash
# Debugger
tools: Read, Edit, Bash, Grep, Glob
# Implementer
tools: Read, Write, Edit, Bash, GlobExample Agents
Code Reviewer
---
name: code-reviewer
description: Reviews code for quality and security. Use after code changes.
tools: Read, Grep, Glob, Bash
model: sonnet
---
Review code for:
- Security vulnerabilities
- Code quality issues
- Missing error handling
- Test coverage gaps
Output findings by priority: Critical > Warning > SuggestionDebugger
---
name: debugger
description: Debug errors and test failures.
tools: Read, Edit, Bash, Grep, Glob
model: inherit
---
Debugging process:
1. Capture error details
2. Identify failure location
3. Form hypotheses
4. Test and verify
5. Implement fixFile Locations
| Type | Location | Priority |
| Project | .claude/agents/ | Highest |
| User | ~/.claude/agents/ | Lower |
Advanced Patterns
Resumable Agents
[Agent returns agentId: "abc123"]
# Later: resume with context
claude -r "abc123" "Continue analysis"Agent Chaining
Use code-analyzer to find issues,
then use optimizer to fix themBest Practices
- Single responsibility - One clear purpose per agent
- Restrict tools - Only grant what's needed
- Clear descriptions - Action-oriented, include "proactively"
- Version control - Check
.claude/agents/into git
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

