claude-code-workflow 6.0.5 β 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/action-planning-agent.md +1 -1
- package/.claude/agents/cli-execution-agent.md +269 -269
- package/.claude/agents/cli-explore-agent.md +182 -182
- package/.claude/agents/context-search-agent.md +582 -582
- package/.claude/agents/memory-bridge.md +93 -93
- package/.claude/commands/cli/cli-init.md +1 -1
- package/.claude/commands/memory/docs-full-cli.md +471 -471
- package/.claude/commands/memory/docs-related-cli.md +386 -386
- package/.claude/commands/memory/docs.md +615 -615
- package/.claude/commands/memory/load.md +1 -1
- package/.claude/commands/memory/update-full.md +332 -332
- package/.claude/commands/memory/update-related.md +5 -5
- package/.claude/commands/workflow/init.md +1 -1
- package/.claude/commands/workflow/lite-fix.md +621 -621
- package/.claude/commands/workflow/lite-plan.md +592 -592
- package/.claude/commands/workflow/tools/context-gather.md +434 -434
- package/.claude/commands/workflow/ui-design/generate.md +504 -504
- package/.claude/commands/workflow/ui-design/import-from-code.md +537 -537
- package/.claude/scripts/classify-folders.sh +4 -0
- package/.claude/scripts/convert_tokens_to_css.sh +4 -0
- package/.claude/scripts/detect_changed_modules.sh +5 -1
- package/.claude/scripts/discover-design-files.sh +87 -83
- package/.claude/scripts/generate_module_docs.sh +717 -713
- package/.claude/scripts/get_modules_by_depth.sh +5 -1
- package/.claude/scripts/ui-generate-preview.sh +4 -0
- package/.claude/scripts/ui-instantiate-prototypes.sh +4 -0
- package/.claude/scripts/update_module_claude.sh +4 -0
- package/.claude/skills/command-guide/index/all-commands.json +1 -12
- package/.claude/skills/command-guide/index/by-category.json +1 -12
- package/.claude/skills/command-guide/index/by-use-case.json +1 -12
- package/.claude/skills/command-guide/index/essential-commands.json +1 -12
- package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +127 -71
- package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +269 -269
- package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -182
- package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +18 -38
- package/.claude/skills/command-guide/reference/agents/context-search-agent.md +582 -577
- package/.claude/skills/command-guide/reference/agents/memory-bridge.md +93 -93
- package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +1 -1
- package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -471
- package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -386
- package/.claude/skills/command-guide/reference/commands/memory/docs.md +615 -610
- package/.claude/skills/command-guide/reference/commands/memory/load.md +1 -1
- package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -332
- package/.claude/skills/command-guide/reference/commands/memory/update-related.md +5 -5
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +299 -451
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +14 -37
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +252 -350
- package/.claude/skills/command-guide/reference/commands/workflow/init.md +2 -2
- package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +52 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +621 -602
- package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +46 -36
- package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +18 -58
- package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +22 -52
- package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +19 -48
- package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +25 -5
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +7 -7
- package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -434
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -11
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +4 -4
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -504
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -537
- package/.claude/workflows/context-search-strategy.md +77 -77
- package/.claude/workflows/tool-strategy.md +90 -71
- package/.claude/workflows/workflow-architecture.md +1 -1
- package/README.md +285 -285
- package/ccw/src/cli.js +7 -0
- package/ccw/src/commands/tool.js +217 -0
- package/ccw/src/core/dashboard-generator.js +18 -3
- package/ccw/src/core/lite-scanner.js +35 -11
- package/ccw/src/core/server.js +531 -46
- package/ccw/src/templates/dashboard-css/01-base.css +161 -0
- package/ccw/src/templates/dashboard-css/02-session.css +726 -0
- package/ccw/src/templates/dashboard-css/03-tasks.css +512 -0
- package/ccw/src/templates/dashboard-css/04-lite-tasks.css +843 -0
- package/ccw/src/templates/dashboard-css/05-context.css +2206 -0
- package/ccw/src/templates/dashboard-css/06-cards.css +1570 -0
- package/ccw/src/templates/dashboard-css/07-managers.css +936 -0
- package/ccw/src/templates/dashboard-css/08-review.css +1266 -0
- package/ccw/src/templates/dashboard-css/09-explorer.css +1397 -0
- package/ccw/src/templates/dashboard-js/components/global-notifications.js +219 -0
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +10 -0
- package/ccw/src/templates/dashboard-js/components/mcp-manager.js +11 -1
- package/ccw/src/templates/dashboard-js/components/navigation.js +11 -5
- package/ccw/src/templates/dashboard-js/components/tabs-context.js +20 -20
- package/ccw/src/templates/dashboard-js/components/tabs-other.js +11 -11
- package/ccw/src/templates/dashboard-js/components/theme.js +29 -1
- package/ccw/src/templates/dashboard-js/main.js +4 -0
- package/ccw/src/templates/dashboard-js/state.js +5 -0
- package/ccw/src/templates/dashboard-js/views/explorer.js +852 -0
- package/ccw/src/templates/dashboard-js/views/home.js +13 -9
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +8 -5
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +21 -16
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +90 -19
- package/ccw/src/templates/dashboard-js/views/project-overview.js +15 -11
- package/ccw/src/templates/dashboard-js/views/review-session.js +3 -3
- package/ccw/src/templates/dashboard-js/views/session-detail.js +38 -28
- package/ccw/src/templates/dashboard.html +129 -28
- package/ccw/src/tools/classify-folders.js +204 -0
- package/ccw/src/tools/convert-tokens-to-css.js +250 -0
- package/ccw/src/tools/detect-changed-modules.js +288 -0
- package/ccw/src/tools/discover-design-files.js +134 -0
- package/ccw/src/tools/edit-file.js +266 -0
- package/ccw/src/tools/generate-module-docs.js +416 -0
- package/ccw/src/tools/get-modules-by-depth.js +308 -0
- package/ccw/src/tools/index.js +176 -0
- package/ccw/src/tools/ui-generate-preview.js +327 -0
- package/ccw/src/tools/ui-instantiate-prototypes.js +301 -0
- package/ccw/src/tools/update-module-claude.js +380 -0
- package/package.json +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/status.md +0 -352
- package/ccw/src/core/server.js.bak +0 -385
- package/ccw/src/core/server_original.bak +0 -385
- package/ccw/src/templates/dashboard.css +0 -8187
- package/ccw/src/templates/dashboard_tailwind.html +0 -42
- package/ccw/src/templates/dashboard_test.html +0 -37
- package/ccw/src/templates/tailwind-base.css +0 -212
package/README.md
CHANGED
|
@@ -1,285 +1,285 @@
|
|
|
1
|
-
# π Claude Code Workflow (CCW)
|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/claude-code-workflow)
|
|
7
|
-
[](LICENSE)
|
|
8
|
-
[]()
|
|
9
|
-
|
|
10
|
-
**Languages:** [English](README.md) | [δΈζ](README_CN.md)
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
**Claude Code Workflow (CCW)** is a JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution. It transforms AI development from simple prompt chaining into a powerful orchestration system.
|
|
17
|
-
|
|
18
|
-
> **π Version 6.
|
|
19
|
-
>
|
|
20
|
-
> **Core Improvements**:
|
|
21
|
-
> -
|
|
22
|
-
> -
|
|
23
|
-
> -
|
|
24
|
-
> - β¨ **
|
|
25
|
-
>
|
|
26
|
-
> See [CHANGELOG.md](CHANGELOG.md) for complete details.
|
|
27
|
-
|
|
28
|
-
> π **New to CCW?** Check out the [**Getting Started Guide**](GETTING_STARTED.md) for a beginner-friendly 5-minute tutorial!
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## β¨ Core Concepts
|
|
33
|
-
|
|
34
|
-
CCW is built on a set of core principles that distinguish it from traditional AI development approaches:
|
|
35
|
-
|
|
36
|
-
- **Context-First Architecture**: Eliminates uncertainty during execution through pre-defined context gathering, ensuring agents have the right information *before* implementation.
|
|
37
|
-
- **JSON-First State Management**: Task state is fully stored in `.task/IMPL-*.json` files as the single source of truth, enabling programmatic orchestration without state drift.
|
|
38
|
-
- **Autonomous Multi-Stage Orchestration**: Commands chain-invoke specialized sub-commands and agents to automate complex workflows with zero user intervention.
|
|
39
|
-
- **Multi-Model Strategy**: Leverages the unique strengths of different AI models (e.g., Gemini for analysis, Codex for implementation) for superior results.
|
|
40
|
-
- **Layered Memory System**: A 4-tier documentation system that provides context at the appropriate abstraction level, preventing information overload.
|
|
41
|
-
- **Specialized Role-Based Agents**: A suite of agents (`@code-developer`, `@test-fix-agent`, etc.) that emulate a real software team for diverse tasks.
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## βοΈ Installation
|
|
46
|
-
|
|
47
|
-
### **π¦ npm Install (Recommended)**
|
|
48
|
-
|
|
49
|
-
Install globally via npm:
|
|
50
|
-
```bash
|
|
51
|
-
npm install -g claude-code-workflow
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Then install workflow files to your system:
|
|
55
|
-
```bash
|
|
56
|
-
# Interactive installation
|
|
57
|
-
ccw install
|
|
58
|
-
|
|
59
|
-
# Global installation (to ~/.claude)
|
|
60
|
-
ccw install -m Global
|
|
61
|
-
|
|
62
|
-
# Project-specific installation
|
|
63
|
-
ccw install -m Path -p /path/to/project
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### **π Alternative: One-Click Script Install**
|
|
67
|
-
|
|
68
|
-
**Windows (PowerShell):**
|
|
69
|
-
```powershell
|
|
70
|
-
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1" -UseBasicParsing).Content
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**Linux/macOS (Bash/Zsh):**
|
|
74
|
-
```bash
|
|
75
|
-
bash <(curl -fsSL https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.sh)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### **β
Verify Installation**
|
|
79
|
-
After installation, open **Claude Code** and verify that workflow commands are available by running:
|
|
80
|
-
```bash
|
|
81
|
-
/workflow:session:list
|
|
82
|
-
```
|
|
83
|
-
If slash commands (e.g., `/workflow:*`) are recognized, the installation was successful.
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## π₯οΈ CCW CLI Tool
|
|
88
|
-
|
|
89
|
-
The `ccw` command provides a powerful CLI for managing your Claude Code Workflow installation:
|
|
90
|
-
|
|
91
|
-
### **Commands**
|
|
92
|
-
|
|
93
|
-
| Command | Description |
|
|
94
|
-
|---------|-------------|
|
|
95
|
-
| `ccw install` | Install workflow files to Global (~/.claude) or specific Path |
|
|
96
|
-
| `ccw upgrade` | Upgrade existing installations to current package version |
|
|
97
|
-
| `ccw uninstall` | Remove workflow files from an installation |
|
|
98
|
-
| `ccw view` | Open the workflow dashboard in browser |
|
|
99
|
-
| `ccw serve` | Start dashboard server without opening browser |
|
|
100
|
-
| `ccw list` | List all managed installations |
|
|
101
|
-
|
|
102
|
-
### **Usage Examples**
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
# Install globally
|
|
106
|
-
ccw install -m Global
|
|
107
|
-
|
|
108
|
-
# Install to specific project
|
|
109
|
-
ccw install -m Path -p ./my-project
|
|
110
|
-
|
|
111
|
-
# Open dashboard
|
|
112
|
-
ccw view
|
|
113
|
-
|
|
114
|
-
# Start dashboard server on custom port
|
|
115
|
-
ccw serve -p 8080
|
|
116
|
-
|
|
117
|
-
# Upgrade all installations
|
|
118
|
-
ccw upgrade -a
|
|
119
|
-
|
|
120
|
-
# List installations
|
|
121
|
-
ccw list
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
### **Dashboard Features**
|
|
125
|
-
|
|
126
|
-
The CCW Dashboard (`ccw view`) provides:
|
|
127
|
-
- π **Session Overview**: View all workflow sessions with status and progress
|
|
128
|
-
- π **Task Management**: Track task execution and completion
|
|
129
|
-
- π **Review Sessions**: Manage code review cycles
|
|
130
|
-
- βοΈ **MCP Manager**: Configure and monitor MCP servers
|
|
131
|
-
- πͺ **Hook Manager**: Manage Claude Code hooks
|
|
132
|
-
- π **Project Explorer**: Navigate project structure and artifacts
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## π οΈ Command Reference
|
|
137
|
-
|
|
138
|
-
CCW provides a rich set of commands for managing workflows, tasks, and interactions with AI tools. For a complete list and detailed descriptions of all available commands, please refer to the [**COMMAND_REFERENCE.md**](COMMAND_REFERENCE.md) file.
|
|
139
|
-
|
|
140
|
-
For detailed technical specifications of each command, see [**COMMAND_SPEC.md**](COMMAND_SPEC.md).
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
### π‘ **Need Help? Use the Interactive Command Guide**
|
|
145
|
-
|
|
146
|
-
CCW includes a built-in **Command Guide Skill** to help you discover and use commands effectively:
|
|
147
|
-
|
|
148
|
-
- **`CCW-help`** - Get interactive help and command recommendations
|
|
149
|
-
- **`CCW-issue`** - Report bugs or request features using guided templates
|
|
150
|
-
|
|
151
|
-
The Command Guide provides:
|
|
152
|
-
- π **Smart Command Search** - Find commands by keyword, category, or use case
|
|
153
|
-
- π€ **Next-Step Recommendations** - Get suggestions for what to do after any command
|
|
154
|
-
- π **Detailed Documentation** - View arguments, examples, and best practices
|
|
155
|
-
- π **Beginner Onboarding** - Learn the 14 core commands through guided learning paths
|
|
156
|
-
- π **Issue Reporting** - Generate standardized bug reports and feature requests
|
|
157
|
-
|
|
158
|
-
**Usage Examples**:
|
|
159
|
-
```
|
|
160
|
-
User: "CCW-help"
|
|
161
|
-
β Interactive menu with command search, recommendations, and documentation
|
|
162
|
-
|
|
163
|
-
User: "What should I do after /workflow:plan?"
|
|
164
|
-
β Recommends /workflow:execute, /workflow:action-plan-verify with workflow patterns
|
|
165
|
-
|
|
166
|
-
User: "CCW-issue"
|
|
167
|
-
β Guided template generation for bugs, features, or question inquiries
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## π Quick Start
|
|
173
|
-
|
|
174
|
-
The best way to get started is by following the 5-minute tutorial in the [**Getting Started Guide**](GETTING_STARTED.md).
|
|
175
|
-
|
|
176
|
-
Here's a quick example of a common development workflow:
|
|
177
|
-
|
|
178
|
-
### **Option 1: Lite-Plan Workflow** (β‘ Recommended for Quick Tasks)
|
|
179
|
-
|
|
180
|
-
Lightweight interactive workflow with in-memory planning and immediate execution:
|
|
181
|
-
|
|
182
|
-
```bash
|
|
183
|
-
# Basic usage with auto-detection
|
|
184
|
-
/workflow:lite-plan "Add JWT authentication to user login"
|
|
185
|
-
|
|
186
|
-
# Force code exploration
|
|
187
|
-
/workflow:lite-plan -e "Refactor logging module for better performance"
|
|
188
|
-
|
|
189
|
-
# Basic usage
|
|
190
|
-
/workflow:lite-plan "Add unit tests for authentication service"
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
**Interactive Flow**:
|
|
194
|
-
1. **Phase 1**: Automatic task analysis and smart code exploration (if needed)
|
|
195
|
-
2. **Phase 2**: Answer clarification questions (if any)
|
|
196
|
-
3. **Phase 3**: Review generated plan and task breakdown
|
|
197
|
-
4. **Phase 4**: Three-dimensional confirmation:
|
|
198
|
-
- β
Confirm/Modify/Cancel task
|
|
199
|
-
- π§ Choose execution: Agent / Provide Plan Only / CLI (Gemini/Qwen/Codex)
|
|
200
|
-
- π Optional code review: No / Claude / Gemini / Qwen / Codex
|
|
201
|
-
5. **Phase 5**: Watch live execution and task tracking
|
|
202
|
-
|
|
203
|
-
### **Option 2: Lite-Fix Workflow** (π Recommended for Bug Fixes)
|
|
204
|
-
|
|
205
|
-
Intelligent bug diagnosis and fix workflow with adaptive severity assessment:
|
|
206
|
-
|
|
207
|
-
```bash
|
|
208
|
-
# Standard bug fix (auto-adapts based on severity)
|
|
209
|
-
/workflow:lite-fix "User avatar upload fails with 413 error"
|
|
210
|
-
|
|
211
|
-
# Production hotfix mode
|
|
212
|
-
/workflow:lite-fix --hotfix "Payment gateway 5xx errors"
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
**Workflow Features**:
|
|
216
|
-
- **Phase 1**: Intelligent root cause diagnosis with adaptive search
|
|
217
|
-
- **Phase 2**: Automatic impact assessment and risk scoring
|
|
218
|
-
- **Phase 3**: Fix strategy generation based on complexity
|
|
219
|
-
- **Phase 4**: Risk-aware verification planning
|
|
220
|
-
- **Phase 5**: User confirmation with execution selection
|
|
221
|
-
- **Phase 6**: Execution dispatch with complete artifact tracking
|
|
222
|
-
|
|
223
|
-
**Session Artifacts** (saved to `.workflow/.lite-fix/{bug-slug}-{timestamp}/`):
|
|
224
|
-
- `diagnosis.json` - Root cause analysis and reproduction steps
|
|
225
|
-
- `impact.json` - Risk score, severity, and workflow adaptations
|
|
226
|
-
- `fix-plan.json` - Fix strategy and implementation tasks
|
|
227
|
-
- `task.json` - Enhanced Task JSON with complete context
|
|
228
|
-
- `followup.json` - Auto-generated follow-up tasks (hotfix mode only)
|
|
229
|
-
|
|
230
|
-
### **Option 3: Full Workflow** (π Comprehensive Planning)
|
|
231
|
-
|
|
232
|
-
Traditional multi-stage workflow for complex projects:
|
|
233
|
-
|
|
234
|
-
1. **Create Plan** (auto-starts session):
|
|
235
|
-
```bash
|
|
236
|
-
/workflow:plan "Implement JWT-based user login and registration"
|
|
237
|
-
```
|
|
238
|
-
2. **Execute Plan**:
|
|
239
|
-
```bash
|
|
240
|
-
/workflow:execute
|
|
241
|
-
```
|
|
242
|
-
3. **View Status** (optional):
|
|
243
|
-
```bash
|
|
244
|
-
/workflow:status
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
## π Documentation
|
|
250
|
-
|
|
251
|
-
CCW provides comprehensive documentation to help you get started quickly and master advanced features:
|
|
252
|
-
|
|
253
|
-
### π **Getting Started**
|
|
254
|
-
- [**Getting Started Guide**](GETTING_STARTED.md) - 5-minute quick start tutorial
|
|
255
|
-
- [**Installation Guide**](INSTALL.md) - Detailed installation instructions ([δΈζ](INSTALL_CN.md))
|
|
256
|
-
- [**Workflow Decision Guide**](WORKFLOW_DECISION_GUIDE.md) - π³ Interactive flowchart to choose the right command
|
|
257
|
-
- [**Examples**](EXAMPLES.md) - Real-world use cases and practical examples
|
|
258
|
-
- [**FAQ**](FAQ.md) - Common questions and troubleshooting
|
|
259
|
-
|
|
260
|
-
### ποΈ **Architecture & Design**
|
|
261
|
-
- [**Architecture Overview**](ARCHITECTURE.md) - System design and core components
|
|
262
|
-
- [**Project Introduction**](PROJECT_INTRODUCTION.md) - Detailed project overview
|
|
263
|
-
- [**Workflow Diagrams**](WORKFLOW_DIAGRAMS.md) - Visual workflow representations
|
|
264
|
-
|
|
265
|
-
### π **Command Reference**
|
|
266
|
-
- [**Command Reference**](COMMAND_REFERENCE.md) - Complete list of all commands
|
|
267
|
-
- [**Command Spec**](COMMAND_SPEC.md) - Detailed technical specifications
|
|
268
|
-
- [**Command Flow Standard**](COMMAND_FLOW_STANDARD.md) - Command design patterns
|
|
269
|
-
|
|
270
|
-
### π€ **Contributing**
|
|
271
|
-
- [**Contributing Guide**](CONTRIBUTING.md) - How to contribute to CCW
|
|
272
|
-
- [**Changelog**](CHANGELOG.md) - Version history and release notes
|
|
273
|
-
|
|
274
|
-
---
|
|
275
|
-
|
|
276
|
-
## π€ Contributing & Support
|
|
277
|
-
|
|
278
|
-
- **Repository**: [GitHub - Claude-Code-Workflow](https://github.com/catlog22/Claude-Code-Workflow)
|
|
279
|
-
- **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/catlog22/Claude-Code-Workflow/issues).
|
|
280
|
-
- **Discussions**: Join the [Community Forum](https://github.com/catlog22/Claude-Code-Workflow/discussions).
|
|
281
|
-
- **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
|
|
282
|
-
|
|
283
|
-
## π License
|
|
284
|
-
|
|
285
|
-
This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.
|
|
1
|
+
# π Claude Code Workflow (CCW)
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
[](https://github.com/catlog22/Claude-Code-Workflow/releases)
|
|
6
|
+
[](https://www.npmjs.com/package/claude-code-workflow)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[]()
|
|
9
|
+
|
|
10
|
+
**Languages:** [English](README.md) | [δΈζ](README_CN.md)
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
**Claude Code Workflow (CCW)** is a JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution. It transforms AI development from simple prompt chaining into a powerful orchestration system.
|
|
17
|
+
|
|
18
|
+
> **π Version 6.1.0: Dashboard Icon Unification & CCW Tool System**
|
|
19
|
+
>
|
|
20
|
+
> **Core Improvements**:
|
|
21
|
+
> - π¨ **Dashboard Icon Unification**: Complete migration to Lucide Icons library across all views
|
|
22
|
+
> - π οΈ **CCW Tool Exec System**: New `ccw tool exec` command for executing tools with JSON parameters
|
|
23
|
+
> - π **Explorer Enhancements**: Async task execution, CLI selector improvements, WebSocket frame handling
|
|
24
|
+
> - β¨ **Smart Server Recognition**: Intelligent workspace switching and MCP multi-source configuration
|
|
25
|
+
>
|
|
26
|
+
> See [CHANGELOG.md](CHANGELOG.md) for complete details.
|
|
27
|
+
|
|
28
|
+
> π **New to CCW?** Check out the [**Getting Started Guide**](GETTING_STARTED.md) for a beginner-friendly 5-minute tutorial!
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## β¨ Core Concepts
|
|
33
|
+
|
|
34
|
+
CCW is built on a set of core principles that distinguish it from traditional AI development approaches:
|
|
35
|
+
|
|
36
|
+
- **Context-First Architecture**: Eliminates uncertainty during execution through pre-defined context gathering, ensuring agents have the right information *before* implementation.
|
|
37
|
+
- **JSON-First State Management**: Task state is fully stored in `.task/IMPL-*.json` files as the single source of truth, enabling programmatic orchestration without state drift.
|
|
38
|
+
- **Autonomous Multi-Stage Orchestration**: Commands chain-invoke specialized sub-commands and agents to automate complex workflows with zero user intervention.
|
|
39
|
+
- **Multi-Model Strategy**: Leverages the unique strengths of different AI models (e.g., Gemini for analysis, Codex for implementation) for superior results.
|
|
40
|
+
- **Layered Memory System**: A 4-tier documentation system that provides context at the appropriate abstraction level, preventing information overload.
|
|
41
|
+
- **Specialized Role-Based Agents**: A suite of agents (`@code-developer`, `@test-fix-agent`, etc.) that emulate a real software team for diverse tasks.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## βοΈ Installation
|
|
46
|
+
|
|
47
|
+
### **π¦ npm Install (Recommended)**
|
|
48
|
+
|
|
49
|
+
Install globally via npm:
|
|
50
|
+
```bash
|
|
51
|
+
npm install -g claude-code-workflow
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Then install workflow files to your system:
|
|
55
|
+
```bash
|
|
56
|
+
# Interactive installation
|
|
57
|
+
ccw install
|
|
58
|
+
|
|
59
|
+
# Global installation (to ~/.claude)
|
|
60
|
+
ccw install -m Global
|
|
61
|
+
|
|
62
|
+
# Project-specific installation
|
|
63
|
+
ccw install -m Path -p /path/to/project
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### **π Alternative: One-Click Script Install**
|
|
67
|
+
|
|
68
|
+
**Windows (PowerShell):**
|
|
69
|
+
```powershell
|
|
70
|
+
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1" -UseBasicParsing).Content
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Linux/macOS (Bash/Zsh):**
|
|
74
|
+
```bash
|
|
75
|
+
bash <(curl -fsSL https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.sh)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### **β
Verify Installation**
|
|
79
|
+
After installation, open **Claude Code** and verify that workflow commands are available by running:
|
|
80
|
+
```bash
|
|
81
|
+
/workflow:session:list
|
|
82
|
+
```
|
|
83
|
+
If slash commands (e.g., `/workflow:*`) are recognized, the installation was successful.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## π₯οΈ CCW CLI Tool
|
|
88
|
+
|
|
89
|
+
The `ccw` command provides a powerful CLI for managing your Claude Code Workflow installation:
|
|
90
|
+
|
|
91
|
+
### **Commands**
|
|
92
|
+
|
|
93
|
+
| Command | Description |
|
|
94
|
+
|---------|-------------|
|
|
95
|
+
| `ccw install` | Install workflow files to Global (~/.claude) or specific Path |
|
|
96
|
+
| `ccw upgrade` | Upgrade existing installations to current package version |
|
|
97
|
+
| `ccw uninstall` | Remove workflow files from an installation |
|
|
98
|
+
| `ccw view` | Open the workflow dashboard in browser |
|
|
99
|
+
| `ccw serve` | Start dashboard server without opening browser |
|
|
100
|
+
| `ccw list` | List all managed installations |
|
|
101
|
+
|
|
102
|
+
### **Usage Examples**
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Install globally
|
|
106
|
+
ccw install -m Global
|
|
107
|
+
|
|
108
|
+
# Install to specific project
|
|
109
|
+
ccw install -m Path -p ./my-project
|
|
110
|
+
|
|
111
|
+
# Open dashboard
|
|
112
|
+
ccw view
|
|
113
|
+
|
|
114
|
+
# Start dashboard server on custom port
|
|
115
|
+
ccw serve -p 8080
|
|
116
|
+
|
|
117
|
+
# Upgrade all installations
|
|
118
|
+
ccw upgrade -a
|
|
119
|
+
|
|
120
|
+
# List installations
|
|
121
|
+
ccw list
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### **Dashboard Features**
|
|
125
|
+
|
|
126
|
+
The CCW Dashboard (`ccw view`) provides:
|
|
127
|
+
- π **Session Overview**: View all workflow sessions with status and progress
|
|
128
|
+
- π **Task Management**: Track task execution and completion
|
|
129
|
+
- π **Review Sessions**: Manage code review cycles
|
|
130
|
+
- βοΈ **MCP Manager**: Configure and monitor MCP servers
|
|
131
|
+
- πͺ **Hook Manager**: Manage Claude Code hooks
|
|
132
|
+
- π **Project Explorer**: Navigate project structure and artifacts
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## π οΈ Command Reference
|
|
137
|
+
|
|
138
|
+
CCW provides a rich set of commands for managing workflows, tasks, and interactions with AI tools. For a complete list and detailed descriptions of all available commands, please refer to the [**COMMAND_REFERENCE.md**](COMMAND_REFERENCE.md) file.
|
|
139
|
+
|
|
140
|
+
For detailed technical specifications of each command, see [**COMMAND_SPEC.md**](COMMAND_SPEC.md).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### π‘ **Need Help? Use the Interactive Command Guide**
|
|
145
|
+
|
|
146
|
+
CCW includes a built-in **Command Guide Skill** to help you discover and use commands effectively:
|
|
147
|
+
|
|
148
|
+
- **`CCW-help`** - Get interactive help and command recommendations
|
|
149
|
+
- **`CCW-issue`** - Report bugs or request features using guided templates
|
|
150
|
+
|
|
151
|
+
The Command Guide provides:
|
|
152
|
+
- π **Smart Command Search** - Find commands by keyword, category, or use case
|
|
153
|
+
- π€ **Next-Step Recommendations** - Get suggestions for what to do after any command
|
|
154
|
+
- π **Detailed Documentation** - View arguments, examples, and best practices
|
|
155
|
+
- π **Beginner Onboarding** - Learn the 14 core commands through guided learning paths
|
|
156
|
+
- π **Issue Reporting** - Generate standardized bug reports and feature requests
|
|
157
|
+
|
|
158
|
+
**Usage Examples**:
|
|
159
|
+
```
|
|
160
|
+
User: "CCW-help"
|
|
161
|
+
β Interactive menu with command search, recommendations, and documentation
|
|
162
|
+
|
|
163
|
+
User: "What should I do after /workflow:plan?"
|
|
164
|
+
β Recommends /workflow:execute, /workflow:action-plan-verify with workflow patterns
|
|
165
|
+
|
|
166
|
+
User: "CCW-issue"
|
|
167
|
+
β Guided template generation for bugs, features, or question inquiries
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## π Quick Start
|
|
173
|
+
|
|
174
|
+
The best way to get started is by following the 5-minute tutorial in the [**Getting Started Guide**](GETTING_STARTED.md).
|
|
175
|
+
|
|
176
|
+
Here's a quick example of a common development workflow:
|
|
177
|
+
|
|
178
|
+
### **Option 1: Lite-Plan Workflow** (β‘ Recommended for Quick Tasks)
|
|
179
|
+
|
|
180
|
+
Lightweight interactive workflow with in-memory planning and immediate execution:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# Basic usage with auto-detection
|
|
184
|
+
/workflow:lite-plan "Add JWT authentication to user login"
|
|
185
|
+
|
|
186
|
+
# Force code exploration
|
|
187
|
+
/workflow:lite-plan -e "Refactor logging module for better performance"
|
|
188
|
+
|
|
189
|
+
# Basic usage
|
|
190
|
+
/workflow:lite-plan "Add unit tests for authentication service"
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Interactive Flow**:
|
|
194
|
+
1. **Phase 1**: Automatic task analysis and smart code exploration (if needed)
|
|
195
|
+
2. **Phase 2**: Answer clarification questions (if any)
|
|
196
|
+
3. **Phase 3**: Review generated plan and task breakdown
|
|
197
|
+
4. **Phase 4**: Three-dimensional confirmation:
|
|
198
|
+
- β
Confirm/Modify/Cancel task
|
|
199
|
+
- π§ Choose execution: Agent / Provide Plan Only / CLI (Gemini/Qwen/Codex)
|
|
200
|
+
- π Optional code review: No / Claude / Gemini / Qwen / Codex
|
|
201
|
+
5. **Phase 5**: Watch live execution and task tracking
|
|
202
|
+
|
|
203
|
+
### **Option 2: Lite-Fix Workflow** (π Recommended for Bug Fixes)
|
|
204
|
+
|
|
205
|
+
Intelligent bug diagnosis and fix workflow with adaptive severity assessment:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
# Standard bug fix (auto-adapts based on severity)
|
|
209
|
+
/workflow:lite-fix "User avatar upload fails with 413 error"
|
|
210
|
+
|
|
211
|
+
# Production hotfix mode
|
|
212
|
+
/workflow:lite-fix --hotfix "Payment gateway 5xx errors"
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
**Workflow Features**:
|
|
216
|
+
- **Phase 1**: Intelligent root cause diagnosis with adaptive search
|
|
217
|
+
- **Phase 2**: Automatic impact assessment and risk scoring
|
|
218
|
+
- **Phase 3**: Fix strategy generation based on complexity
|
|
219
|
+
- **Phase 4**: Risk-aware verification planning
|
|
220
|
+
- **Phase 5**: User confirmation with execution selection
|
|
221
|
+
- **Phase 6**: Execution dispatch with complete artifact tracking
|
|
222
|
+
|
|
223
|
+
**Session Artifacts** (saved to `.workflow/.lite-fix/{bug-slug}-{timestamp}/`):
|
|
224
|
+
- `diagnosis.json` - Root cause analysis and reproduction steps
|
|
225
|
+
- `impact.json` - Risk score, severity, and workflow adaptations
|
|
226
|
+
- `fix-plan.json` - Fix strategy and implementation tasks
|
|
227
|
+
- `task.json` - Enhanced Task JSON with complete context
|
|
228
|
+
- `followup.json` - Auto-generated follow-up tasks (hotfix mode only)
|
|
229
|
+
|
|
230
|
+
### **Option 3: Full Workflow** (π Comprehensive Planning)
|
|
231
|
+
|
|
232
|
+
Traditional multi-stage workflow for complex projects:
|
|
233
|
+
|
|
234
|
+
1. **Create Plan** (auto-starts session):
|
|
235
|
+
```bash
|
|
236
|
+
/workflow:plan "Implement JWT-based user login and registration"
|
|
237
|
+
```
|
|
238
|
+
2. **Execute Plan**:
|
|
239
|
+
```bash
|
|
240
|
+
/workflow:execute
|
|
241
|
+
```
|
|
242
|
+
3. **View Status** (optional):
|
|
243
|
+
```bash
|
|
244
|
+
/workflow:status
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## π Documentation
|
|
250
|
+
|
|
251
|
+
CCW provides comprehensive documentation to help you get started quickly and master advanced features:
|
|
252
|
+
|
|
253
|
+
### π **Getting Started**
|
|
254
|
+
- [**Getting Started Guide**](GETTING_STARTED.md) - 5-minute quick start tutorial
|
|
255
|
+
- [**Installation Guide**](INSTALL.md) - Detailed installation instructions ([δΈζ](INSTALL_CN.md))
|
|
256
|
+
- [**Workflow Decision Guide**](WORKFLOW_DECISION_GUIDE.md) - π³ Interactive flowchart to choose the right command
|
|
257
|
+
- [**Examples**](EXAMPLES.md) - Real-world use cases and practical examples
|
|
258
|
+
- [**FAQ**](FAQ.md) - Common questions and troubleshooting
|
|
259
|
+
|
|
260
|
+
### ποΈ **Architecture & Design**
|
|
261
|
+
- [**Architecture Overview**](ARCHITECTURE.md) - System design and core components
|
|
262
|
+
- [**Project Introduction**](PROJECT_INTRODUCTION.md) - Detailed project overview
|
|
263
|
+
- [**Workflow Diagrams**](WORKFLOW_DIAGRAMS.md) - Visual workflow representations
|
|
264
|
+
|
|
265
|
+
### π **Command Reference**
|
|
266
|
+
- [**Command Reference**](COMMAND_REFERENCE.md) - Complete list of all commands
|
|
267
|
+
- [**Command Spec**](COMMAND_SPEC.md) - Detailed technical specifications
|
|
268
|
+
- [**Command Flow Standard**](COMMAND_FLOW_STANDARD.md) - Command design patterns
|
|
269
|
+
|
|
270
|
+
### π€ **Contributing**
|
|
271
|
+
- [**Contributing Guide**](CONTRIBUTING.md) - How to contribute to CCW
|
|
272
|
+
- [**Changelog**](CHANGELOG.md) - Version history and release notes
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## π€ Contributing & Support
|
|
277
|
+
|
|
278
|
+
- **Repository**: [GitHub - Claude-Code-Workflow](https://github.com/catlog22/Claude-Code-Workflow)
|
|
279
|
+
- **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/catlog22/Claude-Code-Workflow/issues).
|
|
280
|
+
- **Discussions**: Join the [Community Forum](https://github.com/catlog22/Claude-Code-Workflow/discussions).
|
|
281
|
+
- **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
|
|
282
|
+
|
|
283
|
+
## π License
|
|
284
|
+
|
|
285
|
+
This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.
|
package/ccw/src/cli.js
CHANGED
|
@@ -6,6 +6,7 @@ import { installCommand } from './commands/install.js';
|
|
|
6
6
|
import { uninstallCommand } from './commands/uninstall.js';
|
|
7
7
|
import { upgradeCommand } from './commands/upgrade.js';
|
|
8
8
|
import { listCommand } from './commands/list.js';
|
|
9
|
+
import { toolCommand } from './commands/tool.js';
|
|
9
10
|
import { readFileSync, existsSync } from 'fs';
|
|
10
11
|
import { fileURLToPath } from 'url';
|
|
11
12
|
import { dirname, join } from 'path';
|
|
@@ -105,5 +106,11 @@ export function run(argv) {
|
|
|
105
106
|
.description('List all installed Claude Code Workflow instances')
|
|
106
107
|
.action(listCommand);
|
|
107
108
|
|
|
109
|
+
// Tool command
|
|
110
|
+
program
|
|
111
|
+
.command('tool [subcommand] [args] [json]')
|
|
112
|
+
.description('Execute CCW tools')
|
|
113
|
+
.action((subcommand, args, json) => toolCommand(subcommand, args, { json }));
|
|
114
|
+
|
|
108
115
|
program.parse(argv);
|
|
109
116
|
}
|