Skip to content

beeard/claude-code-sub-agents

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude Code Subagents Collection

A comprehensive collection of 35 specialized AI subagents for Claude Code, designed to enhance development workflows with domain-specific expertise and intelligent automation.

πŸš€ Overview

This repository contains a curated set of specialized subagents that extend Claude Code's capabilities across the entire software development lifecycle. Each subagent is an expert in a specific domain, automatically invoked based on context analysis or explicitly called when specialized expertise is needed.

Key Features

  • πŸ€– Intelligent Auto-Delegation: Claude Code automatically selects optimal agents based on task context
  • πŸ”§ Domain Expertise: Each agent specializes in specific technologies, patterns, and best practices
  • πŸ”„ Multi-Agent Orchestration: Seamless coordination between agents for complex workflows
  • πŸ“Š Quality Assurance: Built-in review and validation patterns across all domains
  • ⚑ Performance Optimized: Agents designed for efficient task completion and resource utilization

Available Subagents

Agents are now organized into logical categories for easier navigation:

πŸ—οΈ Development

Frontend & UI Specialists

  • frontend-developer - Build React components, implement responsive layouts, and handle client-side state management
  • ui-designer - Creative UI design focused on user-friendly interfaces
  • ux-designer - User experience design and interaction optimization
  • react-pro - Expert React development with hooks, performance optimization, and best practices
  • nextjs-pro - Next.js specialist for SSR, SSG, and full-stack React applications

Backend & Architecture

  • backend-architect - Design RESTful APIs, microservice boundaries, and database schemas
  • full-stack-developer - End-to-end web application development from UI to database with seamless integration

Language Specialists

  • python-pro - Write idiomatic Python code with advanced features and optimizations
  • golang-pro - Write idiomatic Go code with goroutines, channels, and interfaces
  • typescript-pro - Advanced TypeScript development with type safety and modern patterns

Platform & Mobile

  • mobile-developer - Develop React Native or Flutter apps with native integrations
  • electron-pro - Electron desktop application development and cross-platform solutions

Developer Experience

  • dx-optimizer - Developer Experience specialist that improves tooling, setup, and workflows
  • legacy-modernizer - Refactor legacy codebases and implement gradual modernization

☁️ Infrastructure

  • code-reviewer - Expert code review for quality, security, and maintainability
  • architect-reviewer - Reviews code changes for architectural consistency and design patterns
  • qa-expert - Comprehensive QA processes and testing strategies for quality assurance
  • test-automator - Create comprehensive test suites with unit, integration, and e2e tests
  • debugger - Debugging specialist for errors, test failures, and unexpected behavior

πŸ“Š Data & AI

Data Engineering & Analytics

  • data-engineer - Build ETL pipelines, data warehouses, and streaming architectures
  • data-scientist - Data analysis expert for SQL queries, BigQuery operations, and data insights
  • database-optimizer - Optimize SQL queries, design efficient indexes, and handle database migrations
  • postgres-pro - PostgreSQL database expert for advanced queries and optimizations
  • graphql-architect - Design GraphQL schemas, resolvers, and federation patterns

AI & Machine Learning

  • ai-engineer - Build LLM applications, RAG systems, and prompt pipelines
  • ml-engineer - Implement ML pipelines, model serving, and feature engineering
  • prompt-engineer - Optimizes prompts for LLMs and AI systems

Financial Analytics

  • quant-analyst - Build financial models, backtest trading strategies, and analyze market data

πŸ›‘οΈ Security

  • security-auditor - Review code for vulnerabilities and ensure OWASP compliance

🎯 Specialization

πŸ’Ό Business

  • product-manager - Strategic product management with roadmap planning and stakeholder alignment

🎭 Meta-Orchestration

  • agent-organizer - Master orchestrator for complex, multi-agent tasks. Analyzes project requirements, assembles optimal agent teams, and manages collaborative workflows for comprehensive project execution.

Key Capabilities:

  • Intelligent Project Analysis: Technology stack detection, architecture pattern recognition, and requirement extraction
  • Strategic Team Assembly: Selects optimal 1-3 agent teams based on project needs and complexity
  • Workflow Orchestration: Manages multi-phase collaboration with quality gates and validation checkpoints
  • Efficiency Optimization: Focused teams for common tasks (bug fixes, features, documentation) with comprehensive orchestration for complex projects

