claude-code-workflow 6.3.26 → 6.3.28

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 (129) hide show
  1. package/.claude/CLAUDE.md +7 -1
  2. package/.claude/agents/action-planning-agent.md +1 -0
  3. package/.claude/agents/cli-discuss-agent.md +391 -0
  4. package/.claude/agents/cli-execution-agent.md +2 -0
  5. package/.claude/agents/cli-explore-agent.md +2 -1
  6. package/.claude/agents/cli-lite-planning-agent.md +1 -0
  7. package/.claude/agents/cli-planning-agent.md +1 -0
  8. package/.claude/agents/code-developer.md +1 -0
  9. package/.claude/agents/conceptual-planning-agent.md +2 -0
  10. package/.claude/agents/context-search-agent.md +1 -0
  11. package/.claude/agents/debug-explore-agent.md +2 -0
  12. package/.claude/agents/doc-generator.md +1 -0
  13. package/.claude/agents/issue-plan-agent.md +2 -1
  14. package/.claude/agents/issue-queue-agent.md +2 -1
  15. package/.claude/agents/memory-bridge.md +2 -0
  16. package/.claude/agents/test-context-search-agent.md +2 -0
  17. package/.claude/agents/test-fix-agent.md +1 -0
  18. package/.claude/agents/ui-design-agent.md +2 -0
  19. package/.claude/agents/universal-executor.md +1 -0
  20. package/.claude/commands/issue/execute.md +141 -163
  21. package/.claude/commands/workflow/lite-lite-lite.md +798 -0
  22. package/.claude/commands/workflow/multi-cli-plan.md +510 -0
  23. package/.claude/skills/ccw/SKILL.md +262 -372
  24. package/.claude/skills/ccw/command.json +547 -0
  25. package/.claude/skills/ccw-help/SKILL.md +46 -107
  26. package/.claude/skills/ccw-help/command.json +511 -0
  27. package/.claude/skills/skill-tuning/SKILL.md +303 -0
  28. package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -0
  29. package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
  30. package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
  31. package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -0
  32. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
  33. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
  34. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
  35. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
  36. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
  37. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
  38. package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
  39. package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
  40. package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -0
  41. package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
  42. package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -0
  43. package/.claude/skills/skill-tuning/phases/orchestrator.md +377 -0
  44. package/.claude/skills/skill-tuning/phases/state-schema.md +378 -0
  45. package/.claude/skills/skill-tuning/specs/category-mappings.json +284 -0
  46. package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -0
  47. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +318 -0
  48. package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -0
  49. package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +189 -0
  50. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +1537 -0
  51. package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -0
  52. package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -0
  53. package/.claude/workflows/cli-templates/schemas/multi-cli-discussion-schema.json +421 -0
  54. package/.claude/workflows/cli-tools-usage.md +0 -41
  55. package/ccw/dist/core/auth/csrf-middleware.d.ts.map +1 -1
  56. package/ccw/dist/core/auth/csrf-middleware.js +3 -1
  57. package/ccw/dist/core/auth/csrf-middleware.js.map +1 -1
  58. package/ccw/dist/core/data-aggregator.d.ts +2 -0
  59. package/ccw/dist/core/data-aggregator.d.ts.map +1 -1
  60. package/ccw/dist/core/data-aggregator.js +5 -2
  61. package/ccw/dist/core/data-aggregator.js.map +1 -1
  62. package/ccw/dist/core/lite-scanner.d.ts +2 -1
  63. package/ccw/dist/core/lite-scanner.d.ts.map +1 -1
  64. package/ccw/dist/core/lite-scanner.js +295 -6
  65. package/ccw/dist/core/lite-scanner.js.map +1 -1
  66. package/ccw/dist/core/routes/codexlens/config-handlers.d.ts.map +1 -1
  67. package/ccw/dist/core/routes/codexlens/config-handlers.js +5 -5
  68. package/ccw/dist/core/routes/codexlens/config-handlers.js.map +1 -1
  69. package/ccw/dist/core/routes/session-routes.d.ts.map +1 -1
  70. package/ccw/dist/core/routes/session-routes.js +166 -48
  71. package/ccw/dist/core/routes/session-routes.js.map +1 -1
  72. package/ccw/dist/core/routes/system-routes.d.ts.map +1 -1
  73. package/ccw/dist/core/routes/system-routes.js +87 -0
  74. package/ccw/dist/core/routes/system-routes.js.map +1 -1
  75. package/ccw/dist/core/server.js +2 -2
  76. package/ccw/dist/core/server.js.map +1 -1
  77. package/ccw/scripts/IMPLEMENTATION-SUMMARY.md +226 -0
  78. package/ccw/scripts/QUICK-REFERENCE.md +135 -0
  79. package/ccw/scripts/README-memory-embedder.md +157 -0
  80. package/ccw/scripts/__pycache__/memory_embedder.cpython-313.pyc +0 -0
  81. package/ccw/scripts/__pycache__/test_memory_embedder.cpython-313-pytest-8.4.2.pyc +0 -0
  82. package/ccw/scripts/memory-embedder-example.ts +184 -0
  83. package/ccw/scripts/memory_embedder.py +428 -0
  84. package/ccw/scripts/test_memory_embedder.py +245 -0
  85. package/ccw/src/core/auth/csrf-middleware.ts +3 -1
  86. package/ccw/src/core/data-aggregator.ts +7 -2
  87. package/ccw/src/core/lite-scanner.ts +440 -6
  88. package/ccw/src/core/routes/codexlens/config-handlers.ts +12 -9
  89. package/ccw/src/core/routes/session-routes.ts +201 -48
  90. package/ccw/src/core/routes/system-routes.ts +102 -0
  91. package/ccw/src/core/server.ts +2 -2
  92. package/ccw/src/templates/dashboard-css/01-base.css +8 -0
  93. package/ccw/src/templates/dashboard-css/02-session.css +81 -0
  94. package/ccw/src/templates/dashboard-css/04-lite-tasks.css +2442 -0
  95. package/ccw/src/templates/dashboard-css/21-cli-toolmgmt.css +157 -0
  96. package/ccw/src/templates/dashboard-css/32-issue-manager.css +23 -0
  97. package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +38 -4
  98. package/ccw/src/templates/dashboard-js/components/hook-manager.js +38 -13
  99. package/ccw/src/templates/dashboard-js/components/navigation.js +24 -4
  100. package/ccw/src/templates/dashboard-js/i18n.js +194 -6
  101. package/ccw/src/templates/dashboard-js/views/api-settings.js +32 -0
  102. package/ccw/src/templates/dashboard-js/views/claude-manager.js +44 -3
  103. package/ccw/src/templates/dashboard-js/views/cli-manager.js +303 -31
  104. package/ccw/src/templates/dashboard-js/views/history.js +44 -6
  105. package/ccw/src/templates/dashboard-js/views/home.js +1 -0
  106. package/ccw/src/templates/dashboard-js/views/issue-manager.js +54 -7
  107. package/ccw/src/templates/dashboard-js/views/lite-tasks.js +1817 -4
  108. package/ccw/src/templates/dashboard.html +5 -0
  109. package/package.json +2 -1
  110. package/.claude/skills/ccw/index/command-capabilities.json +0 -127
  111. package/.claude/skills/ccw/index/intent-rules.json +0 -136
  112. package/.claude/skills/ccw/index/workflow-chains.json +0 -451
  113. package/.claude/skills/ccw/phases/actions/bugfix.md +0 -218
  114. package/.claude/skills/ccw/phases/actions/coupled.md +0 -194
  115. package/.claude/skills/ccw/phases/actions/docs.md +0 -93
  116. package/.claude/skills/ccw/phases/actions/full.md +0 -154
  117. package/.claude/skills/ccw/phases/actions/issue.md +0 -201
  118. package/.claude/skills/ccw/phases/actions/rapid.md +0 -104
  119. package/.claude/skills/ccw/phases/actions/review-fix.md +0 -84
  120. package/.claude/skills/ccw/phases/actions/tdd.md +0 -66
  121. package/.claude/skills/ccw/phases/actions/ui.md +0 -79
  122. package/.claude/skills/ccw/phases/orchestrator.md +0 -435
  123. package/.claude/skills/ccw/specs/intent-classification.md +0 -336
  124. package/.claude/skills/ccw-help/index/all-agents.json +0 -82
  125. package/.claude/skills/ccw-help/index/all-commands.json +0 -882
  126. package/.claude/skills/ccw-help/index/by-category.json +0 -914
  127. package/.claude/skills/ccw-help/index/by-use-case.json +0 -896
  128. package/.claude/skills/ccw-help/index/command-relationships.json +0 -160
  129. package/.claude/skills/ccw-help/index/essential-commands.json +0 -112
