claude-code-workflow 6.3.43 → 6.3.44

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.
Files changed (77) hide show
  1. package/.claude/agents/tdd-developer.md +530 -0
  2. package/.claude/commands/issue/discover-by-prompt.md +5 -1
  3. package/.claude/commands/issue/discover.md +472 -468
  4. package/.claude/commands/issue/execute.md +580 -581
  5. package/.claude/commands/issue/new.md +417 -413
  6. package/.claude/commands/issue/plan.md +5 -1
  7. package/.claude/commands/issue/queue.md +445 -441
  8. package/.claude/commands/task/breakdown.md +207 -203
  9. package/.claude/commands/task/replan.md +440 -436
  10. package/.claude/commands/workflow/action-plan-verify.md +485 -447
  11. package/.claude/commands/workflow/brainstorm/artifacts.md +457 -453
  12. package/.claude/commands/workflow/brainstorm/auto-parallel.md +5 -1
  13. package/.claude/commands/workflow/brainstorm/synthesis.md +402 -398
  14. package/.claude/commands/workflow/clean.md +67 -35
  15. package/.claude/commands/workflow/debug-with-file.md +670 -666
  16. package/.claude/commands/workflow/debug.md +331 -327
  17. package/.claude/commands/workflow/develop-with-file.md +5 -1
  18. package/.claude/commands/workflow/execute.md +546 -498
  19. package/.claude/commands/workflow/lite-execute.md +44 -26
  20. package/.claude/commands/workflow/lite-fix.md +780 -730
  21. package/.claude/commands/workflow/lite-lite-lite.md +5 -1
  22. package/.claude/commands/workflow/lite-plan.md +87 -39
  23. package/.claude/commands/workflow/multi-cli-plan.md +572 -568
  24. package/.claude/commands/workflow/plan-verify.md +527 -0
  25. package/.claude/commands/workflow/plan.md +555 -551
  26. package/.claude/commands/workflow/replan.md +572 -515
  27. package/.claude/commands/workflow/review-fix.md +608 -610
  28. package/.claude/commands/workflow/session/complete.md +37 -14
  29. package/.claude/commands/workflow/session/solidify.md +303 -299
  30. package/.claude/commands/workflow/tdd-plan.md +630 -597
  31. package/.claude/commands/workflow/tdd-verify.md +391 -206
  32. package/.claude/commands/workflow/tools/conflict-resolution.md +24 -12
  33. package/.claude/commands/workflow/tools/task-generate-agent.md +583 -563
  34. package/.claude/commands/workflow/tools/task-generate-tdd.md +749 -517
  35. package/.claude/commands/workflow/ui-design/animation-extract.md +1154 -1150
  36. package/.claude/commands/workflow/ui-design/layout-extract.md +792 -788
  37. package/.claude/commands/workflow/ui-design/style-extract.md +777 -773
  38. package/.claude/skills/ccw/command.json +4 -4
  39. package/.claude/skills/ccw-coordinator/README.md +45 -0
  40. package/.claude/skills/ccw-coordinator/SKILL.md +320 -0
  41. package/.claude/skills/ccw-coordinator/phases/actions/action-abort.md +9 -0
  42. package/.claude/skills/ccw-coordinator/phases/actions/action-command-build.md +40 -0
  43. package/.claude/skills/ccw-coordinator/phases/actions/action-command-execute.md +124 -0
  44. package/.claude/skills/ccw-coordinator/phases/actions/action-command-selection.md +48 -0
  45. package/.claude/skills/ccw-coordinator/phases/actions/action-complete.md +25 -0
  46. package/.claude/skills/ccw-coordinator/phases/actions/action-init.md +26 -0
  47. package/.claude/skills/ccw-coordinator/phases/orchestrator.md +59 -0
  48. package/.claude/skills/ccw-coordinator/phases/state-schema.md +66 -0
  49. package/.claude/skills/ccw-coordinator/skill-config.json +66 -0
  50. package/.claude/skills/ccw-coordinator/specs/command-library.md +169 -0
  51. package/.claude/skills/ccw-coordinator/specs/specs.md +362 -0
  52. package/.claude/skills/ccw-coordinator/tools/README.md +95 -0
  53. package/.claude/skills/ccw-coordinator/tools/chain-validate.cjs +320 -0
  54. package/.claude/skills/ccw-coordinator/tools/command-registry.cjs +255 -0
  55. package/.claude/skills/ccw-help/command.json +5 -5
  56. package/.claude/skills/ccw-help/scripts/analyze_commands.py +337 -337
  57. package/.claude/workflows/cli-templates/prompts/workflow-impl-plan-template.txt +1 -1
  58. package/ccw/dist/commands/issue.d.ts +4 -0
  59. package/ccw/dist/commands/issue.d.ts.map +1 -1
  60. package/ccw/dist/commands/issue.js +73 -6
  61. package/ccw/dist/commands/issue.js.map +1 -1
  62. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
  63. package/ccw/dist/core/routes/cli-routes.js +32 -28
  64. package/ccw/dist/core/routes/cli-routes.js.map +1 -1
  65. package/ccw/dist/tools/claude-cli-tools.d.ts +10 -0
  66. package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
  67. package/ccw/dist/tools/claude-cli-tools.js +45 -0
  68. package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
  69. package/ccw/dist/tools/codex-lens.d.ts.map +1 -1
  70. package/ccw/dist/tools/codex-lens.js +38 -11
  71. package/ccw/dist/tools/codex-lens.js.map +1 -1
  72. package/ccw/src/commands/issue.ts +84 -6
  73. package/ccw/src/core/routes/cli-routes.ts +30 -25
  74. package/ccw/src/templates/dashboard-js/views/help.js +1 -1
  75. package/ccw/src/tools/claude-cli-tools.ts +50 -0
  76. package/ccw/src/tools/codex-lens.ts +40 -11
  77. package/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ # Orchestrator
