workflow-lite-plan
Unified lightweight planning skill with mode selection (Lite Plan, Multi-CLI Plan, Lite Fix). Supports exploration, diagnosis, multi-CLI collaboration, and shared execution via lite-execute.
SKILL.md
| Name | workflow-lite-plan |
| Description | Unified lightweight planning skill with mode selection (Lite Plan, Multi-CLI Plan, Lite Fix). Supports exploration, diagnosis, multi-CLI collaboration, and shared execution via lite-execute. |
<a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.demolab.com?font=Fira+Code&weight=600&size=22&pause=1000&color=6366F1¢er=true&vCenter=true&random=false&width=600&lines=JSON-Driven+Multi-Agent+Framework;Skill-based+Workflow+System;Semantic+CLI+Orchestration;Gemini+%7C+Codex+%7C+OpenCode+%7C+Qwen+%7C+Claude" alt="Typing SVG" /></a>
</div> <br/> <!-- Quick Links --> <div align="center"> <a href="#-quick-start"><img src="https://img.shields.io/badge/π_Quick_Start-4285F4?style=flat-square" alt="Quick Start"/></a> <a href="WORKFLOW_GUIDE.md"><img src="https://img.shields.io/badge/π_Workflow_Guide-34A853?style=flat-square" alt="Guide"/></a> <a href="#-cli-tool-installation"><img src="https://img.shields.io/badge/π οΈ_CLI_Tools-EA4335?style=flat-square" alt="CLI Tools"/></a> <a href="#-architecture"><img src="https://img.shields.io/badge/ποΈ_Architecture-FBBC05?style=flat-square" alt="Architecture"/></a> </div> <br/>β¨ Key Features
<div align="center"> <table> <tr> <td width="50%">π― Skill-based Workflows
From lite-plan (lightweight) to brainstorm (multi-role analysis)
π Multi-CLI Orchestration
Gemini, Qwen, Codex, Claude - auto-select or manual
β‘ Team Architecture v2
Role-based agents with inner loop execution
π§ Queue Scheduler
Background queue execution service
</td> <td width="50%">π¦ Session Lifecycle
start/resume/complete/sync workflow sessions
π₯οΈ Terminal Dashboard
Multi-terminal grid with execution monitor
π¨ Orchestrator Editor
Template-based workflow visual editing
π¬ A2UI
Agent-to-User interactive interface
</td> </tr> </table> </div>π New? See Workflow Guide for complete workflow documentation.
π Quick Start
Install CCW
npm install -g claude-code-workflow
ccw install -m Global
Workflow Skills vs Commands
CCW uses two types of invocations:
| Type | Format | Examples |
|---|---|---|
| Skills | Trigger phrase (no slash) | workflow-lite-plan, brainstorm, workflow-plan |
| Commands | Slash command | /ccw, /workflow/session:start, /issue/new |
Choose Your Workflow Skill
<div align="center"> <table> <tr><th>Skill Trigger</th><th>Use Case</th></tr> <tr><td><code>workflow-lite-plan</code></td><td>Lightweight planning, single-module features (hands off to lite-execute)</td></tr> <tr><td><code>workflow-multi-cli-plan</code></td><td>Multi-CLI collaborative analysis</td></tr> <tr><td><code>workflow-plan</code></td><td>Full planning with session persistence</td></tr> <tr><td><code>workflow-tdd-plan</code></td><td>Test-driven development</td></tr> <tr><td><code>workflow-test-fix</code></td><td>Test generation and fix cycles</td></tr> <tr><td><code>brainstorm</code></td><td>Multi-role brainstorming analysis</td></tr> </table> </div>Workflow Examples
# Skill triggers (no slash - just describe what you want)
workflow-lite-plan "Add JWT authentication"
workflow-plan "Implement payment gateway integration"
workflow-execute
# Brainstorming
brainstorm "Design real-time collaboration system"
# Slash commands for session management
/workflow/session:start
/workflow/session:resume
/workflow/session:complete
π οΈ CLI Tool Installation
<div align="center"> <table> <tr><th>CLI</th><th>Description</th><th>Official Docs</th></tr> <tr><td><b>Gemini</b></td><td>Google AI analysis</td><td><a href="https://github.com/google-gemini/gemini-cli">google-gemini/gemini-cli</a></td></tr> <tr><td><b>Codex</b></td><td>OpenAI autonomous coding</td><td><a href="https://github.com/openai/codex">openai/codex</a></td></tr> <tr><td><b>OpenCode</b></td><td>Open-source multi-model</td><td><a href="https://github.com/opencode-ai/opencode">opencode-ai/opencode</a></td></tr> <tr><td><b>Qwen</b></td><td>Alibaba Qwen-Code</td><td><a href="https://github.com/QwenLM">QwenLM/Qwen</a></td></tr> </table> </div>π Semantic CLI Invocation
<div align="center"> <img src="https://img.shields.io/badge/Just_Describe-What_You_Want-6366F1?style=flat-square"/> <img src="https://img.shields.io/badge/CCW_Handles-The_Rest-10B981?style=flat-square"/> </div> <br/>Users can semantically specify CLI tools in prompts - the system automatically invokes the corresponding CLI.
Basic Invocation
<div align="center">| User Prompt | System Action |
|---|---|
| "Use Gemini to analyze the auth module" | Auto-invoke gemini CLI for analysis |
| "Let Codex review this code" | Auto-invoke codex CLI for review |
| "Ask Qwen about performance optimization" | Auto-invoke qwen CLI for consultation |
Multi-CLI Orchestration
<div align="center">| Pattern | User Prompt Example |
|---|---|
| Collaborative | "Use Gemini and Codex to collaboratively analyze security vulnerabilities" |
| Parallel | "Have Gemini, Codex, and Qwen analyze the architecture in parallel" |
| Iterative | "Use Gemini to diagnose, then Codex to fix, iterate until resolved" |
| Pipeline | "Gemini designs the solution, Codex implements, Claude reviews" |
π ACE Tool Configuration
ACE (Augment Context Engine) provides powerful semantic code search.
<div align="center">| Method | Link |
|---|---|
| Official | Augment MCP Documentation |
| Proxy | ace-tool (GitHub) |
π CodexLens Local Search
<div align="center"> <table> <tr><th>Search Mode</th><th>Description</th></tr> <tr><td><b>FTS</b></td><td>Full-text search, based on SQLite FTS5</td></tr> <tr><td><b>Semantic</b></td><td>Semantic search, using local embedding models</td></tr> <tr><td><b>Hybrid</b></td><td>Hybrid search, combining FTS + Semantic + Reranking</td></tr> </table> </div>β οΈ In Development: CodexLens is under iterative optimization. Some features may be unstable.
π» CCW CLI Commands
π Recommended Commands
<div align="center"> <table> <tr><th>Command</th><th>Description</th><th>When to Use</th></tr> <tr> <td><b>/ccw</b></td> <td>Auto workflow orchestrator - analyzes intent, selects workflow, executes</td> <td>β General tasks, auto workflow selection</td> </tr> <tr> <td><b>/ccw-coordinator</b></td> <td>Smart orchestrator - recommends command chains, allows manual adjustment</td> <td>π§ Complex multi-step workflows</td> </tr> </table> </div>Quick Examples:
# /ccw - Auto workflow selection
/ccw "Add user authentication"
/ccw "Fix memory leak in WebSocket"
/ccw "Implement with TDD"
# /ccw-coordinator - Manual chain orchestration
/ccw-coordinator "Implement OAuth2 system"
Session Management Commands
/workflow:session:start # Start new workflow session
/workflow:session:resume # Resume paused session
/workflow:session:list # List all sessions
/workflow:session:sync # Sync session work
/workflow:session:complete # Complete session
Issue Workflow Commands
/issue/new # Create new issue
/issue/plan # Plan issue resolution
/issue/queue # Form execution queue
/issue/execute # Execute issue queue
Other CLI Commands
ccw install # Install workflow files
ccw view # Open dashboard
ccw cli -p "..." # Execute CLI tools (Gemini/Qwen/Codex)
ccw upgrade -a # Upgrade all installations
ποΈ Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Workflow Skills β
β π workflow-lite-plan / workflow-multi-cli-plan (lightweight) β
β π workflow-plan / workflow-tdd-plan (session-based) β
β π§ͺ workflow-test-fix / workflow-test-fix β
β π§ brainstorm (multi-role analysis) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Team Architecture v2 β
β π€ team-worker agents with role-spec based execution β
β π Inner loop framework for sequential task processing β
β π’ Message bus protocol with team coordination β
β π§ Wisdom accumulation (learnings/decisions/conventions) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Queue Scheduler Service β
β βοΈ Background execution service with API endpoints β
β π Queue management and unified CLI execution settings β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Terminal Dashboard & Orchestrator β
β π₯οΈ Multi-terminal grid with execution monitor β
β π¨ Template-based workflow editor with slash commands β
β π‘ Real-time agent communication via A2UI β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¦ Project Structure
Claude-Code-Workflow/
βββ .claude/
β βββ agents/ # 22 specialized agents (team-worker, cli-discuss, etc.)
β βββ commands/ # Slash commands (5 categories)
β β βββ ccw.md # Main orchestrator
β β βββ ccw-coordinator.md
β β βββ cli/ # CLI commands (cli-init, codex-review)
β β βββ issue/ # Issue management (plan, execute, queue)
β β βββ memory/ # Memory commands (prepare, style-skill-memory)
β β βββ workflow/ # Workflow commands (session, ui-design, etc.)
β βββ skills/ # 37 modular skills
β βββ workflow-lite-plan/
β βββ workflow-plan/
β βββ workflow-tdd-plan/
β βββ workflow-test-fix/
β βββ brainstorm/
β βββ team-*/ # Team coordination skills
β βββ ...
βββ ccw/
β βββ src/ # TypeScript source code
β β βββ commands/ # CLI command implementations
β β βββ core/ # Core services (a2ui, auth, hooks, routes)
β β βββ mcp-server/ # MCP server implementation
β β βββ tools/ # Tool implementations
β βββ frontend/ # React frontend (Terminal Dashboard, Orchestrator)
βββ codex-lens/ # Local semantic code search engine
βββ docs/ # Documentation
πΌ Team Cadence Control (Beat Model)
The v2 team architecture introduces an event-driven beat model for efficient orchestration:
Beat Cycle (single beat)
======================================================================
Event Coordinator Workers
----------------------------------------------------------------------
callback/resume --> +- handleCallback -+
| mark completed |
| check pipeline |
+- handleSpawnNext -+
| find ready tasks |
| spawn workers ---+--> [team-worker A] Phase 1-5
| (parallel OK) --+--> [team-worker B] Phase 1-5
+- STOP (idle) -----+ |
|
callback <-----------------------------------------+
(next beat) SendMessage + TaskUpdate(completed)
======================================================================
Key Benefits:
- π― Event-driven: Coordinator only wakes when needed (callback/resume)
- β‘ Fast-advance: Simple successors spawn directly without coordinator roundtrip
- π Dynamic pipelines: Generated per-task from dependency graph
- π Parallel execution: Independent tasks run concurrently
π₯οΈ Frontend Highlights
Terminal Dashboard
Multi-terminal grid layout with real-time execution monitoring.
Features:
- π₯οΈ Multi-terminal grid with resizable panes
- π Execution monitor with agent list
- π File sidebar for project navigation
- π― Session grouping by project tags
- π Fullscreen/immersive mode
Orchestrator Editor
Visual workflow template editor with drag-drop.
Features:
- π¨ React Flow-based visual editing
- π¦ Template library with pre-built workflows
- π§ Property panel for node configuration
- β‘ Slash command integration
π€ Contributing
<div align="center"> <a href="https://github.com/catlog22/Claude-Code-Workflow"><img src="https://img.shields.io/badge/GitHub-Repository-181717?style=flat-square" alt="GitHub"/></a> <a href="https://github.com/catlog22/Claude-Code-Workflow/issues"><img src="https://img.shields.io/badge/Issues-Report_Bug-EF4444?style=flat-square" alt="Issues"/></a> </div>π License
<div align="center">MIT License - see LICENSE
<br/> <!-- Footer --> <img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&customColorList=6,11,20&height=100§ion=footer"/> </div>