@fernado03/zoo-flow 0.11.2 → 0.12.0

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 (97) hide show
  1. package/bin/zoo-flow.js +25 -25
  2. package/package.json +1 -1
  3. package/templates/claude-code/.claude/skills/engineering/commit-and-document/SKILL.md +2 -1
  4. package/templates/claude-code/.claude/skills/engineering/diagnose/SKILL.md +2 -1
  5. package/templates/claude-code/.claude/skills/engineering/explore/SKILL.md +1 -1
  6. package/templates/claude-code/.claude/skills/engineering/feature/SKILL.md +2 -1
  7. package/templates/claude-code/.claude/skills/engineering/fix/SKILL.md +2 -1
  8. package/templates/claude-code/.claude/skills/engineering/grill-with-docs/SKILL.md +2 -1
  9. package/templates/claude-code/.claude/skills/engineering/improve-codebase-architecture/SKILL.md +2 -1
  10. package/templates/claude-code/.claude/skills/engineering/prototype/SKILL.md +2 -1
  11. package/templates/claude-code/.claude/skills/engineering/refactor/SKILL.md +2 -1
  12. package/templates/claude-code/.claude/skills/engineering/review/SKILL.md +2 -1
  13. package/templates/claude-code/.claude/skills/engineering/scaffold-context/SKILL.md +2 -1
  14. package/templates/claude-code/.claude/skills/engineering/setup-matt-pocock-skills/SKILL.md +2 -1
  15. package/templates/claude-code/.claude/skills/engineering/tdd/SKILL.md +2 -1
  16. package/templates/claude-code/.claude/skills/engineering/to-issues/SKILL.md +2 -1
  17. package/templates/claude-code/.claude/skills/engineering/to-prd/SKILL.md +2 -1
  18. package/templates/claude-code/.claude/skills/engineering/triage/SKILL.md +2 -1
  19. package/templates/claude-code/.claude/skills/engineering/tweak/SKILL.md +2 -1
  20. package/templates/claude-code/.claude/skills/engineering/update-docs/SKILL.md +2 -1
  21. package/templates/claude-code/.claude/skills/engineering/verify/SKILL.md +2 -1
  22. package/templates/claude-code/.claude/skills/engineering/zoom-out/SKILL.md +2 -1
  23. package/templates/claude-code/.claude/skills/productivity/grill-me/SKILL.md +2 -1
  24. package/templates/claude-code/.claude/skills/productivity/handoff/SKILL.md +2 -1
  25. package/templates/claude-code/.claude/skills/productivity/teach/SKILL.md +2 -1
  26. package/templates/claude-code/.claude/skills/productivity/write-a-skill/SKILL.md +2 -1
  27. package/templates/claude-code/CLAUDE.md +23 -0
  28. package/templates/full/.roo/commands/{explore.md → zoo-explore.md} +18 -18
  29. package/templates/full/.roo/commands/{scaffold-context.md → zoo-scaffold-context.md} +16 -16
  30. package/templates/full/.roo/commands/{setup-matt-pocock-skills.md → zoo-setup-matt-pocock-skills.md} +7 -7
  31. package/templates/full/.roo/commands/{update-docs.md → zoo-update-docs.md} +22 -22
  32. package/templates/full/.roo/rules-custom-orchestrator/00-routing.md +22 -22
  33. package/templates/full/.roo/skills/engineering/commit-and-document/SKILL.md +163 -163
  34. package/templates/full/.roo/skills/engineering/diagnose/SKILL.md +3 -3
  35. package/templates/full/.roo/skills/engineering/grill-with-docs/SKILL.md +1 -1
  36. package/templates/full/.roo/skills/engineering/improve-codebase-architecture/SKILL.md +1 -1
  37. package/templates/full/.roo/skills/engineering/prototype/SKILL.md +47 -47
  38. package/templates/full/.roo/skills/engineering/review/SKILL.md +7 -7
  39. package/templates/full/.roo/skills/engineering/scaffold-context/SKILL.md +228 -228
  40. package/templates/full/.roo/skills/engineering/setup-matt-pocock-skills/SKILL.md +2 -2
  41. package/templates/full/.roo/skills/engineering/tdd/SKILL.md +1 -1
  42. package/templates/full/.roo/skills/engineering/to-issues/SKILL.md +2 -2
  43. package/templates/full/.roo/skills/engineering/to-prd/SKILL.md +66 -66
  44. package/templates/full/.roo/skills/engineering/triage/SKILL.md +2 -2
  45. package/templates/full/.roo/skills/engineering/tweak/SKILL.md +1 -1
  46. package/templates/full/.roo/skills/engineering/update-docs/SKILL.md +76 -76
  47. package/templates/full/.roo/skills/engineering/verify/SKILL.md +2 -2
  48. package/templates/full/.roo/skills/engineering/zoom-out/SKILL.md +1 -1
  49. package/templates/full/.roo/skills/productivity/caveman/SKILL.md +1 -1
  50. package/templates/full/.roo/skills/productivity/teach/SKILL.md +119 -119
  51. package/templates/full/.roomodes +3 -3
  52. /package/templates/claude-code/.claude/commands/{caveman.md → zoo-caveman.md} +0 -0
  53. /package/templates/claude-code/.claude/commands/{commit-and-document.md → zoo-commit-and-document.md} +0 -0
  54. /package/templates/claude-code/.claude/commands/{diagnose.md → zoo-diagnose.md} +0 -0
  55. /package/templates/claude-code/.claude/commands/{explore.md → zoo-explore.md} +0 -0
  56. /package/templates/claude-code/.claude/commands/{feature.md → zoo-feature.md} +0 -0
  57. /package/templates/claude-code/.claude/commands/{fix.md → zoo-fix.md} +0 -0
  58. /package/templates/claude-code/.claude/commands/{grill-me.md → zoo-grill-me.md} +0 -0
  59. /package/templates/claude-code/.claude/commands/{grill-with-docs.md → zoo-grill-with-docs.md} +0 -0
  60. /package/templates/claude-code/.claude/commands/{handoff.md → zoo-handoff.md} +0 -0
  61. /package/templates/claude-code/.claude/commands/{improve-codebase-architecture.md → zoo-improve-codebase-architecture.md} +0 -0
  62. /package/templates/claude-code/.claude/commands/{prototype.md → zoo-prototype.md} +0 -0
  63. /package/templates/claude-code/.claude/commands/{refactor.md → zoo-refactor.md} +0 -0
  64. /package/templates/claude-code/.claude/commands/{review.md → zoo-review.md} +0 -0
  65. /package/templates/claude-code/.claude/commands/{scaffold-context.md → zoo-scaffold-context.md} +0 -0
  66. /package/templates/claude-code/.claude/commands/{setup-matt-pocock-skills.md → zoo-setup-matt-pocock-skills.md} +0 -0
  67. /package/templates/claude-code/.claude/commands/{tdd.md → zoo-tdd.md} +0 -0
  68. /package/templates/claude-code/.claude/commands/{teach.md → zoo-teach.md} +0 -0
  69. /package/templates/claude-code/.claude/commands/{to-issues.md → zoo-to-issues.md} +0 -0
  70. /package/templates/claude-code/.claude/commands/{to-prd.md → zoo-to-prd.md} +0 -0
  71. /package/templates/claude-code/.claude/commands/{triage.md → zoo-triage.md} +0 -0
  72. /package/templates/claude-code/.claude/commands/{tweak.md → zoo-tweak.md} +0 -0
  73. /package/templates/claude-code/.claude/commands/{update-docs.md → zoo-update-docs.md} +0 -0
  74. /package/templates/claude-code/.claude/commands/{verify.md → zoo-verify.md} +0 -0
  75. /package/templates/claude-code/.claude/commands/{write-a-skill.md → zoo-write-a-skill.md} +0 -0
  76. /package/templates/claude-code/.claude/commands/{zoom-out.md → zoo-zoom-out.md} +0 -0
  77. /package/templates/full/.roo/commands/{caveman.md → zoo-caveman.md} +0 -0
  78. /package/templates/full/.roo/commands/{commit-and-document.md → zoo-commit-and-document.md} +0 -0
  79. /package/templates/full/.roo/commands/{diagnose.md → zoo-diagnose.md} +0 -0
  80. /package/templates/full/.roo/commands/{feature.md → zoo-feature.md} +0 -0
  81. /package/templates/full/.roo/commands/{fix.md → zoo-fix.md} +0 -0
  82. /package/templates/full/.roo/commands/{grill-me.md → zoo-grill-me.md} +0 -0
  83. /package/templates/full/.roo/commands/{grill-with-docs.md → zoo-grill-with-docs.md} +0 -0
  84. /package/templates/full/.roo/commands/{handoff.md → zoo-handoff.md} +0 -0
  85. /package/templates/full/.roo/commands/{improve-codebase-architecture.md → zoo-improve-codebase-architecture.md} +0 -0
  86. /package/templates/full/.roo/commands/{prototype.md → zoo-prototype.md} +0 -0
  87. /package/templates/full/.roo/commands/{refactor.md → zoo-refactor.md} +0 -0
  88. /package/templates/full/.roo/commands/{review.md → zoo-review.md} +0 -0
  89. /package/templates/full/.roo/commands/{tdd.md → zoo-tdd.md} +0 -0
  90. /package/templates/full/.roo/commands/{teach.md → zoo-teach.md} +0 -0
  91. /package/templates/full/.roo/commands/{to-issues.md → zoo-to-issues.md} +0 -0
  92. /package/templates/full/.roo/commands/{to-prd.md → zoo-to-prd.md} +0 -0
  93. /package/templates/full/.roo/commands/{triage.md → zoo-triage.md} +0 -0
  94. /package/templates/full/.roo/commands/{tweak.md → zoo-tweak.md} +0 -0
  95. /package/templates/full/.roo/commands/{verify.md → zoo-verify.md} +0 -0
  96. /package/templates/full/.roo/commands/{write-a-skill.md → zoo-write-a-skill.md} +0 -0
  97. /package/templates/full/.roo/commands/{zoom-out.md → zoo-zoom-out.md} +0 -0
