Skip to content

A battle-tested, generalized session management system for Claude Code projects. Transform ad-hoc AI assistance into systematic, high-quality development workflows.

License

Notifications You must be signed in to change notification settings

FuzzyKala/cc-templates

Repository files navigation

Claude Code Multi-Agent Coordination System

License: MIT Version Claude Code

A streamlined, proven system for systematic multi-agent development with Claude Code

Transform chaotic AI assistance into systematic, high-quality development workflows

🎯 What Is This?

This system evolved through 7 real development sessions, transforming from over-engineering to elegant simplicity. It provides:

  • Intelligent Agent Coordination: 5 core specialist agents that handle complex development tasks
  • Automated Project Setup: One command (/setup-agents) sets up everything based on your project type
  • Focused Session Management: Rolling documentation that prevents information overload
  • Quality Gates: Built-in review processes ensure consistent, high-quality deliverables

The Problem It Solves

  • Lost Context: Sessions start from scratch, losing project understanding
  • Inconsistent Quality: No systematic approach to code review and validation
  • Ad-hoc Coordination: Random task handling instead of structured specialist delegation
  • Documentation Bloat: Project files become unwieldy and lose focus

The Solution

  • Intelligent Setup: Auto-detects project type and configures optimal agents in 5 minutes
  • Specialist Coordination: 5 core agents handle all development domains effectively
  • Session Management: /ready and /recap commands handle context and progress
  • Quality Assurance: Built-in review processes maintain standards

📦 Installation

First, install the cc-templates system globally:

# Install globally for use across all projects
git clone https://github.com/FuzzyKala/cc-templates.git ~/.claude-templates

# Verify installation works
ls ~/.claude-templates
# Should show: agents/ commands/ scripts/ system/ COMPREHENSIVE_GUIDE.md

# Test that /setup-agents command will be available
cd any-project-directory
# You can now run /setup-agents in any Claude Code session

Installation Complete!

The system is now installed globally and ready to use in any project. You can now use /setup-agents in any Claude Code session.


🚀 Quick Start

✅ Installation complete! Now you can use the system in any project.

1. Setup Any Project

# Navigate to any project and start a Claude Code session
cd your-project-directory

# Run the setup command (now available after installation)
/setup-agents

# That's it! System will:
# ✅ Auto-detect your project type (Next.js, React, Node.js, Python ML, Flutter, etc.)
# ✅ Configure optimal agents for your tech stack
# ✅ Create .claude/ directory with coordination system
# ✅ Set up /ready and /recap commands
# ✅ Validate everything works correctly

2. Start Working

# Begin each Claude Code session with context scanning
/ready

# Work on your project with agent coordination
# (Complex tasks automatically delegated to specialists)

# End each session with progress documentation
/recap

3. Success Indicators

  • Complex tasks get delegated to appropriate specialists automatically
  • Code quality improves through systematic review
  • Context is preserved between sessions
  • Development velocity increases through structured coordination

📁 What You Get

your-project/
├── .claude/
│   ├── agents/                 # 5 core specialist agents
│   │   ├── main-agent-project-manager.md    # Central coordination
│   │   ├── implementation-specialist.md     # Code development
│   │   ├── design-specialist.md            # UI/UX and architecture
│   │   ├── quality-specialist.md           # Review and testing
│   │   └── deployment-specialist.md        # Production and CI/CD
│   ├── commands/               # Session management
│   │   ├── ready.md           # /ready - session initialization
│   │   └── recap.md           # /recap - progress documentation
│   └── sessions/              # Session history archive
└── CLAUDE.md                  # Current project context (~80-100 lines)

🎯 Core System Components

5 Core Agents (Streamlined from 19)

1. Main Agent (Project Manager)

  • Role: Central coordination hub, task delegation, workflow management
  • When to Use: Always active - coordinates all other agents
  • Capabilities: Project planning, resource allocation, quality oversight

