claude-code-workflow 6.3.50 → 6.3.52

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 (71) hide show
  1. package/.claude/commands/view.md +367 -0
  2. package/.claude/commands/workflow/merge-plans-with-file.md +807 -0
  3. package/.claude/commands/workflow/quick-plan-with-file.md +808 -0
  4. package/.claude/commands/workflow/unified-execute-with-file.md +807 -0
  5. package/.claude/skills/ccw-help/SKILL.md +72 -12
  6. package/.claude/skills/ccw-help/command.json +922 -520
  7. package/.claude/skills/ccw-help/index/all-agents.json +97 -0
  8. package/.claude/skills/ccw-help/index/all-commands.json +805 -0
  9. package/.claude/skills/ccw-help/index/by-category.json +833 -0
  10. package/.claude/skills/ccw-help/index/by-use-case.json +819 -0
  11. package/.claude/skills/ccw-help/index/command-relationships.json +160 -0
  12. package/.claude/skills/ccw-help/index/essential-commands.json +90 -0
  13. package/.claude/skills/ccw-help/scripts/auto-update.py +34 -0
  14. package/.claude/skills/skill-generator/SKILL.md +255 -208
  15. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -228
  16. package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -262
  17. package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -969
  18. package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -398
  19. package/.claude/skills/skill-generator/phases/05-validation.md +417 -417
  20. package/.claude/skills/skill-generator/specs/cli-integration.md +131 -131
  21. package/.claude/skills/skill-generator/specs/execution-modes.md +399 -396
  22. package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -0
  23. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
  24. package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -466
  25. package/.claude/skills/skill-generator/templates/autonomous-action.md +91 -88
  26. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +89 -89
  27. package/.claude/skills/skill-generator/templates/code-analysis-action.md +148 -149
  28. package/.claude/skills/skill-generator/templates/llm-action.md +367 -367
  29. package/.claude/skills/skill-generator/templates/script-template.md +79 -79
  30. package/.claude/skills/skill-generator/templates/sequential-phase.md +129 -129
  31. package/.claude/skills/skill-generator/templates/skill-md.md +134 -75
  32. package/.codex/prompts/brainstorm-with-file.md +99 -32
  33. package/.codex/prompts/merge-plans-with-file.md +530 -0
  34. package/.codex/prompts/quick-plan-with-file.md +450 -0
  35. package/.codex/prompts/unified-execute-with-file.md +722 -0
  36. package/.codex/skills/codex-issue-plan-execute/SKILL.md +214 -0
  37. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-complete.md +173 -0
  38. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-execute.md +220 -0
  39. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-init.md +86 -0
  40. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-list.md +165 -0
  41. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-plan.md +170 -0
  42. package/.codex/skills/codex-issue-plan-execute/phases/orchestrator.md +212 -0
  43. package/.codex/skills/codex-issue-plan-execute/phases/state-schema.md +136 -0
  44. package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent-system.md +32 -0
  45. package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent.md +323 -0
  46. package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent-system.md +32 -0
  47. package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent.md +224 -0
  48. package/.codex/skills/codex-issue-plan-execute/specs/agent-roles.md +468 -0
  49. package/.codex/skills/codex-issue-plan-execute/specs/issue-handling.md +187 -0
  50. package/.codex/skills/codex-issue-plan-execute/specs/quality-standards.md +231 -0
  51. package/.codex/skills/codex-issue-plan-execute/specs/solution-schema.md +270 -0
  52. package/.codex/skills/codex-issue-plan-execute/specs/subagent-roles.md +32 -0
  53. package/ccw/dist/commands/cli.d.ts.map +1 -1
  54. package/ccw/dist/commands/cli.js +23 -2
  55. package/ccw/dist/commands/cli.js.map +1 -1
  56. package/ccw/dist/core/routes/help-routes.d.ts.map +1 -1
  57. package/ccw/dist/core/routes/help-routes.js +51 -1
  58. package/ccw/dist/core/routes/help-routes.js.map +1 -1
  59. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  60. package/ccw/dist/tools/cli-executor-core.js +5 -3
  61. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  62. package/ccw/dist/tools/cli-executor-utils.d.ts +1 -0
  63. package/ccw/dist/tools/cli-executor-utils.d.ts.map +1 -1
  64. package/ccw/dist/tools/cli-executor-utils.js +9 -1
  65. package/ccw/dist/tools/cli-executor-utils.js.map +1 -1
  66. package/ccw/src/commands/cli.ts +26 -2
  67. package/ccw/src/core/routes/help-routes.ts +60 -1
  68. package/ccw/src/templates/dashboard-js/views/help.js +423 -1
  69. package/ccw/src/tools/cli-executor-core.ts +6 -3
  70. package/ccw/src/tools/cli-executor-utils.ts +11 -2
  71. package/package.json +1 -1
