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

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

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,7 @@
"level": 2,
"steps": [
{
"cmd": "/workflow:lite-plan",
"cmd": "workflow-lite-plan",
"args": "--bugfix \"{{goal}}\"",
"unit": "bug-fix",
"execution": {
@@ -14,7 +14,8 @@
"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",
"unit": "bug-fix",
"execution": {
@@ -24,7 +25,7 @@
"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",
"optional": true,
"execution": {
@@ -34,7 +35,8 @@
"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",
"optional": true,
"execution": {

View File

@@ -4,7 +4,7 @@
"level": 3,
"steps": [
{
"cmd": "/workflow:plan",
"cmd": "workflow-plan",
"args": "\"{{goal}}\"",
"unit": "verified-planning-execution",
"execution": {
@@ -14,7 +14,8 @@
"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",
"execution": {
"type": "slash-command",
@@ -23,7 +24,7 @@
"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",
"execution": {
"type": "slash-command",
@@ -32,7 +33,8 @@
"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",
"execution": {
"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."
},
{
"cmd": "/workflow:review-cycle-fix",
"cmd": "review-cycle",
"route": "fix",
"unit": "code-review",
"execution": {
"type": "slash-command",
@@ -50,7 +53,7 @@
"contextHint": "Fix issues identified in review findings with prioritization by severity levels"
},
{
"cmd": "/workflow:test-fix-gen",
"cmd": "workflow-test-fix",
"unit": "test-validation",
"execution": {
"type": "slash-command",
@@ -59,7 +62,8 @@
"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",
"execution": {
"type": "slash-command",

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,7 @@
"level": 3,
"steps": [
{
"cmd": "/workflow:multi-cli-plan",
"cmd": "workflow-multi-cli-plan",
"args": "\"{{goal}}\"",
"unit": "multi-cli-planning",
"execution": {
@@ -14,7 +14,8 @@
"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",
"unit": "multi-cli-planning",
"execution": {
@@ -24,7 +25,7 @@
"contextHint": "Execute best approach selected from multi-perspective analysis"
},
{
"cmd": "/workflow:test-fix-gen",
"cmd": "workflow-test-fix",
"unit": "test-validation",
"optional": true,
"execution": {
@@ -34,7 +35,8 @@
"contextHint": "Generate test tasks for the implementation"
},
{
"cmd": "/workflow:test-cycle-execute",
"cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation",
"optional": true,
"execution": {

View File

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

View File

@@ -4,7 +4,7 @@
"level": 2,
"steps": [
{
"cmd": "/workflow:lite-plan",
"cmd": "workflow-lite-plan",
"args": "\"{{goal}}\"",
"unit": "quick-implementation",
"execution": {
@@ -14,7 +14,8 @@
"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",
"unit": "quick-implementation",
"execution": {
@@ -24,7 +25,7 @@
"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",
"optional": true,
"execution": {
@@ -34,7 +35,8 @@
"contextHint": "Generate test tasks from the implementation session"
},
{
"cmd": "/workflow:test-cycle-execute",
"cmd": "workflow-test-fix",
"route": "test-cycle-execute",
"unit": "test-validation",
"optional": true,
"execution": {

View File

@@ -4,7 +4,8 @@
"level": 3,
"steps": [
{
"cmd": "/workflow:review-session-cycle",
"cmd": "review-cycle",
"route": "session",
"unit": "code-review",
"execution": {
"type": "slash-command",
@@ -13,16 +14,17 @@
"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",
"execution": {
"type": "slash-command",
"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",
"execution": {
"type": "slash-command",
@@ -31,7 +33,8 @@
"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",
"execution": {
"type": "slash-command",

View File

@@ -4,7 +4,7 @@
"level": 3,
"steps": [
{
"cmd": "/workflow:tdd-plan",
"cmd": "workflow-tdd",
"args": "\"{{goal}}\"",
"unit": "tdd-planning-execution",
"execution": {
@@ -14,7 +14,7 @@
"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",
"execution": {
"type": "slash-command",
@@ -23,7 +23,8 @@
"contextHint": "Execute TDD tasks following Red-Green-Refactor workflow with test-first development"
},
{
"cmd": "/workflow:tdd-verify",
"cmd": "workflow-tdd",
"route": "tdd-verify",
"execution": {
"type": "slash-command",
"mode": "mainprocess"

View File

@@ -4,7 +4,7 @@
"level": 2,
"steps": [
{
"cmd": "/workflow:test-fix-gen",
"cmd": "workflow-test-fix",
"args": "\"{{goal}}\"",
"unit": "test-validation",
"execution": {
@@ -14,7 +14,8 @@
"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",
"execution": {
"type": "slash-command",