# ๐ Claude Code Workflow (CCW)
*The Neural Network for Software Development*
**Languages:** [English](README.md) | [ไธญๆ](README_CN.md)
**Transform your development chaos into orchestrated brilliance**
*Where AI agents collaborate, complexity becomes clarity, and your codebase evolves into living documentation*
---
## ๐ What Makes CCW Revolutionary?
Imagine having a **team of expert AI developers** working alongside you 24/7. CCW isn't just another workflow toolโit's a **living, breathing development ecosystem** that thinks, learns, and adapts to your project's DNA.
### ๐ญ Meet Your AI Dream Team
- **๐ง Conceptual Planning Agent**: Your visionary architect who sees the big picture
- **โก Action Planning Agent**: The strategic executor who turns dreams into roadmaps
- **๐ป Code Developer**: Your tireless coding companion who implements with precision
- **๐ Code Review Agent**: The perfectionist who ensures quality never slips
- **๐ Memory Gemini Bridge**: Your project historian who keeps everything documented
### ๐ฏ The Magic Happens in Three Layers
#### **๐๏ธ JSON-Only Data Model: Your Project's Brain**
Think of it as your project's **neural memory**โevery decision, every task, every plan lives in pure, lightning-fast JSON. No more out-of-sync documentation nightmares!
- โก **Sub-millisecond queries**: Your project responds faster than you can think
- ๐ **Zero synchronization issues**: Single source of truth, always
- ๐ฏ **Pure data architecture**: Clean, fast, reliable
#### **๐ช Marker File Session Management: Instant Context Switching**
Like having **multiple development personalities** you can switch between instantly:
```bash
ls .workflow/.active-* # See your active sessions at a glance
```
- ๐โโ๏ธ **Atomic operations**: Session switching in microseconds
- ๐ง **Self-healing**: Automatic conflict resolution
- ๐ **Infinite scalability**: Hundreds of concurrent sessions, zero performance hit
#### **๐งฌ Progressive Complexity: Grows With Your Ambitions**
CCW **reads your project's mind** and adapts its sophistication:
| Your Project | CCW's Response | What You Get |
|-------------|----------------|--------------|
| **Quick fix** (<5 tasks) | ๐ฏ Minimal mode | Streamlined, no-nonsense workflow |
| **Feature work** (5-15 tasks) | โ๏ธ Enhanced mode | Smart tracking + automated documentation |
| **Major project** (>15 tasks) | ๐ฐ Full suite | Complete orchestration + multi-level planning |
---
## ๐จ The Developer Experience Revolution
### ๐ From Chaos to Flow State
**Before CCW:**
```
๐ฐ "Where did I leave off?"
๐ "Is my documentation current?"
๐ค "What was the architecture again?"
โฐ "I've been stuck on this for hours..."
```
**After CCW:**
```bash
/workflow:session:resume "oauth-implementation" # Instant context recovery
/context --format=hierarchy # See everything, beautifully organized
/gemini:analyze "authentication flow patterns" # AI-powered insights
/codex:exec "@{src/auth/**/*} implement JWT refresh tokens" # Autonomous execution
```
### ๐ญ Your Workflow Becomes a Story
#### ๐ช **Act I: The Brainstorming Symphony**
```bash
/workflow:brainstorm "Payment gateway integration" \
--perspectives=system-architect,security-expert,data-architect
```
Watch as **multiple AI experts** collaborate in real-time, each bringing their specialized knowledge to create a comprehensive foundation.
#### ๐ฏ **Act II: The Strategic Phase**
```bash
/workflow:plan --from-brainstorming
```
Your brainstorming insights transform into **crystal-clear implementation roadmaps** with dependency tracking and risk analysis.
#### โก **Act III: The Execution Ballet**
```bash
/task:execute IMPL-1 --mode=auto
/gemini:execute IMPL-2.1 # Analysis-focused tasks
/codex:exec "@{src/api/**/*} implement payment validation" # Development tasks
```
Watch your code **write itself** while maintaining the highest quality standards.
---
## ๐ ๏ธ Dual-CLI Superpowers
### ๐ **Gemini: Your Project Detective**
*"Tell me everything about this codebase"*
```bash
gemini --all-files -p "@{src/**/*} @{CLAUDE.md}
Analyze the authentication patterns and security implications"
```
**Gemini sees patterns you've never noticed**, understands architectural decisions, and provides insights that would take hours to discover manually.
### ๐ค **Codex: Your Autonomous Developer**
*"Build this feature while I grab coffee"*
```bash
codex --full-auto "@{**/*} Create a complete user dashboard with
real-time notifications and responsive design"
```
**Codex doesn't just suggestโit implements**, tests, documents, and even handles edge cases you forgot to mention.
---
## ๐๏ธ Architecture That Scales With Your Dreams
### ๐ณ Living Documentation System
Forget static README files. CCW creates a **living, breathing documentation ecosystem**:
```
๐ Your Project/
โโโ CLAUDE.md # ๐ Project Universe View
โโโ src/
โ โโโ CLAUDE.md # ๐ข Domain Architecture
โ โโโ components/
โ โ โโโ CLAUDE.md # ๐งฉ Component Patterns
โ โ โโโ auth/
โ โ โโโ CLAUDE.md # ๐ Implementation Details
```
**Each layer knows exactly what it should contain**โno more, no less. Your documentation **updates itself** as your code evolves.
### ๐ง Intelligence That Never Sleeps
#### ๐ฏ **Context-Aware Updates**
```bash
/update-memory-related # "What changed? Let me update the docs intelligently"
```
CCW uses **git-aware change detection** to update only what matters, keeping your documentation **fresh and relevant**.
#### ๐ **Full Project Synchronization**
```bash
/update-memory-full # "Let me refresh everything from scratch"
```
Perfect for onboarding new team members or after major architectural changes.
---
## โก Quick Start: From Zero to Hero
### ๐ One-Line Installation
```powershell
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1" -UseBasicParsing).Content
```
### ๐ฏ Essential Setup
Configure Gemini CLI integration:
```json
{
"contextFileName": "CLAUDE.md" // The magic connection
}
```
### ๐ช Your First Workflow
```bash
# 1. ๐ญ Start with vision
/workflow:session:start "Build an AI-powered todo app"
# 2. ๐ง Gather perspectives
/workflow:brainstorm "Todo app architecture" \
--perspectives=ui-designer,system-architect,data-architect
# 3. ๐ Create the master plan
/workflow:plan --from-brainstorming
# 4. โก Execute with precision
/workflow:execute --type=complex --auto-create-tasks
# 5. ๐ฏ Watch the magic happen
/context --format=hierarchy
```
---
## ๐ญ Command Arsenal
### ๐ง **Intelligence Commands**
| Command | Superpower | Example |
|---------|------------|---------|
| `/gemini:mode:auto` | ๐ฏ **Smart Template Selection** | Auto-detects bug reports, feature requests, architecture questions |
| `/codex:mode:auto` | ๐ค **Autonomous Development** | Full-stack feature implementation while you focus on strategy |
| `/enhance-prompt` | ๐ก **Context Amplification** | Transforms vague requests into precise technical specifications |
### ๐ช **Workflow Orchestration**
| Command | Magic | Result |
|---------|-------|---------|
| `/workflow:brainstorm` | ๐ญ **Multi-Expert Collaboration** | 5 AI specialists collaborate on your challenge |
| `/workflow:plan-deep` | ๐๏ธ **Architectural Mastery** | 3-level deep planning with dependency mapping |
| `/workflow:execute` | โก **Intelligent Automation** | Complexity-aware task orchestration |
### ๐ง **Task Mastery**
| Command | Power | Impact |
|---------|-------|---------|
| `/task:breakdown` | ๐งฉ **Smart Decomposition** | Complex tasks โ manageable chunks |
| `/task:replan` | ๐ **Adaptive Intelligence** | Requirements changed? No problem. |
| `/context` | ๐ฏ **Omniscient Awareness** | See everything, understand everything |
---
## ๐ Real-World Scenarios
### ๐ **Scenario: Building a SaaS Platform**
```bash
# Day 1: Vision
/workflow:session:start "Multi-tenant SaaS platform with real-time collaboration"
/workflow:brainstorm "SaaS architecture design" --perspectives=business-analyst,system-architect,security-expert
# Day 2: Foundation
/workflow:plan-deep --complexity=high --depth=3
/task:create "Authentication & Authorization System"
/task:create "Multi-tenant Database Architecture"
/task:create "Real-time Communication Layer"
# Week 1-4: Implementation
/codex:mode:auto "Implement JWT-based authentication with role management"
/codex:mode:auto "Create tenant isolation middleware"
/codex:mode:auto "Build WebSocket-based collaboration features"
# Ongoing: Maintenance
/update-memory-related # After each feature
/workflow:issue:create "Add OAuth2 integration"
/workflow:review --auto-fix
```
### ๐ **Scenario: Emergency Bug Fix**
```bash
# The Crisis
/workflow:session:start "Critical payment processing bug in production"
# The Investigation
/gemini:analyze "Payment flow failures in @{src/payments/**/*} - analyze error patterns"
# The Solution
/codex:exec "@{src/payments/**/*} Fix payment validation race condition"
# The Recovery
/workflow:review --auto-fix
/update-memory-related
```
### ๐ **Scenario: Security Audit**
```bash
# The Audit
/workflow:brainstorm "Security vulnerability assessment" --perspectives=security-expert,penetration-tester
# The Analysis
/gemini:mode:auto "Comprehensive security analysis of authentication system"
# The Remediation
/codex:mode:auto "Implement security fixes for identified vulnerabilities"
# The Documentation
/update-memory-full # Complete security documentation update
```
---
## ๐ฏ Why Developers Are Obsessed
### ๐ง **Cognitive Superpowers**
- **๐ฎ Perfect Memory**: Never lose context again
- **โก Instant Expertise**: AI specialists at your fingertips
- **๐ฏ Laser Focus**: Complex projects become manageable steps
- **๐ Living Knowledge**: Documentation that grows with your code
### ๐ช **Productivity Amplification**
- **10x Faster Planning**: Multi-agent brainstorming in minutes
- **5x Better Code Quality**: Built-in review and testing integration
- **Zero Documentation Debt**: Self-updating project knowledge
- **Infinite Scalability**: Handle projects of any complexity
### ๐จ **Developer Joy**
- **Flow State Preservation**: Never lose your train of thought
- **Complexity Mastery**: Big problems become small wins
- **Autonomous Assistance**: AI that actually helps, doesn't hinder
- **Professional Growth**: Learn from AI experts in real-time
---
## ๐ The Future is Now
CCW represents the **evolution of software development**โfrom manual, error-prone processes to **intelligent, adaptive workflows** that scale with your ambitions.
### ๐ **What's Next?**
- ๐ค **Enhanced Multi-AI Collaboration**: Even more specialized agents
- ๐ **Real-time Team Synchronization**: Distributed teams, unified flow
- ๐ **Predictive Project Analytics**: AI that predicts and prevents issues
- ๐ง **Custom Agent Training**: Teach CCW your unique patterns
---
## ๐ค Join the Revolution
```bash
# Fork the future
git clone https://github.com/catlog22/Claude-Code-Workflow.git
cd Claude-Code-Workflow
# Make it yours
git checkout -b feature/my-amazing-contribution
# Share the magic
git push origin feature/my-amazing-contribution
```
---
**๐ญ Claude Code Workflow (CCW)**
*Where software development becomes an art form*
**Transform โข Orchestrate โข Elevate**
---
*Licensed under MIT โข Built with โค๏ธ by the community โข Powered by AI*
[โญ Star us on GitHub](https://github.com/catlog22/Claude-Code-Workflow) โข [๐ Full Documentation](https://github.com/catlog22/Claude-Code-Workflow/wiki) โข [๐ฌ Join Our Community](https://github.com/catlog22/Claude-Code-Workflow/discussions)