claude-code-workflow 6.3.49 → 6.3.51

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 (90) hide show
  1. package/.claude/commands/issue/new.md +1 -2
  2. package/.claude/commands/view.md +367 -0
  3. package/.claude/commands/workflow/unified-execute-with-file.md +807 -0
  4. package/.claude/skills/ccw-help/SKILL.md +72 -12
  5. package/.claude/skills/ccw-help/command.json +922 -520
  6. package/.claude/skills/ccw-help/index/all-agents.json +97 -0
  7. package/.claude/skills/ccw-help/index/all-commands.json +805 -0
  8. package/.claude/skills/ccw-help/index/by-category.json +833 -0
  9. package/.claude/skills/ccw-help/index/by-use-case.json +819 -0
  10. package/.claude/skills/ccw-help/index/command-relationships.json +160 -0
  11. package/.claude/skills/ccw-help/index/essential-commands.json +90 -0
  12. package/.claude/skills/ccw-help/scripts/auto-update.py +34 -0
  13. package/.claude/skills/skill-generator/SKILL.md +255 -208
  14. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -228
  15. package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -262
  16. package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -969
  17. package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -398
  18. package/.claude/skills/skill-generator/phases/05-validation.md +417 -417
  19. package/.claude/skills/skill-generator/specs/cli-integration.md +131 -131
  20. package/.claude/skills/skill-generator/specs/execution-modes.md +399 -396
  21. package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -0
  22. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
  23. package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -466
  24. package/.claude/skills/skill-generator/templates/autonomous-action.md +91 -88
  25. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +89 -89
  26. package/.claude/skills/skill-generator/templates/code-analysis-action.md +148 -149
  27. package/.claude/skills/skill-generator/templates/llm-action.md +367 -367
  28. package/.claude/skills/skill-generator/templates/script-template.md +79 -79
  29. package/.claude/skills/skill-generator/templates/sequential-phase.md +129 -129
  30. package/.claude/skills/skill-generator/templates/skill-md.md +134 -75
  31. package/.codex/prompts/UNIFIED_EXECUTE_COMPARISON.md +205 -0
  32. package/.codex/prompts/analyze-with-file.md +5 -2
  33. package/.codex/prompts/brainstorm-to-cycle.md +4 -3
  34. package/.codex/prompts/brainstorm-with-file.md +6 -2
  35. package/.codex/prompts/clean.md +7 -2
  36. package/.codex/prompts/compact.md +5 -3
  37. package/.codex/prompts/debug-with-file.md +6 -2
  38. package/.codex/prompts/execute.md +6 -2
  39. package/.codex/prompts/issue-execute.md +10 -2
  40. package/.codex/prompts/issue-new.md +390 -285
  41. package/.codex/prompts/lite-execute.md +8 -7
  42. package/.codex/prompts/lite-fix.md +6 -2
  43. package/.codex/prompts/lite-plan-a.md +6 -2
  44. package/.codex/prompts/lite-plan-b.md +6 -2
  45. package/.codex/prompts/lite-plan-c.md +6 -2
  46. package/.codex/prompts/unified-execute-with-file.md +722 -0
  47. package/.codex/skills/codex-issue-plan-execute/SKILL.md +239 -0
  48. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-complete.md +173 -0
  49. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-execute.md +220 -0
  50. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-init.md +86 -0
  51. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-list.md +165 -0
  52. package/.codex/skills/codex-issue-plan-execute/phases/actions/action-plan.md +170 -0
  53. package/.codex/skills/codex-issue-plan-execute/phases/orchestrator.md +210 -0
  54. package/.codex/skills/codex-issue-plan-execute/phases/state-schema.md +136 -0
  55. package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent-system.md +136 -0
  56. package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent.md +135 -0
  57. package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent-system.md +107 -0
  58. package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent.md +122 -0
  59. package/.codex/skills/codex-issue-plan-execute/specs/issue-handling.md +187 -0
  60. package/.codex/skills/codex-issue-plan-execute/specs/quality-standards.md +231 -0
  61. package/.codex/skills/codex-issue-plan-execute/specs/solution-schema.md +270 -0
  62. package/.codex/skills/codex-issue-plan-execute/specs/subagent-roles.md +268 -0
  63. package/ccw/dist/cli.d.ts.map +1 -1
  64. package/ccw/dist/cli.js +1 -0
  65. package/ccw/dist/cli.js.map +1 -1
  66. package/ccw/dist/commands/cli.d.ts +1 -0
  67. package/ccw/dist/commands/cli.d.ts.map +1 -1
  68. package/ccw/dist/commands/cli.js +74 -6
  69. package/ccw/dist/commands/cli.js.map +1 -1
  70. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
  71. package/ccw/dist/core/routes/cli-routes.js +16 -1
  72. package/ccw/dist/core/routes/cli-routes.js.map +1 -1
  73. package/ccw/dist/core/routes/help-routes.d.ts.map +1 -1
  74. package/ccw/dist/core/routes/help-routes.js +51 -1
  75. package/ccw/dist/core/routes/help-routes.js.map +1 -1
  76. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  77. package/ccw/dist/tools/cli-executor-core.js +5 -3
  78. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  79. package/ccw/dist/tools/cli-executor-utils.d.ts +1 -0
  80. package/ccw/dist/tools/cli-executor-utils.d.ts.map +1 -1
  81. package/ccw/dist/tools/cli-executor-utils.js +3 -1
  82. package/ccw/dist/tools/cli-executor-utils.js.map +1 -1
  83. package/ccw/src/cli.ts +1 -0
  84. package/ccw/src/commands/cli.ts +77 -6
  85. package/ccw/src/core/routes/cli-routes.ts +16 -1
  86. package/ccw/src/core/routes/help-routes.ts +60 -1
  87. package/ccw/src/templates/dashboard-js/views/help.js +423 -1
  88. package/ccw/src/tools/cli-executor-core.ts +6 -3
  89. package/ccw/src/tools/cli-executor-utils.ts +5 -2
  90. package/package.json +1 -1