2. Implementation Specialist

  • Role: Code development, technical architecture, performance optimization
  • When to Use: Building features, solving technical challenges, code architecture
  • Adapts to: Frontend (React/Next.js), Backend (Node.js/Python), Mobile (React Native/Flutter), AI/ML (Python/TensorFlow)

3. Design Specialist

  • Role: UI/UX design, system architecture, user experience optimization
  • When to Use: User interface work, design systems, architectural decisions
  • Capabilities: Responsive design, accessibility, design patterns, system design

4. Quality Specialist

  • Role: Code review, testing strategies, security analysis, performance validation
  • When to Use: Before production deployment, quality gates, security concerns
  • Capabilities: Test automation, code quality, security review, performance optimization

5. Deployment Specialist

  • Role: Production deployment, CI/CD, infrastructure, monitoring
  • When to Use: Production releases, infrastructure setup, deployment automation
  • Capabilities: DevOps processes, cloud infrastructure, monitoring, deployment pipelines

Session Management Commands

/ready - Session Initialization

What it does:

  • Scans project context and available specialists
  • Reviews current status and priorities from CLAUDE.md
  • Identifies coordination patterns for the session
  • Validates agent setup (with --validate flag)

When to use: Start of every Claude Code session

/recap - Session Documentation

What it does:

  • Archives previous session to session history
  • Updates CLAUDE.md with current session only (~80-100 lines)
  • Updates project status and completion tracking
  • Maintains focused, current context

When to use: End of every Claude Code session


🔧 Project Type Detection & Configuration

The /setup-agents command intelligently detects your project and configures optimal agents:

Web Frontend (Next.js, React, Vue)

Auto-detected when:

  • package.json contains React, Next.js, Vue, Angular dependencies
  • Presence of frontend build tools and configurations

Configured Agents: All 5 core agents optimized for:

  • Component development and modern web patterns
  • Responsive design and accessibility compliance
  • Performance optimization (Core Web Vitals)
  • Testing strategies (Jest/RTL/Cypress)
  • Production deployment (Vercel/Netlify/AWS)

Backend API (Node.js, Python, Java)

Auto-detected when:

  • Node.js: package.json contains Express, Fastify, Koa
  • Python: requirements.txt contains FastAPI, Django, Flask
  • Java: Maven/Gradle files present

Configured Agents: All 5 core agents optimized for:

  • API development and database integration
  • Security and performance validation
  • API testing and integration testing
  • Infrastructure management and deployment

Mobile Apps (React Native, Flutter)

Auto-detected when:

  • React Native: package.json contains react-native
  • Flutter: pubspec.yaml exists

Configured Agents: All 5 core agents optimized for:

  • Cross-platform mobile development
  • Mobile UX patterns and platform guidelines
  • Device testing and mobile-specific quality gates
  • App store deployment processes

AI/ML Projects (Python, TensorFlow, PyTorch)

Auto-detected when:

  • requirements.txt contains TensorFlow, PyTorch, scikit-learn
  • Jupyter notebooks present

Configured Agents: All 5 core agents optimized for:

  • Model development and training optimization
  • Data pipeline engineering and preprocessing
  • ML code quality and reproducibility standards
  • MLOps deployment and model monitoring

Fullstack Projects

Auto-detected when: Project has both frontend and backend indicators

Configured Agents: All 5 core agents optimized for:

  • End-to-end development coordination
  • API integration and data flow management
  • Full-stack testing strategies
  • Comprehensive deployment coordination

📋 Usage Examples

Example 1: New Next.js Project

# Start new Next.js project
npx create-next-app@latest my-app
cd my-app

# Set up agent coordination
/setup-agents

# Output:
# 🔍 Analyzing project structure...
# ✅ Next.js project detected
# 🤖 Configuring 5 core agents for web frontend development
# ✅ Agent coordination system ready

# Begin development
/ready
# Now delegate complex tasks to specialists automatically

Example 2: Existing Python API Project

# In existing project directory
cd my-fastapi-project

# Set up coordination system
/setup-agents

# Output:
# 🔍 Analyzing project structure...
# ✅ Python API project detected
# 🤖 Configuring 5 core agents for backend development
# ✅ Agent coordination system ready

