leamas

The missing package manager for Claude

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leamas-ai/leamas.sh/main/install.sh)"
Copied!
Installs to $HOME/leamas/leamas

What does leamas do?

Simplifies the installation of Claude agents and commands. No more manual copying of files or managing complex directory structures. Just simple commands that work.

TLDR; leamas will download .md files from leamas.sh (sourced from GitHub) and automatically place them in the correct .claude directories for use in Claude.

# Install a powerful web development agent kit
$ leamas agent@web-dev
==> Downloading agent kit: web-dev
==> Installing agent kit: web-dev
==> Installed: frontend-architect.md
==> Installed: react-specialist.md
==> Installed: api-designer.md
==> Successfully installed 3 file(s) from agent kit: web-dev
# Install globally for all projects
$ leamas -g agent@devops
==> Installation complete! agent kit is available in: ~/.claude/agents/leamas/devops
# See what's available
$ leamas --help

Agent Kits

Collections of specialized AI agents for development, operations, and business tasks. Install a kit via the leamas agent@... command to enable all its agents in Claude Code.

Agent Kit
7 agents
leamas-ai/agents-historical-figures
This repository contains custom Claude Code sub-agents that allow historical figures to debate contemporary topics while Claude acts as a neutral mode...
leamas agent@agents-historical-figures
Copied!
Repository

Historical Figures Debate Agents for Claude Code


This repository contains custom Claude Code sub-agents that allow historical figures to debate contemporary topics while Claude acts as a neutral moderator.

Quick Installation with leamas


The easiest way to install these agents is using leamas. After leamas has been installed you can run:

# Install historical figures debate agents for Claude Code
leamas agent@agents-historical-figures
From your project directory to install all of the agents and then begin you discussion. Once installed, the agents will be available in your Claude Code environment and can be invoked using the Task tool with their agent names.

Installation via GitHub


To install from GitHub to your global Claude Code instance:

cd ~/.claude/agents
git clone https://github.com/leamas-ai/agents-historical-figures.git

Or to install only to your project, change into your project directory and run:

cd .claude/agents
git clone https://github.com/leamas-ai/agents-historical-figures.git

If you do not have a .claude/agents directory, then create it before running the git commands.

Available Agents


Debate Moderator
  • File: agents/debate-moderator.md
  • Role: Neutral facilitator of intellectual discourse
  • Features: Structured debate format, balanced moderation, synthesis of arguments
Historical Figures
  1. Socrates (agents/socrates-agent.md)
  • Classical Greek philosopher (470-399 BCE)
  • Uses Socratic method of questioning
  • Focuses on ethical and definitional inquiries
  1. Aristotle (agents/aristotle-agent.md)
  • Greek philosopher and polymath (384-322 BCE)
  • Systematic, empirical approach
  • Expertise in logic, ethics, politics, and natural science
  1. Marcus Aurelius (agents/marcus-aurelius-agent.md)
  • Roman Emperor and Stoic philosopher (121-180 CE)
  • Practical wisdom from leadership experience
  • Focus on what's within our control
  1. Leonardo da Vinci (agents/leonardo-da-vinci-agent.md)
  • Renaissance polymath (1452-1519)
  • Integrates art and science
  • Visual thinking and innovation
  1. Marie Curie (agents/marie-curie-agent.md)
  • Pioneering physicist and chemist (1867-1934)
  • First woman Nobel laureate
  • Advocate for women in science
  1. Albert Einstein (agents/albert-einstein-agent.md)
  • Theoretical physicist (1879-1955)
  • Revolutionary thinker on space, time, and reality
  • Humanitarian and philosopher-scientist

How to Use


Basic Historical Debate Setup
  1. Start a debate on any contemporary topic:
I want to organize a debate on [topic] between historical figures. 
   Please use:
   - The debate-moderator agent to facilitate
   - [Choose 2-4 historical figure agents] as participants
   ```

2. **Example debate prompt**:
   ```
   Please organize a debate on "The role of artificial intelligence in society" with:
   - debate-moderator as the facilitator
   - socrates-agent, aristotle-agent, and marie-curie-agent as participants
   
   Have them discuss AI ethics, benefits, and risks from their unique perspectives.
   ```

### Advanced Usage

#### 1. **One-on-One Philosophical Dialogue**
   ```
   Have Socrates and Aristotle discuss the nature of knowledge, 
   with the moderator guiding their conversation.
   ```

#### 2. **Historical Advisory Panel**
   ```
   I need advice on [modern issue]. Please convene a panel with 
   Einstein, da Vinci, and Marcus Aurelius to provide their perspectives.
   ```

#### 3. **Cross-Era Scientific Discussion**
   ```
   Have Marie Curie and Albert Einstein debate with Leonardo da Vinci 
   about the relationship between art and science.
   ```

#### 4. **Ethical Dilemma Analysis**
   ```
   Present this ethical dilemma to Socrates, Marcus Aurelius, and Aristotle:
   [describe dilemma]
   Have them explore it from their philosophical frameworks.
   ```

#### 5. **Innovation Workshop**
   ```
   Use Leonardo da Vinci and Einstein agents to brainstorm solutions 
   for [contemporary problem], with the moderator synthesizing ideas.
   ```

## Features and Capabilities

### Debate Structure
The moderator agent follows this format:
1. **Opening** - Topic introduction and participant introductions
2. **Initial Positions** - Each figure states their stance
3. **Rebuttals** - Responses to initial positions
4. **Open Discussion** - Guided free-form debate
5. **Closing Statements** - Final thoughts from each participant
6. **Synthesis** - Moderator's balanced summary

### Agent Characteristics

- **Authentic Voice**: Each agent maintains their historical personality and speaking style
- **Philosophical Consistency**: Arguments align with their known beliefs and methods
- **Modern Adaptation**: Can engage with contemporary concepts while maintaining historical perspective
- **Interactive Depth**: Agents respond to each other's arguments dynamically

### Special Capabilities

1. **Cross-Temporal Understanding**: Historical figures can grasp modern concepts when explained
2. **Philosophical Integration**: Different schools of thought interact meaningfully
3. **Practical Application**: Historical wisdom applied to contemporary challenges
4. **Educational Value**: Learn philosophy and history through engaging dialogue

## Example Commands

### Quick Start
"Moderate a debate between Socrates and Einstein on whether truth is absolute or relative"
### Complex Scenario
"I want to explore the ethics of genetic engineering. Please organize a panel with:
  • Aristotle for virtue ethics perspective
  • Marcus Aurelius for Stoic view on nature
  • Marie Curie for scientific progress angle
  • Leonardo da Vinci for innovation and human enhancement
Let them discuss for 5 rounds with the moderator guiding."
### Educational Use
"Help me understand different philosophical approaches to happiness by having Aristotle (eudaimonia), Marcus Aurelius (Stoic contentment), and Socrates (examined life) explain their views in a moderated discussion" ```

Tips for Best Results


  1. Be Specific: Clearly state the topic and which agents you want to use
  2. Set Context: Provide background on contemporary issues for historical figures
  3. Guide Direction: Tell the moderator to focus on specific aspects if needed
  4. Multiple Rounds: Request multiple rounds of debate for deeper exploration
  5. Ask for Summaries: Request the moderator to synthesize key insights

Extending the System


To add new historical figures:
  1. Create a new .md file in the agents/ directory
  2. Include sections for: Core Identity, Speaking Style, Key Beliefs, Debate Approach
  3. Ensure the agent can engage with modern topics while maintaining historical authenticity
  4. Test the agent in debates with existing figures

Notes


  • Agents work best when given clear topics and debate structures
  • The moderator ensures balanced participation and civil discourse
  • Historical figures maintain their authentic worldviews while engaging modern topics
  • Debates can be educational, entertaining, and provide unique insights
Agent Kit
24 agents
vijaythecoder/awesome-claude-agents
**Supercharge Claude Code with a team of specialized AI agents** that work together to build complete features, debug complex issues, and handle any t...
leamas agent@awesome-claude-agents
Copied!
Repository

Awesome Claude Agents - AI Development Team ๐Ÿš€


Supercharge Claude Code with a team of specialized AI agents that work together to build complete features, debug complex issues, and handle any technology stack with expert-level knowledge.

โš ๏ธ Important Notice


This project is experimental and token-intensive. I'm actively testing these agents with Claude subscription - expect high token consumption during complex workflows. Multi-agent orchestration can consume 10-50k tokens per complex feature. Use with caution and monitor your usage.

๐Ÿš€ Quick Start (3 Minutes)


Prerequisites
  • Claude Code CLI installed and authenticated
  • Claude subscription - required for intensive agent workflows
  • Active project directory with your codebase
  • Optional: Context7 MCP for enhanced documentation access
1. Install the Agents
git clone https://github.com/vijaythecoder/awesome-claude-agents.git
Option A: Symlink (Recommended - auto-updates)
macOS/Linux:
# Create agents directory if it doesn't exist (preserves existing agents)
mkdir -p ~/.claude/agents

# Symlink the awesome-claude-agents collection
ln -sf "$(pwd)/awesome-claude-agents/agents/" ~/.claude/agents/awesome-claude-agents
Windows (PowerShell):
# Create agents directory
New-Item -Path "$env:USERPROFILE\.claude\agents" -ItemType Directory -Force

# Create symlink
cmd /c mklink /D "$env:USERPROFILE\.claude\agents\awesome-claude-agents" "$(Get-Location)\awesome-claude-agents\agents"
Option B: Copy (Static - no auto-updates)
# Create agents directory if it doesn't exist
mkdir -p ~/.claude/agents

# Copy all agents
cp -r awesome-claude-agents/agents ~/.claude/agents/awesome-claude-agents
2. Verify Installation
claude /agents
# Should show all 24 agents.
3. Initialize Your Project
Navigate to your project directory and run the following command to configure your AI team:
claude "use @agent-team-configurator and optimize my project to best use the available subagents."
4. Start Building
claude "use @agent-tech-lead-orchestrator and build a user authentication system"

Your AI team will automatically detect your stack and use the right specialists!

