Skip to content

melanyss/claude-code-subagents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Group 32


Claude Code SubAgents - Awesome Curated List

A curated list of agent files and resources developed with Claude Code's Sub-Agent functionality, designed to enhance development workflows with domain-specific expertise.


FAQ

⁉️ Question: What are Sub Agents?

🧠 Answer: Sub Agents are an amazing new feature offered by Claude Code and the folks at Anthropic. Per their website:

Custom sub agents in Claude Code are specialized AI assistants that can be invoked to handle specific types of tasks. They enable more efficient problem-solving by providing task-specific configurations with customized system prompts, tools and a separate context window.


Overview

This repository contains specialized subagents that extend Claude Code's capabilities. Each subagent is an expert in a specific domain, automatically invoked based on context or explicitly called when needed. All agents are configured with specific Claude models based on task complexity for optimal performance and cost-effectiveness.


Available Subagents

πŸ“‹ 63 specialized subagents organized across 16 categories

See the complete directory: AGENTS.md

Categories at a Glance

  • 🎯 Orchestration (8) - Multi-agent coordination, workflows, task distribution
  • πŸ”¬ Research (4) - Market analysis, competitive intelligence, data research
  • ⚑ Development (6) - Core development, debugging, refactoring, tooling
  • πŸ—οΈ Architecture (2) - System design, cloud architecture, code review
  • πŸ€– Data-AI-ML (9) - Machine learning, data engineering, AI systems
  • ☁️ DevOps-Infrastructure (2) - Operations, networking, infrastructure automation
  • πŸ’Ό Business (4) - Customer success, legal, support, trend analysis
  • 🎨 Design-UX (5) - User experience, visual design, design systems
  • πŸ“š Documentation (3) - Technical writing, tutorials, API documentation
  • πŸ”’ Security (1) - Security auditing, vulnerability assessment
  • ⚑ Performance (1) - Performance optimization, load testing
  • πŸ“± Mobile-Frontend (3) - Frontend development, mobile apps, JavaScript
  • πŸ”§ Backend (9) - APIs, databases, microservices, server-side
  • πŸ“‹ Management (3) - Project management, product strategy, business analysis
  • πŸ“’ Sales-Marketing (3) - Content marketing, sales automation, technical sales
  • πŸš€ MarTech (7) - Marketing technology, automation, personalization

Installation

These subagents are automatically available when placed in ~/.claude/agents/ directory.

cd ~/.claude
git clone https://github.com/melanysft/claude-code-subagents.git agents

Usage

Automatic Invocation

Claude Code will automatically delegate to the appropriate subagent based on the task context and the subagent's description.

Explicit Invocation

Mention the subagent by name in your request:

"Use the code-reviewer to check my recent changes"
"Have the security-auditor scan for vulnerabilities"
"Get the performance-engineer to optimize this bottleneck"

Usage Examples

Single Agent Tasks

# Code quality and review
"Use code-reviewer to analyze this component for best practices"
"Have code-reviewer scrutinize these configuration changes"
"Have security-auditor check for OWASP compliance issues"

# Development tasks  
"Get backend-architect to design a user authentication API"
"Use frontend-developer to create a responsive dashboard layout"

# Infrastructure and operations
"Have devops-troubleshooter analyze these production logs"
"Use cloud-architect to design a scalable AWS architecture"
"Get network-engineer to debug SSL certificate issues"
"Use database-admin to set up backup and replication"

# Data and AI
"Get data-scientist to analyze this customer behavior dataset"
"Use ai-engineer to build a RAG system for document search"
"Have mlops-engineer set up MLflow experiment tracking"

# Business and marketing
"Have business-analyst create investor deck with growth metrics"
"Use content-marketer to write SEO-optimized blog post"
"Get sales-automator to create cold email sequence"
"Have customer-support draft FAQ documentation"

Multi-Agent Workflows

These subagents work together seamlessly, and for more complex orchestrations, you can use the Claude Code Commands collection which provides 52 pre-built slash commands that leverage these subagents in sophisticated workflows.

# Feature development workflow
"Implement user authentication feature"
# Automatically uses: backend-architect β†’ frontend-developer β†’ test-automator β†’ security-auditor

# Performance optimization workflow  
"Optimize the checkout process performance"
# Automatically uses: performance-engineer β†’ database-optimizer β†’ frontend-developer

# Production incident workflow
"Debug high memory usage in production"
# Automatically uses: incident-responder β†’ devops-troubleshooter β†’ error-detective β†’ performance-engineer

# Network connectivity workflow
"Fix intermittent API timeouts"
# Automatically uses: network-engineer β†’ devops-troubleshooter β†’ performance-engineer

# Database maintenance workflow
"Set up disaster recovery for production database"
# Automatically uses: database-admin β†’ database-optimizer β†’ incident-responder

# ML pipeline workflow
"Build end-to-end ML pipeline with monitoring"
# Automatically uses: mlops-engineer β†’ ml-engineer β†’ data-engineer β†’ performance-engineer

