@hanzlaa/rcode 3.3.0 → 3.3.1

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 (278) hide show
  1. package/CONTRIBUTING.md +9 -9
  2. package/README.md +50 -50
  3. package/cli/context.js +4 -4
  4. package/cli/doctor.js +1 -1
  5. package/cli/generate-command-skills.cjs +10 -10
  6. package/cli/install.js +11 -11
  7. package/cli/lib/memory-bank.cjs +5 -5
  8. package/cli/set-mode.js +2 -2
  9. package/cli/uninstall.js +5 -5
  10. package/dist/rcode.js +15 -15
  11. package/package.json +1 -1
  12. package/rihal/DOCS-AUDIT.md +1 -1
  13. package/rihal/agents/rihal-ahmed.md +1 -1
  14. package/rihal/agents/rihal-codebase-mapper.md +3 -3
  15. package/rihal/agents/rihal-debugger.md +2 -2
  16. package/rihal/agents/rihal-fatima.md +2 -2
  17. package/rihal/agents/rihal-haitham.md +2 -2
  18. package/rihal/agents/rihal-khalid.md +1 -1
  19. package/rihal/agents/rihal-layla.md +1 -1
  20. package/rihal/agents/rihal-nasser.md +1 -1
  21. package/rihal/agents/rihal-noor.md +1 -1
  22. package/rihal/agents/rihal-nyquist-auditor.md +1 -1
  23. package/rihal/agents/rihal-omar.md +1 -1
  24. package/rihal/agents/rihal-phase-researcher.md +3 -3
  25. package/rihal/agents/rihal-planner.md +1 -1
  26. package/rihal/agents/rihal-project-researcher.md +2 -2
  27. package/rihal/agents/rihal-research-synthesizer.md +3 -3
  28. package/rihal/agents/rihal-roadmapper.md +3 -3
  29. package/rihal/agents/rihal-sadiq.md +1 -1
  30. package/rihal/agents/rihal-sprint-checker.md +3 -3
  31. package/rihal/agents/rihal-verifier.md +2 -2
  32. package/rihal/agents/rihal-waleed.md +1 -1
  33. package/rihal/agents/rihal-yousef.md +2 -2
  34. package/rihal/agents/rihal-zahra.md +1 -1
  35. package/rihal/agents/rihal-zayd.md +1 -1
  36. package/rihal/agents/rules/phase-researcher/detailed-guide.md +1 -1
  37. package/rihal/agents/rules/roadmapper/detailed-guide.md +1 -1
  38. package/rihal/agents/rules/sprint-checker/dimensions.md +3 -3
  39. package/rihal/agents/rules/sprint-checker/process.md +2 -2
  40. package/rihal/agents/rules/verifier/gap-output.md +1 -1
  41. package/rihal/agents/rules/verifier/verification-report.md +1 -1
  42. package/rihal/bin/rihal-hooks.cjs +6 -6
  43. package/rihal/bin/rihal-tools.cjs +60 -23
  44. package/rihal/brain/README.md +2 -2
  45. package/rihal/brain/best-practices/no-autonomous-bypass.md +2 -2
  46. package/rihal/brain/best-practices/research-citation-rule.md +1 -1
  47. package/rihal/brain/best-practices/state-sync-rule.md +4 -4
  48. package/rihal/commands/add-phase.md +1 -1
  49. package/rihal/commands/add-tests.md +1 -1
  50. package/rihal/commands/add-todo.md +1 -1
  51. package/rihal/commands/analyze-dependencies.md +1 -1
  52. package/rihal/commands/audit-fix.md +1 -1
  53. package/rihal/commands/audit-milestone.md +1 -1
  54. package/rihal/commands/audit-uat.md +1 -1
  55. package/rihal/commands/audit.md +1 -1
  56. package/rihal/commands/autonomous.md +1 -1
  57. package/rihal/commands/brainstorm.md +1 -1
  58. package/rihal/commands/chain.md +1 -1
  59. package/rihal/commands/check-todos.md +1 -1
  60. package/rihal/commands/checkpoint-preview.md +1 -1
  61. package/rihal/commands/cleanup.md +2 -2
  62. package/rihal/commands/code-review-fix.md +1 -1
  63. package/rihal/commands/code-review.md +1 -1
  64. package/rihal/commands/complete-milestone.md +1 -1
  65. package/rihal/commands/config.md +2 -2
  66. package/rihal/commands/correct-course.md +1 -1
  67. package/rihal/commands/council.md +1 -1
  68. package/rihal/commands/create-epics-and-stories.md +1 -1
  69. package/rihal/commands/create-story.md +2 -2
  70. package/rihal/commands/dashboard.md +1 -1
  71. package/rihal/commands/debug.md +1 -1
  72. package/rihal/commands/decisions.md +1 -1
  73. package/rihal/commands/dev-story.md +1 -1
  74. package/rihal/commands/diff.md +1 -1
  75. package/rihal/commands/discuss-phase.md +1 -1
  76. package/rihal/commands/discuss.md +2 -2
  77. package/rihal/commands/do.md +2 -2
  78. package/rihal/commands/docs-update.md +1 -1
  79. package/rihal/commands/document-project.md +1 -1
  80. package/rihal/commands/enable-hooks.md +1 -1
  81. package/rihal/commands/execute-sprint.md +2 -2
  82. package/rihal/commands/execute.md +1 -1
  83. package/rihal/commands/explore.md +1 -1
  84. package/rihal/commands/export-to-github.md +1 -1
  85. package/rihal/commands/forensics.md +1 -1
  86. package/rihal/commands/from-template.md +1 -1
  87. package/rihal/commands/health.md +1 -1
  88. package/rihal/commands/help.md +1 -1
  89. package/rihal/commands/import.md +1 -1
  90. package/rihal/commands/inbox.md +1 -1
  91. package/rihal/commands/init.md +1 -1
  92. package/rihal/commands/insert-phase.md +1 -1
  93. package/rihal/commands/install.md +1 -1
  94. package/rihal/commands/list-plans.md +1 -1
  95. package/rihal/commands/list-workspaces.md +1 -1
  96. package/rihal/commands/map-codebase.md +1 -1
  97. package/rihal/commands/milestone-summary.md +1 -1
  98. package/rihal/commands/new-milestone.md +1 -1
  99. package/rihal/commands/new-project.md +1 -1
  100. package/rihal/commands/new-workspace.md +1 -1
  101. package/rihal/commands/next.md +1 -1
  102. package/rihal/commands/note.md +1 -1
  103. package/rihal/commands/notify-test.md +1 -1
  104. package/rihal/commands/pause-work.md +1 -1
  105. package/rihal/commands/plan-milestone-gaps.md +3 -3
  106. package/rihal/commands/plan.md +2 -2
  107. package/rihal/commands/plant-seed.md +1 -1
  108. package/rihal/commands/pr-branch.md +2 -2
  109. package/rihal/commands/prfaq.md +1 -1
  110. package/rihal/commands/profile-user.md +1 -1
  111. package/rihal/commands/progress.md +3 -3
  112. package/rihal/commands/quick.md +1 -1
  113. package/rihal/commands/remove-phase.md +1 -1
  114. package/rihal/commands/remove-workspace.md +1 -1
  115. package/rihal/commands/replay.md +1 -1
  116. package/rihal/commands/rerun.md +1 -1
  117. package/rihal/commands/research-phase.md +2 -2
  118. package/rihal/commands/resume-work.md +1 -1
  119. package/rihal/commands/review.md +1 -1
  120. package/rihal/commands/scan.md +1 -1
  121. package/rihal/commands/secure-phase.md +1 -1
  122. package/rihal/commands/session-report.md +1 -1
  123. package/rihal/commands/settings.md +1 -1
  124. package/rihal/commands/ship.md +2 -2
  125. package/rihal/commands/show.md +1 -1
  126. package/rihal/commands/sprint-planning.md +1 -1
  127. package/rihal/commands/sprint-status.md +1 -1
  128. package/rihal/commands/stats.md +1 -1
  129. package/rihal/commands/status.md +1 -1
  130. package/rihal/commands/ui-phase.md +1 -1
  131. package/rihal/commands/ui-review.md +1 -1
  132. package/rihal/commands/undo.md +1 -1
  133. package/rihal/commands/update.md +1 -1
  134. package/rihal/commands/validate-phase.md +1 -1
  135. package/rihal/commands/verify-phase.md +2 -2
  136. package/rihal/commands/verify-work.md +1 -1
  137. package/rihal/commands/why.md +1 -1
  138. package/rihal/commands/workstream.md +1 -1
  139. package/rihal/references/agent-shared-rules.md +1 -1
  140. package/rihal/references/command-redirect-format.md +7 -7
  141. package/rihal/references/context-budget.md +2 -2
  142. package/rihal/references/continuation-format.md +16 -16
  143. package/rihal/references/dispatch-banner.md +1 -1
  144. package/rihal/references/execution-protocol.md +2 -2
  145. package/rihal/references/gates.md +3 -3
  146. package/rihal/references/git-integration.md +1 -1
  147. package/rihal/references/output-format.md +4 -4
  148. package/rihal/references/output-realism.md +1 -1
  149. package/rihal/references/revision-loop.md +1 -1
  150. package/rihal/references/state-schema.md +15 -15
  151. package/rihal/references/ui-brand.md +1 -1
  152. package/rihal/references/verb-dictionary.md +15 -15
  153. package/rihal/references/workstream-flag.md +28 -28
  154. package/rihal/skills/_shared/no-autonomous-bypass.md +2 -2
  155. package/rihal/skills/_shared/research-citation-rule.md +1 -1
  156. package/rihal/skills/_shared/state-sync-rule.md +4 -4
  157. package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +1 -1
  158. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +1 -1
  159. package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +2 -2
  160. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +2 -2
  161. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-07-backlog.md +2 -2
  162. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-09-state-sync.md +2 -2
  163. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +4 -4
  164. package/rihal/skills/actions/2-plan/rihal-create-milestone/workflow.md +5 -5
  165. package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +1 -1
  166. package/rihal/skills/actions/2-plan/rihal-create-prd/workflow.md +1 -1
  167. package/rihal/skills/actions/2-plan/rihal-create-story/workflow.md +1 -1
  168. package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +3 -3
  169. package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +1 -1
  170. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +1 -1
  171. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/checklist.md +1 -1
  172. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +1 -1
  173. package/rihal/skills/actions/4-implementation/rihal-sprint-status/workflow.md +5 -5
  174. package/rihal/skills/agents/dalil-scout/SKILL.md +7 -7
  175. package/rihal/skills/core/rihal-brainstorming/SKILL.md +1 -1
  176. package/rihal/skills/core/rihal-init/SKILL.md +1 -1
  177. package/rihal/skills/core/rihal-party-mode/SKILL.md +1 -1
  178. package/rihal/templates/milestone.md +1 -1
  179. package/rihal/templates/projects/api-backend/PROJECT.md +1 -1
  180. package/rihal/templates/projects/mobile-app/PROJECT.md +1 -1
  181. package/rihal/templates/projects/saas-b2b/PROJECT.md +1 -1
  182. package/rihal/workflows/add-phase.md +10 -10
  183. package/rihal/workflows/add-tests.md +9 -9
  184. package/rihal/workflows/add-todo.md +5 -5
  185. package/rihal/workflows/analyze-dependencies.md +7 -7
  186. package/rihal/workflows/audit-fix.md +4 -4
  187. package/rihal/workflows/audit-milestone.md +8 -8
  188. package/rihal/workflows/audit-uat.md +2 -2
  189. package/rihal/workflows/audit.md +28 -28
  190. package/rihal/workflows/autonomous.md +128 -44
  191. package/rihal/workflows/brainstorm.md +7 -7
  192. package/rihal/workflows/chain.md +16 -16
  193. package/rihal/workflows/check-implementation-readiness.md +4 -4
  194. package/rihal/workflows/check-todos.md +8 -8
  195. package/rihal/workflows/checkpoint-preview.md +1 -1
  196. package/rihal/workflows/code-review-fix.md +10 -10
  197. package/rihal/workflows/code-review.md +10 -10
  198. package/rihal/workflows/complete-milestone.md +5 -5
  199. package/rihal/workflows/correct-course.md +7 -7
  200. package/rihal/workflows/council.md +15 -15
  201. package/rihal/workflows/create-epics-and-stories.md +9 -9
  202. package/rihal/workflows/create-story.md +11 -11
  203. package/rihal/workflows/dashboard.md +8 -8
  204. package/rihal/workflows/debug.md +6 -6
  205. package/rihal/workflows/decisions.md +5 -5
  206. package/rihal/workflows/dev-story.md +12 -12
  207. package/rihal/workflows/diagnose-issues.md +2 -2
  208. package/rihal/workflows/diff.md +3 -3
  209. package/rihal/workflows/discuss-phase-power.md +7 -7
  210. package/rihal/workflows/discuss-phase.md +14 -14
  211. package/rihal/workflows/discuss.md +9 -9
  212. package/rihal/workflows/do.md +79 -79
  213. package/rihal/workflows/docs-update.md +6 -6
  214. package/rihal/workflows/document-project.md +5 -5
  215. package/rihal/workflows/enable-hooks.md +5 -5
  216. package/rihal/workflows/execute-sprint.md +3 -3
  217. package/rihal/workflows/execute.md +28 -28
  218. package/rihal/workflows/explore.md +5 -5
  219. package/rihal/workflows/export-to-github.md +5 -5
  220. package/rihal/workflows/forensics.md +8 -8
  221. package/rihal/workflows/from-template.md +8 -8
  222. package/rihal/workflows/health.md +11 -11
  223. package/rihal/workflows/help.md +117 -117
  224. package/rihal/workflows/import.md +4 -4
  225. package/rihal/workflows/inbox.md +8 -8
  226. package/rihal/workflows/init.md +23 -23
  227. package/rihal/workflows/insert-phase.md +9 -9
  228. package/rihal/workflows/install.md +3 -3
  229. package/rihal/workflows/karpathy-audit.md +11 -11
  230. package/rihal/workflows/list-plans.md +8 -8
  231. package/rihal/workflows/list-workspaces.md +7 -7
  232. package/rihal/workflows/map-codebase.md +5 -5
  233. package/rihal/workflows/milestone-summary.md +7 -7
  234. package/rihal/workflows/new-milestone.md +11 -11
  235. package/rihal/workflows/new-project-research.md +1 -1
  236. package/rihal/workflows/new-project-roadmap.md +8 -8
  237. package/rihal/workflows/new-project.md +32 -32
  238. package/rihal/workflows/new-workspace.md +7 -7
  239. package/rihal/workflows/next.md +13 -13
  240. package/rihal/workflows/note.md +7 -7
  241. package/rihal/workflows/notify-test.md +6 -6
  242. package/rihal/workflows/pause-work.md +6 -6
  243. package/rihal/workflows/plan-milestone-gaps.md +7 -7
  244. package/rihal/workflows/plan.md +28 -28
  245. package/rihal/workflows/plant-seed.md +3 -3
  246. package/rihal/workflows/pr-branch.md +1 -1
  247. package/rihal/workflows/prfaq.md +1 -1
  248. package/rihal/workflows/profile-user.md +5 -5
  249. package/rihal/workflows/progress.md +6 -6
  250. package/rihal/workflows/quick.md +12 -12
  251. package/rihal/workflows/remove-phase.md +6 -6
  252. package/rihal/workflows/remove-workspace.md +8 -8
  253. package/rihal/workflows/replay.md +8 -8
  254. package/rihal/workflows/rerun.md +5 -5
  255. package/rihal/workflows/research-phase.md +2 -2
  256. package/rihal/workflows/resume-work.md +10 -10
  257. package/rihal/workflows/review-adversarial.md +4 -4
  258. package/rihal/workflows/review-edge-case-hunter.md +5 -5
  259. package/rihal/workflows/review.md +11 -11
  260. package/rihal/workflows/scan.md +9 -9
  261. package/rihal/workflows/secure-phase.md +8 -8
  262. package/rihal/workflows/session-report.md +6 -6
  263. package/rihal/workflows/settings.md +15 -15
  264. package/rihal/workflows/ship.md +11 -11
  265. package/rihal/workflows/show.md +2 -2
  266. package/rihal/workflows/sprint-planning.md +13 -13
  267. package/rihal/workflows/sprint-status.md +10 -10
  268. package/rihal/workflows/stats.md +6 -6
  269. package/rihal/workflows/status.md +15 -7
  270. package/rihal/workflows/ui-phase.md +8 -8
  271. package/rihal/workflows/ui-review.md +5 -5
  272. package/rihal/workflows/undo.md +17 -17
  273. package/rihal/workflows/update.md +12 -12
  274. package/rihal/workflows/validate-phase.md +5 -5
  275. package/rihal/workflows/verify-work.md +18 -18
  276. package/rihal/workflows/why.md +9 -9
  277. package/rihal/workflows/workstream.md +11 -11
  278. package/server/lib/html/client.js +45 -45
@@ -1,4 +1,4 @@
1
- # Workflow: rihal:discuss-phase-power
1
+ # Workflow: rihal-discuss-phase-power
2
2
 
3
3
  <purpose>
4
4
  Power user mode for discuss-phase. Generates ALL questions upfront into a JSON state file and an HTML companion UI, then waits for the user to answer at their own pace. When the user signals readiness, processes all answers in one pass and generates CONTEXT.md.
@@ -12,19 +12,19 @@ Power user mode for discuss-phase. Generates ALL questions upfront into a JSON s
12
12
  If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
13
13
 
14
14
  ```
15
- /rihal:discuss-phase --power <argument-here>
15
+ /rihal-discuss-phase --power <argument-here>
16
16
  ```
17
17
 
18
18
  **Examples:**
19
19
  ```
20
- /rihal:discuss-phase --power example 1
21
- /rihal:discuss-phase --power example 2
20
+ /rihal-discuss-phase --power example 1
21
+ /rihal-discuss-phase --power example 2
22
22
  ```
23
23
 
24
24
  STOP — do not proceed.
25
25
 
26
26
  <trigger>
27
- This workflow executes when `--power` flag is present in ARGUMENTS to `/rihal:discuss-phase`.
27
+ This workflow executes when `--power` flag is present in ARGUMENTS to `/rihal-discuss-phase`.
28
28
 
29
29
  The caller (discuss-phase.md) has already:
30
30
  - Validated the phase exists
@@ -284,7 +284,7 @@ Process all answered questions from the JSON file and generate CONTEXT.md.
284
284
  ```
285
285
  Warning: Only {answered}/{total} questions answered ({pct}%).
286
286
  CONTEXT.md generated with available decisions. Unanswered questions listed as deferred.
287
- Consider running /rihal:discuss-phase {N} again to refine before planning.
287
+ Consider running /rihal-discuss-phase {N} again to refine before planning.
288
288
  ```
289
289
 
290
290
  7. Print completion message:
@@ -294,7 +294,7 @@ CONTEXT.md written: {phase_dir}/{padded_phase}-CONTEXT.md
294
294
  Decisions captured: {answered}
295
295
  Deferred: {remaining}
296
296
 
297
- Next step: /rihal:plan-phase {N}
297
+ Next step: /rihal-plan-phase {N}
298
298
  ```
299
299
  </step>
300
300
 
@@ -124,7 +124,7 @@ This is required for Claude Code remote sessions (`/rc` mode) where the Claude A
124
124
  cannot forward TUI menu selections back to the host.
125
125
 
126
126
  Enable text mode:
127
- - Per-session: pass `--text` flag to any command (e.g., `/rihal:discuss-phase --text`)
127
+ - Per-session: pass `--text` flag to any command (e.g., `/rihal-discuss-phase --text`)
128
128
  - Per-project: `rihal-tools config-set workflow.text_mode true`
129
129
 
130
130
  Text mode applies to ALL workflows in the session, not just discuss-phase.
@@ -132,7 +132,7 @@ Text mode applies to ALL workflows in the session, not just discuss-phase.
132
132
 
133
133
  <process>
134
134
 
135
- **Express path available:** If you already have a PRD or acceptance criteria document, use `/rihal:plan {phase} --prd path/to/prd.md` to skip this discussion and go straight to planning.
135
+ **Express path available:** If you already have a PRD or acceptance criteria document, use `/rihal-plan {phase} --prd path/to/prd.md` to skip this discussion and go straight to planning.
136
136
 
137
137
  <step name="initialize" priority="first">
138
138
  Phase number from argument (required).
@@ -151,7 +151,7 @@ Parse JSON for: `commit_docs`, `phase_found`, `phase_dir`, `phase_number`, `phas
151
151
  ```
152
152
  Phase [X] not found in roadmap.
153
153
 
154
- Use /rihal:progress ${Rihal_WS} to see available phases.
154
+ Use /rihal-progress ${Rihal_WS} to see available phases.
155
155
  ```
156
156
  Exit workflow.
157
157
 
@@ -252,7 +252,7 @@ Check `has_plans` and `plan_count` from init. **If `has_plans` is true:**
252
252
  - header: "Plans exist"
253
253
  - question: "Phase [X] already has {plan_count} plan(s) created without user context. Your decisions here won't affect existing plans unless you replan."
254
254
  - options:
255
- - "Continue and replan after" — Capture context, then run /rihal:plan {X} ${Rihal_WS} to replan
255
+ - "Continue and replan after" — Capture context, then run /rihal-plan {X} ${Rihal_WS} to replan
256
256
  - "View existing plans" — Show plans before deciding
257
257
  - "Cancel" — Skip discuss-phase
258
258
 
@@ -554,7 +554,7 @@ After user selects gray areas in present_gray_areas, spawn parallel research age
554
554
  2. For EACH user-selected gray area, spawn a Task() in parallel:
555
555
 
556
556
  Task(
557
- prompt="First, read @$HOME/.claude/agents/rihal:advisor-researcher.md for your role and instructions.
557
+ prompt="First, read @$HOME/.claude/agents/rihal-advisor-researcher.md for your role and instructions.
558
558
 
559
559
  <gray_area>{area_name}: {area_description from gray area identification}</gray_area>
560
560
  <phase_context>{phase_goal and description from ROADMAP.md}</phase_context>
@@ -833,7 +833,7 @@ Write after each area:
833
833
  }
834
834
  ```
835
835
 
836
- This is a structured checkpoint, not the final CONTEXT.md — the `write_context` step still produces the canonical output. But if the session dies, the next `/rihal:discuss-phase` invocation can detect this checkpoint and offer to resume from it instead of starting from scratch.
836
+ This is a structured checkpoint, not the final CONTEXT.md — the `write_context` step still produces the canonical output. But if the session dies, the next `/rihal-discuss-phase` invocation can detect this checkpoint and offer to resume from it instead of starting from scratch.
837
837
 
838
838
  **On session resume:** In the `check_existing` step, also check for `*-DISCUSS-CHECKPOINT.json`. If found and no CONTEXT.md exists:
839
839
  - Display: "Found interrupted discussion checkpoint ({N} areas completed). Resume from checkpoint?"
@@ -999,14 +999,14 @@ Created: .planning/phases/${PADDED_PHASE}-${SLUG}/${PADDED_PHASE}-CONTEXT.md
999
999
 
1000
1000
  `/clear` then:
1001
1001
 
1002
- `/rihal:plan ${PHASE} ${Rihal_WS}`
1002
+ `/rihal-plan ${PHASE} ${Rihal_WS}`
1003
1003
 
1004
1004
  ---
1005
1005
 
1006
1006
  **Also available:**
1007
- - `/rihal:discuss-phase ${PHASE} --chain ${Rihal_WS}` — re-run with auto plan+execute after
1008
- - `/rihal:plan ${PHASE} --skip-research ${Rihal_WS}` — plan without research
1009
- - `/rihal:ui-phase ${PHASE} ${Rihal_WS}` — generate UI design contract before planning (if phase has frontend work)
1007
+ - `/rihal-discuss-phase ${PHASE} --chain ${Rihal_WS}` — re-run with auto plan+execute after
1008
+ - `/rihal-plan ${PHASE} --skip-research ${Rihal_WS}` — plan without research
1009
+ - `/rihal-ui-phase ${PHASE} ${Rihal_WS}` — generate UI design contract before planning (if phase has frontend work)
1010
1010
  - Review/edit CONTEXT.md before continuing
1011
1011
 
1012
1012
  ---
@@ -1139,22 +1139,22 @@ This keeps the auto-advance chain flat — discuss, plan, and execute all run at
1139
1139
 
1140
1140
  /clear then:
1141
1141
 
1142
- Next: /rihal:discuss-phase ${NEXT_PHASE} ${WAS_CHAIN ? "--chain" : "--auto"} ${Rihal_WS}
1142
+ Next: /rihal-discuss-phase ${NEXT_PHASE} ${WAS_CHAIN ? "--chain" : "--auto"} ${Rihal_WS}
1143
1143
  ```
1144
1144
  - **PLANNING COMPLETE** → Planning done, execution didn't complete:
1145
1145
  ```
1146
1146
  Auto-advance partial: Planning complete, execution did not finish.
1147
- Continue: /rihal:execute-phase ${PHASE} ${Rihal_WS}
1147
+ Continue: /rihal-execute-phase ${PHASE} ${Rihal_WS}
1148
1148
  ```
1149
1149
  - **PLANNING INCONCLUSIVE / CHECKPOINT** → Stop chain:
1150
1150
  ```
1151
1151
  Auto-advance stopped: Planning needs input.
1152
- Continue: /rihal:plan ${PHASE} ${Rihal_WS}
1152
+ Continue: /rihal-plan ${PHASE} ${Rihal_WS}
1153
1153
  ```
1154
1154
  - **GAPS FOUND** → Stop chain:
1155
1155
  ```
1156
1156
  Auto-advance stopped: Gaps found during execution.
1157
- Continue: /rihal:plan ${PHASE} --gaps ${Rihal_WS}
1157
+ Continue: /rihal-plan ${PHASE} --gaps ${Rihal_WS}
1158
1158
  ```
1159
1159
 
1160
1160
  **If none of `--auto`, `--chain`, nor config enabled:**
@@ -1,4 +1,4 @@
1
- # Workflow: rihal:discuss
1
+ # Workflow: rihal-discuss
2
2
 
3
3
  <purpose>
4
4
  Orchestrate a single-agent quick sync session. This is the lightweight alternative to council — one agent, one round, conversational tone, no mandatory artifact. Feels like texting one colleague, not calling a board meeting.
@@ -10,7 +10,7 @@ Lightweight — no full banner. Open with one-line header:
10
10
  ◆ Spawning {agent-id}...
11
11
  ```
12
12
  Agent response opens with header: `🧭 **Sadiq (صادق) — Director of Strategy:**`.
13
- No closure banner (discuss is lightweight). End with optional Next Up if the user should escalate: `Want to convene full council? /rihal:council <question>`.
13
+ No closure banner (discuss is lightweight). End with optional Next Up if the user should escalate: `Want to convene full council? /rihal-council <question>`.
14
14
  </output_format>
15
15
 
16
16
  <required_reading>
@@ -26,15 +26,15 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
26
26
 
27
27
  **Usage:**
28
28
  ```
29
- /rihal:discuss [agent-name] <question>
29
+ /rihal-discuss [agent-name] <question>
30
30
  ```
31
31
 
32
32
  **Examples:**
33
33
  ```
34
- /rihal:discuss sadiq should I pivot this idea?
35
- /rihal:discuss waleed what stack should I use for a multi-tenant SaaS?
36
- /rihal:discuss what's the kill criterion for this project?
37
- /rihal:discuss fatima is this release ready to ship?
34
+ /rihal-discuss sadiq should I pivot this idea?
35
+ /rihal-discuss waleed what stack should I use for a multi-tenant SaaS?
36
+ /rihal-discuss what's the kill criterion for this project?
37
+ /rihal-discuss fatima is this release ready to ship?
38
38
  ```
39
39
 
40
40
  Only after the user provides arguments, proceed to Step 0.5.
@@ -60,9 +60,9 @@ If either condition holds:
60
60
  ```
61
61
  ⚠ Strategic / market decisions benefit from multiple perspectives.
62
62
 
63
- /rihal:discuss is single-agent. For "should we" questions across domains, use:
63
+ /rihal-discuss is single-agent. For "should we" questions across domains, use:
64
64
 
65
- /rihal:council $ARGUMENTS
65
+ /rihal-council $ARGUMENTS
66
66
  ```
67
67
 
68
68
  Only proceed past this step if both checks pass — question is tactical or single-domain (codebase, team, release, design) AND top agent is sadiq/waleed/fatima.
@@ -86,21 +86,21 @@ If `$QUESTION` is empty, present the main menu via AskUserQuestion:
86
86
  ```
87
87
  What would you like to do?
88
88
 
89
- 1. Quick chat with one expert (/rihal:discuss)
90
- 2. Convene the council (/rihal:council)
91
- 3. Discuss an unlocked phase (/rihal:discuss-phase)
92
- 4. Plan a phase (/rihal:plan)
93
- 5. Execute a phase (/rihal:execute)
94
- 6. Sprint planning (/rihal:sprint-planning)
95
- 7. Execute a sprint (/rihal:execute-sprint)
96
- 8. Check sprint status (/rihal:sprint-status)
97
- 9. Break milestone into epics & stories (/rihal:create-epics-and-stories)
98
- 10. Implement a story (/rihal:dev-story)
99
- 11. Check progress (/rihal:progress)
100
- 12. Auto-advance to next step (/rihal:next)
101
- 13. Debug an issue (/rihal:debug)
102
- 14. Resume paused work (/rihal:resume-work)
103
- 15. Add a note (/rihal:note)
89
+ 1. Quick chat with one expert (/rihal-discuss)
90
+ 2. Convene the council (/rihal-council)
91
+ 3. Discuss an unlocked phase (/rihal-discuss-phase)
92
+ 4. Plan a phase (/rihal-plan)
93
+ 5. Execute a phase (/rihal-execute)
94
+ 6. Sprint planning (/rihal-sprint-planning)
95
+ 7. Execute a sprint (/rihal-execute-sprint)
96
+ 8. Check sprint status (/rihal-sprint-status)
97
+ 9. Break milestone into epics & stories (/rihal-create-epics-and-stories)
98
+ 10. Implement a story (/rihal-dev-story)
99
+ 11. Check progress (/rihal-progress)
100
+ 12. Auto-advance to next step (/rihal-next)
101
+ 13. Debug an issue (/rihal-debug)
102
+ 14. Resume paused work (/rihal-resume-work)
103
+ 15. Add a note (/rihal-note)
104
104
  16. Something else — describe it
105
105
  ```
106
106
 
@@ -136,18 +136,18 @@ Apply this guard BEFORE the routing table below:
136
136
 
137
137
  | Intent contains... | AND state shows... | Then re-route to... | Why |
138
138
  |--------------------|---------------------|----------------------|-----|
139
- | "draft phases", "all phases", "build all phases", "groom phases", "auto mode" + "phases" | `HAS_PRD=false` | `/rihal:create-prd` first | Phases need a PRD foundation. Without one, the autonomous flow hallucinates requirements. |
140
- | "execute phase", "build phase N", "run phase N" | `HAS_PHASES=false` OR PLAN.md missing for phase N | `/rihal:plan N` first (or `/rihal:create-prd` if no PRD) | Can't execute what hasn't been planned. |
141
- | "sprint planning", "plan the sprint" | `HAS_EPICS=false` | `/rihal:create-epics-and-stories` first | Sprints draw stories from epics. No epics = no stories to schedule. |
142
- | "create stories", "epics" | `HAS_PRD=false` | `/rihal:create-prd` first | Epics decompose a milestone. Milestone needs PRD. |
143
- | "create milestones", "roadmap" | `HAS_PRD=false` | `/rihal:create-prd` first | Roadmap is derived from PRD success metrics. |
139
+ | "draft phases", "all phases", "build all phases", "groom phases", "auto mode" + "phases" | `HAS_PRD=false` | `/rihal-create-prd` first | Phases need a PRD foundation. Without one, the autonomous flow hallucinates requirements. |
140
+ | "execute phase", "build phase N", "run phase N" | `HAS_PHASES=false` OR PLAN.md missing for phase N | `/rihal-plan N` first (or `/rihal-create-prd` if no PRD) | Can't execute what hasn't been planned. |
141
+ | "sprint planning", "plan the sprint" | `HAS_EPICS=false` | `/rihal-create-epics-and-stories` first | Sprints draw stories from epics. No epics = no stories to schedule. |
142
+ | "create stories", "epics" | `HAS_PRD=false` | `/rihal-create-prd` first | Epics decompose a milestone. Milestone needs PRD. |
143
+ | "create milestones", "roadmap" | `HAS_PRD=false` | `/rihal-create-prd` first | Roadmap is derived from PRD success metrics. |
144
144
 
145
145
  When the guard fires, print a clear message:
146
146
 
147
147
  ```
148
148
  ⚠ Cannot {requested action}: missing prerequisite — {what's missing}.
149
149
 
150
- Re-routing to: /rihal:{prerequisite-command}
150
+ Re-routing to: /rihal-{prerequisite-command}
151
151
  Once that completes, re-run your original request.
152
152
  ```
153
153
 
@@ -159,7 +159,7 @@ The guard never silently rejects intent — it always either dispatches to a sen
159
159
  <step name="external_data_guard" priority="first-match">
160
160
  **Block code-only routing when the actionable signal lives in an external system.**
161
161
 
162
- Some tasks reference systems whose data is NOT in the repo — observability platforms, issue trackers, analytics, and product dashboards. A pure codebase scan can map *instrumentation* but cannot classify *what is actually firing*. Routing such requests to `/rihal:scan` or `/rihal:map-codebase` without first establishing a data source produces theoretical output (violates the codebase-first rule).
162
+ Some tasks reference systems whose data is NOT in the repo — observability platforms, issue trackers, analytics, and product dashboards. A pure codebase scan can map *instrumentation* but cannot classify *what is actually firing*. Routing such requests to `/rihal-scan` or `/rihal-map-codebase` without first establishing a data source produces theoretical output (violates the codebase-first rule).
163
163
 
164
164
  **External-data signals** — match if `$QUESTION` contains any of:
165
165
 
@@ -185,9 +185,9 @@ How should we access the external data?
185
185
  ```
186
186
 
187
187
  Then route accordingly:
188
- - **Option 1:** Continue to `route` step but tag the chosen command with a note to use the external data source. If no Rihal command natively reads the external system, route to `/rihal:discuss` and have the agent guide MCP/API setup.
189
- - **Option 2:** Route to `/rihal:discuss` so the user can paste data into a focused conversation, OR `/rihal:note` to capture, then re-run.
190
- - **Option 3:** Continue to `route` step normally (likely `/rihal:scan` or `/rihal:map-codebase`) but display a clear caveat: *"Output will be an instrumentation map only — it cannot classify which errors are noisy vs critical."*
188
+ - **Option 1:** Continue to `route` step but tag the chosen command with a note to use the external data source. If no Rihal command natively reads the external system, route to `/rihal-discuss` and have the agent guide MCP/API setup.
189
+ - **Option 2:** Route to `/rihal-discuss` so the user can paste data into a focused conversation, OR `/rihal-note` to capture, then re-run.
190
+ - **Option 3:** Continue to `route` step normally (likely `/rihal-scan` or `/rihal-map-codebase`) but display a clear caveat: *"Output will be an instrumentation map only — it cannot classify which errors are noisy vs critical."*
191
191
  - **Option 4:** Stop. Print the original input back so the user can rephrase.
192
192
 
193
193
  Skip this guard when `AUTO_MODE=true` AND the input explicitly contains `--codebase-only` or `instrumentation map` — those signal the user already accepted the limitation.
@@ -198,7 +198,7 @@ Skip this guard when `AUTO_MODE=true` AND the input explicitly contains `--codeb
198
198
 
199
199
  When the user uses a literal create/make/start verb paired with a scope-noun (milestone, phase, story, epic, sprint, plan, PRD, roadmap, council), dispatch IMMEDIATELY. Do not present a multi-route ambiguity menu. The user already chose.
200
200
 
201
- This was a real bug: `/rihal:do "milestone bnao aur ... list down karo"` triggered an ambiguity prompt offering new-milestone vs add-phase vs create-epics-and-stories — even though the user literally said "milestone bnao" (= "create a milestone" in Roman Urdu). That second-guessing wasted the user's time and broke trust.
201
+ This was a real bug: `/rihal-do "milestone bnao aur ... list down karo"` triggered an ambiguity prompt offering new-milestone vs add-phase vs create-epics-and-stories — even though the user literally said "milestone bnao" (= "create a milestone" in Roman Urdu). That second-guessing wasted the user's time and broke trust.
202
202
 
203
203
  **Verb + scope detection — sourced from `@.rihal/references/verb-dictionary.md`.**
204
204
 
@@ -208,15 +208,15 @@ The full mapping is in the dictionary's "Scope nouns" table. Pre-conditions enfo
208
208
 
209
209
  | Scope noun | Direct route | Pre-condition (this workflow only) |
210
210
  |---|---|---|
211
- | milestone | `/rihal:new-milestone` | none — methodology chain assumed when greenfield_guard cleared |
212
- | phase | `/rihal:add-phase` | HAS_PHASES OR HAS_PRD true |
213
- | story | `/rihal:create-story` | HAS_EPICS true |
214
- | epic | `/rihal:create-epics-and-stories` | HAS_PRD true |
215
- | sprint | `/rihal:sprint-planning` | HAS_EPICS true |
216
- | PRD | `/rihal:create-prd` | none |
217
- | roadmap | `/rihal:create-milestone` | HAS_PRD true |
218
- | council | `/rihal:council` | none |
219
- | plan (verb) | `/rihal:plan` | HAS_PHASES true |
211
+ | milestone | `/rihal-new-milestone` | none — methodology chain assumed when greenfield_guard cleared |
212
+ | phase | `/rihal-add-phase` | HAS_PHASES OR HAS_PRD true |
213
+ | story | `/rihal-create-story` | HAS_EPICS true |
214
+ | epic | `/rihal-create-epics-and-stories` | HAS_PRD true |
215
+ | sprint | `/rihal-sprint-planning` | HAS_EPICS true |
216
+ | PRD | `/rihal-create-prd` | none |
217
+ | roadmap | `/rihal-create-milestone` | HAS_PRD true |
218
+ | council | `/rihal-council` | none |
219
+ | plan (verb) | `/rihal-plan` | HAS_PHASES true |
220
220
 
221
221
  **Behavior:**
222
222
  1. If both a verb AND a scope-noun match, fire this step.
@@ -231,10 +231,10 @@ The naive route is "user said milestone bnao → dispatch new-milestone". But if
231
231
 
232
232
  | Verb + scope | State signal | Redirect | Banner message |
233
233
  |---|---|---|---|
234
- | create + milestone | `$ACTIVE_MILESTONE` is non-empty AND user did NOT pass `--force-new-milestone` | `/rihal:add-phase` | `$ACTIVE_MILESTONE is active — adding as a phase to it instead of opening a new milestone. Override: add `--force-new-milestone` to the original input.` |
235
- | create + milestone | No active milestone | `/rihal:new-milestone $NEXT_VERSION` (auto-derived from `$LAST_SHIPPED_VERSION` + 0.1) | `Auto-versioned $NEXT_VERSION based on last shipped $LAST_SHIPPED_VERSION.` |
236
- | create + phase | `$HAS_PHASES=false` AND `$HAS_PRD=false` | `/rihal:create-prd` | greenfield_guard already covers this; this row is for completeness. |
237
- | create + story | `$HAS_EPICS=false` | `/rihal:create-epics-and-stories` (greenfield_guard) | likewise. |
234
+ | create + milestone | `$ACTIVE_MILESTONE` is non-empty AND user did NOT pass `--force-new-milestone` | `/rihal-add-phase` | `$ACTIVE_MILESTONE is active — adding as a phase to it instead of opening a new milestone. Override: add `--force-new-milestone` to the original input.` |
235
+ | create + milestone | No active milestone | `/rihal-new-milestone $NEXT_VERSION` (auto-derived from `$LAST_SHIPPED_VERSION` + 0.1) | `Auto-versioned $NEXT_VERSION based on last shipped $LAST_SHIPPED_VERSION.` |
236
+ | create + phase | `$HAS_PHASES=false` AND `$HAS_PRD=false` | `/rihal-create-prd` | greenfield_guard already covers this; this row is for completeness. |
237
+ | create + story | `$HAS_EPICS=false` | `/rihal-create-epics-and-stories` (greenfield_guard) | likewise. |
238
238
 
239
239
  **Auto-version computation when no milestone is active:**
240
240
 
@@ -251,7 +251,7 @@ fi
251
251
 
252
252
  Pass `$NEXT_VERSION` as the dispatch arg. The user is NOT prompted to pick a version — the workflow just chose the right one based on history.
253
253
 
254
- **Edge case — multiple scope-nouns in one input** (e.g. "milestone bnao aur usmy phase 1 banao"): take the OUTER/PARENT scope. "Milestone bnao aur usmy phase X" → state-aware-redirect kicks in. If active milestone exists → `/rihal:add-phase` (the inner phase becomes the dispatched action directly). If not → `/rihal:new-milestone $NEXT_VERSION` (the dispatched workflow will create phase 1 internally).
254
+ **Edge case — multiple scope-nouns in one input** (e.g. "milestone bnao aur usmy phase 1 banao"): take the OUTER/PARENT scope. "Milestone bnao aur usmy phase X" → state-aware-redirect kicks in. If active milestone exists → `/rihal-add-phase` (the inner phase becomes the dispatched action directly). If not → `/rihal-new-milestone $NEXT_VERSION` (the dispatched workflow will create phase 1 internally).
255
255
 
256
256
  **Edge case — verb without scope-noun** (e.g. "kuch karo", "do something"): do NOT fire this step. Fall through to the normal routing table which can ask for clarification.
257
257
 
@@ -269,37 +269,37 @@ Evaluate `$QUESTION` against these routing rules. Apply the **first matching** r
269
269
 
270
270
  | If the text describes... | Route to | Why |
271
271
  |--------------------------|----------|-----|
272
- | Starting a new project, "set up", "initialize" | `/rihal:new-project` | Needs full project initialization |
273
- | Mapping or analyzing an existing codebase | `/rihal:map-codebase` | Codebase discovery |
274
- | A bug, error, crash, failure, or something broken | `/rihal:debug` | Needs systematic investigation |
275
- | Validate an idea, "working backwards", "press release", "PRFAQ", "is this worth building" | `/rihal:prfaq` | Stress-test concept before committing sprint capacity |
276
- | Brainstorm, generate ideas, "explore options", "what could we do" | `/rihal:brainstorm` | Structured ideation before planning |
277
- | Audit code quality, "review changes", "karpathy", "check my diff", "too complex" | `/rihal:code-review --karpathy` | 4-principle code audit against recent diff |
278
- | Walk through a change, "checkpoint", "explain this diff", "human review" | `/rihal:checkpoint-preview` | Human-in-the-loop diff walkthrough |
279
- | Exploring, researching, comparing, or "how does X work" | `/rihal:research-phase` | Domain research before planning |
280
- | Scope unclear, conflicting UIs/options, "which one", "better UX", "still have confusion", "how should X look", brainstorming vision | `/rihal:discuss-phase` | Decisions not yet locked — gather before planning |
281
- | A complex task: refactoring, migration, multi-file architecture, system redesign | `/rihal:add-phase` | Needs a full phase with plan/build cycle |
282
- | Planning a specific phase, "plan phase N" | `/rihal:plan` | Direct phase-level planning |
283
- | "Sprint planning", "plan the sprint", "next sprint", "what's in this sprint" | `/rihal:sprint-planning` | Sprint-level scope/capacity planning |
284
- | Executing a sprint, "run the sprint", "start sprint", "work on sprint" | `/rihal:execute-sprint` | Sprint execution with wave batching |
285
- | Sprint status, "how is the sprint going", "sprint board", "sprint progress" | `/rihal:sprint-status` | Current sprint state |
286
- | "Create milestones", "plan milestones", "create roadmap", "what milestones do I need", "break project into milestones" | `/rihal:create-milestone` | Roadmap-level planning — designs M1..Mn from the PRD. Do NOT route to `create-epics-and-stories`; that skill decomposes a single milestone into epics |
287
- | Break milestone into epics/stories, "create stories", "user stories", "epics" | `/rihal:create-epics-and-stories` | Milestone → epic → story decomposition (assumes roadmap already exists) |
288
- | Create a single story, "add story", "write a story for X" | `/rihal:create-story` | Single story addition |
289
- | Implement a story, "work on story", "dev story", "build story" | `/rihal:dev-story` | Story-level implementation |
290
- | Find gaps in milestone plans, "gaps in plans", "missing plan", "unplanned phases" | `/rihal:plan-milestone-gaps` | Identify and fill planning gaps |
291
- | Executing a phase, "build phase N", "run phase N", "implement phase" | `/rihal:execute` | Direct phase execution request |
292
- | Running all remaining phases automatically | `/rihal:autonomous` | Full autonomous execution |
293
- | A review or quality concern about existing work | `/rihal:verify-work` | Needs verification |
294
- | "Council", "discuss strategy", "should we" | `/rihal:council` | Multi-agent strategic discussion |
295
- | List plans across phases, "all plans", "show plans" | `/rihal:list-plans` | Cross-phase plan table |
296
- | Checking progress, status, "where am I", "board" | `/rihal:progress` | Status check |
297
- | Resuming work, "pick up where I left off" | `/rihal:resume-work` | Session restoration |
298
- | A note, idea, or "remember to..." | `/rihal:note` | Capture for later |
299
- | Adding tests, "write tests", "test coverage" | `/rihal:add-tests` | Test generation |
300
- | Completing a milestone, shipping, releasing | `/rihal:complete-milestone` | Milestone lifecycle |
301
- | A specific, actionable, small task (add feature, fix typo, update config) | `/rihal:quick` | Self-contained, single executor |
302
- | Market/discovery/greenfield question (from classify) | `/rihal:council` | Needs multi-perspective discovery |
272
+ | Starting a new project, "set up", "initialize" | `/rihal-new-project` | Needs full project initialization |
273
+ | Mapping or analyzing an existing codebase | `/rihal-map-codebase` | Codebase discovery |
274
+ | A bug, error, crash, failure, or something broken | `/rihal-debug` | Needs systematic investigation |
275
+ | Validate an idea, "working backwards", "press release", "PRFAQ", "is this worth building" | `/rihal-prfaq` | Stress-test concept before committing sprint capacity |
276
+ | Brainstorm, generate ideas, "explore options", "what could we do" | `/rihal-brainstorm` | Structured ideation before planning |
277
+ | Audit code quality, "review changes", "karpathy", "check my diff", "too complex" | `/rihal-code-review --karpathy` | 4-principle code audit against recent diff |
278
+ | Walk through a change, "checkpoint", "explain this diff", "human review" | `/rihal-checkpoint-preview` | Human-in-the-loop diff walkthrough |
279
+ | Exploring, researching, comparing, or "how does X work" | `/rihal-research-phase` | Domain research before planning |
280
+ | Scope unclear, conflicting UIs/options, "which one", "better UX", "still have confusion", "how should X look", brainstorming vision | `/rihal-discuss-phase` | Decisions not yet locked — gather before planning |
281
+ | A complex task: refactoring, migration, multi-file architecture, system redesign | `/rihal-add-phase` | Needs a full phase with plan/build cycle |
282
+ | Planning a specific phase, "plan phase N" | `/rihal-plan` | Direct phase-level planning |
283
+ | "Sprint planning", "plan the sprint", "next sprint", "what's in this sprint" | `/rihal-sprint-planning` | Sprint-level scope/capacity planning |
284
+ | Executing a sprint, "run the sprint", "start sprint", "work on sprint" | `/rihal-execute-sprint` | Sprint execution with wave batching |
285
+ | Sprint status, "how is the sprint going", "sprint board", "sprint progress" | `/rihal-sprint-status` | Current sprint state |
286
+ | "Create milestones", "plan milestones", "create roadmap", "what milestones do I need", "break project into milestones" | `/rihal-create-milestone` | Roadmap-level planning — designs M1..Mn from the PRD. Do NOT route to `create-epics-and-stories`; that skill decomposes a single milestone into epics |
287
+ | Break milestone into epics/stories, "create stories", "user stories", "epics" | `/rihal-create-epics-and-stories` | Milestone → epic → story decomposition (assumes roadmap already exists) |
288
+ | Create a single story, "add story", "write a story for X" | `/rihal-create-story` | Single story addition |
289
+ | Implement a story, "work on story", "dev story", "build story" | `/rihal-dev-story` | Story-level implementation |
290
+ | Find gaps in milestone plans, "gaps in plans", "missing plan", "unplanned phases" | `/rihal-plan-milestone-gaps` | Identify and fill planning gaps |
291
+ | Executing a phase, "build phase N", "run phase N", "implement phase" | `/rihal-execute` | Direct phase execution request |
292
+ | Running all remaining phases automatically | `/rihal-autonomous` | Full autonomous execution |
293
+ | A review or quality concern about existing work | `/rihal-verify-work` | Needs verification |
294
+ | "Council", "discuss strategy", "should we" | `/rihal-council` | Multi-agent strategic discussion |
295
+ | List plans across phases, "all plans", "show plans" | `/rihal-list-plans` | Cross-phase plan table |
296
+ | Checking progress, status, "where am I", "board" | `/rihal-progress` | Status check |
297
+ | Resuming work, "pick up where I left off" | `/rihal-resume-work` | Session restoration |
298
+ | A note, idea, or "remember to..." | `/rihal-note` | Capture for later |
299
+ | Adding tests, "write tests", "test coverage" | `/rihal-add-tests` | Test generation |
300
+ | Completing a milestone, shipping, releasing | `/rihal-complete-milestone` | Milestone lifecycle |
301
+ | A specific, actionable, small task (add feature, fix typo, update config) | `/rihal-quick` | Self-contained, single executor |
302
+ | Market/discovery/greenfield question (from classify) | `/rihal-council` | Needs multi-perspective discovery |
303
303
 
304
304
  If no rule matches, fall back to the classifier:
305
305
 
@@ -307,9 +307,9 @@ If no rule matches, fall back to the classifier:
307
307
  CLASSIFY=$(node ".rihal/bin/rihal-tools.cjs" classify-question "$QUESTION")
308
308
  ```
309
309
 
310
- Parse `type` from JSON — map codebase/team/release → `/rihal:discuss`; market/discovery/greenfield → `/rihal:council`. Default: `/rihal:discuss`.
310
+ Parse `type` from JSON — map codebase/team/release → `/rihal-discuss`; market/discovery/greenfield → `/rihal-council`. Default: `/rihal-discuss`.
311
311
 
312
- **Requires `.planning/` directory:** All routes except `/rihal:new-project`, `/rihal:map-codebase`, `/rihal:help`, `/rihal:discuss`, `/rihal:council`. If the project doesn't exist and the route requires it, suggest `/rihal:new-project` first.
312
+ **Requires `.planning/` directory:** All routes except `/rihal-new-project`, `/rihal-map-codebase`, `/rihal-help`, `/rihal-discuss`, `/rihal-council`. If the project doesn't exist and the route requires it, suggest `/rihal-new-project` first.
313
313
 
314
314
  **Ambiguity handling:** If the text could reasonably match multiple routes, ask the user via AskUserQuestion with the top 2-3 options. Prefer `discuss-phase` over `plan`/`add-phase` when scope-uncertainty signals are present ("confusion", "not sure", "which one", "better way", "how should", ≥2 conflicting UIs/options mentioned).
315
315
 
@@ -317,9 +317,9 @@ Example:
317
317
 
318
318
  ```
319
319
  "Refactor the auth system" could be:
320
- 1. /rihal:add-phase — Full planning cycle (recommended for multi-file refactors)
321
- 2. /rihal:discuss-phase — Gather decisions first (recommended if scope is fuzzy)
322
- 3. /rihal:quick — Quick execution (if scope is small and clear)
320
+ 1. /rihal-add-phase — Full planning cycle (recommended for multi-file refactors)
321
+ 2. /rihal-discuss-phase — Gather decisions first (recommended if scope is fuzzy)
322
+ 3. /rihal-quick — Quick execution (if scope is small and clear)
323
323
 
324
324
  Which approach fits better?
325
325
  ```
@@ -346,13 +346,13 @@ Reason: {one-line why}
346
346
  If `AUTO_MODE` is true OR routing is unambiguous, invoke immediately:
347
347
 
348
348
  ```
349
- /rihal:{command} {arguments}
349
+ /rihal-{command} {arguments}
350
350
  ```
351
351
 
352
352
  Otherwise show suggestion and ask via AskUserQuestion:
353
353
 
354
354
  ```
355
- Based on your request, I'd use: /rihal:{command} {arguments}
355
+ Based on your request, I'd use: /rihal-{command} {arguments}
356
356
 
357
357
  1. Yes, run it
358
358
  2. Pick a different route
@@ -370,7 +370,7 @@ After invoking the command, stop. The dispatched command handles everything from
370
370
  - [ ] Input validated (not empty)
371
371
  - [ ] Intent matched to exactly one Rihal command
372
372
  - [ ] Ambiguity resolved via user question (if needed)
373
- - [ ] Scope-uncertainty signals steer to `/rihal:discuss-phase` over planning routes
373
+ - [ ] Scope-uncertainty signals steer to `/rihal-discuss-phase` over planning routes
374
374
  - [ ] Project existence checked for routes that require it
375
375
  - [ ] Routing decision displayed before dispatch
376
376
  - [ ] Command invoked with appropriate arguments
@@ -1,4 +1,4 @@
1
- # Workflow: rihal:docs-update
1
+ # Workflow: rihal-docs-update
2
2
 
3
3
  <purpose>
4
4
  Generate, update, and verify project documentation — both canonical doc types and existing hand-written docs. The orchestrator detects the project's doc structure, assembles a work manifest tracking every item, dispatches parallel doc-writer and doc-verifier agents across waves, reviews existing docs for accuracy, identifies documentation gaps, and fixes inaccuracies via a bounded fix loop. All state is persisted in a work manifest so no work item is lost between steps. Output: Complete, structure-aware documentation verified against the live codebase.
@@ -18,13 +18,13 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
18
18
 
19
19
  **Usage:**
20
20
  ```
21
- /rihal:docs-update [phase]
21
+ /rihal-docs-update [phase]
22
22
  ```
23
23
 
24
24
  **Examples:**
25
25
  ```
26
- /rihal:docs-update
27
- /rihal:docs-update 02
26
+ /rihal-docs-update
27
+ /rihal-docs-update 02
28
28
  ```
29
29
 
30
30
  <process>
@@ -224,10 +224,10 @@ ${ISSUES:+
224
224
  Issues to fix:
225
225
  {list}
226
226
 
227
- Run /rihal:docs-update --fix to auto-correct found issues.
227
+ Run /rihal-docs-update --fix to auto-correct found issues.
228
228
  }
229
229
 
230
- Next: Review docs in your editor or run verification again with /rihal:docs-update
230
+ Next: Review docs in your editor or run verification again with /rihal-docs-update
231
231
  ```
232
232
 
233
233
  </process>
@@ -1,4 +1,4 @@
1
- # Workflow: rihal:document-project
1
+ # Workflow: rihal-document-project
2
2
 
3
3
  <purpose>
4
4
  Load documentation-requirements.csv, audit current documentation for coverage and staleness, identify missing or outdated docs, and file them as SPRINT.md subtasks or separate plan phases.
@@ -10,13 +10,13 @@ Load documentation-requirements.csv, audit current documentation for coverage an
10
10
  If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
11
11
 
12
12
  ```
13
- /rihal:document-project <argument-here>
13
+ /rihal-document-project <argument-here>
14
14
  ```
15
15
 
16
16
  **Examples:**
17
17
  ```
18
- /rihal:document-project example 1
19
- /rihal:document-project example 2
18
+ /rihal-document-project example 1
19
+ /rihal-document-project example 2
20
20
  ```
21
21
 
22
22
  STOP — do not proceed.
@@ -152,7 +152,7 @@ Summary:
152
152
 
153
153
  Missing docs filed as tasks. Run:
154
154
 
155
- /rihal:plan .planning/plans/documentation-updates/SPRINT.md
155
+ /rihal-plan .planning/plans/documentation-updates/SPRINT.md
156
156
  ```
157
157
 
158
158
  ## Step 5 — Auto-inject into Resume-Work
@@ -1,4 +1,4 @@
1
- # Workflow: rihal:enable-hooks
1
+ # Workflow: rihal-enable-hooks
2
2
 
3
3
  <purpose>
4
4
  Merge Rihal opt-in hooks from settings-hooks.json into .claude/settings.json. Creates settings.json if missing. Enables pre-edit (read-before-edit check), pre-workflow (command hint), and post-commit (format validation) guardrails.
@@ -10,13 +10,13 @@ Merge Rihal opt-in hooks from settings-hooks.json into .claude/settings.json. Cr
10
10
  If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
11
11
 
12
12
  ```
13
- /rihal:enable-hooks <argument-here>
13
+ /rihal-enable-hooks <argument-here>
14
14
  ```
15
15
 
16
16
  **Examples:**
17
17
  ```
18
- /rihal:enable-hooks example 1
19
- /rihal:enable-hooks example 2
18
+ /rihal-enable-hooks example 1
19
+ /rihal-enable-hooks example 2
20
20
  ```
21
21
 
22
22
  STOP — do not proceed.
@@ -79,7 +79,7 @@ Print success message:
79
79
 
80
80
  Enabled guardrails:
81
81
  • pre-edit: Verifies files are Read() before Edit/Write
82
- • pre-workflow: Warns if rihal:* commands look suspicious
82
+ • pre-workflow: Warns if rihal-* commands look suspicious
83
83
  • post-commit: Validates commit format and bans "Generated with Claude" patterns
84
84
 
85
85
  To disable, remove the hooks section from .claude/settings.json or edit .rihal/templates/settings-hooks.json and re-run.
@@ -499,9 +499,9 @@ If `USER_SETUP_CREATED=true`: display `⚠️ USER SETUP REQUIRED` with path + e
499
499
 
500
500
  | Condition | Route | Action |
501
501
  |-----------|-------|--------|
502
- | summaries < plans | **A: More plans** | Find next PLAN without SUMMARY. Yolo: auto-continue. Interactive: show next plan, suggest `/rihal:execute-phase {phase}` + `/rihal:verify-work`. STOP here. |
503
- | summaries = plans, current < highest phase | **B: Phase done** | Show completion, suggest `/rihal:plan-phase {Z+1}` + `/rihal:verify-work {Z}` + `/rihal:discuss-phase {Z+1}` |
504
- | summaries = plans, current = highest phase | **C: Milestone done** | Show banner, suggest `/rihal:complete-milestone` + `/rihal:verify-work` + `/rihal:add-phase` |
502
+ | summaries < plans | **A: More plans** | Find next PLAN without SUMMARY. Yolo: auto-continue. Interactive: show next plan, suggest `/rihal-execute-phase {phase}` + `/rihal-verify-work`. STOP here. |
503
+ | summaries = plans, current < highest phase | **B: Phase done** | Show completion, suggest `/rihal-plan-phase {Z+1}` + `/rihal-verify-work {Z}` + `/rihal-discuss-phase {Z+1}` |
504
+ | summaries = plans, current = highest phase | **C: Milestone done** | Show banner, suggest `/rihal-complete-milestone` + `/rihal-verify-work` + `/rihal-add-phase` |
505
505
 
506
506
  All routes: `/clear` first for fresh context.
507
507
  </step>