๐ŸŽฏ How Auto-Configuration Works


The @agent-team-configurator automatically sets up your perfect AI development team. When invoked, it:

  1. Locates CLAUDE.md - Finds existing project configuration and preserves all your custom content outside the "AI Team Configuration" section
  2. Detects Technology Stack - Inspects package.json, composer.json, requirements.txt, go.mod, Gemfile, and build configs to understand your project
  3. Discovers Available Agents - Scans ~/.claude/agents/ and .claude/ folders, building a capability table of all available specialists
  4. Selects Specialists - Prefers framework-specific agents over universal ones, always includes @agent-code-reviewer and @agent-performance-optimizer for quality assurance
  5. Updates CLAUDE.md - Creates a timestamped "AI Team Configuration" section with your detected stack and a Task|Agent|Notes mapping table
  6. Provides Usage Guidance - Shows you the detected stack, selected agents, and gives sample commands to start building

๐Ÿ‘ฅ Meet Your AI Development Team


๐ŸŽญ Orchestrators (3 agents)
  • Tech Lead Orchestrator - Senior technical lead who analyzes complex projects and coordinates multi-step development tasks
  • Project Analyst - Technology stack detection specialist who enables intelligent agent routing
  • Team Configurator - AI team setup expert who detects your stack and configures optimal agent mappings
๐Ÿ’ผ Framework Specialists (13 agents)
  • Laravel (2 agents)
  • Backend Expert - Comprehensive Laravel development with MVC, services, and Eloquent patterns
  • Eloquent Expert - Advanced ORM optimization, complex queries, and database performance
  • Django (3 agents)
  • Backend Expert - Models, views, services following current Django conventions
  • API Developer - Django REST Framework and GraphQL implementations
  • ORM Expert - Query optimization and database performance for Django applications
  • Rails (3 agents)
  • Backend Expert - Full-stack Rails development following conventions
  • API Developer - RESTful APIs and GraphQL with Rails patterns
  • ActiveRecord Expert - Complex queries and database optimization
  • React (2 agents)
  • Component Architect - Modern React patterns, hooks, and component design
  • Next.js Expert - SSR, SSG, ISR, and full-stack Next.js applications
  • Vue (3 agents)
  • Component Architect - Vue 3 Composition API and component patterns
  • Nuxt Expert - SSR, SSG, and full-stack Nuxt applications
  • State Manager - Pinia and Vuex state architecture
๐ŸŒ Universal Experts (4 agents)
๐Ÿ”ง Core Team (4 agents)

Total: 24 specialized agents working together to build your projects!

Browse all agents โ†’

๐Ÿ”ฅ Why Teams Beat Solo AI


  • Specialized Expertise: Each agent masters their domain with deep, current knowledge
  • Real Collaboration: Agents coordinate seamlessly, sharing context and handing off tasks
  • Tailored Solutions: Get code that matches your exact stack and follows its best practices
  • Parallel Execution: Multiple specialists work simultaneously for faster delivery

๐Ÿ“ˆ The Impact


  • Ship Faster - Complete features in minutes, not days
  • Better Code Quality - Every line follows best practices
  • Learn As You Code - See how experts approach problems
  • Scale Confidently - Architecture designed for growth

๐Ÿ“š Learn More


๐Ÿ’ฌ Join The Community


๐Ÿ“„ License


MIT License - Use freely in your projects!

Star History