# Product launch workflow
"Launch new feature with marketing campaign"
# Automatically uses: business-analyst β†’ content-marketer β†’ sales-automator β†’ customer-support

Advanced Workflows with Slash Commands

For more sophisticated multi-subagent orchestration, use the companion Commands repository:

# Complex feature development (8+ subagents)
/full-stack-feature Build user dashboard with real-time analytics

# Production incident response (5+ subagents) 
/incident-response Database connection pool exhausted

# ML infrastructure setup (6+ subagents)
/ml-pipeline Create recommendation engine with A/B testing

# Security-focused implementation (7+ subagents)
/security-hardening Implement OAuth2 with zero-trust architecture

Subagent Format

Each subagent follows this structure:

---
name: subagent-name
description: When this subagent should be invoked
model: haiku  # Optional - specify which model to use (haiku/sonnet/opus)
tools: tool1, tool2  # Optional - defaults to all tools
---

System prompt defining the subagent's role and capabilities

Model Configuration

As of Claude Code v1.0.64, subagents can specify which Claude model they should use. This allows for cost-effective task delegation based on complexity:

  • Low Complexity (Haiku): Simple tasks like basic data analysis, documentation generation, and standard responses
  • Medium Complexity (Sonnet): Development tasks, code review, testing, and standard engineering work
  • High Complexity (Opus): Critical tasks like security auditing, architecture review, incident response, and AI/ML engineering

Available models (using simplified naming as of Claude Code v1.0.64):

  • haiku - Fast and cost-effective for simple tasks
  • sonnet - Balanced performance for most development work
  • opus - Most capable for complex analysis and critical tasks

If no model is specified, the subagent will use the system's default model.


Agent Orchestration Patterns

Claude Code automatically coordinates agents using these common patterns:

Sequential Workflows

User Request β†’ Agent A β†’ Agent B β†’ Agent C β†’ Result

Example: "Build a new API feature"
backend-architect β†’ frontend-developer β†’ test-automator β†’ security-auditor

Parallel Execution

User Request β†’ Agent A + Agent B (simultaneously) β†’ Merge Results

Example: "Optimize application performance" 
performance-engineer + database-optimizer β†’ Combined recommendations

Conditional Branching

User Request β†’ Analysis β†’ Route to appropriate specialist

Example: "Fix this bug"
debugger (analyzes) β†’ Routes to: backend-architect OR frontend-developer OR devops-troubleshooter

Review & Validation

Primary Agent β†’ Review Agent β†’ Final Result

Example: "Implement payment processing"
payment-integration β†’ security-auditor β†’ Validated implementation

Best Practices

🎯 Task Delegation

  1. Let Claude Code delegate automatically - The main agent analyzes context and selects optimal agents
  2. Be specific about requirements - Include constraints, tech stack, and quality requirements
  3. Trust agent expertise - Each agent is optimized for their domain

πŸ”„ Multi-Agent Workflows

  1. Start with high-level requests - Let agents coordinate complex multi-step tasks
  2. Provide context between agents - Ensure agents have necessary background information
  3. Review integration points - Check how different agents' outputs work together

πŸŽ›οΈ Explicit Control

  1. Use explicit invocation for specific needs - When you want a particular expert's perspective
  2. Combine multiple agents strategically - Different specialists can validate each other's work
  3. Request specific review patterns - "Have security-auditor review backend-architect's API design"

πŸ“ˆ Optimization

  1. Monitor agent effectiveness - Learn which agents work best for your use cases
  2. Iterate on complex tasks - Use agent feedback to refine requirements
  3. Leverage agent strengths - Match task complexity to agent capabilities

Contributing

To add a new subagent:

  1. Create a new .md file following the format above
  2. Use lowercase, hyphen-separated names
  3. Write clear descriptions for when the subagent should be used
  4. Include specific instructions in the system prompt

Troubleshooting

Common Issues

Agent not being invoked automatically:

  • Ensure your request clearly indicates the domain (e.g., "performance issue" β†’ performance-engineer)
  • Be specific about the task type (e.g., "review code" β†’ code-reviewer)

Unexpected agent selection:

  • Provide more context about your tech stack and requirements
  • Use explicit invocation if you need a specific agent

Multiple agents producing conflicting advice:

  • This is normal - different specialists may have different priorities
  • Ask for clarification: "Reconcile the recommendations from security-auditor and performance-engineer"

Agent seems to lack context:

  • Provide background information in your request
  • Reference previous conversations or established patterns

Getting Help

If agents aren't working as expected:

  1. Check agent descriptions in their individual files
  2. Try more specific language in your requests
  3. Use explicit invocation to test specific agents
  4. Provide more context about your project and goals

License

This project is licensed under the MIT License - see the LICENSE file for details.


Learn More

About

Claude Code SubAgents - Awesome curated list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published