# Start coordinated development
/ready

Example 3: Interactive Setup (Unknown Project Type)

# For custom or unrecognized projects
/setup-agents --interactive

# Output:
# ❓ Unable to auto-detect project type
# 🔧 Interactive Project Type Selection
# 1. Web Frontend (React/Next.js, Vue, etc.)
# 2. Backend API (Node.js, Python, Java, etc.)
# 3. Mobile App (React Native, Flutter, etc.)
# 4. AI/ML Project (Python, TensorFlow, etc.)
# 5. Fullstack (Frontend + Backend)
# Select project type (1-5): _

🛠 Advanced Configuration

Customizing Agents

After setup, customize agents in .claude/agents/*.md for your specific needs:

# In implementation-specialist.md

## Technology Focus

- **Primary Framework**: Next.js 15 with App Router
- **State Management**: Zustand + React Context
- **Styling**: Tailwind CSS + CSS Modules
- **Testing**: Vitest + React Testing Library

## Custom Quality Standards

- TypeScript strict mode required
- 90%+ test coverage for business logic
- Core Web Vitals score >90

Project-Specific CLAUDE.md

The system creates a focused project context file:

# My Project - Current Session

## Session Status

- **Project Status**: 45% - Core features implemented
- **Current Priority**: Performance optimization and testing
- **Ready for**: Production deployment preparation

## Active Technologies

- Next.js 15, TypeScript, Tailwind CSS
- Vercel deployment, GitHub Actions CI/CD

## Current Session Achievements**Performance Optimization**: Improved Core Web Vitals scores by 25%
✅ **Testing Coverage**: Increased to 85% for critical components
✅ **Accessibility**: Achieved WCAG 2.1 AA compliance

## Next Priorities

- [ ] Complete E2E testing with Playwright
- [ ] Set up production monitoring
- [ ] Finalize deployment pipeline

Validation and Health Checks

# Check system health
/ready --validate

# Output:
# ✅ Agent Setup Validation Complete
# Directory Structure: ✅ .claude/ with proper subdirectories
# Agent Configuration: ✅ 5 agents configured properly
# Template Variables: ✅ All variables replaced
# Commands: ✅ /ready and /recap operational
# 🚀 Agent coordination system fully operational

🎉 Success Patterns

Immediate Benefits (First Session)

  • 5-minute setup from project detection to working coordination
  • Intelligent agent selection based on actual project needs
  • Built-in validation ensures setup works correctly
  • Immediate task delegation to appropriate specialists

Long-term Benefits (After Multiple Sessions)

  • Consistent quality standards through systematic specialist review
  • Improved development velocity via structured coordination
  • Knowledge preservation across sessions and team members
  • Cross-project learning and pattern reuse

Team Collaboration

# Team member joins project
cd shared-project
/ready

# Gets immediate context:
# - Complete project understanding from CLAUDE.md
# - Access to all specialist agents
# - Current priorities and session history
# - Established quality standards and workflows

📊 Proven Results

System Evolution (7 Real Sessions)

  • Session 1-2: Initial creation and basic agent setup
  • Session 3: Major breakthrough - 75% reduction in complexity
  • Session 4-6: Practical refinement through real development work
  • Session 7: Documentation simplification - solved scaling issues
  • Session 8+: Streamlined system - reduced from 19 to 5 core agents

Key Discoveries

  • 5 agents > 19 specialists: Simplicity beats comprehensive coverage
  • Auto-detection > manual setup: Reduces setup friction dramatically
  • Context-driven > rigid workflows: Adapts to actual project needs
  • Focused sessions > comprehensive tracking: Maintains clarity without losing history

🔄 Migrating from v1 to v2

If you have an existing project with cc-templates v1:

Automatic Version Detection

The system now automatically detects your version:

# 1. Update the global templates
cd ~/.claude-templates
git pull origin main

# 2. Run setup - system detects version automatically
cd your-existing-project
/setup-agents

# System will show:
# "v1 installation detected! This will upgrade to v2..."
# or "v2 already installed. This will refresh your setup..."

Manual Backup (Optional)

# If you want to backup before upgrading:
cd your-existing-project
cp -r .claude .claude-v1-backup

v1 → v2 Agent Changes

Old agents are replaced by 5 core agents:

  • fullstack-engineerimplementation-specialist
  • ui-ux-designerdesign-specialist
  • code-reviewerquality-specialist
  • testing-specialistquality-specialist
  • deployment-engineerdeployment-specialist

Your CLAUDE.md will be recreated with the new template structure.


🤝 Best Practices

Getting Started

  1. Use auto-detection first - Let the system configure optimal agents
  2. Validate setup - Always run /ready --validate after setup
  3. Start simple - Begin with small tasks to understand agent coordination
  4. Customize gradually - Adapt agents to your specific project needs

Effective Sessions

  1. Begin with /ready - Complete project context and agent overview
  2. Delegate complex work - Use specialists rather than handling directly
  3. Use quality gates - Have quality-specialist validate important changes
  4. End with /recap - Document progress and maintain session history

Team Coordination

  1. Shared setup - One team member runs setup, everyone benefits
  2. Consistent standards - Agents provide uniform quality gates
  3. Knowledge sharing - Session history preserves team learning
  4. Onboarding acceleration - New members get immediate context

🛠 Troubleshooting

Common Issues & Solutions

Setup Problems

# Problem: Auto-detection failed
Solution: /setup-agents --interactive

# Problem: Existing .claude/ directory conflicts
Solution: /setup-agents --backup-first

# Problem: Template variables not replaced
Solution: Re-run /setup-agents to complete setup

Usage Problems

# Problem: Agents don't understand project context
Solution: Update CLAUDE.md and use /ready at session start

# Problem: Quality issues with agent work
Solution: Provide clearer context when delegating tasks

# Problem: Documentation getting too long
Solution: Use /recap regularly to maintain focused sessions

Getting Help

  • Validation: Use /ready --validate for setup verification
  • Context: Ensure CLAUDE.md reflects current project state
  • Documentation: Check .claude/sessions/ for historical context
  • Updates: Update global templates with cd ~/.claude-templates && git pull

📈 Success Metrics

Effective Coordination Indicators

  • Right Specialist Selected: Tasks automatically routed to appropriate domain expert
  • Quality Consistency: Deliverables meet standards across different specialists
  • Context Preservation: Sessions maintain project understanding over time
  • Development Velocity: Coordination enhances rather than slows development

System Health Indicators

  • Agent Relevance: Specialists regularly used for complex tasks
  • Quality Gates: Code review catches issues before production
  • Session Flow: /ready and /recap become natural workflow rhythm
  • Team Adoption: Multiple developers use shared coordination system

🎯 What Makes This System Unique

Proven Through Real Use

  • Evolved through 7 actual development sessions
  • Tested on real projects with real deadlines
  • Simplified based on practical experience, not theory

Intelligent and Simple

  • Auto-detects project type in seconds
  • 5 core agents handle all development domains
  • One command setup, immediate productivity

Focused on Quality

  • Built-in review processes ensure consistent deliverables
  • Quality gates prevent issues from reaching production
  • Systematic specialist coordination maintains standards

Scales with Projects

  • Works for solo developers and teams
  • Adapts from simple scripts to complex applications
  • Preserves knowledge across sessions and team members

Ready to transform your development workflow?

# Get started now
/setup-agents

Transform chaotic AI assistance into systematic, high-quality development workflows

Quick StartExamplesTroubleshooting


📄 License

MIT License - Built for the Claude Code community by developers who believe in systematic, high-quality AI-assisted development.

do not implementation and ask me questions if you have any question, you feel it makes no sense or there's other better solution, you can use web search any MCP tools, or anything you need to help your work, ultrathink

About

A battle-tested, generalized session management system for Claude Code projects. Transform ad-hoc AI assistance into systematic, high-quality development workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published