@@ -0,0 +1,271 @@
1
+ # Reference Documents Generation Specification
2
+
3
+ > **IMPORTANT**: This specification defines how to organize and present reference documents in generated skills to avoid duplication issues.
4
+
5
+ ## Core Principles
6
+
7
+ ### 1. Phase-Based Organization
8
+
9
+ Reference documents must be organized by skill execution phases, not as a flat list.
10
+
11
+ **Wrong Approach** (Flat List):
12
+ ```markdown
13
+ ## Reference Documents
14
+
15
+ | Document | Purpose |
16
+ |----------|---------|
17
+ | doc1.md | ... |
18
+ | doc2.md | ... |
19
+ | doc3.md | ... |
20
+ ```
21
+
22
+ **Correct Approach** (Phase-Based Navigation):
23
+ ```markdown
24
+ ## Reference Documents by Phase
25
+
26
+ ### Phase 1: Analysis
27
+ Documents to refer to when executing Phase 1
28
+
29
+ | Document | Purpose | When to Use |
30
+ |----------|---------|-------------|
31
+ | doc1.md | ... | Understand concept x |
32
+
33
+ ### Phase 2: Implementation
34
+ Documents to refer to when executing Phase 2
35
+
36
+ | Document | Purpose | When to Use |
37
+ |----------|---------|-------------|
38
+ | doc2.md | ... | Implement feature y |
39
+ ```
40
+
41
+ ### 2. Four Standard Groupings
42
+
43
+ Reference documents must be divided into the following four groupings:
44
+
45
+ | Grouping | When to Use | Content |
46
+ |----------|------------|---------|
47
+ | **Phase N: [Name]** | When executing this phase | All documents related to this phase |
48
+ | **Debugging** | When encountering problems | Issue to documentation mapping table |
49
+ | **Reference** | When learning in depth | Templates, original implementations, best practices |
50
+ | (Optional) **Quick Links** | Quick navigation | Most frequently consulted 5-7 documents |
51
+
52
+ ### 3. Each Document Entry Must Include
53
+
54
+ ```
55
+ | [path](path) | Purpose | When to Use |
56
+ ```
57
+
58
+ **When to Use Column Requirements**:
59
+ - Clear explanation of usage scenarios
60
+ - Describe what problem is solved
61
+ - Do not simply say "refer to" or "learn about"
62
+
63
+ **Good Examples**:
64
+ - "Understand issue data structure"
65
+ - "Learn about the Planning Agent role"
66
+ - "Check if implementation meets quality standards"
67
+ - "Quickly locate the reason for status anomalies"
68
+
69
+ **Poor Examples**:
70
+ - "Reference document"
71
+ - "More information"
72
+ - "Background knowledge"
73
+
74
+ ### 4. Embedding Document Guidance in Execution Flow
75
+
76
+ In the "Execution Flow" section, each Phase description should include "Refer to" hints:
77
+
78
+ ```markdown
79
+ ### Phase 2: Planning Pipeline
80
+ → **Refer to**: action-plan.md, subagent-roles.md
81
+ → Detailed flow description...
82
+ ```
83
+
84
+ ### 5. Quick Troubleshooting Reference Table
85
+
86
+ Should contain common issue to documentation mapping:
87
+
88
+ ```markdown
89
+ ### Debugging & Troubleshooting
90
+
91
+ | Issue | Solution Document |
92
+ |-------|------------------|
93
+ | Phase execution failed | Refer to corresponding phase documentation |
94
+ | Output format incorrect | specs/quality-standards.md |
95
+ | Data validation failed | specs/schema-validation.md |
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Generation Rules
101
+
102
+ ### Rule 1: Document Classification Recognition
103
+
104
+ Automatically generate groupings based on skill phases:
105
+
106
+ ```javascript
107
+ const phaseEmojis = {
108
+ 'discovery': '📋', // Collection, exploration
109
+ 'generation': '🔧', // Generation, creation
110
+ 'analysis': '🔍', // Analysis, review
111
+ 'implementation': '⚙️', // Implementation, execution
112
+ 'validation': '✅', // Validation, testing
113
+ 'completion': '🏁', // Completion, wrap-up
114
+ };
115
+
116
+ // Generate a section for each phase
117
+ phases.forEach((phase, index) => {
118
+ const emoji = phaseEmojis[phase.type] || '📌';
119
+ const title = `### ${emoji} Phase ${index + 1}: ${phase.name}`;
120
+ // List all documents related to this phase
121
+ });
122
+ ```
123
+
124
+ ### Rule 2: Document to Phase Mapping
125
+
126
+ In config, specs and templates should be annotated with their belonging phases:
127
+
128
+ ```json
129
+ {
130
+ "specs": [
131
+ {
132
+ "path": "specs/issue-handling.md",
133
+ "purpose": "Issue data specification",
134
+ "phases": ["phase-2", "phase-3"], // Which phases this spec is related to
135
+ "context": "Understand issue structure and validation rules"
136
+ }
137
+ ]
138
+ }
139
+ ```
140
+
141
+ ### Rule 3: Priority and Mandatory Reading
142
+
143
+ Use visual symbols to distinguish document importance:
144
+
145
+ ```markdown
146
+ | Document | When | Notes |
147
+ |----------|------|-------|
148
+ | spec.md | **Must Read Before Execution** | Mandatory prerequisite |
149
+ | action.md | Refer to during execution | Operation guide |
150
+ | template.md | Reference for learning | Optional in-depth |
151
+ ```
152
+
153
+ ### Rule 4: Avoid Duplication
154
+
155
+ - **Mandatory Prerequisites** section: List mandatory P0 specifications
156
+ - **Reference Documents by Phase** section: List all documents (including mandatory prerequisites)
157
+ - Documents in both sections can overlap, but their purposes differ:
158
+ - Prerequisites: Emphasize "must read first"
159
+ - Reference: Provide "complete navigation"
160
+
161
+ ---
162
+
163
+ ## Implementation Example
164
+
165
+ ### Sequential Skill Example
166
+
167
+ ```markdown
168
+ ## Mandatory Prerequisites
169
+
170
+ | Document | Purpose | When |
171
+ |----------|---------|------|
172
+ | [specs/issue-handling.md](specs/issue-handling.md) | Issue data specification | **Must Read Before Execution** |
173
+ | [specs/solution-schema.md](specs/solution-schema.md) | Solution structure | **Must Read Before Execution** |
174
+
175
+ ---
176
+
177
+ ## Reference Documents by Phase
178
+
179
+ ### Phase 1: Issue Collection
180
+ Documents to refer to when executing Phase 1
181
+
182
+ | Document | Purpose | When to Use |
183
+ |----------|---------|-------------|
184
+ | [phases/actions/action-list.md](phases/actions/action-list.md) | Issue loading logic | Understand how to collect issues |
185
+ | [specs/issue-handling.md](specs/issue-handling.md) | Issue data specification | Verify issue format **Required Reading** |
186
+
187
+ ### Phase 2: Planning
188
+ Documents to refer to when executing Phase 2
189
+
190
+ | Document | Purpose | When to Use |
191
+ |----------|---------|-------------|
192
+ | [phases/actions/action-plan.md](phases/actions/action-plan.md) | Planning process | Understand issue to solution transformation |
193
+ | [specs/solution-schema.md](specs/solution-schema.md) | Solution structure | Verify solution JSON format **Required Reading** |
194
+
195
+ ### Debugging & Troubleshooting
196
+
197
+ | Issue | Solution Document |
198
+ |-------|------------------|
199
+ | Phase 1 failed | [phases/actions/action-list.md](phases/actions/action-list.md) |
200
+ | Planning output incorrect | [phases/actions/action-plan.md](phases/actions/action-plan.md) + [specs/solution-schema.md](specs/solution-schema.md) |
201
+ | Data validation failed | [specs/issue-handling.md](specs/issue-handling.md) |
202
+
203
+ ### Reference & Background
204
+
205
+ | Document | Purpose | Notes |
206
+ |----------|---------|-------|
207
+ | [../issue-plan.md](../../.codex/prompts/issue-plan.md) | Original implementation | Planning Agent system prompt |
208
+ ```
209
+
210
+ ---
211
+
212
+ ## Generation Algorithm
213
+
214
+ ```javascript
215
+ function generateReferenceDocuments(config) {
216
+ let result = '## Reference Documents by Phase\n\n';
217
+
218
+ // Generate a section for each phase
219
+ const phases = config.phases || config.actions || [];
220
+
221
+ phases.forEach((phase, index) => {
222
+ const phaseNum = index + 1;
223
+ const emoji = getPhaseEmoji(phase.type);
224
+ const title = phase.display_name || phase.name;
225
+
226
+ result += `### ${emoji} Phase ${phaseNum}: ${title}\n`;
227
+ result += `Documents to refer to when executing Phase ${phaseNum}\n\n`;
228
+
229
+ // Find all documents related to this phase
230
+ const docs = config.specs.filter(spec =>
231
+ (spec.phases || []).includes(`phase-${phaseNum}`) ||
232
+ matchesByName(spec.path, phase.name)
233
+ );
234
+
235
+ if (docs.length > 0) {
236
+ result += '| Document | Purpose | When to Use |\n';
237
+ result += '|----------|---------|-------------|\n';
238
+ docs.forEach(doc => {
239
+ const required = doc.phases && doc.phases[0] === `phase-${phaseNum}` ? ' **Required Reading**' : '';
240
+ result += `| [${doc.path}](${doc.path}) | ${doc.purpose} | ${doc.context}${required} |\n`;
241
+ });
242
+ result += '\n';
243
+ }
244
+ });
245
+
246
+ // Troubleshooting section
247
+ result += '### Debugging & Troubleshooting\n\n';
248
+ result += generateDebuggingTable(config);
249
+
250
+ // In-depth reference learning
251
+ result += '### Reference & Background\n\n';
252
+ result += generateReferenceTable(config);
253
+
254
+ return result;
255
+ }
256
+ ```
257
+
258
+ ---
259
+
260
+ ## Checklist
261
+
262
+ When generating skill's SKILL.md, the reference documents section should satisfy:
263
+
264
+ - [ ] Has clear "## Reference Documents by Phase" heading
265
+ - [ ] Each phase has a corresponding section (identified with symbols)
266
+ - [ ] Each document entry includes "When to Use" column
267
+ - [ ] Includes "Debugging & Troubleshooting" section
268
+ - [ ] Includes "Reference & Background" section
269
+ - [ ] Mandatory reading documents are marked with **bold** text
270
+ - [ ] Execution Flow section includes "→ **Refer to**: ..." guidance
271
+ - [ ] Avoid overly long document lists (maximum 5-8 documents per phase)