@@ -1,139 +1,86 @@
1
1
  ---
2
2
  name: ccw-help
3
- description: Workflow command guide for Claude Code Workflow (78 commands). Search/browse commands, get next-step recommendations, view documentation, report issues. Triggers "CCW-help", "CCW-issue", "ccw-help", "ccw-issue", "ccw"
3
+ description: CCW command help system. Search, browse, recommend commands. Triggers "ccw-help", "ccw-issue".
4
4
  allowed-tools: Read, Grep, Glob, AskUserQuestion
5
- version: 6.0.0
5
+ version: 7.0.0
6
6
  ---
7
7
 
8
8
  # CCW-Help Skill
9
9
 
10
- CCW 命令帮助系统,提供命令搜索、推荐、文档查看和问题报告功能。
10
+ CCW 命令帮助系统,提供命令搜索、推荐、文档查看功能。
11
11
 
12
12
  ## Trigger Conditions
13
13
 
14
- - 关键词: "CCW-help", "CCW-issue", "ccw-help", "ccw-issue", "帮助", "命令", "怎么用"
15
- - 场景: 用户询问命令用法、搜索命令、请求下一步建议、报告问题
16
-
17
- ## Execution Flow
18
-
19
- ```mermaid
20
- graph TD
21
- A[User Query] --> B{Intent Classification}
22
- B -->|搜索| C[Command Search]
23
- B -->|推荐| D[Smart Recommendations]
24
- B -->|文档| E[Documentation]
25
- B -->|新手| F[Onboarding]
26
- B -->|问题| G[Issue Reporting]
27
- B -->|分析| H[Deep Analysis]
28
-
29
- C --> I[Query Index]
30
- D --> J[Query Relationships]
31
- E --> K[Read Source File]
32
- F --> L[Essential Commands]
33
- G --> M[Generate Template]
34
- H --> N[CLI Analysis]
35
-
36
- I & J & K & L & M & N --> O[Synthesize Response]
37
- ```
14
+ - 关键词: "ccw-help", "ccw-issue", "帮助", "命令", "怎么用"
15
+ - 场景: 询问命令用法、搜索命令、请求下一步建议
38
16
 
