docs/user-guide/agents.md
SuperClaude provides 16 domain specialist agents that Claude Code can invoke for specialized expertise.
Before using this guide, verify agent selection works:
# Test manual agent invocation
@agent-python-expert "explain decorators"
# Example behavior: Python expert responds with detailed explanation
# Test security agent auto-activation
/sc:implement "JWT authentication"
# Example behavior: Security engineer should activate automatically
# Test frontend agent auto-activation
/sc:implement "responsive navigation component"
# Example behavior: Frontend architect + Magic MCP should activate
# Test systematic analysis
/sc:troubleshoot "slow API performance"
# Example behavior: Root-cause analyst + performance engineer activation
# Test combining manual and auto
/sc:analyze src/
@agent-refactoring-expert "suggest improvements"
# Example behavior: Analysis followed by refactoring suggestions
If tests fail: Check agent files exist in ~/.claude/agents/ or restart Claude Code session
Agents are specialized AI domain experts implemented as context instructions that modify Claude Code's behavior. Each agent is a carefully crafted .md file in the superclaude/Agents/ directory containing domain-specific expertise, behavioral patterns, and problem-solving approaches.
Important: Agents are NOT separate AI models or software - they are context configurations that Claude Code reads to adopt specialized behaviors.
# Directly invoke a specific agent
@agent-security "review authentication implementation"
@agent-frontend "design responsive navigation"
@agent-architect "plan microservices migration"
"Auto-activation" means Claude Code reads behavioral instructions to engage appropriate contexts based on keywords and patterns in your requests. SuperClaude provides behavioral guidelines that Claude follows to route to the most appropriate specialists.
๐ How Agent "Auto-Activation" Works: Agent activation isn't automatic system logic - it's behavioral instructions in context files. When documentation says agents "auto-activate", it means Claude Code reads instructions to engage specific domain expertise based on keywords and patterns in your request. This creates the experience of intelligent routing while being transparent about the underlying mechanism.
# These commands auto-activate relevant agents
/sc:implement "JWT authentication" # โ security-engineer auto-activates
/sc:design "React dashboard" # โ frontend-architect auto-activates
/sc:troubleshoot "memory leak" # โ performance-engineer auto-activates
MCP Servers provide enhanced capabilities through specialized tools like Context7 (documentation), Sequential (analysis), Magic (UI), Playwright (testing), and Morphllm (code transformation).
Domain Specialists focus on narrow expertise areas to provide deeper, more accurate solutions than generalist approaches.
Priority Hierarchy:
Conflict Resolution:
Selection Decision Tree:
Task Analysis โ
โโ Manual @agent-? โ Use specified agent
โโ Single Domain? โ Activate primary agent
โโ Multi-Domain? โ Coordinate specialist agents
โโ Complex System? โ Add system-architect oversight
โโ Quality Critical? โ Include security + performance + quality agents
โโ Learning Focus? โ Add learning-guide + technical-writer
# Explicitly call specific agents with @agent- prefix
@agent-python-expert "optimize this data processing pipeline"
@agent-quality-engineer "create comprehensive test suite"
@agent-technical-writer "document this API with examples"
@agent-socratic-mentor "explain this design pattern"
# Commands that trigger auto-activation
/sc:implement "JWT authentication with rate limiting"
# โ Triggers: security-engineer + backend-architect + quality-engineer
/sc:design "accessible React dashboard with documentation"
# โ Triggers: frontend-architect + learning-guide + technical-writer
/sc:troubleshoot "slow deployment pipeline with intermittent failures"
# โ Triggers: devops-architect + performance-engineer + root-cause-analyst
/sc:audit "payment processing security vulnerabilities"
# โ Triggers: security-engineer + quality-engineer + refactoring-expert
# Start with command (auto-activation)
/sc:implement "user profile system"
# Then explicitly add specialist review
@agent-security "review the profile system for OWASP compliance"
@agent-performance-engineer "optimize database queries"
Expertise: Self-improvement workflow executor that documents implementations, analyzes mistakes, and maintains knowledge base continuously
Auto-Activation:
/sc:implement, /sc:build, /sc:improve completionsCapabilities:
How PM Agent Works (Meta-Layer):
Self-Improvement Workflow Examples:
Post-Implementation Documentation:
Immediate Mistake Analysis:
Monthly Documentation Maintenance:
Integration with Task Execution: PM Agent operates as a meta-layer above specialist agents:
Task Flow:
1. User Request โ Auto-activation selects specialist agent
2. Specialist Agent โ Executes implementation (backend-architect, frontend-architect, etc.)
3. PM Agent (Auto-triggered) โ Documents learnings
4. Knowledge Base โ Updated with patterns, mistakes, improvements
Works Best With: All agents (documents their work, not replaces them)
Quality Standards:
Self-Improvement Loop Phases:
Verify: Activates automatically after task completions requiring documentation Test: Should document patterns after backend-architect implements features Check: Should create prevention checklists when mistakes detected
Expertise: Large-scale distributed system design with focus on scalability and service architecture
Auto-Activation:
Capabilities:
Examples:
Verify: /sc:design "microservices platform" should activate system-architect
Test: Output should include service decomposition and integration patterns
Check: Should coordinate with devops-architect for infrastructure concerns
Works Best With: devops-architect (infrastructure), performance-engineer (optimization), security-engineer (compliance)
Expertise: Robust server-side system design with emphasis on API reliability and data integrity
Auto-Activation:
Capabilities:
Examples:
Works Best With: security-engineer (auth/security), performance-engineer (optimization), quality-engineer (testing)
Expertise: Modern web application architecture with focus on accessibility and user experience
Auto-Activation:
Capabilities:
Examples:
Works Best With: learning-guide (user guidance), performance-engineer (optimization), quality-engineer (testing)
Expertise: Infrastructure automation and deployment pipeline design for reliable software delivery
Auto-Activation:
Capabilities:
Examples:
Works Best With: system-architect (infrastructure planning), security-engineer (compliance), performance-engineer (monitoring)
Expertise: Comprehensive research with adaptive strategies and multi-hop reasoning
Auto-Activation:
/sc:research automatically activates this agentCapabilities:
Research Depth Levels:
Examples:
/sc:research "latest React Server Components patterns" โ Comprehensive technical research with implementation examples/sc:research "AI coding assistants landscape 2024" --strategy unified โ Collaborative analysis with user input/sc:research "quantum computing breakthroughs" --depth exhaustive โ Comprehensive literature review with evidence chainsWorkflow Pattern (6-Phase):
Output: Reports saved to docs/research/[topic]_[timestamp].md
Works Best With: system-architect (technical research), learning-guide (educational research), requirements-analyst (market research)
Expertise: Application security architecture with focus on threat modeling and vulnerability prevention
Auto-Activation:
Capabilities:
Examples:
Works Best With: backend-architect (API security), quality-engineer (security testing), root-cause-analyst (incident response)
Expertise: System performance optimization with focus on scalability and resource efficiency
Auto-Activation:
Capabilities:
Examples:
Works Best With: system-architect (scalability), devops-architect (infrastructure), root-cause-analyst (debugging)
Expertise: Systematic problem investigation using evidence-based analysis and hypothesis testing
Auto-Activation:
Capabilities:
Examples:
Works Best With: performance-engineer (performance issues), security-engineer (security incidents), quality-engineer (testing failures)
Expertise: Comprehensive testing strategy and quality assurance with focus on automation and coverage
Auto-Activation:
Capabilities:
Examples:
Works Best With: security-engineer (security testing), performance-engineer (load testing), frontend-architect (UI testing)
Expertise: Code quality improvement through systematic refactoring and technical debt management
Auto-Activation:
Capabilities:
Examples:
Works Best With: system-architect (architecture improvements), quality-engineer (testing strategy), python-expert (language-specific patterns)
Expertise: Production-ready Python development with emphasis on modern frameworks and performance
Auto-Activation:
Capabilities:
Examples:
Works Best With: backend-architect (API design), quality-engineer (testing), performance-engineer (optimization)
Expertise: Requirements discovery and specification development through systematic stakeholder analysis
Auto-Activation:
Capabilities:
Examples:
Works Best With: system-architect (technical feasibility), technical-writer (documentation), learning-guide (user guidance)
Expertise: Technical documentation and communication with focus on audience analysis and clarity
Auto-Activation:
Capabilities:
Examples:
Works Best With: requirements-analyst (specification clarity), learning-guide (educational content), frontend-architect (UI documentation)
Expertise: Educational content design and progressive learning with focus on skill development and mentorship
Auto-Activation:
Capabilities:
Examples:
Works Best With: technical-writer (educational documentation), frontend-architect (interactive learning), requirements-analyst (learning objectives)
Architecture Teams:
Quality Teams:
Communication Teams:
Enhanced Capabilities through MCP Servers:
For troubleshooting help, see:
/sc:focus [domain]/sc:implement "security auth" to test security-engineerNo Security Agent:
# Problem: Security concerns not triggering security-engineer
# Quick Fix: Use explicit security keywords
"implement authentication" # Generic - may not trigger
"implement JWT authentication security" # Explicit - triggers security-engineer
"secure user login with encryption" # Security focus - triggers security-engineer
No Performance Agent:
# Problem: Performance issues not triggering performance-engineer
# Quick Fix: Use performance-specific terminology
"make it faster" # Vague - may not trigger
"optimize slow database queries" # Specific - triggers performance-engineer
"reduce API latency and bottlenecks" # Performance focus - triggers performance-engineer
No Architecture Agent:
# Problem: System design not triggering architecture agents
# Quick Fix: Use architectural keywords
"build an app" # Generic - triggers basic agents
"design microservices architecture" # Specific - triggers system-architect
"scalable distributed system design" # Architecture focus - triggers system-architect
Wrong Agent Combination:
# Problem: Getting frontend agent for backend tasks
# Quick Fix: Use domain-specific terminology
"create user interface" # May trigger frontend-architect
"create REST API endpoints" # Specific - triggers backend-architect
"implement server-side authentication" # Backend focus - triggers backend-architect
Quick Fix:
Detailed Help:
Expert Support:
SuperClaude install --diagnoseCommunity Support:
After applying agent fixes, test with:
Agent Not Activating?
Too Many Agents?
/sc:focus [domain] to limit scopeWrong Agents?
| Trigger Type | Keywords/Patterns | Activated Agents |
|---|---|---|
| Security | "auth", "security", "vulnerability", "encryption" | security-engineer |
| Performance | "slow", "optimization", "bottleneck", "latency" | performance-engineer |
| Frontend | "UI", "React", "Vue", "component", "responsive" | frontend-architect |
| Backend | "API", "server", "database", "REST", "GraphQL" | backend-architect |
| Testing | "test", "QA", "validation", "coverage" | quality-engineer |
| DevOps | "deploy", "CI/CD", "Docker", "Kubernetes" | devops-architect |
| Architecture | "architecture", "microservices", "scalability" | system-architect |
| Python | ".py", "Django", "FastAPI", "asyncio" | python-expert |
| Problems | "bug", "issue", "debugging", "troubleshoot" | root-cause-analyst |
| Code Quality | "refactor", "clean code", "technical debt" | refactoring-expert |
| Documentation | "documentation", "readme", "API docs" | technical-writer |
| Learning | "explain", "tutorial", "beginner", "teaching" | learning-guide |
| Requirements | "requirements", "PRD", "specification" | requirements-analyst |
| Research | "research", "investigate", "latest", "current" | deep-research-agent |
| Command | Primary Agents | Supporting Agents |
|---|---|---|
/sc:implement | Domain architects (frontend, backend) | security-engineer, quality-engineer |
/sc:analyze | quality-engineer, security-engineer | performance-engineer, root-cause-analyst |
/sc:troubleshoot | root-cause-analyst | Domain specialists, performance-engineer |
/sc:improve | refactoring-expert | quality-engineer, performance-engineer |
/sc:document | technical-writer | Domain specialists, learning-guide |
/sc:design | system-architect | Domain architects, requirements-analyst |
/sc:test | quality-engineer | security-engineer, performance-engineer |
/sc:explain | learning-guide | technical-writer, domain specialists |
/sc:research | deep-research-agent | Technical specialists, learning-guide |
Development Workflows:
Analysis Workflows:
Communication Workflows:
Natural Language First:
Effective Keyword Usage:
Request Optimization Examples:
# Generic (limited agent activation)
"Fix the login feature"
# Optimized (multi-agent coordination)
"Implement secure JWT authentication with rate limiting and accessibility compliance"
# โ Triggers: security-engineer + backend-architect + frontend-architect + quality-engineer
Development Workflows:
# Full-stack feature development
/sc:implement "responsive user dashboard with real-time notifications"
# โ frontend-architect + backend-architect + performance-engineer
# API development with documentation
/sc:create "REST API for payment processing with comprehensive docs"
# โ backend-architect + security-engineer + technical-writer + quality-engineer
# Performance optimization investigation
/sc:troubleshoot "slow database queries affecting user experience"
# โ performance-engineer + root-cause-analyst + backend-architect
Analysis Workflows:
# Security assessment
/sc:analyze "authentication system for GDPR compliance vulnerabilities"
# โ security-engineer + quality-engineer + requirements-analyst
# Code quality review
/sc:review "legacy codebase for modernization opportunities"
# โ refactoring-expert + system-architect + quality-engineer + technical-writer
# Learning and explanation
/sc:explain "microservices patterns with hands-on examples"
# โ system-architect + learning-guide + technical-writer
Multi-Domain Projects:
Troubleshooting Agent Selection:
Problem: Wrong agents activating
Problem: Not enough agents
Problem: Too many agents
Security-First Approach: Always include security considerations in development requests to automatically engage security-engineer alongside domain specialists.
Performance Integration: Include performance keywords ("fast", "efficient", "scalable") to ensure performance-engineer coordination from the start.
Accessibility Compliance: Use "accessible", "WCAG", or "inclusive" to automatically include accessibility validation in frontend development.
Documentation Culture: Add "documented", "explained", or "tutorial" to requests for automatic technical-writer inclusion and knowledge transfer.
Domain Expertise: Each agent has specialized knowledge patterns, behavioral approaches, and problem-solving methodologies specific to their domain.
Contextual Activation: Agents analyze request context, not just keywords, to determine relevance and engagement level.
Collaborative Intelligence: Multi-agent coordination produces synergistic results that exceed individual agent capabilities.
Adaptive Learning: Agent selection improves based on request patterns and successful coordination outcomes.
Traditional Approach: Single AI handles all domains with varying levels of expertise Agent Approach: Specialized experts collaborate with deep domain knowledge and focused problem-solving
Benefits:
What to Expect:
What Not to Worry About:
Week 1: Natural Usage Start with natural language descriptions. Notice which agents activate and why. Build intuition for keyword patterns without overthinking the process.
Week 2-3: Pattern Recognition
Observe agent coordination patterns. Understand how complexity and domain keywords influence agent selection. Begin optimizing request phrasing for better coordination.
Month 2+: Expert Coordination Master multi-domain requests that trigger optimal agent combinations. Leverage troubleshooting techniques for effective agent selection. Use advanced patterns for complex workflows.
The SuperClaude Advantage: Experience the power of 14 specialized AI experts working in coordinated response, all through simple, natural language requests. No configuration, no management, just intelligent collaboration that scales with your needs.
๐ฏ Ready to experience intelligent agent coordination? Start with /sc:implement and discover the magic of specialized AI collaboration.