2
+
3
+ 状态驱动编排:读状态 → 选动作 → 执行 → 更新状态
4
+
5
+ ## 决策逻辑
6
+
7
+ ```javascript
8
+ function selectNextAction(state) {
9
+ if (['completed', 'aborted'].includes(state.status)) return null;
10
+ if (state.error_count >= 3) return 'action-abort';
11
+
12
+ switch (state.status) {
13
+ case 'pending':
14
+ return 'action-init';
15
+ case 'running':
16
+ return state.confirmed && state.command_chain.length > 0
17
+ ? 'action-command-execute'
18
+ : 'action-command-selection';
19
+ case 'executing':
20
+ const pending = state.command_chain.filter(c => c.status === 'pending');
21
+ return pending.length === 0 ? 'action-complete' : 'action-command-execute';
22
+ default:
23
+ return 'action-abort';
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## 执行循环
29
+
30
+ ```javascript
31
+ const timestamp = Date.now();
32
+ const workDir = `.workflow/.ccw-coordinator/${timestamp}`;
33
+ Bash(`mkdir -p "${workDir}"`);
34
+
35
+ const state = {
36
+ session_id: `coord-${timestamp}`,
37
+ status: 'pending',
38
+ started_at: new Date().toISOString(),
39
+ task_description: '', // 从 action-command-selection 获取
40
+ command_chain: [],
41
+ current_command_index: 0,
42
+ execution_results: [],
43
+ confirmed: false,
44
+ error_count: 0
45
+ };
46
+ Write(`${workDir}/state.json`, JSON.stringify(state, null, 2));
47
+
48
+ let iterations = 0;
49
+ while (iterations < 50) {
50
+ const state = JSON.parse(Read(`${workDir}/state.json`));
51
+ const nextAction = selectNextAction(state);
52
+ if (!nextAction) break;
53
+
54
+ console.log(`[${nextAction}]`);
55
+ // 执行 phases/actions/{nextAction}.md
56
+
57
+ iterations++;
58
+ }
59
+ ```
@@ -0,0 +1,66 @@
1
+ # State Schema
2
+
3
+ ```typescript
4
+ interface State {
5
+ session_id: string;
6
+ status: 'pending' | 'running' | 'executing' | 'completed' | 'aborted';
7
+ started_at: string;
8
+ task_description: string; // 用户任务描述
9
+ command_chain: Command[];
10
+ current_command_index: number;
11
+ execution_results: ExecutionResult[];
12
+ confirmed: boolean;
13
+ error_count: number;
14
+ }
15
+
16
+ interface Command {
17
+ id: string;
18
+ order: number;
19
+ command: string;
20
+ status: 'pending' | 'running' | 'completed' | 'failed';
21
+ result?: ExecutionResult;
22
+ }
23
+
24
+ interface ExecutionResult {
25
+ command: string;
26
+ status: 'success' | 'failed';
27
+ exit_code: number;
28
+ output?: string;
29
+ summary?: { // 提取的关键产物
30
+ session?: string;
31
+ files?: string[];
32
+ timestamp: string;
33
+ };
34
+ }
35
+ ```
36
+
37
+ ## 状态转移
38
+
39
+ ```
40
+ pending → running → executing → completed
41
+ ↓ ↓
42
+ (abort) (error → abort)
43
+ ```
44
+
45
+ ## 初始化
46
+
47
+ ```javascript
48
+ {
49
+ session_id: generateId(),
50
+ status: 'pending',
51
+ started_at: new Date().toISOString(),
52
+ task_description: '', // 从用户输入获取
53
+ command_chain: [],
54
+ current_command_index: 0,
55
+ execution_results: [],
56
+ confirmed: false,
57
+ error_count: 0
58
+ }
59
+ ```
60
+
61
+ ## 更新
62
+
63
+ - 添加命令: `command_chain.push(cmd)`
64
+ - 确认执行: `confirmed = true, status = 'executing'`
65
+ - 记录执行: `execution_results.push(...), current_command_index++`
66
+ - 错误计数: `error_count++`
@@ -0,0 +1,66 @@
1
+ {
2
+ "skill_name": "ccw-coordinator",
3
+ "display_name": "CCW Coordinator",
4
+ "description": "Interactive command orchestration - select, build, and execute workflow command chains",
5
+ "execution_mode": "autonomous",
6
+ "version": "1.0.0",
7
+ "triggers": [
8
+ "coordinator",
9
+ "ccw-coordinator",
10
+ "命令编排",
11
+ "command chain"
12
+ ],
13
+ "allowed_tools": [
14
+ "Task",
15
+ "AskUserQuestion",
16
+ "Read",
17
+ "Write",
18
+ "Bash"
19
+ ],
20
+ "actions": [
21
+ {
22
+ "id": "action-init",
23
+ "name": "Init",
24
+ "description": "Initialize orchestration session"
25
+ },
26
+ {
27
+ "id": "action-command-selection",
28
+ "name": "Select Commands",
29
+ "description": "Interactive command selection from library"
30
+ },
31
+ {
32
+ "id": "action-command-build",
33
+ "name": "Build Chain",
34
+ "description": "Adjust and confirm command chain"
35
+ },
36
+ {
37
+ "id": "action-command-execute",
38
+ "name": "Execute",
39
+ "description": "Execute command chain sequentially"
40
+ },
41
+ {
42
+ "id": "action-complete",
43
+ "name": "Complete",
44
+ "description": "Generate final report"
45
+ },
46
+ {
47
+ "id": "action-abort",
48
+ "name": "Abort",
49
+ "description": "Abort session and save state"
50
+ }
51
+ ],
52
+ "termination_conditions": [
53
+ "user_exit",
54
+ "task_completed",
55
+ "error"
56
+ ],
57
+ "output": {
58
+ "location": ".workflow/.ccw-coordinator/{timestamp}",
59
+ "artifacts": [
60
+ "state.json",
61
+ "command-chain.json",
62
+ "execution-log.md",
63
+ "final-report.md"
64
+ ]
65
+ }
66
+ }
@@ -0,0 +1,169 @@
1
+ # Command Library
2
+
3
+ CCW Coordinator 支持的命令库。基于 CCW workflow 命令系统。
4
+
5
+ ## Command Categories
6
+
7
+ ### Planning Commands
8
+
9
+ | Command | Description | Level |
10
+ |---------|-------------|-------|
11
+ | `/workflow:lite-plan` | 轻量级规划 | L2 |
12
+ | `/workflow:plan` | 标准规划 | L3 |
13
+ | `/workflow:multi-cli-plan` | 多CLI协作规划 | L2 |
14
+ | `/workflow:brainstorm:auto-parallel` | 头脑风暴规划 | L4 |
15
+ | `/workflow:tdd-plan` | TDD规划 | L3 |
16
+
17
+ ### Execution Commands
18
+
19
+ | Command | Description | Level |
20
+ |---------|-------------|-------|
21
+ | `/workflow:lite-execute` | 轻量级执行 | L2 |
22
+ | `/workflow:execute` | 标准执行 | L3 |
23
+ | `/workflow:test-cycle-execute` | 测试循环执行 | L3 |
24
+
25
+ ### BugFix Commands
26
+
27
+ | Command | Description | Level |
28
+ |---------|-------------|-------|
29
+ | `/workflow:lite-fix` | 轻量级修复 | L2 |
30
+ | `/workflow:lite-fix --hotfix` | 紧急修复 | L2 |
31
+
32
+ ### Testing Commands
33
+
34
+ | Command | Description | Level |
35
+ |---------|-------------|-------|
36
+ | `/workflow:test-gen` | 测试生成 | L3 |
37
+ | `/workflow:test-fix-gen` | 测试修复生成 | L3 |
38
+ | `/workflow:tdd-verify` | TDD验证 | L3 |
39
+
40
+ ### Review Commands
41
+
42
+ | Command | Description | Level |
43
+ |---------|-------------|-------|
44
+ | `/workflow:review-session-cycle` | 会话审查 | L3 |
45
+ | `/workflow:review-module-cycle` | 模块审查 | L3 |
46
+ | `/workflow:review-fix` | 审查修复 | L3 |
47
+ | `/workflow:plan-verify` | 计划验证 | L3 |
48
+
49
+ ### Documentation Commands
50
+
51
+ | Command | Description | Level |
52
+ |---------|-------------|-------|
53
+ | `/memory:docs` | 生成文档 | L2 |
54
+ | `/memory:update-related` | 更新相关文档 | L2 |
55
+ | `/memory:update-full` | 全面更新文档 | L2 |
56
+
57
+ ### Issue Commands
58
+
59
+ | Command | Description | Level |
60
+ |---------|-------------|-------|
61
+ | `/issue:discover` | 发现Issue | Supplementary |
62
+ | `/issue:discover-by-prompt` | 基于提示发现Issue | Supplementary |
63
+ | `/issue:plan --all-pending` | 规划所有待处理Issue | Supplementary |
64
+ | `/issue:queue` | 排队Issue | Supplementary |
65
+ | `/issue:execute` | 执行Issue | Supplementary |
66
+
67
+ ## Command Chains (Recommended)
68
+
69
+ ### 标准开发流程
70
+
71
+ ```
72
+ 1. /workflow:lite-plan
73
+ 2. /workflow:lite-execute
74
+ 3. /workflow:test-cycle-execute
75
+ ```
76
+
77
+ ### 完整规划流程
78
+
79
+ ```
80
+ 1. /workflow:plan
81
+ 2. /workflow:plan-verify
82
+ 3. /workflow:execute
83
+ 4. /workflow:review-session-cycle
84
+ ```
85
+
86
+ ### TDD 流程
87
+
88
+ ```
89
+ 1. /workflow:tdd-plan
90
+ 2. /workflow:execute
91
+ 3. /workflow:tdd-verify
92
+ ```
93
+
94
+ ### Issue 批处理流程
95
+
96
+ ```
97
+ 1. /issue:plan --all-pending
98
+ 2. /issue:queue
99
+ 3. /issue:execute
100
+ ```
101
+
102
+ ## JSON Format
103
+
104
+ ```json
105
+ {
106
+ "workflow_commands": [
107
+ {
108
+ "category": "Planning",
109
+ "commands": [
110
+ { "name": "/workflow:lite-plan", "description": "轻量级规划" },
111
+ { "name": "/workflow:plan", "description": "标准规划" },
112
+ { "name": "/workflow:multi-cli-plan", "description": "多CLI协作规划" },
113
+ { "name": "/workflow:brainstorm:auto-parallel", "description": "头脑风暴" },
114
+ { "name": "/workflow:tdd-plan", "description": "TDD规划" }
115
+ ]
116
+ },
117
+ {
118
+ "category": "Execution",
119
+ "commands": [
120
+ { "name": "/workflow:lite-execute", "description": "轻量级执行" },
121
+ { "name": "/workflow:execute", "description": "标准执行" },
122
+ { "name": "/workflow:test-cycle-execute", "description": "测试循环执行" }
123
+ ]
124
+ },
125
+ {
126
+ "category": "BugFix",
127
+ "commands": [
128
+ { "name": "/workflow:lite-fix", "description": "轻量级修复" },
129
+ { "name": "/workflow:lite-fix --hotfix", "description": "紧急修复" }
130
+ ]
131
+ },
132
+ {
133
+ "category": "Testing",
134
+ "commands": [
135
+ { "name": "/workflow:test-gen", "description": "测试生成" },
136
+ { "name": "/workflow:test-fix-gen", "description": "测试修复" },
137
+ { "name": "/workflow:tdd-verify", "description": "TDD验证" }
138
+ ]
139
+ },
140
+ {
141
+ "category": "Review",
142
+ "commands": [
143
+ { "name": "/workflow:review-session-cycle", "description": "会话审查" },
144
+ { "name": "/workflow:review-module-cycle", "description": "模块审查" },
145
+ { "name": "/workflow:review-fix", "description": "审查修复" },
146
+ { "name": "/workflow:plan-verify", "description": "计划验证" }
147
+ ]
148
+ },
149
+ {
150
+ "category": "Documentation",
151
+ "commands": [
152
+ { "name": "/memory:docs", "description": "生成文档" },
153
+ { "name": "/memory:update-related", "description": "更新相关文档" },
154
+ { "name": "/memory:update-full", "description": "全面更新文档" }
155
+ ]
156
+ },
157
+ {
158
+ "category": "Issues",
159
+ "commands": [
160
+ { "name": "/issue:discover", "description": "发现Issue" },
161
+ { "name": "/issue:discover-by-prompt", "description": "基于提示发现Issue" },
162
+ { "name": "/issue:plan --all-pending", "description": "规划所有待处理Issue" },
163
+ { "name": "/issue:queue", "description": "排队Issue" },
164
+ { "name": "/issue:execute", "description": "执行Issue" }
165
+ ]
166
+ }
167
+ ]
168
+ }
169
+ ```