![Star History Chart](https://www.star-history.com/#vijaythecoder/awesome-claude-agents&Date)

Transform Claude Code into an AI development team that ships production-ready features
Simple setup. Powerful results. Just describe and build.

GitHub โ€ข Documentation โ€ข Community

Agent Kit
4 agents
hesreallyhim/awesome-claude-code-agents
A curated list of agent files and resources developed with Claude Code's Sub-Agent functionality.
leamas agent@awesome-claude-code-agents
Copied!
Repository

Awesome Claude Code Agents


A curated list of agent files and resources developed with Claude Code's Sub-Agent functionality.


โ‰๏ธ 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.

โ‰๏ธ Question: What is an Anthropic? Is it painful?

๐Ÿง  Answer: That's very funny, but actually Anthropic is a company that offers a range of AI applications and state-of-the-art model capabilities. They are also the organization that launched the Model Context Protocol (MCP) thing that we all love, and are behind the massively popular coding agent Claude Code, as well as the amazing viral phrase "flibbertigibbet".

โ‰๏ธ Question: What is so great about Sub Agents? Everybody has agents.

๐Ÿง  Answer: That's a transcript of my inner monologue 24 hours ago. Then I decided to see what the fuss was about. I wanted to make some small, simple tools that I could provide to the AI models that I get to boss around, but now that MCP is all the rage, I didn't know how to do it with the client I was using without writing an MCP server. Well, I'm very lazy, and I didn't feel like writing another MCP server at the time. So I just wrote a short README:

The purpose of this Model Context Protocol (MCP) server is to allow users to write simple functions in whatever programming language is installed on their computer, expose them to the server along with specification of what tool functionality is expected by this function, and then the server will register that tool for itself and make it available to the client.

Then I invoked the /agents command, and I used Claude to help me create a Sub Agent with super expert knowledge about MCP, and I gave it this description:

Use this agent when you need assistance with Model Context Protocol (MCP) development,
including building clients and servers, debugging MCP applications,
understanding protocol specifications, or implementing MCP solutions using
Python or TypeScript SDKs. This includes tasks like creating new MCP servers,
integrating MCP clients into applications, troubleshooting connection issues,
optimizing MCP implementations, or answering questions about MCP architecture and best practices.

So then Claude Code was like, "...That's great, I'm a huge fan, let me just make a few revisions":

Use this agent when you need assistance with Model Context Protocol (MCP) development,
including building clients and servers, debugging MCP applications, understanding
protocol specifications, or implementing MCP solutions using Python or TypeScript SDKs.
This includes tasks like creating new MCP servers, integrating MCP clients into
applications, troubleshooting connection issues, optimizing MCP implementations, or
answering questions about MCP architecture and best practices.

Examples:

- <example>
  Context: User needs help building an MCP server
  user: "I need to create an MCP server that exposes database queries as tools"
  assistant: "I'll use the mcp-protocol-expert agent to help you build an MCP server
  with database query capabilities"
  <commentary>
  Since the user needs to build an MCP server, use the mcp-protocol-expert agent to
  provide expert guidance on implementation.
  </commentary>
  </example>
- <example>
  Context: User is debugging MCP connection issues
  user: "My MCP client can't connect to the server, getting timeout errors"
  assistant: "Let me use the mcp-protocol-expert agent to help diagnose and fix your
  MCP connection issues"
  <commentary>
  The user is experiencing MCP-specific connection problems, so the mcp-protocol-expert
  agent should be used for troubleshooting.
  </commentary>
  </example>
- <example>
  Context: User wants to understand MCP protocol details
  user: "How does the MCP handle tool invocation and response streaming?"
  assistant: "I'll use the mcp-protocol-expert agent to explain the MCP tool invocation
  and response streaming mechanisms"
  <commentary>
  This is a question about MCP protocol specifics, perfect for the mcp-protocol-expert
  agent.
  </commentary>
  </example>

Tools: All tools

Color: mcp-protocol-expert

System prompt:

You are an elite Model Context Protocol (MCP) expert with comprehensive knowledge of
the protocol's architecture, implementation patterns, and best practices. You possess
deep expertise in building both MCP clients and servers, with mastery of the
official Python and TypeScript SDKs.

Your core competencies include:

Protocol Expertise: You have intimate knowledge of the MCP specification, including
message formats, transport mechanisms, capability negotiation, tool definitions,
resource management, and the complete lifecycle of MCP connections. You understand
the nuances of JSON-RPC 2.0 as it applies to MCP, error handling strategies, and
performance optimization techniques.

Implementation Mastery: You excel at architecting and building MCP solutions using
both the Python SDK and TypeScript SDK. You know the idiomatic patterns for each
language, common pitfalls to avoid, and how to leverage SDK features for rapid
development. You can guide users through creating servers that expose tools and
resources, building clients that consume MCP services, and implementing custom
transports when needed.

Debugging and Troubleshooting: You approach MCP issues systematically, understanding
common failure modes like connection timeouts, protocol mismatches, authentication
problems, and message serialization errors. You can analyze debug logs, trace message
flows, and identify root causes quickly.

Best Practices: You advocate for and implement MCP best practices including proper
error handling, graceful degradation, security considerations, versioning strategies,
and performance optimization. You understand how to structure MCP servers for
maintainability and how to design robust client integrations.

When assisting users, you will:

1. Assess Requirements: First understand what the user is trying to achieve with MCP.
   Are they building a server to expose functionality? Creating a client to consume
   services? Debugging an existing implementation? This context shapes your approach.
2. Provide Targeted Solutions: Offer code examples in the appropriate SDK (Python or
   TypeScript) that demonstrate correct implementation patterns. Your code should be
   production-ready, including proper error handling, type safety, and documentation.
3. Explain Protocol Concepts: When users need understanding, explain MCP concepts
   clearly with practical examples. Connect abstract protocol details to concrete
   implementation scenarios.
4. Debug Methodically: For troubleshooting, gather relevant information (error
   messages, logs, configuration), form hypotheses about the issue, and guide users
   through systematic debugging steps. Always consider both client and server
   perspectives.
5. Suggest Optimizations: Proactively identify opportunities to improve MCP
   implementations, whether through better error handling, more efficient message
   patterns, or architectural improvements.
6. Stay Current: Reference the latest MCP specification and SDK versions, noting any
   recent changes or deprecations that might affect implementations.

Your responses should be technically precise while remaining accessible. Include code
snippets that users can directly apply, but always explain the reasoning behind your
recommendations. When multiple approaches exist, present trade-offs clearly to help
users make informed decisions.

Remember that MCP is often used to bridge AI systems with external tools and data
sources, so consider the broader integration context when providing guidance. Your
goal is to empower users to build robust, efficient, and maintainable MCP solutions
that solve real problems.

So then I got down to business and did a bit of stretching and typed:

Please use the mcp-protocol-agent to help me build this MCP server that is described in the @README.md. I would like to see what it plans to implement, and then let it handle the implementation itself, since it is a small, simple server.

After that, I took a nap, had a sandwich, took my cat for a walk, and about an hour later it was finishing up the documentation for my server, diy-tools-mcp which I tested using the Inspector, and it works like a charm.

And then I just kind of sat in my chair in a daze, pretty exhausted after watching Claude do all that hard work, and then I got up and decided to make this repo (well, I guess I sat back down before I did that, since I don't use my computer standing up, and standing desks are pretty expensive).

โ‰๏ธ Question: Isn't this just a shameless attempt to get attention after the tremendous success of the awesome-claude-code repo and all of the fame and money that it's brought you?

๐Ÿง  Answer: Hehe, I'm sorry WHAT DID YOU SAY?! This interview is over.


Thanks to TheCookingSenpai for contributing the initial set of resources!


Awesome Claude Code Agents


Agents

backend-typescript-architect by TheCookingSenpai A senior backend TypeScript architect specializing in Bun runtime, API design, database optimization, and scalable server architecture. Delivers production-ready code with comprehensive error handling, TypeScript typing, and clean architecture patterns.

python-backend-engineer by TheCookingSenpai Expert Python backend developer proficient in modern tools like uv, specializing in FastAPI, Django, and async programming. Creates scalable backend systems with proper testing, type hints, and follows SOLID principles for maintainable architectures.

senior-code-reviewer by TheCookingSenpai Fullstack code reviewer with 15+ years of experience analyzing code for security vulnerabilities, performance bottlenecks, and architectural decisions. Provides comprehensive reviews with actionable feedback prioritized by severity.

ui-engineer by TheCookingSenpai Frontend specialist in modern JavaScript/TypeScript frameworks, responsive design, and component-driven architecture. Creates clean, accessible, and performant UI components that integrate seamlessly with any backend system.

Agent Frameworks

Code By Agents by Bary Huange An orchestration framework for designing and coordinating Claude Code agents, with a very clean interface, and sophisticated orchestration logic. (I think this might possibly involve a hand-rolled agent framework, given the committerdates, so that's pretty amazing.)

awesome-claude-agents by Rahul Rane A slightly similar repository ๐Ÿ˜‰ to the present one with a growing list of awesome agents for Claude Code.

Claude Code Subagents Collection by Seth Hobson. A pretty impressive resource with dozens of awesome-looking agents that I haven't even had time to explore yet, but clearly this gentleman has put a lot of work into this feature that's been out for one freaking day at the time of writing!

Contributing


This repo is just getting started (but, you know, like, I called it now and everything), but please feel free to start sending in your submissions! And please be sure to share (a) the prompt you used (if you had Claude's help); (b) the actual agent file; (c) something that you have built or done with the agent.

And, finally, if you're one of the people mentioned above, and you want to bear the heroic burden of maintaining an awesome-list, just reach out to me (a.k.a. Him) and I'm sure we can find a suitable venue for a code golf competition or something to decide who is truly the awesome. ๐Ÿ˜œ Probably, by the time I finish writing this, there will be four to ten more repos like it, and I'm happy to just bask in the awesomeness of my own list.

Happy coding! (...wait, no one does that anymore...)

Have a great day!

Agent Kit
7 agents
iannuttall/claude-agents
This repository contains custom agents for Claude Code.
leamas agent@claude-agents
Copied!
Repository

Claude Code Custom Agents


This repository contains custom agents for Claude Code.

Installation


For Project-Specific Use
Copy the agents to your project's .claude/agents/ directory:
mkdir -p .claude/agents
cp agents/*.md .claude/agents/
For Global Use (All Projects)
Copy the agents to your user's Claude directory:
mkdir -p ~/.claude/agents
cp agents/*.md ~/.claude/agents/

Available Agents


  • code-refactorer: Code refactoring assistance
  • content-writer: Content writing assistance
  • frontend-designer: Frontend design assistance
  • prd-writer: Product requirement document writing
  • project-task-planner: Project planning and task breakdown
  • security-auditor: Security audit assistance
  • vibe-coding-coach: Coding guidance and coaching

Usage


Once installed, Claude Code will automatically detect and use these agents when appropriate for your tasks.

Agent Kit
1 agents
lst97/claude-code-sub-agents
A comprehensive collection of 35 specialized AI subagents for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), designed to enhance devel...
leamas agent@claude-code-sub-agents
Copied!
Repository

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
๐Ÿ” Quality & Testing
  • 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
  1. Use Standard Format
  • Include proper frontmatter with name, description, and optional tools
  • Follow the structured format outlined in the Subagent Format section
  1. Write Clear Descriptions
  • Description should clearly indicate when the agent should be automatically invoked
  • Include specific keywords and contexts that trigger the agent
  1. Define Specialized Behavior
  • Include detailed system prompt with role, expertise, and capabilities
  • Define interaction patterns with other agents
  • Specify decision-making frameworks and priorities
  1. 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! ๐Ÿš€

Agent Kit
137 agents
0xfurai/claude-code-subagents
A comprehensive collection of specialized AI subagents for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), designed to enhance developm...
leamas agent@claude-code-subagents
Copied!
Repository

Claude Code Subagents Collection


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

Overview


This repository contains 100+ 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


Programming Languages & Frameworks
  • python-expert - Master advanced Python features, optimize performance, and ensure code quality
  • javascript-expert - Modern JavaScript development with ES6+, async patterns, and Node.js APIs
  • typescript-expert - TypeScript development with type safety, interfaces, and advanced features
  • java-expert - Java development with Spring Boot, enterprise patterns, and JVM optimization
  • go-expert - Go development with concurrency, channels, and idiomatic patterns
  • rust-expert - Rust development with memory safety, ownership patterns, and systems programming
  • c-expert - C programming with memory management, system calls, and performance optimization
  • cpp-expert - Modern C++ with STL, templates, RAII, and smart pointers
  • php-expert - PHP development with modern features, Laravel, and performance optimization
  • ruby-expert - Ruby development with Rails, metaprogramming, and elegant syntax
  • scala-expert - Scala development with functional programming, Akka, and JVM integration
  • kotlin-expert - Kotlin development with Android, Spring Boot, and coroutines
  • swift-expert - Swift development with iOS, macOS, and Apple ecosystem
  • dart-expert - Dart development with Flutter, mobile apps, and cross-platform solutions
  • lua-expert - Lua development with game scripting, embedded systems, and performance
  • haskell-expert - Haskell development with functional programming, monads, and type theory
  • ocaml-expert - OCaml development with functional programming and systems programming
  • perl-expert - Perl development with text processing, system administration, and automation
Web Development & Frontend
  • react-expert - React development with hooks, state management, and component architecture
  • vue-expert - Vue.js development with composition API, state management, and SFC
  • angular-expert - Angular development with TypeScript, RxJS, and enterprise patterns
  • svelte-expert - Svelte development with reactive components and minimal boilerplate
  • solidjs-expert - SolidJS development with fine-grained reactivity and performance
  • nextjs-expert - Next.js development with SSR, SSG, and React optimization
  • remix-expert - Remix development with nested routing, data loading, and web standards
  • nestjs-expert - NestJS development with decorators, modules, and enterprise patterns
  • express-expert - Express.js development with middleware, routing, and Node.js APIs
  • fastapi-expert - FastAPI development with async/await, Pydantic, and OpenAPI
  • flask-expert - Flask development with blueprints, extensions, and Python web patterns
  • rails-expert - Ruby on Rails development with MVC, ActiveRecord, and conventions
  • laravel-expert - Laravel development with Eloquent, Blade, and PHP web patterns
  • gin-expert - Gin framework development with Go web APIs and middleware
  • fiber-expert - Fiber framework development with Go web development and performance
  • aspnet-core-expert - ASP.NET Core development with C# web APIs and .NET ecosystem
  • actix-expert - Actix-web development with Rust web frameworks and async patterns
  • phoenix-expert - Phoenix framework development with Elixir and real-time features
  • html-expert - HTML development with semantic markup, accessibility, and web standards
  • css-expert - CSS development with modern layouts, animations, and responsive design
  • tailwind-expert - Tailwind CSS development with utility-first design and customization
Mobile & Desktop Development
  • react-native-expert - React Native development with cross-platform mobile apps
  • flutter-expert - Flutter development with Dart and cross-platform mobile apps
  • ios-expert - iOS development with Swift, UIKit, and Apple ecosystem
  • swiftui-expert - SwiftUI development with declarative UI and modern iOS patterns
  • android-expert - Android development with Kotlin, Jetpack Compose, and Material Design
  • electron-expert - Electron development with cross-platform desktop apps
  • tauri-expert - Tauri development with Rust backend and web frontend
  • expo-expert - Expo development with React Native and managed workflow
Databases & Data Management
  • sql-expert - SQL development with complex queries, optimization, and database design
  • postgres-expert - PostgreSQL development with advanced features, extensions, and optimization
  • mysql-expert - MySQL development with InnoDB, replication, and performance tuning
  • sqlite-expert - SQLite development with embedded databases and mobile apps
  • mariadb-expert - MariaDB development with MySQL compatibility and enterprise features
  • mssql-expert - Microsoft SQL Server development with T-SQL and enterprise features
  • mongodb-expert - MongoDB development with NoSQL patterns, aggregation, and sharding
  • redis-expert - Redis development with caching, pub/sub, and data structures
  • neo4j-expert - Neo4j development with graph databases and Cypher queries
  • cassandra-expert - Cassandra development with distributed databases and CQL
  • cockroachdb-expert - CockroachDB development with distributed SQL and consistency
  • dynamodb-expert - DynamoDB development with NoSQL patterns and AWS integration
  • elasticsearch-expert - Elasticsearch development with search, analytics, and ELK stack
  • opensearch-expert - OpenSearch development with search and analytics
  • vector-db-expert - Vector database development with embeddings and similarity search
ORMs & Query Builders
  • prisma-expert - Prisma development with type-safe database access and migrations
  • sequelize-expert - Sequelize development with Node.js ORM and database management
  • typeorm-expert - TypeORM development with TypeScript ORM and decorators
  • knex-expert - Knex.js development with query builder and migrations
  • mongoose-expert - Mongoose development with MongoDB ODM and schemas
Infrastructure & DevOps
  • docker-expert - Docker development with containerization, images, and orchestration
  • kubernetes-expert - Kubernetes development with container orchestration and scaling
  • terraform-expert - Terraform development with infrastructure as code and cloud provisioning
  • pulumi-expert - Pulumi development with infrastructure as code and multi-language support
  • jenkins-expert - Jenkins development with CI/CD pipelines and automation
  • github-actions-expert - GitHub Actions development with workflows and automation
  • gitlab-ci-expert - GitLab CI development with pipelines and DevOps automation
  • circleci-expert - CircleCI development with continuous integration and deployment
  • ansible-expert - Ansible development with configuration management and automation
Cloud & Services
  • aws-expert - AWS development with cloud services, Lambda, and infrastructure
  • azure-expert - Azure development with cloud services and Microsoft ecosystem
  • gcp-expert - Google Cloud Platform development with cloud services and APIs
  • stripe-expert - Stripe development with payment processing and webhooks
  • braintree-expert - Braintree development with payment processing and PayPal integration
  • sns-expert - AWS SNS development with messaging and notifications
  • sqs-expert - AWS SQS development with message queuing and distributed systems
  • openai-api-expert - OpenAI API development with GPT models and AI integration
  • auth0-expert - Auth0 development with authentication and authorization
  • keycloak-expert - Keycloak development with identity and access management
Messaging & Communication
  • rabbitmq-expert - RabbitMQ development with message queuing and AMQP
  • kafka-expert - Apache Kafka development with event streaming and distributed systems
  • nats-expert - NATS development with lightweight messaging and pub/sub
  • mqtt-expert - MQTT development with IoT messaging and lightweight protocols
  • websocket-expert - WebSocket development with real-time communication
  • grpc-expert - gRPC development with high-performance RPC and protocol buffers
  • graphql-expert - GraphQL development with schemas, resolvers, and federation
  • rest-expert - REST API development with HTTP standards and best practices
  • openapi-expert - OpenAPI development with API documentation and specifications
Testing & Quality Assurance
  • jest-expert - Jest development with JavaScript testing and mocking
  • vitest-expert - Vitest development with Vite-based testing and modern tooling
  • mocha-expert - Mocha development with JavaScript testing and flexible frameworks
  • jasmine-expert - Jasmine development with BDD testing and behavior-driven development
  • ava-expert - AVA development with concurrent testing and modern JavaScript
  • cypress-expert - Cypress development with end-to-end testing and web automation
  • playwright-expert - Playwright development with cross-browser testing and automation
  • selenium-expert - Selenium development with web automation and browser testing
  • testcafe-expert - TestCafe development with end-to-end testing and modern web apps
  • puppeteer-expert - Puppeteer development with Chrome automation and headless browsing
Data Science & Machine Learning
  • pandas-expert - Pandas development with data manipulation and analysis
  • numpy-expert - NumPy development with numerical computing and array operations
  • scikit-learn-expert - Scikit-learn development with machine learning and data science
  • tensorflow-expert - TensorFlow development with deep learning and neural networks
  • pytorch-expert - PyTorch development with deep learning and dynamic computation graphs
  • langchain-expert - LangChain development with LLM applications and RAG systems
Monitoring & Observability
  • prometheus-expert - Prometheus development with metrics collection and monitoring
  • grafana-expert - Grafana development with visualization and dashboard creation
  • loki-expert - Loki development with log aggregation and querying
  • elk-expert - ELK stack development with Elasticsearch, Logstash, and Kibana
  • opentelemetry-expert - OpenTelemetry development with observability and tracing
Security & Authentication
  • owasp-top10-expert - OWASP Top 10 expert for web application security
  • jwt-expert - JWT development with token-based authentication and security
  • oauth-oidc-expert - OAuth 2.0 and OpenID Connect development with identity protocols
Build Tools & Bundlers
  • webpack-expert - Webpack development with module bundling and optimization
  • rollup-expert - Rollup development with ES module bundling and tree shaking
  • vite-expert - Vite development with fast build tooling and modern frontend development
Database Migration & Schema Management
  • flyway-expert - Flyway development with database migrations and version control
  • liquibase-expert - Liquibase development with database change management
  • prisma-expert - Prisma development with database migrations and schema management
Background Jobs & Task Queues
  • celery-expert - Celery development with distributed task queues and Python
  • sidekiq-expert - Sidekiq development with background job processing and Ruby
  • bullmq-expert - BullMQ development with Redis-based job queues and Node.js
Runtime & Package Managers
  • nodejs-expert - Node.js development with runtime, packages, and ecosystem
  • bun-expert - Bun development with fast JavaScript runtime and package manager
  • deno-expert - Deno development with secure JavaScript runtime and TypeScript

Installation


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

cd ~/.claude
git clone https://github.com/your-username/claude-code-subagents.git

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 python-expert to optimize this algorithm"
"Have the security-auditor scan for vulnerabilities"
"Get the react-expert to refactor this component"

Contributing


To add a new subagent:
  1. Create a new .md file in the agents/ directory
  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
  5. Follow the established format with focus areas, approach, quality checklist, and output

License


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

Learn More


Agent Kit
12 agents
zhsama/claude-sub-agent
A comprehensive AI-driven development workflow system built on Claude Code's Sub-Agents feature. This system transforms project ideas into production-...
leamas agent@claude-sub-agent
Copied!
Repository

Claude Sub-Agent Spec Workflow System


A comprehensive AI-driven development workflow system built on Claude Code's Sub-Agents feature. This system transforms project ideas into production-ready code through specialized AI agents working in coordinated phases.

Table of Contents


Overview


The Spec Workflow System leverages Claude Code's Sub-Agents capability to create a multi-agent development pipeline. Each agent is a specialized expert that handles specific aspects of the software development lifecycle, from requirements analysis to final validation.

Key Features
  • Automated Workflow: Complete development pipeline from idea to production code
  • Specialized Expertise: Each agent focuses on their domain of expertise
  • Quality Gates: Automated checkpoints ensure quality standards
  • Flexible Integration: Works with existing specialized agents
  • Comprehensive Documentation: Every phase produces detailed artifacts
Benefits
  • 10x faster development from concept to code
  • Consistent quality through automated validation
  • Comprehensive documentation generated automatically
  • Reduced errors through systematic processes
  • Better collaboration through clear workflows

System Architecture


graph TD
    A[Project Idea] --> B[spec-orchestrator]
    B --> C[Planning Phase]
    C --> D[spec-analyst<br/>Requirements]
    D --> E[spec-architect<br/>System Design]
    E --> F[spec-planner<br/>Task Breakdown]
    
    F --> G{Quality Gate 1}
    G -->|Pass| H[Development Phase]
    G -->|Fail| D
    
    H --> I[spec-developer<br/>Implementation]
    I --> J[spec-tester<br/>Testing]
    
    J --> K{Quality Gate 2}
    K -->|Pass| L[Validation Phase]
    K -->|Fail| I
    
    L --> M[spec-reviewer<br/>Code Review]
    M --> N[spec-validator<br/>Final Check]
    
    N --> O{Quality Gate 3}
    O -->|Pass| P[Production Ready]
    O -->|Fail| Q[Feedback Loop]
    
    style B fill:#1a73e8,color:#fff
    style G fill:#f9ab00,color:#fff
    style K fill:#f9ab00,color:#fff
    style O fill:#f9ab00,color:#fff
    style P fill:#34a853,color:#fff

Installation


Prerequisites
  • Claude Code (latest version)
  • Project directory initialized
  • Basic understanding of AI-assisted development
Setup Steps
  1. Download the agents
# Option 1: Clone the repository
   git clone https://github.com/zhsama/claude-sub-agent.git
   cd claude-sub-agent
   
   # Option 2: Download specific agents you need
   # Individual agent files are available in the agents/ directory
   ```

2. **Copy agents and slash command to your project's Claude Code directory**

   ```bash
   # Create .claude directory structure in your project
   mkdir -p .claude/agents .claude/commands
   
   # Copy agents from this repository
   cp agents/* .claude/agents/
   
   # Copy slash command
   cp commands/agent-workflow.md .claude/commands/
   ```

3. **Verify installation**

   Your project structure should look like this:

   ```text
   your-project/
   โ”œโ”€โ”€ .claude/
   โ”‚   โ”œโ”€โ”€ commands/
   โ”‚   โ”‚   โ””โ”€โ”€ agent-workflow.md   # Slash command
   โ”‚   โ””โ”€โ”€ agents/
   โ”‚       โ”œโ”€โ”€ spec-analyst.md
   โ”‚       โ”œโ”€โ”€ spec-architect.md
   โ”‚       โ”œโ”€โ”€ spec-developer.md
   โ”‚       โ”œโ”€โ”€ spec-orchestrator.md
   โ”‚       โ”œโ”€โ”€ spec-planner.md
   โ”‚       โ”œโ”€โ”€ spec-reviewer.md
   โ”‚       โ”œโ”€โ”€ spec-tester.md
   โ”‚       โ”œโ”€โ”€ spec-validator.md
   โ”‚       โ””โ”€โ”€ ... (other agents)
   โ””โ”€โ”€ ... (your project files)
   ```

## Quick Start

### Basic Usage
bash

Start a new project workflow


Ask Claude: "Use the spec-orchestrator agent to create a todo list web application"

The orchestrator will automatically:


1. Analyze requirements


2. Design architecture


3. Plan tasks


4. Implement code


5. Write tests


6. Review and validate


### Simple Example
markdown You: Use spec-orchestrator to create a personal blog platform

Claude (spec-orchestrator): Starting workflow for personal blog platform...

[Planning Phase - 45 minutes] โœ“ Requirements analyzed โœ“ Architecture designed โœ“ Tasks planned โœ“ Quality Gate 1: PASSED (96/100)

[Development Phase - 2 hours] โœ“ 15 tasks implemented โœ“ Tests written โœ“ Quality Gate 2: PASSED (88/100)

[Validation Phase - 30 minutes] โœ“ Code reviewed โœ“ Final validation complete โœ“ Quality Gate 3: PASSED (91/100)

Project complete! Generated artifacts:
  • requirements.md
  • architecture.md
  • Source code (15 files)
  • Test suites (85% coverage)
  • Documentation
## Slash Command Usage

For the quickest way to start a complete workflow, use our custom slash command:

### Basic Usage
bash /agent-workflow "Create a task management web application with user authentication and real-time updates"
### Advanced Usage
bash

High-quality enterprise project


/agent-workflow "Develop a CRM system with customer management and analytics" --quality=95

Quick prototype development


/agent-workflow "Simple personal blog website" --quality=75 --skip-agent=spec-tester

From existing requirements


/agent-workflow "Mobile app based on existing requirements" --skip-agent=spec-analyst

Specific phases only


/agent-workflow "Microservices e-commerce platform" --phase=planning
### Command Options

- `--quality=[75-95]`: Set quality gate threshold
- `--skip-agent=[agent-name]`: Skip specific agents
- `--phase=[planning|development|validation|all]`: Run specific phases
- `--output-dir=[path]`: Specify output directory
- `--language=[zh|en]`: Documentation language

**๐Ÿ“– For complete slash command documentation, see [commands/agent-workflow.md](./commands/agent-workflow.md)**

## How It Works

### 1. Claude Code Sub-Agents Integration

According to Claude Code's documentation, sub-agents work by:

- Operating in isolated context windows
- Preventing pollution of the main conversation
- Allowing specialized, focused interactions
- Being automatically selected based on task context

Our system leverages these features by creating specialized agents for each development phase.

### 2. Workflow Phases

#### Planning Phase

1. **spec-analyst**: Analyzes requirements and creates user stories
2. **spec-architect**: Designs system architecture
3. **spec-planner**: Breaks down work into tasks
4. **Quality Gate 1**: Validates planning completeness

#### Development Phase

1. **spec-developer**: Implements code based on tasks
2. **spec-tester**: Writes comprehensive tests
3. **Quality Gate 2**: Validates code quality

#### Validation Phase

1. **spec-reviewer**: Reviews code for best practices
2. **spec-validator**: Final production readiness check
3. **Quality Gate 3**: Ensures deployment readiness

### 3. Agent Communication

Agents communicate through structured artifacts:

- Each agent produces specific documents
- Next agent uses previous outputs as input
- Orchestrator manages the flow
- Quality gates ensure consistency

## Agent Reference

### Workflow Agents

| Agent | Purpose | Inputs | Outputs |
|-------|---------|--------|---------|
| spec-orchestrator | Workflow coordination | Project description | Status reports, routing |
| spec-analyst | Requirements analysis | User description | requirements.md, user-stories.md |
| spec-architect | System design | Requirements | architecture.md, api-spec.md |
| spec-planner | Task planning | Architecture | tasks.md, test-plan.md |
| spec-developer | Implementation | Tasks | Source code, unit tests |
| spec-tester | Testing | Code | Test suites, coverage reports |
| spec-reviewer | Code review | Code | Review report, improvements |
| spec-validator | Final validation | All artifacts | Validation report, quality score |

### Specialist Agents

| Agent | Domain | Integration Point |
|-------|--------|-------------------|
| ui-ux-master | UI/UX Design | Planning phase |
| senior-backend-architect | Backend Systems | Architecture phase |
| senior-frontend-architect | Frontend Systems | Development phase |
| refactor-agent | Code Quality | Any phase |

## Usage Examples

### Example 1: Enterprise Application
bash

High-quality enterprise system


Use spec-orchestrator with quality threshold 95: Create an enterprise CRM system with:
  • Multi-tenancy support
  • Role-based access control
  • RESTful API
  • Real-time dashboard
  • Audit logging
### Example 2: Quick Prototype
bash

Fast prototype with lower quality threshold


Use spec-orchestrator with quality threshold 75 and skip analyst: Create a simple landing page with email capture
### Example 3: Existing Requirements
bash

Start from existing documentation


Use spec-orchestrator starting from requirements: Load requirements from ./docs/requirements.md and continue workflow
### Example 4: Specific Phase Only
bash

Run only validation on existing code


Use spec-orchestrator for validation phase only: Validate the project in ./my-app/
## Quality Gates

### Gate 1: Planning Quality (95% threshold)

- Requirements completeness
- Architecture feasibility
- Task breakdown quality
- User story clarity

### Gate 2: Development Quality (80% threshold)

- Test coverage
- Code quality metrics
- Security scan results
- Performance benchmarks

### Gate 3: Production Readiness (85% threshold)

- Overall quality score
- Documentation completeness
- Deployment readiness
- Operational requirements

## Best Practices

### 1. Project Preparation

- Write clear project descriptions
- Include constraints and requirements
- Specify quality expectations
- Provide existing documentation

### 2. Working with Agents

- Let each agent complete their phase
- Review artifacts between phases
- Use feedback loops effectively
- Trust the quality gates

### 3. Customization

- Adjust quality thresholds based on needs
- Skip agents for simpler projects
- Add custom validation criteria
- Integrate with existing workflows

### 4. Performance Optimization

- Enable parallel execution for large projects
- Cache results for iterative development
- Use phase-specific execution
- Monitor resource usage

## Advanced Usage

### Custom Workflows
python

Create custom workflow configuration


workflowconfig = { "qualitythreshold": 90, "skipagents": ["spec-analyst"], # If you have requirements "parallel": True, "customvalidators": ["security-scan", "performance-test"], "outputformat": "markdown" }

Execute with custom config


"Use spec-orchestrator with config: " + json.dumps(workflow
config)
### Integration with CI/CD
yaml

GitHub Actions example


name: AI Workflow Validation on: [pull_request] jobs: validate: runs-on: ubuntu-latest steps:
  • uses: actions/checkout@v3
  • name: Run Spec Validation
run: | # Use Claude Code CLI (if available) claude-code run spec-orchestrator \ --phase validation \ --project-path .
### Extending the System

1. **Add New Agents**
   - Create agent with YAML frontmatter
   - Define clear responsibilities
   - Specify input/output formats
   - Update orchestrator routing

2. **Custom Quality Gates**
   - Define new criteria
   - Set appropriate thresholds
   - Implement validation logic
   - Add to workflow

3. **Domain-Specific Workflows**
   - Create specialized orchestrators
   - Define domain patterns
   - Customize quality criteria
   - Optimize for specific needs

## Troubleshooting

### Common Issues

1. **Agent Not Found**
   - Verify agents are in correct directory
   - Check YAML frontmatter format
   - Ensure proper file permissions

2. **Quality Gate Failures**
   - Review specific criteria that failed
   - Check artifact completeness
   - Allow agents to revise work
   - Consider adjusting thresholds

3. **Workflow Stuck**
   - Check orchestrator status
   - Review last agent output
   - Look for error messages
   - Restart from last checkpoint

### Debug Mode
bash

Enable verbose logging


Use spec-orchestrator with debug mode: Create test project and show all agent interactions ```

Contributing


We welcome contributions! Please:

  1. Follow the existing agent format
  2. Add comprehensive documentation
  3. Include usage examples
  4. Test with the orchestrator
  5. Submit PR with description

License


MIT License - see LICENSE file for details

Acknowledgments


  • Built on Claude Code's Sub-Agents feature
  • Inspired by BMAD methodology
  • Community contributions welcome

For more information, see:

Agent Kit
48 agents
wshobson/agents
A comprehensive collection of specialized AI subagents for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), designed to enhance developm...
leamas agent@wshobson
Copied!
Repository

Claude Code Subagents Collection


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

Overview


This repository contains 48 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


Development & Architecture
  • backend-architect - Design RESTful APIs, microservice boundaries, and database schemas
  • frontend-developer - Build React components, implement responsive layouts, and handle client-side state management
  • ui-ux-designer - Create interface designs, wireframes, and design systems
  • mobile-developer - Develop React Native or Flutter apps with native integrations
  • graphql-architect - Design GraphQL schemas, resolvers, and federation
  • architect-reviewer - Reviews code changes for architectural consistency and patterns
Language Specialists
  • python-pro - Write idiomatic Python code with advanced features and optimizations
  • golang-pro - Write idiomatic Go code with goroutines, channels, and interfaces
  • rust-pro - Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations
  • c-pro - Write efficient C code with proper memory management and system calls
  • cpp-pro - Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms
  • javascript-pro - Master modern JavaScript with ES6+, async patterns, and Node.js APIs
  • php-pro - Write idiomatic PHP code with modern features and performance optimizations
  • ios-developer - Develop native iOS applications with Swift/SwiftUI
  • sql-pro - Write complex SQL queries, optimize execution plans, and design normalized schemas
Infrastructure & Operations
  • devops-troubleshooter - Debug production issues, analyze logs, and fix deployment failures
  • deployment-engineer - Configure CI/CD pipelines, Docker containers, and cloud deployments
  • cloud-architect - Design AWS/Azure/GCP infrastructure and optimize cloud costs
  • database-optimizer - Optimize SQL queries, design efficient indexes, and handle database migrations
  • database-admin - Manage database operations, backups, replication, and monitoring
  • terraform-specialist - Write advanced Terraform modules, manage state files, and implement IaC best practices
  • incident-responder - Handles production incidents with urgency and precision
  • network-engineer - Debug network connectivity, configure load balancers, and analyze traffic patterns
  • dx-optimizer - Developer Experience specialist that improves tooling, setup, and workflows
Quality & Security
  • code-reviewer - Expert code review for quality, security, and maintainability
  • security-auditor - Review code for vulnerabilities and ensure OWASP compliance
  • test-automator - Create comprehensive test suites with unit, integration, and e2e tests
  • performance-engineer - Profile applications, optimize bottlenecks, and implement caching strategies
  • debugger - Debugging specialist for errors, test failures, and unexpected behavior
  • error-detective - Search logs and codebases for error patterns, stack traces, and anomalies
  • search-specialist - Expert web researcher using advanced search techniques and synthesis
Data & AI
  • data-scientist - Data analysis expert for SQL queries, BigQuery operations, and data insights
  • data-engineer - Build ETL pipelines, data warehouses, and streaming architectures
  • ai-engineer - Build LLM applications, RAG systems, and prompt pipelines
  • ml-engineer - Implement ML pipelines, model serving, and feature engineering
  • mlops-engineer - Build ML pipelines, experiment tracking, and model registries
  • prompt-engineer - Optimizes prompts for LLMs and AI systems
Specialized Domains
  • api-documenter - Create OpenAPI/Swagger specs and write developer documentation
  • payment-integration - Integrate Stripe, PayPal, and payment processors
  • quant-analyst - Build financial models, backtest trading strategies, and analyze market data
  • risk-manager - Monitor portfolio risk, R-multiples, and position limits
  • legacy-modernizer - Refactor legacy codebases and implement gradual modernization
  • context-manager - Manages context across multiple agents and long-running tasks
Business & Marketing
  • business-analyst - Analyze metrics, create reports, and track KPIs
  • content-marketer - Write blog posts, social media content, and email newsletters
  • sales-automator - Draft cold emails, follow-ups, and proposal templates
  • customer-support - Handle support tickets, FAQ responses, and customer emails
  • legal-advisor - Draft privacy policies, terms of service, disclaimers, and legal notices

Model Assignments


All 48 subagents are configured with specific Claude models based on task complexity:

๐Ÿš€ Haiku (Fast & Cost-Effective) - 8 agents
Model: haiku
  • data-scientist - SQL queries and data analysis
  • api-documenter - OpenAPI/Swagger documentation
  • business-analyst - Metrics and KPI tracking
  • content-marketer - Blog posts and social media
  • customer-support - Support tickets and FAQs
  • sales-automator - Cold emails and proposals
  • search-specialist - Web research and information gathering
  • legal-advisor - Privacy policies and compliance documents
โšก Sonnet (Balanced Performance) - 29 agents
Model: sonnet Development & Languages:
  • python-pro - Python development with advanced features
  • javascript-pro - Modern JavaScript and Node.js
  • golang-pro - Go concurrency and idiomatic patterns
  • rust-pro - Rust memory safety and systems programming
  • c-pro - C programming and embedded systems
  • cpp-pro - Modern C++ with STL and templates
  • php-pro - Modern PHP with advanced features
  • ios-developer - Native iOS development with Swift/SwiftUI
  • frontend-developer - React components and UI
  • ui-ux-designer - Interface design and wireframes
  • backend-architect - API design and microservices
  • mobile-developer - React Native/Flutter apps
  • sql-pro - Complex SQL optimization
  • graphql-architect - GraphQL schemas and resolvers
Infrastructure & Operations:
  • devops-troubleshooter - Production debugging
  • deployment-engineer - CI/CD pipelines
  • database-optimizer - Query optimization
  • database-admin - Database operations
  • terraform-specialist - Infrastructure as Code
  • network-engineer - Network configuration
  • dx-optimizer - Developer experience
  • data-engineer - ETL pipelines
Quality & Support:
  • test-automator - Test suite creation
  • code-reviewer - Code quality analysis
  • debugger - Error investigation
  • error-detective - Log analysis
  • ml-engineer - ML model deployment
  • legacy-modernizer - Framework migrations
  • payment-integration - Payment processing
๐Ÿง  Opus (Maximum Capability) - 11 agents
Model: opus
  • ai-engineer - LLM applications and RAG systems
  • security-auditor - Vulnerability analysis
  • performance-engineer - Application optimization
  • incident-responder - Production incident handling
  • mlops-engineer - ML infrastructure
  • architect-reviewer - Architectural consistency
  • cloud-architect - Cloud infrastructure design
  • prompt-engineer - LLM prompt optimization
  • context-manager - Multi-agent coordination
  • quant-analyst - Financial modeling
  • risk-manager - Portfolio risk management

Installation


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

cd ~/.claude
git clone https://github.com/wshobson/agents.git

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 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

When to Use Which Agent


๐Ÿ—๏ธ Planning & Architecture
  • backend-architect: API design, database schemas, system architecture
  • frontend-developer: UI/UX planning, component architecture
  • ui-ux-designer: Interface design, wireframes, design systems, user research
  • cloud-architect: Infrastructure design, scalability planning
๐Ÿ”ง Implementation & Development
  • python-pro: Python-specific development tasks
  • golang-pro: Go-specific development tasks
  • rust-pro: Rust-specific development, memory safety, systems programming
  • c-pro: C programming, embedded systems, performance-critical code
  • javascript-pro: Modern JavaScript, async patterns, Node.js/browser code
  • ios-developer: Native iOS development with Swift/SwiftUI
  • sql-pro: Database queries, schema design, query optimization
  • mobile-developer: React Native/Flutter development
๐Ÿ› ๏ธ Operations & Maintenance
  • devops-troubleshooter: Production issues, deployment problems
  • incident-responder: Critical outages requiring immediate response
  • database-optimizer: Query performance, indexing strategies
  • database-admin: Backup strategies, replication, user management, disaster recovery
  • terraform-specialist: Infrastructure as Code, Terraform modules, state management
  • network-engineer: Network connectivity, load balancers, SSL/TLS, DNS debugging
๐Ÿ“Š Analysis & Optimization
  • performance-engineer: Application bottlenecks, optimization
  • security-auditor: Vulnerability scanning, compliance checks
  • data-scientist: Data analysis, insights, reporting
  • mlops-engineer: ML infrastructure, experiment tracking, model registries, pipeline automation
๐Ÿงช Quality Assurance
  • code-reviewer: Code quality, maintainability review
  • test-automator: Test strategy, test suite creation
  • debugger: Bug investigation, error resolution
  • error-detective: Log analysis, error pattern recognition, root cause analysis
  • search-specialist: Deep web research, competitive analysis, fact-checking
๐Ÿ’ผ Business & Strategy
  • business-analyst: KPIs, revenue models, growth projections, investor metrics
  • risk-manager: Portfolio risk, hedging strategies, R-multiples, position sizing
  • content-marketer: SEO content, blog posts, social media, email campaigns
  • sales-automator: Cold emails, follow-ups, proposals, lead nurturing
  • customer-support: Support tickets, FAQs, help documentation, troubleshooting
  • legal-advisor - Draft privacy policies, terms of service, disclaimers, and legal notices

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


Command Kits

Workflow commands and utilities that extend Claude Code's capabilities. Commands can orchestrate multiple agents and automate complex tasks.

Command Kit
6 commands
rizethereum/claude-code-requirements-builder
An intelligent requirements gathering system for Claude Code that progressively builds context through automated discovery, asks simple yes/no questio...
leamas command@claude-code-requirements-builder
Copied!
Repository

Claude Requirements Gathering System


An intelligent requirements gathering system for Claude Code that progressively builds context through automated discovery, asks simple yes/no questions, and generates comprehensive requirements documentation.

๐ŸŽฏ Overview


This system transforms the requirements gathering process by:
  • Codebase-Aware Questions: AI analyzes your code first, then asks informed questions
  • Simple Yes/No Format: All questions are yes/no with smart defaults - just say "idk" to use defaults
  • Two-Phase Questioning: 5 high-level questions for context, then 5 expert questions after code analysis
  • Automated Documentation: Generates comprehensive specs with specific file paths and patterns
  • Product Manager Friendly: No code knowledge required to answer questions

๐Ÿš€ Quick Start


# Start gathering requirements for a new feature
/requirements-start add user profile picture upload

# Check progress and continue
/requirements-status

# View current requirement details
/requirements-current

# List all requirements
/requirements-list

# End current requirement gathering
/requirements-end

# Quick reminder if AI strays off course
/remind

๐Ÿ“ Repository Structure


claude-requirements/
โ”œโ”€โ”€ commands/                     # Claude command definitions
โ”‚   โ”œโ”€โ”€ requirements-start.md    # Begin new requirement
โ”‚   โ”œโ”€โ”€ requirements-status.md   # Check progress (alias: current)
โ”‚   โ”œโ”€โ”€ requirements-current.md  # View active requirement
โ”‚   โ”œโ”€โ”€ requirements-end.md      # Finalize requirement
โ”‚   โ”œโ”€โ”€ requirements-list.md     # List all requirements
โ”‚   โ””โ”€โ”€ requirements-remind.md   # Remind AI of rules
โ”‚
โ”œโ”€โ”€ requirements/                 # Requirement documentation storage
โ”‚   โ”œโ”€โ”€ .current-requirement     # Tracks active requirement
โ”‚   โ”œโ”€โ”€ index.md                 # Summary of all requirements
โ”‚   โ””โ”€โ”€ YYYY-MM-DD-HHMM-name/   # Individual requirement folders
โ”‚       โ”œโ”€โ”€ metadata.json        # Status and progress tracking
โ”‚       โ”œโ”€โ”€ 00-initial-request.md    # User's original request
โ”‚       โ”œโ”€โ”€ 01-discovery-questions.md # 5 context questions
โ”‚       โ”œโ”€โ”€ 02-discovery-answers.md   # User's answers
โ”‚       โ”œโ”€โ”€ 03-context-findings.md    # AI's code analysis
โ”‚       โ”œโ”€โ”€ 04-detail-questions.md    # 5 expert questions
โ”‚       โ”œโ”€โ”€ 05-detail-answers.md      # User's detailed answers
โ”‚       โ””โ”€โ”€ 06-requirements-spec.md   # Final requirements
โ”‚
โ””โ”€โ”€ examples/                     # Example requirements

๐Ÿ”„ How It Works


Phase 1: Initial Setup & Codebase Analysis
User: /requirements-start add export functionality to reports
AI analyzes the entire codebase structure to understand the architecture, tech stack, and patterns.
Phase 2: Context Discovery Questions
The AI asks 5 yes/no questions to understand the problem space:
Q1: Will users interact with this feature through a visual interface?
(Default if unknown: YES - most features have UI components)

User: yes

Q2: Does this feature need to work on mobile devices?
(Default if unknown: YES - mobile-first is standard)

User: idk
AI: โœ“ Using default: YES

[Continues through all 5 questions before recording answers]
Phase 3: Targeted Context Gathering (Autonomous)
AI autonomously:
  • Searches for specific files based on discovery answers
  • Reads relevant code sections
  • Analyzes similar features in detail
  • Documents technical constraints and patterns
Phase 4: Expert Requirements Questions
With deep context, asks 5 detailed yes/no questions:
Q1: Should we use the existing ExportService at services/ExportService.ts?
(Default if unknown: YES - maintains architectural consistency)

User: yes

Q2: Will PDF exports need custom formatting beyond the standard template?
(Default if unknown: NO - standard template covers most use cases)

User: no

[Continues through all 5 questions before recording answers]
Phase 5: Requirements Documentation
Generates comprehensive spec with:
  • Problem statement and solution overview
  • Functional requirements from all 10 answers
  • Technical requirements with specific file paths
  • Implementation patterns to follow
  • Acceptance criteria

๐Ÿ“‹ Command Reference


/requirements-start [description]
Begins gathering requirements for a new feature or change. Example:
/requirements-start implement dark mode toggle
/requirements-status or /requirements-current
Shows current requirement progress and continues gathering. Output:
๐Ÿ“‹ Active Requirement: dark-mode-toggle
Phase: Discovery Questions
Progress: 3/5 questions answered

Next: Q4: Should this sync across devices?
/requirements-end
Finalizes current requirement, even if incomplete. Options:
  1. Generate spec with current info
  2. Mark incomplete for later
  3. Cancel and delete
/requirements-list
Shows all requirements with their status. Output:
โœ… COMPLETE: dark-mode-toggle (Ready for implementation)
๐Ÿ”ด ACTIVE: user-notifications (Discovery 3/5)
โš ๏ธ INCOMPLETE: data-export (Paused 3 days ago)
/remind or /requirements-remind
Reminds AI to follow requirements gathering rules. Use when AI:
  • Asks open-ended questions
  • Starts implementing code
  • Asks multiple questions at once

๐ŸŽฏ Features


Smart Defaults
Every question includes an intelligent default based on:
  • Best practices
  • Codebase patterns
  • Context discovered
Progressive Questioning
  • Phase 1: Analyzes codebase structure first
  • Phase 2: 5 high-level questions for product managers
  • Phase 3: Autonomous deep dive into relevant code
  • Phase 4: 5 expert questions based on code understanding
Automatic File Management
  • All files created automatically
  • Progress tracked between sessions
  • Can resume anytime
Integration Ready
  • Links to development sessions
  • References PRs and commits
  • Searchable requirement history

๐Ÿ’ก Best Practices


For Users
  1. Be Specific: Clear initial descriptions help AI ask better questions
  2. Use Defaults: "idk" is perfectly fine - defaults are well-reasoned
  3. Stay Focused: Use /remind if AI goes off track
  4. Complete When Ready: Don't feel obligated to answer every question
For Requirements
  1. One Feature at a Time: Keep requirements focused
  2. Think Implementation: Consider how another AI will use this
  3. Document Decisions: The "why" is as important as the "what"
  4. Link Everything: Connect requirements to sessions and PRs

๐Ÿ”ง Installation


  1. Clone this repository:
git clone https://github.com/rizethereum/claude-code-requirements-builder.git
  1. Copy the commands to your project:
cp -r commands ~/.claude/commands/
# OR for project-specific
cp -r commands /your/project/.claude/commands/
  1. Create requirements directory:
mkdir -p requirements
touch requirements/.current-requirement
  1. Add to .gitignore if needed:
requirements/

๐Ÿ“š Examples


Feature Development
/requirements-start add user avatar upload
# AI analyzes codebase structure
# Answer 5 yes/no questions about the feature
# AI autonomously researches relevant code
# Answer 5 expert yes/no questions
# Get comprehensive requirements doc with file paths
Bug Fix Requirements
/requirements-start fix dashboard performance issues
# Answer questions about scope
# AI identifies problematic components
# Answer questions about acceptable solutions
# Get targeted fix requirements
UI Enhancement
/requirements-start improve mobile navigation experience
# Answer questions about current issues
# AI analyzes existing navigation
# Answer questions about desired behavior
# Get detailed UI requirements

๐Ÿค Contributing


  1. Fork the repository
  2. Create your feature branch
  3. Add new commands or improve existing ones
  4. Submit a pull request
Ideas for Contribution
  • Add requirement templates for common features
  • Create requirement validation commands
  • Build requirement-to-implementation tracking
  • Add multi-language question support

๐Ÿ“„ License


MIT License - Feel free to use and modify for your projects.

๐Ÿ™ Acknowledgments


Inspired by @iannuttall's claude-sessions project, which pioneered the concept of structured session management for Claude Code.


Remember: Good requirements today prevent confusion tomorrow!

Command Kit
1 commands
zhsama/claude-sub-agent
A comprehensive AI-driven development workflow system built on Claude Code's Sub-Agents feature. This system transforms project ideas into production-...
leamas command@claude-sub-agent
Copied!
Repository

Claude Sub-Agent Spec Workflow System


A comprehensive AI-driven development workflow system built on Claude Code's Sub-Agents feature. This system transforms project ideas into production-ready code through specialized AI agents working in coordinated phases.

Table of Contents


Overview


The Spec Workflow System leverages Claude Code's Sub-Agents capability to create a multi-agent development pipeline. Each agent is a specialized expert that handles specific aspects of the software development lifecycle, from requirements analysis to final validation.

Key Features
  • Automated Workflow: Complete development pipeline from idea to production code
  • Specialized Expertise: Each agent focuses on their domain of expertise
  • Quality Gates: Automated checkpoints ensure quality standards
  • Flexible Integration: Works with existing specialized agents
  • Comprehensive Documentation: Every phase produces detailed artifacts
Benefits
  • 10x faster development from concept to code
  • Consistent quality through automated validation
  • Comprehensive documentation generated automatically
  • Reduced errors through systematic processes
  • Better collaboration through clear workflows

System Architecture


graph TD
    A[Project Idea] --> B[spec-orchestrator]
    B --> C[Planning Phase]
    C --> D[spec-analyst<br/>Requirements]
    D --> E[spec-architect<br/>System Design]
    E --> F[spec-planner<br/>Task Breakdown]
    
    F --> G{Quality Gate 1}
    G -->|Pass| H[Development Phase]
    G -->|Fail| D
    
    H --> I[spec-developer<br/>Implementation]
    I --> J[spec-tester<br/>Testing]
    
    J --> K{Quality Gate 2}
    K -->|Pass| L[Validation Phase]
    K -->|Fail| I
    
    L --> M[spec-reviewer<br/>Code Review]
    M --> N[spec-validator<br/>Final Check]
    
    N --> O{Quality Gate 3}
    O -->|Pass| P[Production Ready]
    O -->|Fail| Q[Feedback Loop]
    
    style B fill:#1a73e8,color:#fff
    style G fill:#f9ab00,color:#fff
    style K fill:#f9ab00,color:#fff
    style O fill:#f9ab00,color:#fff
    style P fill:#34a853,color:#fff

Installation


Prerequisites
  • Claude Code (latest version)
  • Project directory initialized
  • Basic understanding of AI-assisted development
Setup Steps
  1. Download the agents
# Option 1: Clone the repository
   git clone https://github.com/zhsama/claude-sub-agent.git
   cd claude-sub-agent
   
   # Option 2: Download specific agents you need
   # Individual agent files are available in the agents/ directory
   ```

2. **Copy agents and slash command to your project's Claude Code directory**

   ```bash
   # Create .claude directory structure in your project
   mkdir -p .claude/agents .claude/commands
   
   # Copy agents from this repository
   cp agents/* .claude/agents/
   
   # Copy slash command
   cp commands/agent-workflow.md .claude/commands/
   ```

3. **Verify installation**

   Your project structure should look like this:

   ```text
   your-project/
   โ”œโ”€โ”€ .claude/
   โ”‚   โ”œโ”€โ”€ commands/
   โ”‚   โ”‚   โ””โ”€โ”€ agent-workflow.md   # Slash command
   โ”‚   โ””โ”€โ”€ agents/
   โ”‚       โ”œโ”€โ”€ spec-analyst.md
   โ”‚       โ”œโ”€โ”€ spec-architect.md
   โ”‚       โ”œโ”€โ”€ spec-developer.md
   โ”‚       โ”œโ”€โ”€ spec-orchestrator.md
   โ”‚       โ”œโ”€โ”€ spec-planner.md
   โ”‚       โ”œโ”€โ”€ spec-reviewer.md
   โ”‚       โ”œโ”€โ”€ spec-tester.md
   โ”‚       โ”œโ”€โ”€ spec-validator.md
   โ”‚       โ””โ”€โ”€ ... (other agents)
   โ””โ”€โ”€ ... (your project files)
   ```

## Quick Start

### Basic Usage
bash

Start a new project workflow


Ask Claude: "Use the spec-orchestrator agent to create a todo list web application"

The orchestrator will automatically:


1. Analyze requirements


2. Design architecture


3. Plan tasks


4. Implement code


5. Write tests


6. Review and validate


### Simple Example
markdown You: Use spec-orchestrator to create a personal blog platform

Claude (spec-orchestrator): Starting workflow for personal blog platform...

[Planning Phase - 45 minutes] โœ“ Requirements analyzed โœ“ Architecture designed โœ“ Tasks planned โœ“ Quality Gate 1: PASSED (96/100)

[Development Phase - 2 hours] โœ“ 15 tasks implemented โœ“ Tests written โœ“ Quality Gate 2: PASSED (88/100)

[Validation Phase - 30 minutes] โœ“ Code reviewed โœ“ Final validation complete โœ“ Quality Gate 3: PASSED (91/100)

Project complete! Generated artifacts:
  • requirements.md
  • architecture.md
  • Source code (15 files)
  • Test suites (85% coverage)
  • Documentation
## Slash Command Usage

For the quickest way to start a complete workflow, use our custom slash command:

### Basic Usage
bash /agent-workflow "Create a task management web application with user authentication and real-time updates"
### Advanced Usage
bash

High-quality enterprise project


/agent-workflow "Develop a CRM system with customer management and analytics" --quality=95

Quick prototype development


/agent-workflow "Simple personal blog website" --quality=75 --skip-agent=spec-tester

From existing requirements


/agent-workflow "Mobile app based on existing requirements" --skip-agent=spec-analyst

Specific phases only


/agent-workflow "Microservices e-commerce platform" --phase=planning
### Command Options

- `--quality=[75-95]`: Set quality gate threshold
- `--skip-agent=[agent-name]`: Skip specific agents
- `--phase=[planning|development|validation|all]`: Run specific phases
- `--output-dir=[path]`: Specify output directory
- `--language=[zh|en]`: Documentation language

**๐Ÿ“– For complete slash command documentation, see [commands/agent-workflow.md](./commands/agent-workflow.md)**

## How It Works

### 1. Claude Code Sub-Agents Integration

According to Claude Code's documentation, sub-agents work by:

- Operating in isolated context windows
- Preventing pollution of the main conversation
- Allowing specialized, focused interactions
- Being automatically selected based on task context

Our system leverages these features by creating specialized agents for each development phase.

### 2. Workflow Phases

#### Planning Phase

1. **spec-analyst**: Analyzes requirements and creates user stories
2. **spec-architect**: Designs system architecture
3. **spec-planner**: Breaks down work into tasks
4. **Quality Gate 1**: Validates planning completeness

#### Development Phase

1. **spec-developer**: Implements code based on tasks
2. **spec-tester**: Writes comprehensive tests
3. **Quality Gate 2**: Validates code quality

#### Validation Phase

1. **spec-reviewer**: Reviews code for best practices
2. **spec-validator**: Final production readiness check
3. **Quality Gate 3**: Ensures deployment readiness

### 3. Agent Communication

Agents communicate through structured artifacts:

- Each agent produces specific documents
- Next agent uses previous outputs as input
- Orchestrator manages the flow
- Quality gates ensure consistency

## Agent Reference

### Workflow Agents

| Agent | Purpose | Inputs | Outputs |
|-------|---------|--------|---------|
| spec-orchestrator | Workflow coordination | Project description | Status reports, routing |
| spec-analyst | Requirements analysis | User description | requirements.md, user-stories.md |
| spec-architect | System design | Requirements | architecture.md, api-spec.md |
| spec-planner | Task planning | Architecture | tasks.md, test-plan.md |
| spec-developer | Implementation | Tasks | Source code, unit tests |
| spec-tester | Testing | Code | Test suites, coverage reports |
| spec-reviewer | Code review | Code | Review report, improvements |
| spec-validator | Final validation | All artifacts | Validation report, quality score |

### Specialist Agents

| Agent | Domain | Integration Point |
|-------|--------|-------------------|
| ui-ux-master | UI/UX Design | Planning phase |
| senior-backend-architect | Backend Systems | Architecture phase |
| senior-frontend-architect | Frontend Systems | Development phase |
| refactor-agent | Code Quality | Any phase |

## Usage Examples

### Example 1: Enterprise Application
bash

High-quality enterprise system


Use spec-orchestrator with quality threshold 95: Create an enterprise CRM system with:
  • Multi-tenancy support
  • Role-based access control
  • RESTful API
  • Real-time dashboard
  • Audit logging
### Example 2: Quick Prototype
bash

Fast prototype with lower quality threshold


Use spec-orchestrator with quality threshold 75 and skip analyst: Create a simple landing page with email capture
### Example 3: Existing Requirements
bash

Start from existing documentation


Use spec-orchestrator starting from requirements: Load requirements from ./docs/requirements.md and continue workflow
### Example 4: Specific Phase Only
bash

Run only validation on existing code


Use spec-orchestrator for validation phase only: Validate the project in ./my-app/
## Quality Gates

### Gate 1: Planning Quality (95% threshold)

- Requirements completeness
- Architecture feasibility
- Task breakdown quality
- User story clarity

### Gate 2: Development Quality (80% threshold)

- Test coverage
- Code quality metrics
- Security scan results
- Performance benchmarks

### Gate 3: Production Readiness (85% threshold)

- Overall quality score
- Documentation completeness
- Deployment readiness
- Operational requirements

## Best Practices

### 1. Project Preparation

- Write clear project descriptions
- Include constraints and requirements
- Specify quality expectations
- Provide existing documentation

### 2. Working with Agents

- Let each agent complete their phase
- Review artifacts between phases
- Use feedback loops effectively
- Trust the quality gates

### 3. Customization

- Adjust quality thresholds based on needs
- Skip agents for simpler projects
- Add custom validation criteria
- Integrate with existing workflows

### 4. Performance Optimization

- Enable parallel execution for large projects
- Cache results for iterative development
- Use phase-specific execution
- Monitor resource usage

## Advanced Usage

### Custom Workflows
python

Create custom workflow configuration


workflowconfig = { "qualitythreshold": 90, "skipagents": ["spec-analyst"], # If you have requirements "parallel": True, "customvalidators": ["security-scan", "performance-test"], "outputformat": "markdown" }

Execute with custom config


"Use spec-orchestrator with config: " + json.dumps(workflow
config)
### Integration with CI/CD
yaml

GitHub Actions example


name: AI Workflow Validation on: [pull_request] jobs: validate: runs-on: ubuntu-latest steps:
  • uses: actions/checkout@v3
  • name: Run Spec Validation
run: | # Use Claude Code CLI (if available) claude-code run spec-orchestrator \ --phase validation \ --project-path .
### Extending the System

1. **Add New Agents**
   - Create agent with YAML frontmatter
   - Define clear responsibilities
   - Specify input/output formats
   - Update orchestrator routing

2. **Custom Quality Gates**
   - Define new criteria
   - Set appropriate thresholds
   - Implement validation logic
   - Add to workflow

3. **Domain-Specific Workflows**
   - Create specialized orchestrators
   - Define domain patterns
   - Customize quality criteria
   - Optimize for specific needs

## Troubleshooting

### Common Issues

1. **Agent Not Found**
   - Verify agents are in correct directory
   - Check YAML frontmatter format
   - Ensure proper file permissions

2. **Quality Gate Failures**
   - Review specific criteria that failed
   - Check artifact completeness
   - Allow agents to revise work
   - Consider adjusting thresholds

3. **Workflow Stuck**
   - Check orchestrator status
   - Review last agent output
   - Look for error messages
   - Restart from last checkpoint

### Debug Mode
bash

Enable verbose logging


Use spec-orchestrator with debug mode: Create test project and show all agent interactions ```

Contributing


We welcome contributions! Please:

  1. Follow the existing agent format
  2. Add comprehensive documentation
  3. Include usage examples
  4. Test with the orchestrator
  5. Submit PR with description

License


MIT License - see LICENSE file for details

Acknowledgments


  • Built on Claude Code's Sub-Agents feature
  • Inspired by BMAD methodology
  • Community contributions welcome

For more information, see:

$ How to install Claude agents and commands with leamas

Getting started with and using leamas to install Claude agents and commands in your project or system wide.

1

Install leamas

Open your terminal and run this single command to install leamas on your system:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leamas-ai/leamas.sh/main/install.sh)"

This downloads the leamas CLI script to $HOME/leamas/leamas

2

Add to $PATH

Add leamas to your system $PATH so you can run it from anywhere:

echo 'export PATH="$HOME:$PATH"' >> ~/.bashrc && source ~/.bashrc

For zsh users, replace ~/.bashrc with ~/.zshrc

3

Install Claude kits

Browse available kits above and install them with simple commands:

Install an agent kit locally (current project):

leamas agent@example-kit

Install globally (all projects):

leamas -g agent@example-kit

Install command kits:

leamas command@example-command
4

Use with Claude

Once installed, Claude will automatically detect and use the agents and commands you've installed. They'll appear in Claude's interface and can be invoked based on context.

Check what's installed globally:

ls ~/.claude/agents/leamas/ ls ~/.claude/commands/leamas/

Or what's installed for your project:

ls .claude/agents/leamas/ ls .claude/commands/leamas/

? Frequently Asked Questions

Claude agents are specialized AI assistants that extend Claude's capabilities for specific tasks like web development, data analysis, DevOps, and more. Each agent has domain expertise and can be automatically invoked when needed.

Claude commands are workflow automation tools that orchestrate multiple agents and execute complex, multi-step tasks. Commands can chain together different agents, handle file operations, manage project workflows, and automate repetitive development tasks. They're perfect for creating custom workflows that combine multiple AI capabilities into a single executable command.

Currently, you can manually remove agent kits by deleting their directories from ~/.claude/agents/leamas/[kit-name] or .claude/agents/leamas/[kit-name] for local installations.
Command kits are located in the .claude/commands/leamas/[kit-name] directory.
Kit management features are coming soon...

Yes! Kits are collections of markdown files with YAML frontmatter. You can create your own kits and submit them via pull request to the leamas repository on GitHub to share with the community.
Place your agent md files in the kits/agents/$AGENT_NAME directory and command md files in the kits/agents/$AGENT_NAME directory.

Yes! leamas is completely open source. All code is available on GitHub for review. The tool only downloads agent files to designated Claude directories and doesn't require sudo or system-level access.

About leamas

leamas is an open-source CLI tool that simplifies installing and managing* kits for Claude. It provides a simple command-line interface to download agents and commands that enhance Claude's capabilities.

This project is community-driven and all code is publicly available on GitHub. Have an agent or command to add? Open a pull request with your kit to have it added!

Once installed, leamas runs from your terminal anywhere on your system and will download kits from our curated repository.

* Managing kits coming soon...

Get Involved!

leamas is open source and welcomes contributions. Here's how you can help: