feat: Migrate flow-coordinator templates from deleted command paths to Skill names

All 16 template JSON files updated:
- Migrated Skills: /workflow:lite-plan → workflow-lite-plan (hyphen format)
- Existing commands: /issue:discover → issue:discover (removed leading /)
- Added route field for multi-mode Skill routing (lite-execute, plan-verify, etc.)

SKILL.md updated:
- TemplateStep schema adds route field and cmd naming rules
- Execution logic uses Skill() invocation instead of SlashCommand()
- Prompt building supports route-based routing
- Available Templates table uses new Skill name format
This commit is contained in:
catlog22
2026-02-15 20:36:22 +08:00
parent 4ddd2e9f17
commit 126a357aa2
17 changed files with 162 additions and 87 deletions

View File

@@ -344,29 +344,45 @@ async function selectTemplate(templates) {
**Templates stored in**: `templates/*.json` (discovered at runtime via Glob) **Templates stored in**: `templates/*.json` (discovered at runtime via Glob)
**TemplateStep Fields**: **TemplateStep Fields**:
- `cmd`: Full command path (e.g., `/workflow:lite-plan`, `/workflow:execute`) - `cmd`: Skill name or command path (e.g., `workflow-lite-plan`, `workflow:debug-with-file`, `issue:discover`)
- `route?`: Sub-mode for multi-mode Skills (e.g., `lite-execute`, `plan-verify`, `test-cycle-execute`)
- `args?`: Arguments with `{{goal}}` and `{{prev}}` placeholders - `args?`: Arguments with `{{goal}}` and `{{prev}}` placeholders
- `unit?`: Minimum execution unit name (groups related commands) - `unit?`: Minimum execution unit name (groups related commands)
- `optional?`: Can be skipped by user - `optional?`: Can be skipped by user
- `execution`: Type and mode configuration - `execution`: Type and mode configuration
- `type`: Always `'slash-command'` (for all workflow commands) - `type`: Always `'slash-command'` (invoked via Skill tool)
- `mode`: `'mainprocess'` (blocking) or `'async'` (background) - `mode`: `'mainprocess'` (blocking) or `'async'` (background)
- `contextHint?`: Natural language guidance for context assembly - `contextHint?`: Natural language guidance for context assembly
**cmd 命名规则**:
- **Skills已迁移**: 使用连字符格式 Skill 名称,如 `workflow-lite-plan``review-cycle`
- **Commands仍存在**: 使用冒号格式命令路径,如 `workflow:brainstorm-with-file``issue:discover`
**route 字段**:
多模式 Skill 通过 `route` 区分子模式。同一 Skill 的不同步骤共享 `cmd`,通过 `route` 路由:
| Skill | 默认模式 (无 route) | route 值 |
|-------|-------------------|----------|
| `workflow-lite-plan` | lite-plan | `lite-execute` |
| `workflow-plan` | plan | `plan-verify`, `replan` |
| `workflow-test-fix` | test-fix-gen | `test-cycle-execute` |
| `workflow-tdd` | tdd-plan | `tdd-verify` |
| `review-cycle` | - | `session`, `module`, `fix` |
**Template Example**: **Template Example**:
```json ```json
{ {
"name": "rapid", "name": "rapid",
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "quick-implementation", "unit": "quick-implementation",
"execution": { "type": "slash-command", "mode": "mainprocess" }, "execution": { "type": "slash-command", "mode": "mainprocess" },
"contextHint": "Create lightweight implementation plan" "contextHint": "Create lightweight implementation plan"
}, },
{ {
"cmd": "/workflow:lite-execute", "cmd": "workflow-lite-plan",
"route": "lite-execute",
"args": "--in-memory", "args": "--in-memory",
"unit": "quick-implementation", "unit": "quick-implementation",
"execution": { "type": "slash-command", "mode": "async" }, "execution": { "type": "slash-command", "mode": "async" },
@@ -384,9 +400,11 @@ async function selectTemplate(templates) {
```javascript ```javascript
async function executeSlashCommandSync(step, status) { async function executeSlashCommandSync(step, status) {
// Build command: /workflow:cmd -y args // Build Skill invocation args
const cmd = buildCommand(step, status); const args = buildSkillArgs(step, status);
const result = await SlashCommand({ command: cmd });
// Invoke via Skill tool: step.cmd is skill name or command path
const result = await Skill({ skill: step.cmd, args: args });
step.session = result.session_id; step.session = result.session_id;
step.status = 'done'; step.status = 'done';
@@ -398,7 +416,7 @@ async function executeSlashCommandSync(step, status) {
```javascript ```javascript
async function executeSlashCommandAsync(step, status, statusPath) { async function executeSlashCommandAsync(step, status, statusPath) {
// Build prompt: /workflow:cmd -y args + context // Build prompt for ccw cli: /<cmd> [--route <route>] args + context
const prompt = buildCommandPrompt(step, status); const prompt = buildCommandPrompt(step, status);
step.status = 'running'; step.status = 'running';
@@ -413,7 +431,7 @@ async function executeSlashCommandAsync(step, status, statusPath) {
step.taskId = taskId; step.taskId = taskId;
write(statusPath, JSON.stringify(status, null, 2)); write(statusPath, JSON.stringify(status, null, 2));
console.log(`Executing: ${step.cmd} (async)`); console.log(`Executing: ${step.cmd}${step.route ? ' --route ' + step.route : ''} (async)`);
console.log(`Resume: /flow-coordinator --resume ${status.id}`); console.log(`Resume: /flow-coordinator --resume ${status.id}`);
} }
``` ```
@@ -422,12 +440,19 @@ async function executeSlashCommandAsync(step, status, statusPath) {
## Prompt Building ## Prompt Building
Prompts are built in format: `/workflow:cmd -y args` + context Prompts are built in format: `/<cmd> [--route <route>] -y args` + context
```javascript ```javascript
function buildCommandPrompt(step, status) { function buildCommandPrompt(step, status) {
// step.cmd already contains full path: /workflow:lite-plan, /workflow:execute, etc. // step.cmd is skill name or command path
let prompt = `${step.cmd} -y`; let prompt = `/${step.cmd}`;
// Add route for multi-mode Skills
if (step.route) {
prompt += ` --route ${step.route}`;
}
prompt += ' -y';
// Add arguments (with placeholder replacement) // Add arguments (with placeholder replacement)
if (step.args) { if (step.args) {
@@ -452,13 +477,32 @@ function buildCommandPrompt(step, status) {
return prompt; return prompt;
} }
/**
* Build args for Skill() invocation (mainprocess mode)
*/
function buildSkillArgs(step, status) {
let args = '';
// Add route for multi-mode Skills
if (step.route) {
args += `--route ${step.route} `;
}
args += '-y';
// Add step arguments
if (step.args) {
const resolvedArgs = step.args
.replace('{{goal}}', status.goal)
.replace('{{prev}}', getPreviousSessionId(status));
args += ` ${resolvedArgs}`;
}
return args;
}
function buildContextFromHint(hint, status) { function buildContextFromHint(hint, status) {
// Parse contextHint instruction and build context accordingly // Parse contextHint instruction and build context accordingly
// Examples:
// "Summarize IMPL_PLAN.md" → read and summarize plan
// "List test coverage gaps" → analyze previous test results
// "Pass session ID" → just return session reference
return parseAndBuildContext(hint, status); return parseAndBuildContext(hint, status);
} }
``` ```
@@ -466,7 +510,7 @@ function buildContextFromHint(hint, status) {
### Example Prompt Output ### Example Prompt Output
``` ```
/workflow:lite-plan -y "Implement user registration" /workflow-lite-plan -y "Implement user registration"
Context: Context:
Task: Implement user registration Task: Implement user registration
@@ -475,7 +519,7 @@ Previous results:
``` ```
``` ```
/workflow:execute -y --in-memory /workflow-lite-plan --route lite-execute -y --in-memory
Context: Context:
Task: Implement user registration Task: Implement user registration
@@ -504,13 +548,13 @@ Select workflow template:
``` ```
Template: coupled Template: coupled
Steps: Steps:
1. /workflow:plan (slash-command mainprocess) 1. workflow-plan (mainprocess)
2. /workflow:plan-verify (slash-command mainprocess) 2. workflow-plan --route plan-verify (mainprocess)
3. /workflow:execute (slash-command async) 3. workflow-execute (async)
4. /workflow:review-session-cycle (slash-command mainprocess) 4. review-cycle --route session (mainprocess)
5. /workflow:review-cycle-fix (slash-command mainprocess) 5. review-cycle --route fix (mainprocess)
6. /workflow:test-fix-gen (slash-command mainprocess) 6. workflow-test-fix (mainprocess)
7. /workflow:test-cycle-execute (slash-command async) 7. workflow-test-fix --route test-cycle-execute (async)
Proceed? [Confirm / Cancel] Proceed? [Confirm / Cancel]
``` ```
@@ -544,15 +588,24 @@ Templates discovered from `templates/*.json`:
| Template | Use Case | Steps | | Template | Use Case | Steps |
|----------|----------|-------| |----------|----------|-------|
| rapid | Simple feature | /workflow:lite-plan → /workflow:lite-execute → /workflow:test-cycle-execute | | rapid | Simple feature | workflow-lite-plan → workflow-lite-plan[lite-execute] → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| coupled | Complex feature | /workflow:plan → /workflow:plan-verify → /workflow:execute → /workflow:review-session-cycle → /workflow:test-fix-gen | | coupled | Complex feature | workflow-plan → workflow-plan[plan-verify] → workflow-execute → review-cycle[session] → review-cycle[fix] → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| bugfix | Bug fix | /workflow:lite-plan --bugfix → /workflow:lite-execute → /workflow:test-cycle-execute | | bugfix | Bug fix | workflow-lite-plan --bugfix → workflow-lite-plan[lite-execute] → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| tdd | Test-driven | /workflow:tdd-plan → /workflow:execute → /workflow:tdd-verify | | bugfix-hotfix | Urgent hotfix | workflow-lite-plan --hotfix |
| test-fix | Fix failing tests | /workflow:test-fix-gen/workflow:test-cycle-execute | | tdd | Test-driven | workflow-tdd → workflow-execute → workflow-tdd[tdd-verify] |
| brainstorm | Exploration | /workflow:brainstorm-with-file | | test-fix | Fix failing tests | workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| debug | Debug with docs | /workflow:debug-with-file | | review | Code review | review-cycle[session] → review-cycle[fix] → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| analyze | Collaborative analysis | /workflow:analyze-with-file | | multi-cli-plan | Multi-perspective planning | workflow-multi-cli-plan → workflow-lite-plan[lite-execute] → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| issue | Issue workflow | /issue:discover → /issue:plan → /issue:queue → /issue:execute | | full | Complete workflow | brainstorm → workflow-plan → workflow-plan[plan-verify] → workflow-execute → workflow-test-fix → workflow-test-fix[test-cycle-execute] |
| docs | Documentation | workflow-lite-plan → workflow-lite-plan[lite-execute] |
| brainstorm | Exploration | workflow:brainstorm-with-file |
| debug | Debug with docs | workflow:debug-with-file |
| analyze | Collaborative analysis | workflow:analyze-with-file |
| issue | Issue workflow | issue:discover → issue:plan → issue:queue → issue:execute |
| rapid-to-issue | Plan to issue bridge | workflow-lite-plan → issue:convert-to-plan → issue:queue → issue:execute |
| brainstorm-to-issue | Brainstorm to issue | issue:from-brainstorm → issue:queue → issue:execute |
**注**: `[route]` 表示该步骤使用 `route` 字段路由到多模式 Skill 的特定子模式。
--- ---

View File

@@ -4,8 +4,9 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:analyze-with-file", "cmd": "workflow:analyze-with-file",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "analyze-with-file",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"

View File

@@ -4,7 +4,7 @@
"level": 4, "level": 4,
"steps": [ "steps": [
{ {
"cmd": "/issue:from-brainstorm", "cmd": "issue:from-brainstorm",
"args": "--auto", "args": "--auto",
"unit": "brainstorm-to-issue", "unit": "brainstorm-to-issue",
"execution": { "execution": {
@@ -14,7 +14,7 @@
"contextHint": "Convert brainstorm session findings into issue plans and solutions" "contextHint": "Convert brainstorm session findings into issue plans and solutions"
}, },
{ {
"cmd": "/issue:queue", "cmd": "issue:queue",
"unit": "brainstorm-to-issue", "unit": "brainstorm-to-issue",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -23,7 +23,7 @@
"contextHint": "Build execution queue from converted brainstorm issues" "contextHint": "Build execution queue from converted brainstorm issues"
}, },
{ {
"cmd": "/issue:execute", "cmd": "issue:execute",
"args": "--queue auto", "args": "--queue auto",
"unit": "brainstorm-to-issue", "unit": "brainstorm-to-issue",
"execution": { "execution": {

View File

@@ -4,8 +4,9 @@
"level": 4, "level": 4,
"steps": [ "steps": [
{ {
"cmd": "/workflow:brainstorm-with-file", "cmd": "workflow:brainstorm-with-file",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "brainstorm-with-file",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"

View File

@@ -4,8 +4,9 @@
"level": 1, "level": 1,
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "--hotfix \"{{goal}}\"", "args": "--hotfix \"{{goal}}\"",
"unit": "standalone",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "async" "mode": "async"

View File

@@ -4,7 +4,7 @@
"level": 2, "level": 2,
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "--bugfix \"{{goal}}\"", "args": "--bugfix \"{{goal}}\"",
"unit": "bug-fix", "unit": "bug-fix",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Analyze bug report, trace execution flow, identify root cause with fix strategy" "contextHint": "Analyze bug report, trace execution flow, identify root cause with fix strategy"
}, },
{ {
"cmd": "/workflow:lite-execute", "cmd": "workflow-lite-plan",
"route": "lite-execute",
"args": "--in-memory", "args": "--in-memory",
"unit": "bug-fix", "unit": "bug-fix",
"execution": { "execution": {
@@ -24,7 +25,7 @@
"contextHint": "Implement fix based on diagnosis. Execute against in-memory state from lite-plan analysis." "contextHint": "Implement fix based on diagnosis. Execute against in-memory state from lite-plan analysis."
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {
@@ -34,7 +35,8 @@
"contextHint": "Generate test tasks to verify bug fix and prevent regression" "contextHint": "Generate test tasks to verify bug fix and prevent regression"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {

View File

@@ -4,7 +4,7 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:plan", "cmd": "workflow-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Create detailed implementation plan with architecture design, file structure, dependencies, and milestones" "contextHint": "Create detailed implementation plan with architecture design, file structure, dependencies, and milestones"
}, },
{ {
"cmd": "/workflow:plan-verify", "cmd": "workflow-plan",
"route": "plan-verify",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -23,7 +24,7 @@
"contextHint": "Verify IMPL_PLAN.md against requirements, check for missing details, conflicts, and quality gates" "contextHint": "Verify IMPL_PLAN.md against requirements, check for missing details, conflicts, and quality gates"
}, },
{ {
"cmd": "/workflow:execute", "cmd": "workflow-execute",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -32,7 +33,8 @@
"contextHint": "Execute implementation based on verified plan. Resume from planning session with all context preserved." "contextHint": "Execute implementation based on verified plan. Resume from planning session with all context preserved."
}, },
{ {
"cmd": "/workflow:review-session-cycle", "cmd": "review-cycle",
"route": "session",
"unit": "code-review", "unit": "code-review",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -41,7 +43,8 @@
"contextHint": "Perform multi-dimensional code review across correctness, security, performance, maintainability. Reference execution session for full code context." "contextHint": "Perform multi-dimensional code review across correctness, security, performance, maintainability. Reference execution session for full code context."
}, },
{ {
"cmd": "/workflow:review-cycle-fix", "cmd": "review-cycle",
"route": "fix",
"unit": "code-review", "unit": "code-review",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -50,7 +53,7 @@
"contextHint": "Fix issues identified in review findings with prioritization by severity levels" "contextHint": "Fix issues identified in review findings with prioritization by severity levels"
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -59,7 +62,8 @@
"contextHint": "Generate comprehensive test tasks for the implementation with coverage analysis" "contextHint": "Generate comprehensive test tasks for the implementation with coverage analysis"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",

View File

@@ -4,8 +4,9 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:debug-with-file", "cmd": "workflow:debug-with-file",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "debug-with-file",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"

View File

@@ -4,7 +4,7 @@
"level": 2, "level": 2,
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "quick-documentation", "unit": "quick-documentation",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Plan documentation structure and content organization" "contextHint": "Plan documentation structure and content organization"
}, },
{ {
"cmd": "/workflow:lite-execute", "cmd": "workflow-lite-plan",
"route": "lite-execute",
"args": "--in-memory", "args": "--in-memory",
"unit": "quick-documentation", "unit": "quick-documentation",
"execution": { "execution": {

View File

@@ -4,7 +4,7 @@
"level": 4, "level": 4,
"steps": [ "steps": [
{ {
"cmd": "/brainstorm", "cmd": "brainstorm",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -13,7 +13,7 @@
"contextHint": "Multi-perspective exploration of requirements and possible approaches" "contextHint": "Multi-perspective exploration of requirements and possible approaches"
}, },
{ {
"cmd": "/workflow:plan", "cmd": "workflow-plan",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -22,7 +22,8 @@
"contextHint": "Create detailed implementation plan based on brainstorm insights" "contextHint": "Create detailed implementation plan based on brainstorm insights"
}, },
{ {
"cmd": "/workflow:plan-verify", "cmd": "workflow-plan",
"route": "plan-verify",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -31,7 +32,7 @@
"contextHint": "Verify plan quality and completeness" "contextHint": "Verify plan quality and completeness"
}, },
{ {
"cmd": "/workflow:execute", "cmd": "workflow-execute",
"unit": "verified-planning-execution", "unit": "verified-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -40,7 +41,7 @@
"contextHint": "Execute implementation from verified plan" "contextHint": "Execute implementation from verified plan"
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -49,7 +50,8 @@
"contextHint": "Generate comprehensive test tasks" "contextHint": "Generate comprehensive test tasks"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",

View File

@@ -4,7 +4,7 @@
"level": "issue", "level": "issue",
"steps": [ "steps": [
{ {
"cmd": "/issue:discover", "cmd": "issue:discover",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"
@@ -12,7 +12,7 @@
"contextHint": "Discover pending issues from codebase for potential fixes" "contextHint": "Discover pending issues from codebase for potential fixes"
}, },
{ {
"cmd": "/issue:plan", "cmd": "issue:plan",
"args": "--all-pending", "args": "--all-pending",
"unit": "issue-workflow", "unit": "issue-workflow",
"execution": { "execution": {
@@ -22,7 +22,7 @@
"contextHint": "Create execution plans for all discovered pending issues" "contextHint": "Create execution plans for all discovered pending issues"
}, },
{ {
"cmd": "/issue:queue", "cmd": "issue:queue",
"unit": "issue-workflow", "unit": "issue-workflow",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -31,7 +31,7 @@
"contextHint": "Build execution queue with issue prioritization and dependencies" "contextHint": "Build execution queue with issue prioritization and dependencies"
}, },
{ {
"cmd": "/issue:execute", "cmd": "issue:execute",
"unit": "issue-workflow", "unit": "issue-workflow",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",

View File

@@ -4,7 +4,7 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:multi-cli-plan", "cmd": "workflow-multi-cli-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "multi-cli-planning", "unit": "multi-cli-planning",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Multi-perspective analysis comparing different implementation approaches with trade-off analysis" "contextHint": "Multi-perspective analysis comparing different implementation approaches with trade-off analysis"
}, },
{ {
"cmd": "/workflow:lite-execute", "cmd": "workflow-lite-plan",
"route": "lite-execute",
"args": "--in-memory", "args": "--in-memory",
"unit": "multi-cli-planning", "unit": "multi-cli-planning",
"execution": { "execution": {
@@ -24,7 +25,7 @@
"contextHint": "Execute best approach selected from multi-perspective analysis" "contextHint": "Execute best approach selected from multi-perspective analysis"
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {
@@ -34,7 +35,8 @@
"contextHint": "Generate test tasks for the implementation" "contextHint": "Generate test tasks for the implementation"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {

View File

@@ -4,7 +4,7 @@
"level": 2.5, "level": 2.5,
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "rapid-to-issue", "unit": "rapid-to-issue",
"execution": { "execution": {
@@ -14,7 +14,7 @@
"contextHint": "Create lightweight plan for the task" "contextHint": "Create lightweight plan for the task"
}, },
{ {
"cmd": "/issue:convert-to-plan", "cmd": "issue:convert-to-plan",
"args": "--latest-lite-plan -y", "args": "--latest-lite-plan -y",
"unit": "rapid-to-issue", "unit": "rapid-to-issue",
"execution": { "execution": {
@@ -24,7 +24,7 @@
"contextHint": "Convert lite plan to structured issue plan" "contextHint": "Convert lite plan to structured issue plan"
}, },
{ {
"cmd": "/issue:queue", "cmd": "issue:queue",
"unit": "rapid-to-issue", "unit": "rapid-to-issue",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -33,7 +33,7 @@
"contextHint": "Build execution queue from converted plan" "contextHint": "Build execution queue from converted plan"
}, },
{ {
"cmd": "/issue:execute", "cmd": "issue:execute",
"args": "--queue auto", "args": "--queue auto",
"unit": "rapid-to-issue", "unit": "rapid-to-issue",
"execution": { "execution": {

View File

@@ -4,7 +4,7 @@
"level": 2, "level": 2,
"steps": [ "steps": [
{ {
"cmd": "/workflow:lite-plan", "cmd": "workflow-lite-plan",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "quick-implementation", "unit": "quick-implementation",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Analyze requirements and create a lightweight implementation plan with key decisions and file structure" "contextHint": "Analyze requirements and create a lightweight implementation plan with key decisions and file structure"
}, },
{ {
"cmd": "/workflow:lite-execute", "cmd": "workflow-lite-plan",
"route": "lite-execute",
"args": "--in-memory", "args": "--in-memory",
"unit": "quick-implementation", "unit": "quick-implementation",
"execution": { "execution": {
@@ -24,7 +25,7 @@
"contextHint": "Use the plan from previous step to implement code. Execute against in-memory state." "contextHint": "Use the plan from previous step to implement code. Execute against in-memory state."
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {
@@ -34,7 +35,8 @@
"contextHint": "Generate test tasks from the implementation session" "contextHint": "Generate test tasks from the implementation session"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"optional": true, "optional": true,
"execution": { "execution": {

View File

@@ -4,7 +4,8 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:review-session-cycle", "cmd": "review-cycle",
"route": "session",
"unit": "code-review", "unit": "code-review",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -13,16 +14,17 @@
"contextHint": "Perform comprehensive multi-dimensional code review across correctness, security, performance, maintainability dimensions" "contextHint": "Perform comprehensive multi-dimensional code review across correctness, security, performance, maintainability dimensions"
}, },
{ {
"cmd": "/workflow:review-cycle-fix", "cmd": "review-cycle",
"route": "fix",
"unit": "code-review", "unit": "code-review",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"
}, },
"contextHint": "Fix all review findings prioritized by severity level (critical high medium low)" "contextHint": "Fix all review findings prioritized by severity level (critical -> high -> medium -> low)"
}, },
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -31,7 +33,8 @@
"contextHint": "Generate test tasks for fixed code with coverage analysis" "contextHint": "Generate test tasks for fixed code with coverage analysis"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",

View File

@@ -4,7 +4,7 @@
"level": 3, "level": 3,
"steps": [ "steps": [
{ {
"cmd": "/workflow:tdd-plan", "cmd": "workflow-tdd",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "tdd-planning-execution", "unit": "tdd-planning-execution",
"execution": { "execution": {
@@ -14,7 +14,7 @@
"contextHint": "Create TDD task plan with Red-Green-Refactor cycles, test specifications, and implementation strategy" "contextHint": "Create TDD task plan with Red-Green-Refactor cycles, test specifications, and implementation strategy"
}, },
{ {
"cmd": "/workflow:execute", "cmd": "workflow-execute",
"unit": "tdd-planning-execution", "unit": "tdd-planning-execution",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
@@ -23,7 +23,8 @@
"contextHint": "Execute TDD tasks following Red-Green-Refactor workflow with test-first development" "contextHint": "Execute TDD tasks following Red-Green-Refactor workflow with test-first development"
}, },
{ {
"cmd": "/workflow:tdd-verify", "cmd": "workflow-tdd",
"route": "tdd-verify",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",
"mode": "mainprocess" "mode": "mainprocess"

View File

@@ -4,7 +4,7 @@
"level": 2, "level": 2,
"steps": [ "steps": [
{ {
"cmd": "/workflow:test-fix-gen", "cmd": "workflow-test-fix",
"args": "\"{{goal}}\"", "args": "\"{{goal}}\"",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
@@ -14,7 +14,8 @@
"contextHint": "Analyze failing tests, generate targeted test tasks with root cause and fix strategy" "contextHint": "Analyze failing tests, generate targeted test tasks with root cause and fix strategy"
}, },
{ {
"cmd": "/workflow:test-cycle-execute", "cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation", "unit": "test-validation",
"execution": { "execution": {
"type": "slash-command", "type": "slash-command",