@@ -1,34 +1,34 @@
1
1
  # SKILL.md Template
2
2
 
3
- 用于生成新 Skill 入口文件的模板。
3
+ Template for generating new Skill entry files.
4
4
 
5
5
  ## Purpose
6
6
 
7
- 生成新 Skill 的入口文件 (SKILL.md),作为 Skill 的主文档和执行入口点。
7
+ Generate the entry file (SKILL.md) for new Skills, serving as the main documentation and execution entry point for the Skill.
8
8
 
9
9
  ## Usage Context
10
10
 
11
11
  | Phase | Usage |
12
12
  |-------|-------|
13
- | Phase 2 (Structure Generation) | 创建 SKILL.md 入口文件 |
14
- | Generation Trigger | `config.execution_mode` 决定架构图样式 |
13
+ | Phase 2 (Structure Generation) | Create SKILL.md entry file |
14
+ | Generation Trigger | `config.execution_mode` determines architecture diagram style |
15
15
  | Output Location | `.claude/skills/{skill-name}/SKILL.md` |
16
16
 
17
17
  ---
18
18
 
19
- ## ⚠️ 重要:YAML Front Matter 规范
19
+ ## Important: YAML Front Matter Specification
20
20
 
21
- > **CRITICAL**: SKILL.md 文件必须以 YAML front matter 开头,即以 `---` 作为文件第一行。
21
+ > **CRITICAL**: The SKILL.md file MUST begin with YAML front matter, meaning `---` must be the first line of the file.
22
22
  >
23
- > **禁止**使用以下格式:
24
- > - `# Title` 然后 `## Metadata` + yaml 代码块
25
- > - 任何在 `---` 之前的内容
23
+ > **Do NOT use** the following formats:
24
+ > - `# Title` followed by `## Metadata` + yaml code block
25
+ > - Any content before `---`
26
26
  >
27
- > **正确格式**:文件第一行必须是 `---`
27
+ > **Correct format**: The first line MUST be `---`
28
28
 
29
- ## 可直接应用的模板
29
+ ## Ready-to-use Template
30
30
 
31
- 以下是完整的 SKILL.md 模板。生成时**直接复制应用**,将 `{{变量}}` 替换为实际值:
31
+ The following is a complete SKILL.md template. When generating, **directly copy and apply** it, replacing `{{variables}}` with actual values:
32
32
 
33
33
  ---
34
34
  name: {{skill_name}}
@@ -52,9 +52,9 @@ allowed-tools: {{allowed_tools}}
52
52
 
53
53
  ---
54
54
 
55
- ## ⚠️ Mandatory Prerequisites (强制前置条件)
55
+ ## Mandatory Prerequisites
56
56
 
57
- > **⛔ 禁止跳过**: 在执行任何操作之前,**必须**完整阅读以下文档。未阅读规范直接执行将导致输出不符合质量标准。
57
+ > **Do NOT skip**: Before performing any operations, you **must** completely read the following documents. Proceeding without reading the specifications will result in outputs that do not meet quality standards.
58
58
 
59
59
  {{mandatory_prerequisites}}
60
60
 
@@ -80,31 +80,33 @@ Bash(\`mkdir -p "\${workDir}"\`);
80
80
  {{output_structure}}
81
81
  \`\`\`
82
82
 
83
- ## Reference Documents
83
+ ## Reference Documents by Phase
84
+
85
+ > **Important**: Reference documents should be organized by execution phase, clearly marking when and in what scenarios they are used. Avoid listing documents in a flat manner.
84
86
 
85
87
  {{reference_table}}
86
88
 
87
89
  ---
88
90
 
89
- ## 变量说明
91
+ ## Variable Descriptions
90
92
 
91
- | 变量 | 类型 | 来源 |
92
- |------|------|------|
93
+ | Variable | Type | Source |
94
+ |----------|------|--------|
93
95
  | `{{skill_name}}` | string | config.skill_name |
94
96
  | `{{display_name}}` | string | config.display_name |
95
97
  | `{{description}}` | string | config.description |
96
98
  | `{{triggers}}` | string | config.triggers.join(", ") |
97
99
  | `{{allowed_tools}}` | string | config.allowed_tools.join(", ") |
98
- | `{{architecture_diagram}}` | string | 根据 execution_mode 生成 (包含 Phase 0) |
99
- | `{{design_principles}}` | string | 根据 execution_mode 生成 |
100
- | `{{mandatory_prerequisites}}` | string | 强制前置阅读文档列表 (specs + templates) |
101
- | `{{execution_flow}}` | string | 根据 phases/actions 生成 (Phase 0 在最前) |
100
+ | `{{architecture_diagram}}` | string | Generated based on execution_mode (includes Phase 0) |
101
+ | `{{design_principles}}` | string | Generated based on execution_mode |
102
+ | `{{mandatory_prerequisites}}` | string | List of mandatory prerequisite reading documents (specs + templates) |
103
+ | `{{execution_flow}}` | string | Generated from phases/actions (Phase 0 first) |
102
104
  | `{{output_location}}` | string | config.output.location |
103
- | `{{additional_dirs}}` | string | 根据 execution_mode 生成 |
104
- | `{{output_structure}}` | string | 根据配置生成 |
105
- | `{{reference_table}}` | string | 根据文件列表生成 |
105
+ | `{{additional_dirs}}` | string | Generated based on execution_mode |
106
+ | `{{output_structure}}` | string | Generated based on configuration |
107
+ | `{{reference_table}}` | string | Generated from file list |
106
108
 
107
- ## 生成函数
109
+ ## Generation Function
108
110
 
109
111
  ```javascript
110
112
  function generateSkillMd(config) {
@@ -116,32 +118,32 @@ function generateSkillMd(config) {
116
118
  .replace(/\{\{description\}\}/g, config.description)
117
119
  .replace(/\{\{triggers\}\}/g, config.triggers.map(t => `"${t}"`).join(", "))
118
120
  .replace(/\{\{allowed_tools\}\}/g, config.allowed_tools.join(", "))
119
- .replace(/\{\{architecture_diagram\}\}/g, generateArchitecture(config)) // 包含 Phase 0
121
+ .replace(/\{\{architecture_diagram\}\}/g, generateArchitecture(config)) // Includes Phase 0
120
122
  .replace(/\{\{design_principles\}\}/g, generatePrinciples(config))
121
- .replace(/\{\{mandatory_prerequisites\}\}/g, generatePrerequisites(config)) // 强制前置条件
122
- .replace(/\{\{execution_flow\}\}/g, generateFlow(config)) // Phase 0 在最前
123
+ .replace(/\{\{mandatory_prerequisites\}\}/g, generatePrerequisites(config)) // Mandatory prerequisites
124
+ .replace(/\{\{execution_flow\}\}/g, generateFlow(config)) // Phase 0 first
123
125
  .replace(/\{\{output_location\}\}/g, config.output.location)
124
126
  .replace(/\{\{additional_dirs\}\}/g, generateAdditionalDirs(config))
125
127
  .replace(/\{\{output_structure\}\}/g, generateOutputStructure(config))
126
128
  .replace(/\{\{reference_table\}\}/g, generateReferenceTable(config));
127
129
  }
128
130
 
129
- // 生成强制前置条件表格
131
+ // Generate mandatory prerequisites table
130
132
  function generatePrerequisites(config) {
131
133
  const specs = config.specs || [];
132
134
  const templates = config.templates || [];
133
135
 
134
- let result = '### 规范文档 (必读)\n\n';
135
- result += '| Document | Purpose | Priority |\n';
136
- result += '|----------|---------|----------|\n';
136
+ let result = '### Specification Documents (Required Reading)\n\n';
137
+ result += '| Document | Purpose | When |\n';
138
+ result += '|----------|---------|------|\n';
137
139
 
138
140
  specs.forEach((spec, index) => {
139
- const priority = index === 0 ? '**P0 - 最高**' : 'P1';
140
- result += `| [${spec.path}](${spec.path}) | ${spec.purpose} | ${priority} |\n`;
141
+ const when = index === 0 ? '**Must read before execution**' : 'Recommended before execution';
142
+ result += `| [${spec.path}](${spec.path}) | ${spec.purpose} | ${when} |\n`;
141
143
  });
142
144
 
143
145
  if (templates.length > 0) {
144
- result += '\n### 模板文件 (生成前必读)\n\n';
146
+ result += '\n### Template Files (Must read before generation)\n\n';
145
147
  result += '| Document | Purpose |\n';
146
148
  result += '|----------|---------|\n';
147
149
  templates.forEach(tmpl => {
@@ -151,9 +153,71 @@ function generatePrerequisites(config) {
151
153
 
152
154
  return result;
153
155
  }
156
+
157
+ // Generate phase-by-phase reference document guide
158
+ function generateReferenceTable(config) {
159
+ const phases = config.phases || config.actions || [];
160
+ const specs = config.specs || [];
161
+ const templates = config.templates || [];
162
+
163
+ let result = '';
164
+
165
+ // Generate document navigation for each execution phase
166
+ phases.forEach((phase, index) => {
167
+ const phaseNum = index + 1;
168
+ const phaseTitle = phase.display_name || phase.name;
169
+
170
+ result += `### Phase ${phaseNum}: ${phaseTitle}\n`;
171
+ result += `Documents to reference when executing Phase ${phaseNum}\n\n`;
172
+
173
+ // List documents related to this phase
174
+ const relatedDocs = filterDocsByPhase(specs, phase, index);
175
+ if (relatedDocs.length > 0) {
176
+ result += '| Document | Purpose | When to Use |\n';
177
+ result += '|----------|---------|-------------|\n';
178
+ relatedDocs.forEach(doc => {
179
+ result += `| [${doc.path}](${doc.path}) | ${doc.purpose} | ${doc.context || 'Reference content'} |\n`;
180
+ });
181
+ result += '\n';
182
+ }
183
+ });
184
+
185
+ // Troubleshooting section
186
+ result += '### Debugging & Troubleshooting\n';
187
+ result += 'Documents to reference when encountering issues\n\n';
188
+ result += '| Issue | Solution Document |\n';
189
+ result += '|-------|-------------------|\n';
190
+ result += `| Phase execution failed | Refer to the relevant Phase documentation |\n`;
191
+ result += `| Output does not meet expectations | [specs/quality-standards.md](specs/quality-standards.md) - Verify quality standards |\n`;
192
+ result += '\n';
193
+
194
+ // In-depth learning reference
195
+ result += '### Reference & Background\n';
196
+ result += 'For understanding the original implementation and design decisions\n\n';
197
+ result += '| Document | Purpose | Notes |\n';
198
+ result += '|----------|---------|-------|\n';
199
+ templates.forEach(tmpl => {
200
+ result += `| [${tmpl.path}](${tmpl.path}) | ${tmpl.purpose} | Reference during generation |\n`;
201
+ });
202
+
203
+ return result;
204
+ }
205
+
206
+ // Helper function: Get Phase emoji (removed)
207
+ // Note: Emoji support has been removed. Consider using Phase numbers instead.
208
+
209
+ // Helper function: Filter documents by Phase
210
+ function filterDocsByPhase(specs, phase, phaseIndex) {
211
+ // Simple filtering logic: match phase name keywords
212
+ const keywords = phase.name.toLowerCase().split('-');
213
+ return specs.filter(spec => {
214
+ const specName = spec.path.toLowerCase();
215
+ return keywords.some(kw => specName.includes(kw));
216
+ });
217
+ }
154
218
  ```
155
219
 
156
- ## Sequential 模式示例
220
+ ## Sequential Mode Example
157
221
 
158
222
  ```markdown
159
223
  ---
@@ -169,36 +233,33 @@ Generate API documentation from source code.
169
233
  ## Architecture Overview
170
234
 
171
235
  \`\`\`
172
- ┌─────────────────────────────────────────────────────────────────┐
173
- │ ⚠️ Phase 0: Specification → 阅读并理解设计规范 (强制前置) │
174
- │ Study │
175
-
176
- Phase 1: Scanning endpoints.json
177
-
178
- Phase 2: Parsing schemas.json │
179
- │ ↓ │
180
- │ Phase 3: Generation → api-docs.md │
181
- └─────────────────────────────────────────────────────────────────┘
236
+ Phase 0: Specification Study (Mandatory prerequisite - Read and understand design specifications)
237
+
238
+ Phase 1: Scanning → endpoints.json
239
+
240
+ Phase 2: Parsing schemas.json
241
+
242
+ Phase 3: Generation api-docs.md
182
243
  \`\`\`
183
244
 
184
- ## ⚠️ Mandatory Prerequisites (强制前置条件)
245
+ ## Mandatory Prerequisites
185
246
 
186
- > **⛔ 禁止跳过**: 在执行任何操作之前,**必须**完整阅读以下文档。
247
+ > **Do NOT skip**: Before performing any operations, you **must** completely read the following documents.
187
248
 
188
- ### 规范文档 (必读)
249
+ ### Specification Documents (Required Reading)
189
250
 
190
251
  | Document | Purpose | Priority |
191
252
  |----------|---------|----------|
192
- | [specs/api-standards.md](specs/api-standards.md) | API 文档标准规范 | **P0 - 最高** |
253
+ | [specs/api-standards.md](specs/api-standards.md) | API documentation standards specification | **P0 - Highest** |
193
254
 
194
- ### 模板文件 (生成前必读)
255
+ ### Template Files (Must read before generation)
195
256
 
196
257
  | Document | Purpose |
197
258
  |----------|---------|
198
- | [templates/endpoint-doc.md](templates/endpoint-doc.md) | 端点文档模板 |
259
+ | [templates/endpoint-doc.md](templates/endpoint-doc.md) | Endpoint documentation template |
199
260
  ```
200
261
 
201
- ## Autonomous 模式示例
262
+ ## Autonomous Mode Example
202
263
 
203
264
  ```markdown
204
265
  ---
@@ -214,36 +275,34 @@ Interactive task management with CRUD operations.
214
275
  ## Architecture Overview
215
276
 
216
277
  \`\`\`
217
- ┌─────────────────────────────────────────────────────────────────┐
218
- │ ⚠️ Phase 0: Specification Study (强制前置) │
219
- └───────────────┬─────────────────────────────────────────────────┘
220
-
221
- ┌─────────────────────────────────────────────────────────────────┐
222
- Orchestrator (状态驱动决策) │
223
- └───────────────┬─────────────────────────────────────────────────┘
224
-
225
- ┌───────────┼───────────┬───────────┐
226
- ↓ ↓ ↓ ↓
227
- ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐
228
- │ List │ │Create │ │ Edit │ │Delete │
229
- └───────┘ └───────┘ └───────┘ └───────┘
278
+ Phase 0: Specification Study (Mandatory prerequisite)
279
+
280
+ ┌────────────────────────────────────────┐
281
+ │ Orchestrator (State-driven decision) │
282
+ └────────────┬───────────────────────────┘
283
+
284
+ ┌────────┼────────┬────────┐
285
+ ↓ ↓ ↓ ↓
286
+ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐
287
+ │ List │ │ Create │ │ Edit │ │ Delete │
288
+ └────────┘ └────────┘ └────────┘ └────────┘
230
289
  \`\`\`
231
290
 
232
- ## ⚠️ Mandatory Prerequisites (强制前置条件)
291
+ ## Mandatory Prerequisites
233
292
 
234
- > **⛔ 禁止跳过**: 在执行任何操作之前,**必须**完整阅读以下文档。
293
+ > **Do NOT skip**: Before performing any operations, you **must** completely read the following documents.
235
294
 
236
- ### 规范文档 (必读)
295
+ ### Specification Documents (Required Reading)
237
296
 
238
297
  | Document | Purpose | Priority |
239
298
  |----------|---------|----------|
240
- | [specs/task-schema.md](specs/task-schema.md) | 任务数据结构规范 | **P0 - 最高** |
241
- | [specs/action-catalog.md](specs/action-catalog.md) | 动作目录 | P1 |
299
+ | [specs/task-schema.md](specs/task-schema.md) | Task data structure specification | **P0 - Highest** |
300
+ | [specs/action-catalog.md](specs/action-catalog.md) | Action catalog | P1 |
242
301
 
243
- ### 模板文件 (生成前必读)
302
+ ### Template Files (Must read before generation)
244
303
 
245
304
  | Document | Purpose |
246
305
  |----------|---------|
247
- | [templates/orchestrator-base.md](templates/orchestrator-base.md) | 编排器模板 |
248
- | [templates/action-base.md](templates/action-base.md) | 动作模板 |
306
+ | [templates/orchestrator-base.md](templates/orchestrator-base.md) | Orchestrator template |
307
+ | [templates/action-base.md](templates/action-base.md) | Action template |
249
308
  ```
@@ -0,0 +1,205 @@
1
+ # Unified-Execute-With-File: Claude vs Codex Versions
2
+
3
+ ## Overview
4
+
5
+ Two complementary implementations of the universal execution engine:
6
+
7
+ | Aspect | Claude CLI Command | Codex Prompt |
8
+ |--------|-------------------|--------------|
9
+ | **Location** | `.claude/commands/workflow/` | `.codex/prompts/` |
10
+ | **Format** | YAML frontmatter + Markdown | Simple Markdown + Variables |
11
+ | **Execution** | `/workflow:unified-execute-with-file` | Direct Codex execution |
12
+ | **Lines** | 807 (optimized) | 722 (adapted) |
13
+ | **Parameters** | CLI flags (`-y`, `-p`, `-m`) | Substitution variables (`$PLAN_PATH`, etc) |
14
+
15
+ ---
16
+
17
+ ## Format Differences
18
+
19
+ ### Claude Version (CLI Command)
20
+
21
+ **Header (YAML)**:
22
+ ```yaml
23
+ ---
24
+ name: unified-execute-with-file
25
+ description: Universal execution engine...
26
+ argument-hint: "[-y|--yes] [-p|--plan <path>] [-m|--mode sequential|parallel]"
27
+ allowed-tools: TodoWrite(*), Task(*), ...
28
+ ---
29
+ ```
30
+
31
+ **Parameters**: CLI-style flags with short forms
32
+ ```bash
33
+ /workflow:unified-execute-with-file -y -p PLAN_PATH -m parallel
34
+ ```
35
+
36
+ ### Codex Version (Prompt)
37
+
38
+ **Header (Simple)**:
39
+ ```yaml
40
+ ---
41
+ description: Universal execution engine...
42
+ argument-hint: "PLAN_PATH=\"<path>\" [EXECUTION_MODE=\"sequential|parallel\"]"
43
+ ---
44
+ ```
45
+
46
+ **Parameters**: Variable substitution with named arguments
47
+ ```
48
+ PLAN_PATH=".workflow/IMPL_PLAN.md"
49
+ EXECUTION_MODE="parallel"
50
+ AUTO_CONFIRM="yes"
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Functional Equivalence
56
+
57
+ ### Core Features (Identical)
58
+
59
+ Both versions support:
60
+ - ✅ Format-agnostic plan parsing (IMPL_PLAN.md, synthesis.json, conclusions.json)
61
+ - ✅ Multi-agent orchestration (code-developer, test-fix-agent, doc-generator, etc)
62
+ - ✅ Automatic dependency resolution with topological sort
63
+ - ✅ Parallel execution with wave-based grouping (max 3 tasks/wave)
64
+ - ✅ Unified event logging (execution-events.md as SINGLE SOURCE OF TRUTH)
65
+ - ✅ Knowledge chain: agents read all previous executions
66
+ - ✅ Incremental execution with resume capability
67
+ - ✅ Error handling: retry/skip/abort logic
68
+ - ✅ Session management and folder organization
69
+
70
+ ### Session Structure (Identical)
71
+
72
+ Both create:
73
+ ```
74
+ .workflow/.execution/{executionId}/
75
+ ├── execution.md # Execution plan and status
76
+ └── execution-events.md # Unified execution log (SINGLE SOURCE OF TRUTH)
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Key Adaptations
82
+
83
+ ### Claude CLI Version
84
+
85
+ **Optimizations**:
86
+ - Direct access to Claude Code tools (TodoWrite, Task, AskUserQuestion)
87
+ - CLI tool integration (`ccw cli`)
88
+ - Background agent execution with run_in_background flag
89
+ - Direct file system operations via Bash
90
+
91
+ **Structure**:
92
+ - Comprehensive Implementation Details section
93
+ - Explicit allowed-tools configuration
94
+ - Integration with workflow command system
95
+
96
+ ### Codex Version
97
+
98
+ **Adaptations**:
99
+ - Simplified execution context (no direct tool access)
100
+ - Variable substitution for parameter passing
101
+ - Streamlined phase explanations
102
+ - Focused on core logic and flow
103
+ - Self-contained event logging
104
+
105
+ **Benefits**:
106
+ - Works with Codex's execution model
107
+ - Simpler parameter interface
108
+ - 85 fewer lines while maintaining all core functionality
109
+
110
+ ---
111
+
112
+ ## Parameter Mapping
113
+
114
+ | Concept | Claude | Codex |
115
+ |---------|--------|-------|
116
+ | Plan path | `-p path/to/plan.md` | `PLAN_PATH="path/to/plan.md"` |
117
+ | Execution mode | `-m sequential\|parallel` | `EXECUTION_MODE="sequential\|parallel"` |
118
+ | Auto-confirm | `-y, --yes` | `AUTO_CONFIRM="yes"` |
119
+ | Context focus | `"execution context"` | `EXECUTION_CONTEXT="focus area"` |
120
+
121
+ ---
122
+
123
+ ## Recommended Usage
124
+
125
+ ### Use Claude Version When:
126
+ - Using Claude Code CLI environment
127
+ - Need direct integration with workflow system
128
+ - Want full tool access (TodoWrite, Task, AskUserQuestion)
129
+ - Prefer CLI flag syntax
130
+ - Building multi-command workflows
131
+
132
+ ### Use Codex Version When:
133
+ - Executing within Codex directly
134
+ - Need simpler execution model
135
+ - Prefer variable substitution
136
+ - Want standalone execution
137
+ - Integrating with Codex command chains
138
+
139
+ ---
140
+
141
+ ## Event Logging (Unified)
142
+
143
+ Both versions produce identical execution-events.md format:
144
+
145
+ ```markdown
146
+ ## Task {id} - {STATUS} {emoji}
147
+
148
+ **Timestamp**: {ISO8601}
149
+ **Duration**: {ms}
150
+ **Agent**: {agent_type}
151
+
152
+ ### Execution Summary
153
+ {summary}
154
+
155
+ ### Generated Artifacts
156
+ - `path/to/file` (size)
157
+
158
+ ### Notes for Next Agent
159
+ - Key decisions
160
+ - Issues identified
161
+ - Ready for: NEXT_TASK_ID
162
+
163
+ ---
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Migration Path
169
+
170
+ If switching between Claude and Codex versions:
171
+
172
+ 1. **Same session ID format**: Both use `.workflow/.execution/{executionId}/`
173
+ 2. **Same event log structure**: execution-events.md is 100% compatible
174
+ 3. **Same artifact locations**: Files generated at project paths (e.g., `src/types/auth.ts`)
175
+ 4. **Same agent selection**: Both use identical selectBestAgent() strategy
176
+ 5. **Same parallelization rules**: Identical wave grouping and file conflict detection
177
+
178
+ You can:
179
+ - Start execution with Claude, resume with Codex
180
+ - Start with Codex, continue with Claude
181
+ - Mix both in multi-step workflows
182
+
183
+ ---
184
+
185
+ ## Statistics
186
+
187
+ | Metric | Claude | Codex |
188
+ |--------|--------|-------|
189
+ | **Lines** | 807 | 722 |
190
+ | **Size** | 25 KB | 22 KB |
191
+ | **Phases** | 4 full phases | 4 phases (adapted) |
192
+ | **Agent types** | 6+ supported | 6+ supported |
193
+ | **Parallelization** | Max 3 tasks/wave | Max 3 tasks/wave |
194
+ | **Error handling** | retry/skip/abort | retry/skip/abort |
195
+
196
+ ---
197
+
198
+ ## Implementation Timeline
199
+
200
+ 1. **Initial Claude version**: Full unified-execute-with-file.md (1094 lines)
201
+ 2. **Claude optimization**: Consolidated duplicates (807 lines, -26%)
202
+ 3. **Codex adaptation**: Format-adapted version (722 lines)
203
+
204
+ Both versions represent same core logic with format-specific optimizations.
205
+
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Interactive collaborative analysis with documented discussions, CLI-assisted exploration, and evolving understanding
3
- argument-hint: TOPIC="<topic or question to analyze>"
2
+ description: Interactive collaborative analysis with documented discussions, CLI-assisted exploration, and evolving understanding. Supports depth control and iteration limits.
3
+ argument-hint: "TOPIC=\"<topic or question>\" [--depth=standard|deep|full] [--max-iterations=<n>] [--verbose]"
4
4
  ---
5
5
 
6
6
  # Codex Analyze-With-File Prompt
@@ -22,6 +22,9 @@ Interactive collaborative analysis workflow with **documented discussion process
22
22
 
23
23
  **$TOPIC**
24
24
 
25
+ - `--depth`: Analysis depth (standard|deep|full)
26
+ - `--max-iterations`: Max discussion rounds
27
+
25
28
  ## Execution Process
26
29
 
27
30
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Convert brainstorm session output to parallel-dev-cycle input with idea selection and context enrichment
3
- argument-hint: SESSION="<brainstorm-session-id>" [--idea=<index>] [--auto]
2
+ description: Convert brainstorm session output to parallel-dev-cycle input with idea selection and context enrichment. Unified parameter format.
3
+ argument-hint: "--session=<id> [--idea=<index>] [--auto] [--launch]"
4
4
  ---
5
5
 
6
6
  # Brainstorm to Cycle Adapter
@@ -15,9 +15,10 @@ Bridge workflow that converts **brainstorm-with-file** output to **parallel-dev-
15
15
 
16
16
  | Argument | Required | Description |
17
17
  |----------|----------|-------------|
18
- | SESSION | Yes | Brainstorm session ID (e.g., `BS-rate-limiting-2025-01-28`) |
18
+ | --session | Yes | Brainstorm session ID (e.g., `BS-rate-limiting-2025-01-28`) |
19
19
  | --idea | No | Pre-select idea by index (0-based, from top_ideas) |
20
20
  | --auto | No | Auto-select top-scored idea without confirmation |
21
+ | --launch | No | Auto-launch parallel-dev-cycle without preview |
21
22
 
22
23
  ## Output
23
24
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Interactive brainstorming with multi-perspective analysis, idea expansion, and documented thought evolution
3
- argument-hint: TOPIC="<idea or topic to brainstorm>"
2
+ description: Interactive brainstorming with multi-perspective analysis, idea expansion, and documented thought evolution. Supports perspective selection and idea limits.
3
+ argument-hint: "TOPIC=\"<idea or topic>\" [--perspectives=role1,role2,...] [--max-ideas=<n>] [--focus=<area>] [--verbose]"
4
4
  ---
5
5
 
6
6
  # Codex Brainstorm-With-File Prompt
@@ -22,6 +22,10 @@ Interactive brainstorming workflow with **documented thought evolution**. Expand
22
22
 
23
23
  **$TOPIC**
24
24
 
25
+ - `--perspectives`: Analysis perspectives (role1,role2,...)
26
+ - `--max-ideas`: Max number of ideas
27
+ - `--focus`: Focus area
28
+
25
29
  ## Execution Process
26
30
 
27
31
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Intelligent code cleanup with mainline detection, stale artifact discovery, and safe execution
3
- argument-hint: [--dry-run] [FOCUS="<area>"]
2
+ description: Intelligent code cleanup with mainline detection, stale artifact discovery, and safe execution. Supports targeted cleanup and confirmation.
3
+ argument-hint: "[--dry-run] [--focus=<area>] [--target=sessions|documents|dead-code] [--confirm]"
4
4
  ---
5
5
 
6
6
  # Workflow Clean Command
@@ -16,6 +16,11 @@ Evidence-based intelligent cleanup command. Systematically identifies stale arti
16
16
  **Focus area**: $FOCUS (or entire project if not specified)
17
17
  **Mode**: $ARGUMENTS
18
18
 
19
+ - `--dry-run`: Preview cleanup without executing
20
+ - `--focus`: Focus area (module or path)
21
+ - `--target`: Cleanup target (sessions|documents|dead-code)
22
+ - `--confirm`: Skip confirmation, execute directly
23
+
19
24
  ## Execution Process
20
25
 
21
26
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Compact current session memory into structured text for session recovery
3
- argument-hint: "[optional: session description]"
2
+ description: Compact current session memory into structured text for session recovery. Supports custom descriptions and tagging.
3
+ argument-hint: "[--description=\"...\"] [--tags=<tag1,tag2>] [--force]"
4
4
  ---
5
5
 
6
6
  # Memory Compact Command (/memory:compact)
@@ -17,9 +17,11 @@ The `memory:compact` command **compresses current session working memory** into
17
17
 
18
18
  ## 2. Parameters
19
19
 
20
- - `"session description"` (Optional): Session description to supplement objective
20
+ - `--description`: Custom session description (optional)
21
21
  - Example: "completed core-memory module"
22
22
  - Example: "debugging JWT refresh - suspected memory leak"
23
+ - `--tags`: Comma-separated tags for categorization (optional)
24
+ - `--force`: Skip confirmation, save directly
23
25
 
24
26
  ## 3. Structured Output Format
25
27
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- description: Interactive hypothesis-driven debugging with documented exploration, understanding evolution, and analysis-assisted correction
3
- argument-hint: BUG="<bug description or error message>"
2
+ description: Interactive hypothesis-driven debugging with documented exploration, understanding evolution, and analysis-assisted correction. Supports scope and focus control.
3
+ argument-hint: "BUG=\"<bug description or error message>\" [--scope=<path>] [--focus=<component>] [--depth=standard|deep] [--verbose]"
4
4
  ---
5
5
 
6
6
  # Codex Debug-With-File Prompt
@@ -21,6 +21,10 @@ Enhanced evidence-based debugging with **documented exploration process**. Recor
21
21
 
22
22
  **$BUG**
23
23
 
24
+ - `--scope`: Debug scope limit (file path)
25
+ - `--focus`: Focus component
26
+ - `--depth`: Debug depth (standard|deep)
27
+
24
28
  ## Execution Process
25
29
 
26
30
  ```