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.
- package/.claude/commands/issue/new.md +1 -2
- package/.claude/commands/view.md +367 -0
- package/.claude/commands/workflow/unified-execute-with-file.md +807 -0
- package/.claude/skills/ccw-help/SKILL.md +72 -12
- package/.claude/skills/ccw-help/command.json +922 -520
- package/.claude/skills/ccw-help/index/all-agents.json +97 -0
- package/.claude/skills/ccw-help/index/all-commands.json +805 -0
- package/.claude/skills/ccw-help/index/by-category.json +833 -0
- package/.claude/skills/ccw-help/index/by-use-case.json +819 -0
- package/.claude/skills/ccw-help/index/command-relationships.json +160 -0
- package/.claude/skills/ccw-help/index/essential-commands.json +90 -0
- package/.claude/skills/ccw-help/scripts/auto-update.py +34 -0
- package/.claude/skills/skill-generator/SKILL.md +255 -208
- package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -228
- package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -262
- package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -969
- package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -398
- package/.claude/skills/skill-generator/phases/05-validation.md +417 -417
- package/.claude/skills/skill-generator/specs/cli-integration.md +131 -131
- package/.claude/skills/skill-generator/specs/execution-modes.md +399 -396
- package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -0
- package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
- package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -466
- package/.claude/skills/skill-generator/templates/autonomous-action.md +91 -88
- package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +89 -89
- package/.claude/skills/skill-generator/templates/code-analysis-action.md +148 -149
- package/.claude/skills/skill-generator/templates/llm-action.md +367 -367
- package/.claude/skills/skill-generator/templates/script-template.md +79 -79
- package/.claude/skills/skill-generator/templates/sequential-phase.md +129 -129
- package/.claude/skills/skill-generator/templates/skill-md.md +134 -75
- package/.codex/prompts/UNIFIED_EXECUTE_COMPARISON.md +205 -0
- package/.codex/prompts/analyze-with-file.md +5 -2
- package/.codex/prompts/brainstorm-to-cycle.md +4 -3
- package/.codex/prompts/brainstorm-with-file.md +6 -2
- package/.codex/prompts/clean.md +7 -2
- package/.codex/prompts/compact.md +5 -3
- package/.codex/prompts/debug-with-file.md +6 -2
- package/.codex/prompts/execute.md +6 -2
- package/.codex/prompts/issue-execute.md +10 -2
- package/.codex/prompts/issue-new.md +390 -285
- package/.codex/prompts/lite-execute.md +8 -7
- package/.codex/prompts/lite-fix.md +6 -2
- package/.codex/prompts/lite-plan-a.md +6 -2
- package/.codex/prompts/lite-plan-b.md +6 -2
- package/.codex/prompts/lite-plan-c.md +6 -2
- package/.codex/prompts/unified-execute-with-file.md +722 -0
- package/.codex/skills/codex-issue-plan-execute/SKILL.md +239 -0
- package/.codex/skills/codex-issue-plan-execute/phases/actions/action-complete.md +173 -0
- package/.codex/skills/codex-issue-plan-execute/phases/actions/action-execute.md +220 -0
- package/.codex/skills/codex-issue-plan-execute/phases/actions/action-init.md +86 -0
- package/.codex/skills/codex-issue-plan-execute/phases/actions/action-list.md +165 -0
- package/.codex/skills/codex-issue-plan-execute/phases/actions/action-plan.md +170 -0
- package/.codex/skills/codex-issue-plan-execute/phases/orchestrator.md +210 -0
- package/.codex/skills/codex-issue-plan-execute/phases/state-schema.md +136 -0
- package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent-system.md +136 -0
- package/.codex/skills/codex-issue-plan-execute/prompts/execution-agent.md +135 -0
- package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent-system.md +107 -0
- package/.codex/skills/codex-issue-plan-execute/prompts/planning-agent.md +122 -0
- package/.codex/skills/codex-issue-plan-execute/specs/issue-handling.md +187 -0
- package/.codex/skills/codex-issue-plan-execute/specs/quality-standards.md +231 -0
- package/.codex/skills/codex-issue-plan-execute/specs/solution-schema.md +270 -0
- package/.codex/skills/codex-issue-plan-execute/specs/subagent-roles.md +268 -0
- package/ccw/dist/cli.d.ts.map +1 -1
- package/ccw/dist/cli.js +1 -0
- package/ccw/dist/cli.js.map +1 -1
- package/ccw/dist/commands/cli.d.ts +1 -0
- package/ccw/dist/commands/cli.d.ts.map +1 -1
- package/ccw/dist/commands/cli.js +74 -6
- package/ccw/dist/commands/cli.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js +16 -1
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/core/routes/help-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/help-routes.js +51 -1
- package/ccw/dist/core/routes/help-routes.js.map +1 -1
- package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-core.js +5 -3
- package/ccw/dist/tools/cli-executor-core.js.map +1 -1
- package/ccw/dist/tools/cli-executor-utils.d.ts +1 -0
- package/ccw/dist/tools/cli-executor-utils.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-utils.js +3 -1
- package/ccw/dist/tools/cli-executor-utils.js.map +1 -1
- package/ccw/src/cli.ts +1 -0
- package/ccw/src/commands/cli.ts +77 -6
- package/ccw/src/core/routes/cli-routes.ts +16 -1
- package/ccw/src/core/routes/help-routes.ts +60 -1
- package/ccw/src/templates/dashboard-js/views/help.js +423 -1
- package/ccw/src/tools/cli-executor-core.ts +6 -3
- package/ccw/src/tools/cli-executor-utils.ts +5 -2
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
# SKILL.md Template
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Template for generating new Skill entry files.
|
|
4
4
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
7
|
-
|
|
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) |
|
|
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
|
-
##
|
|
19
|
+
## Important: YAML Front Matter Specification
|
|
20
20
|
|
|
21
|
-
> **CRITICAL**: SKILL.md
|
|
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`
|
|
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
|
-
|
|
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
|
-
##
|
|
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 |
|
|
99
|
-
| `{{design_principles}}` | string |
|
|
100
|
-
| `{{mandatory_prerequisites}}` | string |
|
|
101
|
-
| `{{execution_flow}}` | string |
|
|
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 |
|
|
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)) //
|
|
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 = '###
|
|
135
|
-
result += '| Document | Purpose |
|
|
136
|
-
result += '
|
|
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
|
|
140
|
-
result += `| [${spec.path}](${spec.path}) | ${spec.purpose} | ${
|
|
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###
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
##
|
|
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
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
│
|
|
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
|
-
##
|
|
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) |
|
|
241
|
-
| [specs/action-catalog.md](specs/action-catalog.md) |
|
|
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
|
|
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:
|
|
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
|
-
|
|
|
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
|
|
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
|
```
|
package/.codex/prompts/clean.md
CHANGED
|
@@ -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] [
|
|
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: "[
|
|
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
|
-
-
|
|
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
|
|
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
|
```
|