When to Use: Complex multi-step projects, cross-domain tasks, architecture decisions, comprehensive analysis, or any scenario requiring coordinated expertise from multiple specialized agents.

πŸ“¦ Installation

Quick Setup

These subagents are automatically available when placed in the ~/.claude/agents/ directory. Claude Code will automatically detect and load them on startup.

# Clone the repository to your Claude agents directory
# Documents are base on the scaffold from https://github.com/wshobson/agents.git
cd ~/.claude
git clone https://github.com/lst97/claude-code-sub-agents.git agents

# Or if the directory already exists, pull the latest updates
cd ~/.claude/agents
git pull origin main

Manual Installation

Alternatively, you can manually copy individual agent files:

# Copy specific agents to your Claude agents directory
cp /path/to/agents/*.md ~/.claude/agents/

Verification

To verify agents are loaded correctly:

# List all available agents
ls ~/.claude/agents/*.md

# Check Claude Code recognizes the agents (run in Claude Code)
# "List all available subagents"

🎭 Advanced: Agent-Organizer Auto-Dispatch Setup

For complex projects requiring multi-agent coordination, you can enable the dispatch protocol in your project root directory (not globally):

# Copy CLAUDE.md to your PROJECT root directory (recommended)
cp /path/to/agents/CLAUDE.md /path/to/your/project/CLAUDE.md

⚠️ Project-Scope Recommendation:

  • βœ… Project-Specific: Place CLAUDE.md in individual project roots for targeted orchestration
  • ❌ Global Scope: Avoid placing in ~/.claude/CLAUDE.md to prevent over-orchestration of simple tasks
  • 🎯 Selective Usage: Enable only for projects requiring comprehensive multi-agent workflows

Trade-offs to Consider:

  • Quality vs Speed: Multi-agent workflows provide expert results but take longer
  • Token Efficiency: 2-5x token usage for comprehensive analysis and implementation
  • Complexity Matching: Best for complex projects, may over-engineer simple tasks

πŸ”§ Usage

Automatic Invocation (Recommended)

Claude Code intelligently analyzes your request and automatically delegates to the most appropriate subagent(s) based on:

  • Context Analysis: Keywords, file types, and project structure
  • Task Classification: Development, debugging, optimization, etc.
  • Domain Expertise: Matching requirements to specialist knowledge
  • Workflow Patterns: Common multi-agent coordination scenarios

Example: "Implement user authentication with secure password handling" β†’ Automatically uses: backend-architect β†’ security-auditor β†’ test-automator

Explicit Invocation

For specific expertise or when you want control over agent selection:

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

# Multi-agent requests
"Have backend-architect design the API, then security-auditor review it"
"Use data-scientist to analyze this dataset, then ai-engineer to build recommendations"

Hybrid Approach

Combine automatic and explicit invocation:

# Start explicit, let Claude coordinate the rest
"Use backend-architect to design a REST API for user management, then handle the implementation automatically"

# Explicit validation after automatic work
"Implement this feature automatically, then have security-auditor review the result"

πŸ’‘ Usage Examples

Direct Agent Invocation

# Single specialist tasks
"Use code-reviewer to analyze this component"
"Have security-auditor check for vulnerabilities"
"Get backend-architect to design user authentication"

# Multi-agent workflows (automatic coordination)
"Implement payment processing"  # β†’ payment-integration β†’ security-auditor
"Optimize database performance"  # β†’ database-optimizer β†’ performance-engineer
"Build responsive dashboard"     # β†’ frontend-developer β†’ test-automator

πŸ“‹ Subagent Format

Each subagent follows a standardized structure for consistent behavior and optimal integration:

File Structure

---
name: subagent-name
description: When this subagent should be invoked
tools: tool1, tool2  # Optional - defaults to all tools
---

# Subagent Name

**Role**: Detailed role description and primary responsibilities

**Expertise**: Specific technologies, frameworks, and domain knowledge

**Key Capabilities**:
- Capability 1: Description
- Capability 2: Description
- Capability 3: Description

System prompt defining the subagent's specialized behavior, decision-making patterns, and interaction style with other agents.

Required Components

  • Name: Kebab-case filename matching the agent name
  • Description: Clear trigger conditions for automatic invocation
  • Role Definition: Specific responsibilities and boundaries
  • Expertise Areas: Technologies, patterns, and domain knowledge
  • System Prompt: Detailed instructions for specialized behavior

Optional Components

  • Tools: Specific Claude Code tools (defaults to all available tools)
  • Dependencies: Other agents this one commonly works with
  • Patterns: Common workflow patterns and coordination scenarios

πŸ”„ Agent Orchestration Patterns

Claude Code automatically coordinates agents using these patterns:

  • Sequential: architect β†’ implement β†’ test β†’ review for dependent tasks
  • Parallel: performance-engineer + database-optimizer for independent analysis
  • Validation: primary-agent β†’ security-auditor for critical components
  • Iterative: review β†’ refine β†’ validate for optimization tasks

🎯 When to Use Which Agent

πŸ—οΈ Planning & Architecture

Agent Best For Example Use Cases
backend-architect API design, system architecture RESTful APIs, microservices, database schemas
frontend-developer UI/UX planning, component design React components, responsive layouts, state management
cloud-architect Infrastructure design, scalability AWS/Azure/GCP architecture, cost optimization
graphql-architect GraphQL system design Schema design, resolvers, federation

πŸ’» Implementation & Development

Agent Best For Example Use Cases
python-pro Python development Django/FastAPI apps, data processing, async programming
golang-pro Go development Microservices, concurrent systems, CLI tools
typescript-pro TypeScript development Type-safe applications, advanced TS features
react-pro React expertise Hooks, performance optimization, advanced patterns
nextjs-pro Next.js applications SSR/SSG, full-stack React, routing

☁️ Operations & Maintenance

Agent Best For Example Use Cases
devops-incident-responder Production issues, deployments Log analysis, deployment failures, system debugging
incident-responder Critical outages Immediate response, crisis management, escalation
deployment-engineer CI/CD, containerization Docker, Kubernetes, pipeline configuration
database-optimizer Database performance Query optimization, indexing, migration strategies

πŸ“Š Analysis & Optimization

Agent Best For Example Use Cases
performance-engineer Application performance Bottleneck analysis, caching strategies, optimization
security-auditor Security assessment Vulnerability scanning, OWASP compliance, threat modeling
data-scientist Data analysis SQL queries, BigQuery, insights and reporting
code-reviewer Code quality Best practices, maintainability, architectural review

πŸ§ͺ Quality Assurance

Agent Best For Example Use Cases
test-automator Testing strategy Unit tests, integration tests, E2E test suites
debugger Bug investigation Error analysis, test failures, troubleshooting
architect-reviewer Design validation Architectural consistency, pattern compliance

πŸ“š Best Practices

  • Trust Auto-Delegation: Claude Code excels at context analysis and optimal agent selection
  • Provide Rich Context: Include tech stack, constraints, and project background
  • Use Explicit Control: Override automatic selection when you need specific expertise
  • Establish Quality Gates: Build review and validation into standard workflows
  • Match Task Complexity: Don't over-engineer simple tasks or under-resource complex ones

🀝 Contributing

Adding New Agents

To contribute a new subagent to the collection:

  1. Follow Naming Convention

    • Use lowercase, hyphen-separated names (e.g., backend-architect.md)
    • Name should clearly indicate the agent's domain and role
  2. Use Standard Format

    • Include proper frontmatter with name, description, and optional tools
    • Follow the structured format outlined in the Subagent Format section
  3. Write Clear Descriptions

    • Description should clearly indicate when the agent should be automatically invoked
    • Include specific keywords and contexts that trigger the agent
  4. Define Specialized Behavior

    • Include detailed system prompt with role, expertise, and capabilities
    • Define interaction patterns with other agents
    • Specify decision-making frameworks and priorities
  5. Test Integration

    • Verify the agent can be automatically invoked based on description
    • Test explicit invocation with clear requests
    • Ensure compatibility with existing agent coordination patterns

Quality Standards

  • Domain Expertise: Agents should demonstrate deep knowledge in their specialization
  • Clear Boundaries: Define what the agent does and doesn't handle
  • Integration Ready: Design for seamless coordination with other agents
  • Consistent Voice: Maintain professional, helpful, and expert tone

Submission Process

  1. Create the agent file following all standards
  2. Test the agent with various invocation patterns
  3. Submit a pull request with example use cases
  4. Include documentation of the agent's unique value and integration patterns

πŸ› οΈ Troubleshooting

Common Issues:

  • Agent not selected: Use domain-specific keywords or explicit invocation
  • Unexpected selection: Provide more context about tech stack and requirements
  • Generic responses: Request specific depth and include detailed constraints
  • Conflicting advice: Request reconciliation between different specialists

Resources:

πŸ“Š Quick Reference

Most Commonly Used Agents

  1. code-reviewer - Quality assurance and best practices
  2. backend-architect - API and system design
  3. frontend-developer - UI/UX implementation
  4. security-auditor - Security validation and compliance
  5. performance-engineer - Optimization and bottleneck analysis

Essential Coordination Patterns

  • Development: architect β†’ implement β†’ test β†’ review
  • Debugging: debugger β†’ specialist β†’ validator
  • Optimization: performance-engineer + database-optimizer β†’ validation
  • Security: primary-agent β†’ security-auditor β†’ approval

Key Success Factors

  • βœ… Trust automatic delegation for optimal results
  • βœ… Provide rich context and specific requirements
  • βœ… Use explicit invocation strategically
  • βœ… Establish quality gates and validation patterns
  • βœ… Learn from agent coordination patterns

🎬 Examples

These examples demonstrate real-world multi-agent coordination scenarios with detailed resource metrics to help you understand the token usage, execution time, and expected deliverables for different project complexities:

  • Example 1: Simple feature implementation (~300K tokens, ~17 minutes) - Shows efficient 4-agent coordination for focused component development
  • Example 2: Complex system implementation (~850K tokens, ~45 minutes) - Demonstrates enterprise-scale 7-agent orchestration with error recovery

Both examples include actual token counts, execution times, and deliverable quality to help you plan and budget for multi-agent workflows in your projects.

Example 1: ExportStep Component Implementation

User Request: /sc:implement use agent-organizer to design and implement the ExportStep.tsx function, improve the UI/UX as well

Agent Orchestration Flow

Agent Orchestration

Step 1: agent-organizer Analysis (56.7K tokens, 1m 20s)

  • Analyzed existing project structure and Zustand stores
  • Created comprehensive 7-task implementation plan
  • Assembled 3-agent specialist team for coordinated execution

Backend Implementation

Step 2: backend-architect Implementation (99.1K tokens, 7m 31s)

  • Designed complete export store architecture with state management
  • Implemented format conversion utilities for SRT, VTT, ASS, JSON formats
  • Integrated Electron IPC for seamless file operations

Frontend Enhancement

Step 3: frontend-developer Enhancement (84.3K tokens, 5m 29s)

  • Created fully interactive ExportStep component with real event handlers
  • Implemented real-time preview generation based on subtitle data
  • Added accessibility compliance (WCAG 2.1 AA) and responsive design

Testing Strategy

Step 4: test-automator Quality Assurance (61.4K tokens, 2m 46s)

  • Developed comprehensive test coverage for format converters
  • Set up Jest and React Testing Library framework
  • Created accessibility and interaction testing strategies

Implementation Results

Final Output

Complete Feature Delivery:

  • πŸ—οΈ Backend: Export store with state management, format conversion utilities, Electron IPC integration
  • 🎨 Frontend: Interactive UI with real-time preview, accessibility compliance, keyboard navigation
  • βœ… Testing: Comprehensive test coverage with framework setup and validation

Live Demo

Project Metrics

Resource Usage:

  • Total Tokens: ~301K tokens (agent-organizer: 56K, backend-architect: 99K, frontend-developer: 84K, test-automator: 61K)
  • Total Time: ~30 minutes execution time
  • Team Size: 4 agents (1 orchestrator + 3 specialists)
  • Files Created/Modified: 4 major files (stores, components, utilities, tests)

Efficiency Highlights:

  • Sequential Coordination: Each agent built upon previous work seamlessly
  • Quality Integration: Production-ready export system with comprehensive functionality
  • Zero Breaking Changes: Enhanced existing architecture without disruption

Example 2: Complex Workspace Management System

User Request: /sc:design implement complex workspace management with user config persistence, multiple workspaces, workspace groups, Discord-like UI with drag-and-drop functionality

Phase 1: Comprehensive Design & Multi-Agent Assessment

Agent Organizer Design Phase

5-Agent Team Assembly: backend-architect, frontend-developer, electron-pro, ux-designer, test-automator

Design Deliverables:

  • Complete TypeScript interfaces for Workspace, WorkspaceGroup, and configurations
  • IndexedDB storage strategy with migration from localStorage
  • Discord-inspired UI specifications with drag-and-drop functionality
  • Auto-save mechanisms with conflict resolution and backup strategy
  • 5-phase implementation plan with quality gates

Phase 1 Working

Phase 1 Assessment Results:

Phase 1 Complete Phase 1 Summary

Comprehensive Team Assessment (5 agents, ~400K tokens total):

  • πŸ—οΈ Backend Architecture: IndexedDB schema, <200ms startup, migration framework, auto-save strategy
  • 🎨 Frontend Components: Discord-inspired design, Material-UI integration, progressive enhancement
  • ⚑ Electron Integration: IPC architecture, security model, performance optimization
  • 🎭 UX Design: A+ UX Score (92/100), zero disruption, user journey validation
  • βœ… Testing Strategy: 99.5% migration success, 4-layer testing pyramid, quality gates

Complete Implementation Results

All Phases Complete

Full 5-Phase Implementation:

  • Phase 1: Assessment & Current State Analysis βœ…
  • Phase 2: Architecture Finalization & Infrastructure βœ…
  • Phase 3: Core Implementation βœ…
  • Phase 4: Integration & Migration βœ…
  • Phase 5: Quality Assurance & Finalization βœ…

Final Deliverables:

  • Complete workspace management system with IndexedDB persistence
  • Discord-inspired UI with drag-and-drop workspace organization
  • Multi-workspace support with workspace groups
  • Seamless migration from existing localStorage system
  • Comprehensive test coverage and error recovery mechanisms

Resource Metrics & Performance

Total Project Metrics:

  • Tokens Used: ~900K tokens across all phases and error resolution
  • Time Spent: ~120 minutes total execution time
  • Agents Involved: 7 specialized agents (5 primary + 2 error resolution)
  • Lines of Code: ~2,400 lines across 15+ files
  • Test Coverage: 99.5% with comprehensive edge case handling (Should be hallucination)

Build Error Resolution with Nested Agent Coordination

Build Error Detection

Second User Prompt: @agent-code-reviewer-pro the application have build error please find all the build errors and ask the related sub agent to fix it. @agent-agent-organizer

Nested Sub-Agent Coordination

Error Resolution Flow:

  1. code-reviewer-pro (68.5K tokens, 5m 26s): Identified critical TypeScript syntax errors
  2. agent-organizer coordination: Systematic build error fixes with typescript-pro
  3. Nested delegation: Specialized agents called within agent workflows for targeted fixes

Error Resolution Efficiency:

  • Detection: ~5m with code-reviewer-pro
  • Coordination: Instant agent-organizer response
  • Fix Implementation: ~30m minutes with nested typescript-pro agent
  • Build Success: Zero remaining errors after systematic fixes
  • Challenging Runtime ERROR Runtime error occur and it require manuel debugging and instruction

Key Multi-Agent Benefits

  • 🧠 Intelligent Orchestration: agent-organizer coordinated 5+ agents across complex 5-phase implementation
  • πŸ”§ Nested Agent Support: Error resolution through coordinated sub-agent delegation within workflows
  • πŸ“Š Enterprise-Scale Quality: 850K tokens of comprehensive analysis, design, and implementation
  • ⚑ Rapid Error Recovery: Build errors resolved in <8 minutes through specialized agent coordination
  • 🎯 Domain Expertise: Each agent contributed specialized knowledge (storage architecture, UX design, TypeScript fixes)

Happy coding with your AI specialist team! πŸš€

About

Collection of specialized AI subagents for Claude Code for personal use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published