39
17
  ## Operation Modes
40
18
 
41
- ### Mode 1: Command Search 🔍
19
+ ### Mode 1: Command Search
42
20
 
43
- **Triggers**: "搜索命令", "find command", "planning 相关", "search"
21
+ **Triggers**: "搜索命令", "find command", "search"
44
22
 
45
23
  **Process**:
46
- 1. Query `index/all-commands.json` or `index/by-category.json`
47
- 2. Filter and rank results based on user context
48
- 3. Present top 3-5 relevant commands with usage hints
24
+ 1. Query `command.json` commands array
25
+ 2. Filter by name, description, category
26
+ 3. Present top 3-5 relevant commands
49
27
 
50
- ### Mode 2: Smart Recommendations 🤖
28
+ ### Mode 2: Smart Recommendations
51
29
 
52
- **Triggers**: "下一步", "what's next", "after /workflow:plan", "推荐"
30
+ **Triggers**: "下一步", "what's next", "推荐"
53
31
 
54
32
  **Process**:
55
- 1. Query `index/command-relationships.json`
56
- 2. Evaluate context and prioritize recommendations
57
- 3. Explain WHY each recommendation fits
33
+ 1. Query command's `flow.next_steps` in `command.json`
34
+ 2. Explain WHY each recommendation fits
58
35
 
59
- ### Mode 3: Full Documentation 📖
36
+ ### Mode 3: Documentation
60
37
 
61
- **Triggers**: "参数说明", "怎么用", "how to use", "详情"
38
+ **Triggers**: "怎么用", "how to use", "详情"
62
39
 
63
40
  **Process**:
64
- 1. Locate command in index
65
- 2. Read source file via `source` path (e.g., `commands/workflow/lite-plan.md`)
66
- 3. Extract relevant sections and provide context-specific examples
41
+ 1. Locate command in `command.json`
42
+ 2. Read source file via `source` path
43
+ 3. Provide context-specific examples
67
44
 
68
- ### Mode 4: Beginner Onboarding 🎓
45
+ ### Mode 4: Beginner Onboarding
69
46
 
70
- **Triggers**: "新手", "getting started", "如何开始", "常用命令"
47
+ **Triggers**: "新手", "getting started", "常用命令"
71
48
 
72
49
  **Process**:
73
- 1. Query `index/essential-commands.json`
74
- 2. Assess project stage (从0到1 vs 功能新增)
75
- 3. Guide appropriate workflow entry point
50
+ 1. Query `essential_commands` array
51
+ 2. Guide appropriate workflow entry point
76
52
 
77
- ### Mode 5: Issue Reporting 📝
53
+ ### Mode 5: Issue Reporting
78
54
 
79
- **Triggers**: "CCW-issue", "报告 bug", "功能建议", "问题咨询"
55
+ **Triggers**: "ccw-issue", "报告 bug"
80
56
 
81
57
  **Process**:
82
58
  1. Use AskUserQuestion to gather context
83
59
  2. Generate structured issue template
