refactor: update workflow commands to use /workflow:spec:setup for initialization

This commit is contained in:
catlog22
2026-03-10 23:47:27 +08:00
parent 38d1987f41
commit c50d9b21dc
18 changed files with 33 additions and 33 deletions

View File

@@ -148,7 +148,7 @@ AskUserQuestion({
|----------|------------|
| Unknown --role value | Error with role registry list |
| Role file not found | Error with expected path (roles/{name}/role.md) |
| project-tech.json missing | Coordinator invokes /workflow:init |
| project-tech.json missing | Coordinator invokes /workflow:spec:setup |
| Phase verification fails with gaps | Coordinator triggers gap closure loop (max 3 iterations) |
| Max gap closure iterations (3) | Report to user, ask for guidance |
| Worker crash | Respawn worker, reassign task |

View File

@@ -284,7 +284,7 @@ Delegate to `commands/monitor.md`:
| Scenario | Resolution |
|----------|------------|
| project-tech.json missing | Invoke /workflow:init automatically |
| project-tech.json missing | Invoke /workflow:spec:setup automatically |
| User cancels roadmap discussion | Save session state, exit gracefully |
| Planner fails | Retry once, then ask user for guidance |
| Executor fails on plan | Mark plan as failed, continue with next |

View File

@@ -85,7 +85,7 @@
"init_prerequisite": {
"required_files": [".workflow/project-tech.json"],
"optional_files": [".workflow/specs/*.md"],
"init_command": "/workflow:init"
"init_command": "/workflow:spec:setup "
},
"_metadata": {
"created_at": "2026-02-24",