package/bin/zoo-flow.js CHANGED
@@ -13,34 +13,34 @@ const claudeCodeTemplateRoot = path.join(packageRoot, "templates", "claude-code"
13
13
 
14
14
  const COMMAND_POLICY = {
15
15
  routed: {
16
- "tweak": "code-tweaker",
17
- "tdd": "code-tweaker",
18
- "update-docs": "code-tweaker",
19
- "commit-and-document": "code-tweaker",
20
- "prototype": "code-tweaker",
21
- "scaffold-context": "code-tweaker",
22
- "verify": "code-tweaker",
23
- "fix": "system-architect",
24
- "feature": "system-architect",
25
- "refactor": "system-architect",
26
- "explore": "system-architect",
27
- "triage": "system-architect",
28
- "review": "system-architect"
16
+ "zoo-tweak": "code-tweaker",
17
+ "zoo-tdd": "code-tweaker",
18
+ "zoo-update-docs": "code-tweaker",
19
+ "zoo-commit-and-document": "code-tweaker",
20
+ "zoo-prototype": "code-tweaker",
21
+ "zoo-scaffold-context": "code-tweaker",
22
+ "zoo-verify": "code-tweaker",
23
+ "zoo-fix": "system-architect",
24
+ "zoo-feature": "system-architect",
25
+ "zoo-refactor": "system-architect",
26
+ "zoo-explore": "system-architect",
27
+ "zoo-triage": "system-architect",
28
+ "zoo-review": "system-architect"
29
29
  },
30
30
  helpers: {
31
- "diagnose": "system-architect",
32
- "grill-with-docs": "system-architect",
33
- "improve-codebase-architecture": "system-architect",
34
- "to-prd": "system-architect",
35
- "to-issues": "system-architect",
36
- "zoom-out": "system-architect",
37
- "handoff": "system-architect",
38
- "grill-me": "system-architect",
39
- "write-a-skill": "code-tweaker",
40
- "setup-matt-pocock-skills": "code-tweaker",
41
- "teach": "code-tweaker"
31
+ "zoo-diagnose": "system-architect",
32
+ "zoo-grill-with-docs": "system-architect",
33
+ "zoo-improve-codebase-architecture": "system-architect",
34
+ "zoo-to-prd": "system-architect",
35
+ "zoo-to-issues": "system-architect",
36
+ "zoo-zoom-out": "system-architect",
37
+ "zoo-handoff": "system-architect",
38
+ "zoo-grill-me": "system-architect",
39
+ "zoo-write-a-skill": "code-tweaker",
40
+ "zoo-setup-matt-pocock-skills": "code-tweaker",
41
+ "zoo-teach": "code-tweaker"
42
42
  },
43
- modelessUtilities: ["caveman"]
43
+ modelessUtilities: ["zoo-caveman"]
44
44
  };
45
45
 
46
46
  const ALLOWED_COMMAND_MODES = new Set(["system-architect", "code-tweaker", "custom-orchestrator"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fernado03/zoo-flow",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "description": "Structured workflow templates for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
30
30
 
31
31
  ## Complete
32
32
 
33
- Return completion with:
33
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
34
+
34
35
  - commit hash
35
36
  - files changed
36
37
  - documentation updated
@@ -128,7 +128,8 @@ Write `<session-dir>/root-cause.md`:
128
128
 
129
129
  Write `<session-dir>/diagnosis.md` with full log (hypotheses, instrumentation results, timeline).
130
130
 
131
- Return completion with:
131
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
132
+
132
133
  - `<session-dir>/root-cause.md` path
133
134
  - root cause summary
134
135
  - fix applied
@@ -43,7 +43,7 @@ Look for:
43
43
 
44
44
  ## 4. Report findings
45
45
 
46
- Return completion with:
46
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
47
47
 
48
48
  - modules/components identified
49
49
  - key dependencies and relationships
@@ -50,7 +50,8 @@ Delegate to implementer profile via `Agent` tool. Implementer executes:
50
50
 
51
51
  ## 5. Verify and report
52
52
 
53
- Implementer returns completion with:
53
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
54
+
54
55
  - feature implemented
55
56
  - tests status (all passing)
56
57
  - recommended next command (typically `/verify` then `/review` then `/commit-and-document`)
@@ -41,7 +41,8 @@ Delegate to implementer profile via `Agent` tool. Implementer executes:
41
41
 
42
42
  ## 4. Verify and report
43
43
 
44
- Implementer returns completion with:
44
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
45
+
45
46
  - root cause identified
46
47
  - fix implemented
47
48
  - regression test added
@@ -29,7 +29,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
29
29
 
30
30
  ## Complete
31
31
 
32
- Return completion with:
32
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
33
+
33
34
  - documentation location
34
35
  - key findings and insights
35
36
  - recommended next command (typically `/feature` or `/refactor` if changes needed)
@@ -33,7 +33,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
33
33
 
34
34
  ## Complete
35
35
 
36
- Return completion with:
36
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
37
+
37
38
  - architecture proposal location
38
39
  - key improvements identified
39
40
  - recommended next command (typically `/refactor` to implement changes)
@@ -28,7 +28,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
28
28
 
29
29
  ## Complete
30
30
 
31
- Return completion with:
31
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
32
+
32
33
  - prototype location
33
34
  - findings and insights
34
35
  - recommendations for next steps (proceed with design, explore alternative, or abandon)
@@ -42,7 +42,8 @@ Delegate to implementer profile via `Agent` tool. Implementer executes:
42
42
 
43
43
  ## 4. Verify and report
44
44
 
45
- Implementer returns completion with:
45
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
46
+
46
47
  - what was refactored
47
48
  - structural improvements achieved
48
49
  - tests status (all passing)
@@ -125,7 +125,8 @@ Write `<session-dir>/synthesis.md` with:
125
125
  - Prioritized findings by severity
126
126
  - Result line: `approve` / `approve with nits` / `changes requested` / `blocked`
127
127
 
128
- Return completion with:
128
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
129
+
129
130
  - `<session-dir>/synthesis.md` path
130
131
  - brief result line (approve / approve with nits / changes requested / blocked)
131
132
  - recommended next command
@@ -38,7 +38,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
38
38
 
39
39
  ## Complete
40
40
 
41
- Return a summary with:
41
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
42
+
42
43
  - CONTEXT.md location
43
44
  - sections added/updated
44
45
  - recommended next command (typically `/explore` to deepen understanding, or `/feature`/`/refactor` to start work)
@@ -42,7 +42,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
42
42
 
43
43
  ## Complete
44
44
 
45
- Return a summary with:
45
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
46
+
46
47
  - configuration files updated
47
48
  - conventions document location
48
49
  - recommended next command (typically `/verify` to ensure config is valid)
@@ -54,7 +54,8 @@ After green, suggest `/verify`, then `/review`, then `/commit-and-document` for
54
54
 
55
55
  ## Complete
56
56
 
57
- Return a summary with:
57
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
58
+
58
59
  - what was implemented (behaviours, interfaces)
59
60
  - tests written (count, pass/fail)
60
61
  - status (complete / blocked with reason)
@@ -30,7 +30,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
30
30
 
31
31
  ## Complete
32
32
 
33
- Return completion with:
33
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
34
+
34
35
  - issues directory location
35
36
  - issue count and summary
36
37
  - dependency graph
@@ -33,7 +33,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
33
33
 
34
34
  ## Complete
35
35
 
36
- Return completion with:
36
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
37
+
37
38
  - PRD location
38
39
  - summary of requirements
39
40
  - recommended next command (typically `/to-issues` to break down into tasks)
@@ -30,7 +30,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
30
30
 
31
31
  ## Complete
32
32
 
33
- Return completion with:
33
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
34
+
34
35
  - triage document location
35
36
  - prioritized list summary
36
37
  - recommended next command (typically `/fix` for bugs, `/feature` for features, or `/refactor` for tech debt)
@@ -19,7 +19,8 @@ Use for small known fixes.
19
19
 
20
20
  ## Complete
21
21
 
22
- Return a summary with:
22
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
23
+
23
24
  - what was changed (file paths, line ranges)
24
25
  - status (complete / blocked with reason)
25
26
  - recommended next command
@@ -27,7 +27,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
27
27
 
28
28
  ## Complete
29
29
 
30
- Return completion with:
30
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
31
+
31
32
  - documentation files updated
32
33
  - summary of changes
33
34
  - recommended next command (typically `/verify` to ensure docs are accurate)
@@ -32,7 +32,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
32
32
 
33
33
  ## Complete
34
34
 
35
- Return completion with:
35
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
36
+
36
37
  - verification commands run
37
38
  - pass/fail status for each
38
39
  - recommended next command (typically `/review` if passed, or `/fix` if failed)
@@ -68,7 +68,8 @@ Do not re-read unchanged files; use prior findings unless the file changed.
68
68
 
69
69
  ## Complete
70
70
 
71
- Return completion with:
71
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
72
+
72
73
  - `<session-dir>/synthesis.md` file path
73
74
  - high-level structure summary
74
75
  - recommended next command (typically `/explore` for deeper dive, or `/feature`/`/refactor` if changes needed)
@@ -14,7 +14,8 @@ description: Interview the user about a plan or design until reaching shared und
14
14
 
15
15
  ## Complete
16
16
 
17
- Return a summary with:
17
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
18
+
18
19
  - decision tree branches resolved (count)
19
20
  - key decisions made (summary)
20
21
  - status (complete / blocked with reason)
@@ -15,6 +15,7 @@ argument-hint: "What will the next session be used for?"
15
15
 
16
16
  ## Complete
17
17
 
18
- Return a summary with:
18
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
19
+
19
20
  - handoff file path (OS temp dir)
20
21
  - status (complete / blocked with reason)
@@ -109,7 +109,8 @@ The user will sometimes express preferences of how they want to be taught, or th
109
109
 
110
110
  When the user ends the teaching session or says "done" / "stop teaching":
111
111
 
112
- Return a summary with:
112
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
113
+
113
114
  - lessons created (count, paths)
114
115
  - mission status (created / updated)
115
116
  - learning records updated (count)
@@ -53,7 +53,8 @@ Add when: deterministic op; repeated code; explicit error handling needed.
53
53
 
54
54
  ## Complete
55
55
 
56
- Return a summary with:
56
+ **COMPLETION PROTOCOL**: Your final text message is your return value. Output this summary, then STOP — do not call any more tools.
57
+
57
58
  - skill created (name, path)
58
59
  - files written (SKILL.md, references, scripts)
59
60
  - status (complete / blocked with reason)
@@ -122,6 +122,29 @@ Agent(
122
122
  )
123
123
  ```
124
124
 
125
+ ### Agent Completion Protocol
126
+
127
+ **Critical**: When delegating to an agent via the `Agent` tool, the agent must understand how to return its work:
128
+
129
+ 1. **Your final text message IS the return value** - The parent agent receives exactly what you write as your last message
130
+ 2. **Output the completion summary, then STOP** - Do not call any more tools after writing your completion
131
+ 3. **Be complete in your final message** - Include all required information (files changed, status, recommendations)
132
+
133
+ Add this to your agent prompts:
134
+ ```
135
+ COMPLETION PROTOCOL:
136
+ Your final text message is your return value to the parent agent.
137
+ When you finish, output a summary with:
138
+ - What was done
139
+ - Status: complete / blocked (with reason)
140
+ - Files changed (if any)
141
+ - Recommended next command (if any)
142
+
143
+ Then STOP - do not call any more tools or take any more actions.
144
+ ```
145
+
146
+ This is similar to how ultracode's Workflow tool handles subagent completion.
147
+
125
148
  ### Multi-Phase Commands
126
149
 
127
150
  Commands like `/fix`, `/feature`, and `/refactor` involve multiple phases:
@@ -1,18 +1,18 @@
1
- ---
2
- description: "Explore unfamiliar code before /feature, /refactor, or /fix. Produces written map."
3
- argument-hint: <feature or folder to map>
4
- mode: system-architect
5
- ---
6
-
7
- Explore unfamiliar code and produce a written map. Follow the skill exactly.
8
-
9
- Skill: `.roo/skills/engineering/zoom-out/SKILL.md`
10
-
11
- EXECUTION RULES:
12
- 1. READ `.zoo-flow/CONTEXT.md`. If it does not exist, output one line before step 2: "No CONTEXT.md found. Run /scaffold-context to fill, or continue without." Do not invent content.
13
- 2. OUTPUT MAP: Create markdown with sections: Domain language, Modules, Data flow, Seams/callers, ADRs, Open questions. Derive slug from the target area (e.g. "auth module" → `auth-module.md`). Write to `.scratch/explorations/<YYYY-MM-DD>/<slug>.md`.
14
- 3. WRITE POINTER: Write the exact file path to `.scratch/LAST-EXPLORATION.md` so next commands can find it.
15
- 4. NEXT STEPS: Suggest `/scaffold-context`, `/feature`, `/refactor`, or `/fix`. DO NOT auto-launch.
16
- 5. COMPLETION: Call `attempt_completion` with the exact file path, status, and recommended next command. Do NOT use `ask_followup_question` or write results as plain text.
17
-
18
- $ARGUMENTS
1
+ ---
2
+ description: "Explore unfamiliar code before /feature, /refactor, or /fix. Produces written map."
3
+ argument-hint: <feature or folder to map>
4
+ mode: system-architect
5
+ ---
6
+
7
+ Explore unfamiliar code and produce a written map. Follow the skill exactly.
8
+
9
+ Skill: `.roo/skills/engineering/zoom-out/SKILL.md`
10
+
11
+ EXECUTION RULES:
12
+ 1. READ `.zoo-flow/CONTEXT.md`. If it does not exist, output one line before step 2: "No CONTEXT.md found. Run /scaffold-context to fill, or continue without." Do not invent content.
13
+ 2. OUTPUT MAP: Create markdown with sections: Domain language, Modules, Data flow, Seams/callers, ADRs, Open questions. Derive slug from the target area (e.g. "auth module" → `auth-module.md`). Write to `.scratch/explorations/<YYYY-MM-DD>/<slug>.md`.
14
+ 3. WRITE POINTER: Write the exact file path to `.scratch/LAST-EXPLORATION.md` so next commands can find it.
15
+ 4. NEXT STEPS: Suggest `/scaffold-context`, `/feature`, `/refactor`, or `/fix`. DO NOT auto-launch.
16
+ 5. COMPLETION: Call `attempt_completion` with the exact file path, status, and recommended next command. Do NOT use `ask_followup_question` or write results as plain text.
17
+
18
+ $ARGUMENTS
@@ -1,16 +1,16 @@
1
- ---
2
- description: "Bootstrap .zoo-flow/CONTEXT.md (and 0-2 starter ADRs) for an existing project by scanning code for domain terms and cross-cutting decisions. Shows proposed entries inline and asks for confirm before writing. Use when starting Zoo Flow on a project with no CONTEXT.md, or to expand a thin one."
3
- argument-hint: <optional focus area, e.g. "auth", "billing", or empty for whole project>
4
- mode: code-tweaker
5
- ---
6
-
7
- Bootstrap .zoo-flow/CONTEXT.md for an existing project. Follow the skill exactly.
8
-
9
- Skill: `.roo/skills/engineering/scaffold-context/SKILL.md`
10
-
11
- EXECUTION RULES:
12
- 1. APPLY the slot discovery rule from `.roo/skills/engineering/grill-with-docs/CONTEXT-FORMAT.md` to find current CONTEXT.md, ADRs.
13
- 2. IF `.zoo-flow/CONTEXT.md` exists and is non-empty, ASK: skip / merge (default) / replace. Skip = do nothing. Merge = add only new terms, never overwrite. Replace = full rewrite from scan.
14
- 3. DO NOT auto-launch any follow-up commands.
15
-
16
- $ARGUMENTS
1
+ ---
2
+ description: "Bootstrap .zoo-flow/CONTEXT.md (and 0-2 starter ADRs) for an existing project by scanning code for domain terms and cross-cutting decisions. Shows proposed entries inline and asks for confirm before writing. Use when starting Zoo Flow on a project with no CONTEXT.md, or to expand a thin one."
3
+ argument-hint: <optional focus area, e.g. "auth", "billing", or empty for whole project>
4
+ mode: code-tweaker
5
+ ---
6
+
7
+ Bootstrap .zoo-flow/CONTEXT.md for an existing project. Follow the skill exactly.
8
+
9
+ Skill: `.roo/skills/engineering/scaffold-context/SKILL.md`
10
+
11
+ EXECUTION RULES:
12
+ 1. APPLY the slot discovery rule from `.roo/skills/engineering/grill-with-docs/CONTEXT-FORMAT.md` to find current CONTEXT.md, ADRs.
13
+ 2. IF `.zoo-flow/CONTEXT.md` exists and is non-empty, ASK: skip / merge (default) / replace. Skip = do nothing. Merge = add only new terms, never overwrite. Replace = full rewrite from scan.
14
+ 3. DO NOT auto-launch any follow-up commands.
15
+
16
+ $ARGUMENTS
@@ -1,8 +1,8 @@
1
- ---
2
- description: "Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `to-issues`, `to-prd`, or `triage` — or if those skills appear to be missing issue tracker, triage label, or domain-doc configuration."
3
- mode: code-tweaker
4
- ---
5
-
1
+ ---
2
+ description: "Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's issue tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `to-issues`, `to-prd`, or `triage` — or if those skills appear to be missing issue tracker, triage label, or domain-doc configuration."
3
+ mode: code-tweaker
4
+ ---
5
+
6
6
  Skill: `.roo/skills/engineering/setup-matt-pocock-skills/SKILL.md`
7
-
8
- $ARGUMENTS
7
+
8
+ $ARGUMENTS
@@ -1,22 +1,22 @@
1
- ---
2
- description: "Update repo documentation so it matches the current code."
3
- argument-hint: <doc or area to update>
4
- mode: code-tweaker
5
- ---
6
-
7
- Update repo documentation so it matches the current code. Surgical edits only — read existing docs first, verify claims against code, never rewrite wholesale unless the existing doc is unsalvageable. Follow the skill exactly.
8
-
9
- Skill: `.roo/skills/engineering/update-docs/SKILL.md`
10
-
11
- Find the target doc in `.zoo-flow/` or `docs/`. If it does not exist, ask once: "No <doc> found. Create a stub at .zoo-flow/<doc>? (yes / pick-existing / skip)".
12
-
13
- Do NOT use this for:
14
-
15
- - Domain glossary terms — use `/grill-with-docs`
16
- - ADRs — use `/grill-with-docs` or `/refactor`
17
- - Local commit journal entries — use `/commit-and-document`
18
- - Read-only understanding — use `/explore`
19
-
20
- If `$ARGUMENTS` is empty, ask once: "Which documentation file or area should I update?"
21
-
22
- $ARGUMENTS
1
+ ---
2
+ description: "Update repo documentation so it matches the current code."
3
+ argument-hint: <doc or area to update>
4
+ mode: code-tweaker
5
+ ---
6
+
7
+ Update repo documentation so it matches the current code. Surgical edits only — read existing docs first, verify claims against code, never rewrite wholesale unless the existing doc is unsalvageable. Follow the skill exactly.
8
+
9
+ Skill: `.roo/skills/engineering/update-docs/SKILL.md`
10
+
11
+ Find the target doc in `.zoo-flow/` or `docs/`. If it does not exist, ask once: "No <doc> found. Create a stub at .zoo-flow/<doc>? (yes / pick-existing / skip)".
12
+
13
+ Do NOT use this for:
14
+
15
+ - Domain glossary terms — use `/grill-with-docs`
16
+ - ADRs — use `/grill-with-docs` or `/refactor`
17
+ - Local commit journal entries — use `/commit-and-document`
18
+ - Read-only understanding — use `/explore`
19
+
20
+ If `$ARGUMENTS` is empty, ask once: "Which documentation file or area should I update?"
21
+
22
+ $ARGUMENTS
@@ -44,25 +44,25 @@ Slash commands are internal routing labels unless the user explicitly typed one
44
44
 
45
45
  ## Routed commands
46
46
 
47
- | Workflow | Command | Mode |
48
- | -------------------- | ---------------------- | ---------------- |
49
- | small implementation | `/tweak` | code-tweaker |
50
- | test-first | `/tdd` | code-tweaker |
51
- | documentation update | `/update-docs` | code-tweaker |
52
- | commit and journal | `/commit-and-document` | code-tweaker |
53
- | prototype | `/prototype` | code-tweaker |
54
- | context scaffolding | `/scaffold-context` | code-tweaker |
55
- | diagnosis | `/fix` | system-architect |
56
- | feature planning | `/feature` | system-architect |
57
- | refactor planning | `/refactor` | system-architect |
58
- | exploration | `/explore` | system-architect |
59
- | issue triage | `/triage` | system-architect |
60
- | review | `/review` | system-architect |
61
- | verification | `/verify` | code-tweaker |
47
+ | Workflow | Command | Mode |
48
+ | -------------------- | ----------------------- | ---------------- |
49
+ | small implementation | `/zoo-tweak` | code-tweaker |
50
+ | test-first | `/zoo-tdd` | code-tweaker |
51
+ | documentation update | `/zoo-update-docs` | code-tweaker |
52
+ | commit and journal | `/zoo-commit-and-document` | code-tweaker |
53
+ | prototype | `/zoo-prototype` | code-tweaker |
54
+ | context scaffolding | `/zoo-scaffold-context` | code-tweaker |
55
+ | diagnosis | `/zoo-fix` | system-architect |
56
+ | feature planning | `/zoo-feature` | system-architect |
57
+ | refactor planning | `/zoo-refactor` | system-architect |
58
+ | exploration | `/zoo-explore` | system-architect |
59
+ | issue triage | `/zoo-triage` | system-architect |
60
+ | review | `/zoo-review` | system-architect |
61
+ | verification | `/zoo-verify` | code-tweaker |
62
62
 
63
63
  ## Routing decision guide
64
64
 
65
- Read intent, not keywords. Top-down: 1. unknown code area or unclear next move → exploration; 2. broken behavior with unknown cause → diagnosis; 3. new capability needing design, PRD, issue slicing, or phase gates → feature planning; 4. working behavior but structure is the problem → refactor planning; 5. small known low-risk change → small implementation; 6. clear behavior and interface, user wants tests first → test-first; 7. throwaway design/state/UI uncertainty → prototype; 8. docs drift from code → documentation update; 9. finished work needs commit/journal → commit and journal; 10. issue creation, sorting, labels, or tracker workflow → issue triage; 11. diff, branch, PR, standards, architecture, or pre-commit inspection → review; 12. check if this passes, run tests for this change, verify the branch, or make sure nothing broke → verification.
65
+ Read intent, not keywords. Top-down: 1. unknown code area or unclear next move → `/zoo-explore`; 2. broken behavior with unknown cause → `/zoo-fix`; 3. new capability needing design, PRD, issue slicing, or phase gates → `/zoo-feature`; 4. working behavior but structure is the problem → `/zoo-refactor`; 5. small known low-risk change → `/zoo-tweak`; 6. clear behavior and interface, user wants tests first → `/zoo-tdd`; 7. throwaway design/state/UI uncertainty → `/zoo-prototype`; 8. docs drift from code → `/zoo-update-docs`; 9. finished work needs commit/journal → `/zoo-commit-and-document`; 10. issue creation, sorting, labels, or tracker workflow → `/zoo-triage`; 11. diff, branch, PR, standards, architecture, or pre-commit inspection → `/zoo-review`; 12. check if this passes, run tests for this change, verify the branch, or make sure nothing broke → `/zoo-verify`.
66
66
 
67
67
  ## Routing weight
68
68
 
@@ -78,7 +78,7 @@ Diagnosis vs small implementation: unknown cause → diagnosis; known cause →
78
78
 
79
79
  ## Confidence and presentation
80
80
 
81
- Explicit slash command from user = approval; route as-is. Clear free-form request = recommend one plain-language workflow plus one safe alternative if useful. Genuine tie = offer numbered plain-language choices. Prefer lighter workflow when safe, but do not skip needed diagnosis, planning, or approval. Follow `.roo/rules/03-manual-reply-protocol.md`: no slash commands, mode names, or executable routing text in selectable options. Good free-form option: 1. Make the small implementation change; 2. Explore the area first. Bad free-form option: 1. `/tweak`; 2. `/explore`.
81
+ Explicit slash command from user = approval; route as-is. Clear free-form request = recommend one plain-language workflow plus one safe alternative if useful. Genuine tie = offer numbered plain-language choices. Prefer lighter workflow when safe, but do not skip needed diagnosis, planning, or approval. Follow `.roo/rules/03-manual-reply-protocol.md`: no slash commands, mode names, or executable routing text in selectable options. Good free-form option: 1. Make the small implementation change; 2. Explore the area first. Bad free-form option: 1. `/zoo-tweak`; 2. `/zoo-explore`.
82
82
 
83
83
  ## Approval gate
84
84
 
@@ -94,8 +94,8 @@ For non-trivial work, suggest the next command chain only after the current comm
94
94
 
95
95
  Recommended chains:
96
96
 
97
- - test-firstverification → review → commit and journal
98
- - diagnosisverification → review → commit and journal
99
- - refactor planning verification → review → commit and journal
100
- - feature planning verification → review → commit and journal
101
- - small implementation verification or review when risk is R3+
97
+ - `/zoo-tdd``/zoo-verify``/zoo-review``/zoo-commit-and-document`
98
+ - `/zoo-fix``/zoo-verify``/zoo-review``/zoo-commit-and-document`
99
+ - `/zoo-refactor``/zoo-verify``/zoo-review``/zoo-commit-and-document`
100
+ - `/zoo-feature``/zoo-verify``/zoo-review``/zoo-commit-and-document`
101
+ - `/zoo-tweak``/zoo-verify` or `/zoo-review` when risk is R3+