84
- 3. Provide actionable next steps
85
-
86
- ### Mode 6: Deep Analysis 🔬
87
-
88
- **Triggers**: "详细说明", "命令原理", "agent 如何工作", "实现细节"
89
-
90
- **Process**:
91
- 1. Read source documentation directly
92
- 2. For complex queries, use CLI for multi-file analysis:
93
- ```bash
94
- ccw cli -p "PURPOSE: Analyze command documentation..." --tool gemini --mode analysis --cd ~/.claude
95
- ```
96
60
 
97
- ## Index Files
61
+ ## Data Source
98
62
 
99
- CCW-Help 使用 JSON 索引实现快速查询(无 reference 文件夹,直接引用源文件):
63
+ Single source of truth: **[command.json](command.json)**
100
64
 
101
- | 文件 | 内容 | 用途 |
102
- |------|------|------|
103
- | `index/all-commands.json` | 完整命令目录 | 关键词搜索 |
104
- | `index/all-agents.json` | 完整 Agent 目录 | Agent 查询 |
105
- | `index/by-category.json` | 按类别分组 | 分类浏览 |
106
- | `index/by-use-case.json` | 按场景分组 | 场景推荐 |
107
- | `index/essential-commands.json` | 核心命令 | 新手引导 |
108
- | `index/command-relationships.json` | 命令关系 | 下一步推荐 |
65
+ | Field | Purpose |
66
+ |-------|---------|
67
+ | `commands[]` | Flat command list with metadata |
68
+ | `commands[].flow` | Relationships (next_steps, prerequisites) |
69
+ | `commands[].essential` | Essential flag for onboarding |
70
+ | `agents[]` | Agent directory |
71
+ | `essential_commands[]` | Core commands list |
109
72
 
110
73
  ### Source Path Format
111
74
 
112
- 索引中的 `source` 字段是从 `index/` 目录的相对路径(先向上再定位):
75
+ `source` 字段是相对路径(从 `skills/ccw-help/` 目录):
113
76
 
114
77
  ```json
115
78
  {
116
- "name": "workflow:lite-plan",
79
+ "name": "lite-plan",
117
80
  "source": "../../../commands/workflow/lite-plan.md"
118
81
  }
119
82
  ```
120
83
 
121
- 路径结构: `index/` → `ccw-help/` → `skills/` → `.claude/` → `commands/...`
122
-
123
- ## Configuration
124
-
125
- | 参数 | 默认值 | 说明 |
126
- |------|--------|------|
127
- | max_results | 5 | 搜索返回最大结果数 |
128
- | show_source | true | 是否显示源文件路径 |
129
-
130
- ## CLI Integration
131
-
132
- | 场景 | CLI Hint | 用途 |
133
- |------|----------|------|
134
- | 复杂查询 | `gemini --mode analysis` | 多文件分析对比 |
135
- | 文档生成 | - | 直接读取源文件 |
136
-
137
84
  ## Slash Commands
138
85
 
139
86
  ```bash
@@ -145,33 +92,25 @@ CCW-Help 使用 JSON 索引实现快速查询(无 reference 文件夹,直接
145
92
 
146
93
  ## Maintenance
147
94
 
148
- ### 更新索引
95
+ ### Update Index
149
96
 
150
97
  ```bash
151
98
  cd D:/Claude_dms3/.claude/skills/ccw-help
152
99
  python scripts/analyze_commands.py
153
100
  ```
154
101
 
155
- 脚本功能:
156
- 1. 扫描 `commands/` 和 `agents/` 目录
157
- 2. 提取 YAML frontmatter 元数据
158
- 3. 生成相对路径引用(无 reference 复制)
159
- 4. 重建所有索引文件
102
+ 脚本功能:扫描 commands/ 和 agents/ 目录,生成统一的 command.json
160
103
 
161
- ## System Statistics
104
+ ## Statistics
162
105
 
163
- - **Commands**: 78
164
- - **Agents**: 14
165
- - **Categories**: 5 (workflow, cli, memory, task, general)
166
- - **Essential**: 14 核心命令
106
+ - **Commands**: 88+
107
+ - **Agents**: 16
108
+ - **Essential**: 10 核心命令
167
109
 
168
110
  ## Core Principle
169
111
 
170
- **⚠️ 智能整合,非模板复制**
112
+ **智能整合,非模板复制**
171
113
 
172
- - 理解用户具体情况
173
- - 整合多个来源信息
174
- - 定制示例和说明
175
- - ✅ 提供渐进式深度
176
- - ❌ 原样复制文档
177
- - ❌ 返回未处理的 JSON
114
+ - 理解用户具体情况
115
+ - 整合多个来源信息
116
+ - 定制示例和说明