@hanzlaa/rcode 3.2.1 → 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.
- package/CONTRIBUTING.md +9 -9
- package/README.md +50 -50
- package/cli/context.js +4 -4
- package/cli/doctor.js +1 -1
- package/cli/generate-command-skills.cjs +203 -0
- package/cli/install.js +29 -12
- package/cli/lib/memory-bank.cjs +5 -5
- package/cli/set-mode.js +2 -2
- package/cli/uninstall.js +5 -5
- package/dist/rcode.js +27 -16
- package/package.json +1 -1
- package/rihal/DOCS-AUDIT.md +1 -1
- package/rihal/agents/rihal-ahmed.md +1 -1
- package/rihal/agents/rihal-codebase-mapper.md +3 -3
- package/rihal/agents/rihal-debugger.md +2 -2
- package/rihal/agents/rihal-fatima.md +2 -2
- package/rihal/agents/rihal-haitham.md +2 -2
- package/rihal/agents/rihal-khalid.md +1 -1
- package/rihal/agents/rihal-layla.md +1 -1
- package/rihal/agents/rihal-nasser.md +1 -1
- package/rihal/agents/rihal-noor.md +1 -1
- package/rihal/agents/rihal-nyquist-auditor.md +1 -1
- package/rihal/agents/rihal-omar.md +1 -1
- package/rihal/agents/rihal-phase-researcher.md +3 -3
- package/rihal/agents/rihal-planner.md +1 -1
- package/rihal/agents/rihal-project-researcher.md +2 -2
- package/rihal/agents/rihal-research-synthesizer.md +3 -3
- package/rihal/agents/rihal-roadmapper.md +3 -3
- package/rihal/agents/rihal-sadiq.md +1 -1
- package/rihal/agents/rihal-sprint-checker.md +3 -3
- package/rihal/agents/rihal-verifier.md +2 -2
- package/rihal/agents/rihal-waleed.md +1 -1
- package/rihal/agents/rihal-yousef.md +2 -2
- package/rihal/agents/rihal-zahra.md +1 -1
- package/rihal/agents/rihal-zayd.md +1 -1
- package/rihal/agents/rules/phase-researcher/detailed-guide.md +1 -1
- package/rihal/agents/rules/roadmapper/detailed-guide.md +1 -1
- package/rihal/agents/rules/sprint-checker/dimensions.md +3 -3
- package/rihal/agents/rules/sprint-checker/process.md +2 -2
- package/rihal/agents/rules/verifier/gap-output.md +1 -1
- package/rihal/agents/rules/verifier/verification-report.md +1 -1
- package/rihal/bin/rihal-hooks.cjs +6 -6
- package/rihal/bin/rihal-tools.cjs +60 -23
- package/rihal/brain/README.md +2 -2
- package/rihal/brain/best-practices/no-autonomous-bypass.md +2 -2
- package/rihal/brain/best-practices/research-citation-rule.md +1 -1
- package/rihal/brain/best-practices/state-sync-rule.md +4 -4
- package/rihal/commands/add-phase.md +1 -1
- package/rihal/commands/add-tests.md +1 -1
- package/rihal/commands/add-todo.md +1 -1
- package/rihal/commands/analyze-dependencies.md +1 -1
- package/rihal/commands/audit-fix.md +1 -1
- package/rihal/commands/audit-milestone.md +1 -1
- package/rihal/commands/audit-uat.md +1 -1
- package/rihal/commands/audit.md +1 -1
- package/rihal/commands/autonomous.md +1 -1
- package/rihal/commands/brainstorm.md +1 -1
- package/rihal/commands/chain.md +1 -1
- package/rihal/commands/check-todos.md +1 -1
- package/rihal/commands/checkpoint-preview.md +1 -1
- package/rihal/commands/cleanup.md +2 -2
- package/rihal/commands/code-review-fix.md +1 -1
- package/rihal/commands/code-review.md +1 -1
- package/rihal/commands/complete-milestone.md +1 -1
- package/rihal/commands/config.md +2 -2
- package/rihal/commands/correct-course.md +1 -1
- package/rihal/commands/council.md +1 -1
- package/rihal/commands/create-epics-and-stories.md +1 -1
- package/rihal/commands/create-story.md +2 -2
- package/rihal/commands/dashboard.md +1 -1
- package/rihal/commands/debug.md +1 -1
- package/rihal/commands/decisions.md +1 -1
- package/rihal/commands/dev-story.md +1 -1
- package/rihal/commands/diff.md +1 -1
- package/rihal/commands/discuss-phase.md +1 -1
- package/rihal/commands/discuss.md +2 -2
- package/rihal/commands/do.md +2 -2
- package/rihal/commands/docs-update.md +1 -1
- package/rihal/commands/document-project.md +1 -1
- package/rihal/commands/enable-hooks.md +1 -1
- package/rihal/commands/execute-sprint.md +2 -2
- package/rihal/commands/execute.md +1 -1
- package/rihal/commands/explore.md +1 -1
- package/rihal/commands/export-to-github.md +1 -1
- package/rihal/commands/forensics.md +1 -1
- package/rihal/commands/from-template.md +1 -1
- package/rihal/commands/health.md +1 -1
- package/rihal/commands/help.md +1 -1
- package/rihal/commands/import.md +1 -1
- package/rihal/commands/inbox.md +1 -1
- package/rihal/commands/init.md +1 -1
- package/rihal/commands/insert-phase.md +1 -1
- package/rihal/commands/install.md +1 -1
- package/rihal/commands/list-plans.md +1 -1
- package/rihal/commands/list-workspaces.md +1 -1
- package/rihal/commands/map-codebase.md +1 -1
- package/rihal/commands/milestone-summary.md +1 -1
- package/rihal/commands/new-milestone.md +1 -1
- package/rihal/commands/new-project.md +1 -1
- package/rihal/commands/new-workspace.md +1 -1
- package/rihal/commands/next.md +1 -1
- package/rihal/commands/note.md +1 -1
- package/rihal/commands/notify-test.md +1 -1
- package/rihal/commands/pause-work.md +1 -1
- package/rihal/commands/plan-milestone-gaps.md +3 -3
- package/rihal/commands/plan.md +2 -2
- package/rihal/commands/plant-seed.md +1 -1
- package/rihal/commands/pr-branch.md +2 -2
- package/rihal/commands/prfaq.md +1 -1
- package/rihal/commands/profile-user.md +1 -1
- package/rihal/commands/progress.md +3 -3
- package/rihal/commands/quick.md +1 -1
- package/rihal/commands/remove-phase.md +1 -1
- package/rihal/commands/remove-workspace.md +1 -1
- package/rihal/commands/replay.md +1 -1
- package/rihal/commands/rerun.md +1 -1
- package/rihal/commands/research-phase.md +2 -2
- package/rihal/commands/resume-work.md +1 -1
- package/rihal/commands/review.md +1 -1
- package/rihal/commands/scan.md +1 -1
- package/rihal/commands/secure-phase.md +1 -1
- package/rihal/commands/session-report.md +1 -1
- package/rihal/commands/settings.md +1 -1
- package/rihal/commands/ship.md +2 -2
- package/rihal/commands/show.md +1 -1
- package/rihal/commands/sprint-planning.md +1 -1
- package/rihal/commands/sprint-status.md +1 -1
- package/rihal/commands/stats.md +1 -1
- package/rihal/commands/status.md +1 -1
- package/rihal/commands/ui-phase.md +1 -1
- package/rihal/commands/ui-review.md +1 -1
- package/rihal/commands/undo.md +1 -1
- package/rihal/commands/update.md +1 -1
- package/rihal/commands/validate-phase.md +1 -1
- package/rihal/commands/verify-phase.md +2 -2
- package/rihal/commands/verify-work.md +1 -1
- package/rihal/commands/why.md +1 -1
- package/rihal/commands/workstream.md +1 -1
- package/rihal/references/agent-shared-rules.md +1 -1
- package/rihal/references/command-redirect-format.md +7 -7
- package/rihal/references/context-budget.md +2 -2
- package/rihal/references/continuation-format.md +16 -16
- package/rihal/references/dispatch-banner.md +1 -1
- package/rihal/references/execution-protocol.md +2 -2
- package/rihal/references/gates.md +3 -3
- package/rihal/references/git-integration.md +1 -1
- package/rihal/references/output-format.md +4 -4
- package/rihal/references/output-realism.md +1 -1
- package/rihal/references/revision-loop.md +1 -1
- package/rihal/references/state-schema.md +15 -15
- package/rihal/references/ui-brand.md +1 -1
- package/rihal/references/verb-dictionary.md +15 -15
- package/rihal/references/workstream-flag.md +28 -28
- package/rihal/skills/_shared/no-autonomous-bypass.md +2 -2
- package/rihal/skills/_shared/research-citation-rule.md +1 -1
- package/rihal/skills/_shared/state-sync-rule.md +4 -4
- package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +1 -1
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +1 -1
- package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +2 -2
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +2 -2
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-07-backlog.md +2 -2
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-09-state-sync.md +2 -2
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +4 -4
- package/rihal/skills/actions/2-plan/rihal-create-milestone/workflow.md +5 -5
- package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +1 -1
- package/rihal/skills/actions/2-plan/rihal-create-prd/workflow.md +1 -1
- package/rihal/skills/actions/2-plan/rihal-create-story/workflow.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +3 -3
- package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/checklist.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/workflow.md +5 -5
- package/rihal/skills/agents/dalil-scout/SKILL.md +7 -7
- package/rihal/skills/core/rihal-brainstorming/SKILL.md +1 -1
- package/rihal/skills/core/rihal-init/SKILL.md +1 -1
- package/rihal/skills/core/rihal-party-mode/SKILL.md +1 -1
- package/rihal/templates/milestone.md +1 -1
- package/rihal/templates/projects/api-backend/PROJECT.md +1 -1
- package/rihal/templates/projects/mobile-app/PROJECT.md +1 -1
- package/rihal/templates/projects/saas-b2b/PROJECT.md +1 -1
- package/rihal/workflows/add-phase.md +10 -10
- package/rihal/workflows/add-tests.md +9 -9
- package/rihal/workflows/add-todo.md +5 -5
- package/rihal/workflows/analyze-dependencies.md +7 -7
- package/rihal/workflows/audit-fix.md +4 -4
- package/rihal/workflows/audit-milestone.md +8 -8
- package/rihal/workflows/audit-uat.md +2 -2
- package/rihal/workflows/audit.md +28 -28
- package/rihal/workflows/autonomous.md +128 -44
- package/rihal/workflows/brainstorm.md +7 -7
- package/rihal/workflows/chain.md +16 -16
- package/rihal/workflows/check-implementation-readiness.md +4 -4
- package/rihal/workflows/check-todos.md +8 -8
- package/rihal/workflows/checkpoint-preview.md +1 -1
- package/rihal/workflows/code-review-fix.md +10 -10
- package/rihal/workflows/code-review.md +10 -10
- package/rihal/workflows/complete-milestone.md +5 -5
- package/rihal/workflows/correct-course.md +7 -7
- package/rihal/workflows/council.md +15 -15
- package/rihal/workflows/create-epics-and-stories.md +9 -9
- package/rihal/workflows/create-story.md +11 -11
- package/rihal/workflows/dashboard.md +8 -8
- package/rihal/workflows/debug.md +6 -6
- package/rihal/workflows/decisions.md +5 -5
- package/rihal/workflows/dev-story.md +12 -12
- package/rihal/workflows/diagnose-issues.md +2 -2
- package/rihal/workflows/diff.md +3 -3
- package/rihal/workflows/discuss-phase-power.md +7 -7
- package/rihal/workflows/discuss-phase.md +14 -14
- package/rihal/workflows/discuss.md +9 -9
- package/rihal/workflows/do.md +79 -79
- package/rihal/workflows/docs-update.md +6 -6
- package/rihal/workflows/document-project.md +5 -5
- package/rihal/workflows/enable-hooks.md +5 -5
- package/rihal/workflows/execute-sprint.md +3 -3
- package/rihal/workflows/execute.md +28 -28
- package/rihal/workflows/explore.md +5 -5
- package/rihal/workflows/export-to-github.md +5 -5
- package/rihal/workflows/forensics.md +8 -8
- package/rihal/workflows/from-template.md +8 -8
- package/rihal/workflows/health.md +11 -11
- package/rihal/workflows/help.md +117 -117
- package/rihal/workflows/import.md +4 -4
- package/rihal/workflows/inbox.md +8 -8
- package/rihal/workflows/init.md +23 -23
- package/rihal/workflows/insert-phase.md +9 -9
- package/rihal/workflows/install.md +3 -3
- package/rihal/workflows/karpathy-audit.md +11 -11
- package/rihal/workflows/list-plans.md +8 -8
- package/rihal/workflows/list-workspaces.md +7 -7
- package/rihal/workflows/map-codebase.md +5 -5
- package/rihal/workflows/milestone-summary.md +7 -7
- package/rihal/workflows/new-milestone.md +11 -11
- package/rihal/workflows/new-project-research.md +1 -1
- package/rihal/workflows/new-project-roadmap.md +8 -8
- package/rihal/workflows/new-project.md +32 -32
- package/rihal/workflows/new-workspace.md +7 -7
- package/rihal/workflows/next.md +13 -13
- package/rihal/workflows/note.md +7 -7
- package/rihal/workflows/notify-test.md +6 -6
- package/rihal/workflows/pause-work.md +6 -6
- package/rihal/workflows/plan-milestone-gaps.md +7 -7
- package/rihal/workflows/plan.md +28 -28
- package/rihal/workflows/plant-seed.md +3 -3
- package/rihal/workflows/pr-branch.md +1 -1
- package/rihal/workflows/prfaq.md +1 -1
- package/rihal/workflows/profile-user.md +5 -5
- package/rihal/workflows/progress.md +6 -6
- package/rihal/workflows/quick.md +12 -12
- package/rihal/workflows/remove-phase.md +6 -6
- package/rihal/workflows/remove-workspace.md +8 -8
- package/rihal/workflows/replay.md +8 -8
- package/rihal/workflows/rerun.md +5 -5
- package/rihal/workflows/research-phase.md +2 -2
- package/rihal/workflows/resume-work.md +10 -10
- package/rihal/workflows/review-adversarial.md +4 -4
- package/rihal/workflows/review-edge-case-hunter.md +5 -5
- package/rihal/workflows/review.md +11 -11
- package/rihal/workflows/scan.md +9 -9
- package/rihal/workflows/secure-phase.md +8 -8
- package/rihal/workflows/session-report.md +6 -6
- package/rihal/workflows/settings.md +15 -15
- package/rihal/workflows/ship.md +11 -11
- package/rihal/workflows/show.md +2 -2
- package/rihal/workflows/sprint-planning.md +13 -13
- package/rihal/workflows/sprint-status.md +10 -10
- package/rihal/workflows/stats.md +6 -6
- package/rihal/workflows/status.md +15 -7
- package/rihal/workflows/ui-phase.md +8 -8
- package/rihal/workflows/ui-review.md +5 -5
- package/rihal/workflows/undo.md +17 -17
- package/rihal/workflows/update.md +12 -12
- package/rihal/workflows/validate-phase.md +5 -5
- package/rihal/workflows/verify-work.md +18 -18
- package/rihal/workflows/why.md +9 -9
- package/rihal/workflows/workstream.md +11 -11
- package/server/lib/html/client.js +45 -45
|
@@ -18,15 +18,15 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
18
18
|
|
|
19
19
|
**Usage:**
|
|
20
20
|
```
|
|
21
|
-
/rihal
|
|
21
|
+
/rihal-code-review <phase> [--depth=quick|standard|deep] [--files=path1,path2] [--karpathy]
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
**Examples:**
|
|
25
25
|
```
|
|
26
|
-
/rihal
|
|
27
|
-
/rihal
|
|
28
|
-
/rihal
|
|
29
|
-
/rihal
|
|
26
|
+
/rihal-code-review 01
|
|
27
|
+
/rihal-code-review 02.1 --depth=deep
|
|
28
|
+
/rihal-code-review 03 --files=src/auth.js,src/db.js
|
|
29
|
+
/rihal-code-review HEAD~5..HEAD --karpathy
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Step 0a — Karpathy mode delegation
|
|
@@ -84,7 +84,7 @@ fi
|
|
|
84
84
|
**Phase validation (before config gate):**
|
|
85
85
|
If `phase_found` is false, report error and exit:
|
|
86
86
|
```
|
|
87
|
-
Error: Phase ${PHASE_ARG} not found. Run /rihal
|
|
87
|
+
Error: Phase ${PHASE_ARG} not found. Run /rihal-status to see available phases.
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
This runs BEFORE config gate check so user errors are surfaced immediately regardless of config state.
|
|
@@ -261,7 +261,7 @@ if [ ${#REVIEW_FILES[@]} -eq 0 ]; then
|
|
|
261
261
|
else
|
|
262
262
|
# Fail closed — no reliable diff base found. Do not use arbitrary HEAD~N.
|
|
263
263
|
echo "Warning: No phase commits found for '${PADDED_PHASE}'. Cannot determine reliable diff scope."
|
|
264
|
-
echo "Use --files flag to specify files explicitly: /rihal
|
|
264
|
+
echo "Use --files flag to specify files explicitly: /rihal-code-review ${PHASE_ARG} --files=file1,file2,..."
|
|
265
265
|
fi
|
|
266
266
|
fi
|
|
267
267
|
```
|
|
@@ -406,7 +406,7 @@ If the Task() call fails (agent error, timeout, or exception):
|
|
|
406
406
|
```
|
|
407
407
|
Error: Code review agent failed: ${error_message}
|
|
408
408
|
|
|
409
|
-
No REVIEW.md created. You can retry with /rihal
|
|
409
|
+
No REVIEW.md created. You can retry with /rihal-code-review ${PHASE_ARG} or check agent logs.
|
|
410
410
|
```
|
|
411
411
|
|
|
412
412
|
Do NOT proceed to commit_review step. Do NOT create a partial or empty REVIEW.md. Exit workflow.
|
|
@@ -479,7 +479,7 @@ if [ -f "${REVIEW_PATH}" ]; then
|
|
|
479
479
|
fi
|
|
480
480
|
else
|
|
481
481
|
echo "Warning: Agent completed but REVIEW.md not found at ${REVIEW_PATH}. This may indicate an agent issue."
|
|
482
|
-
echo "No REVIEW.md to commit. Please retry with /rihal
|
|
482
|
+
echo "No REVIEW.md to commit. Please retry with /rihal-code-review ${PHASE_ARG}"
|
|
483
483
|
fi
|
|
484
484
|
```
|
|
485
485
|
</step>
|
|
@@ -538,7 +538,7 @@ If total findings > 0:
|
|
|
538
538
|
Full report: ${REVIEW_PATH}
|
|
539
539
|
|
|
540
540
|
Next steps:
|
|
541
|
-
/rihal
|
|
541
|
+
/rihal-code-review-fix ${PHASE_NUMBER} — Auto-fix issues
|
|
542
542
|
cat ${REVIEW_PATH} — View full report
|
|
543
543
|
```
|
|
544
544
|
|
|
@@ -99,7 +99,7 @@ Requirements: {N}/{M} v1 requirements checked off
|
|
|
99
99
|
|
|
100
100
|
MUST present 3 options via AskUserQuestion:
|
|
101
101
|
1. **Proceed anyway** — mark milestone complete with known gaps
|
|
102
|
-
2. **Run audit first** — `/rihal
|
|
102
|
+
2. **Run audit first** — `/rihal-audit-milestone` to assess gap severity
|
|
103
103
|
3. **Abort** — return to development
|
|
104
104
|
|
|
105
105
|
If user selects "Proceed anyway": note incomplete requirements in MILESTONES.md under `### Known Gaps` with REQ-IDs and descriptions.
|
|
@@ -427,7 +427,7 @@ find .planning/phases -mindepth 1 -maxdepth 1 -type d -exec mv {} "$ARCHIVE_DIR/
|
|
|
427
427
|
|
|
428
428
|
Verify: `✅ Phase directories archived to .planning/milestones/v[X.Y]-phases/`
|
|
429
429
|
|
|
430
|
-
If "Skip": Phase directories remain in `.planning/phases/` as raw execution history. Use `/rihal
|
|
430
|
+
If "Skip": Phase directories remain in `.planning/phases/` as raw execution history. Use `/rihal-cleanup` later to archive retroactively.
|
|
431
431
|
|
|
432
432
|
</step>
|
|
433
433
|
|
|
@@ -483,7 +483,7 @@ After archival, reorganize ROADMAP.md with milestone groupings, then delete orig
|
|
|
483
483
|
rm .planning/REQUIREMENTS.md
|
|
484
484
|
```
|
|
485
485
|
|
|
486
|
-
(ROADMAP.md is retained in its reorganized form. Do NOT delete it — deletion is reserved for between-milestone resets via `/rihal
|
|
486
|
+
(ROADMAP.md is retained in its reorganized form. Do NOT delete it — deletion is reserved for between-milestone resets via `/rihal-new-milestone`.)
|
|
487
487
|
|
|
488
488
|
</step>
|
|
489
489
|
|
|
@@ -780,7 +780,7 @@ Confirm: "Committed: chore: complete v[X.Y] milestone" (or the gitignored notice
|
|
|
780
780
|
|
|
781
781
|
`/clear` then:
|
|
782
782
|
|
|
783
|
-
`/rihal
|
|
783
|
+
`/rihal-new-milestone`
|
|
784
784
|
|
|
785
785
|
---
|
|
786
786
|
```
|
|
@@ -830,7 +830,7 @@ Milestone completion is successful when:
|
|
|
830
830
|
- [ ] Known gaps recorded in MILESTONES.md if user proceeded with incomplete requirements
|
|
831
831
|
- [ ] RETROSPECTIVE.md updated with milestone section
|
|
832
832
|
- [ ] Cross-milestone trends updated
|
|
833
|
-
- [ ] User knows next step (/rihal
|
|
833
|
+
- [ ] User knows next step (/rihal-new-milestone)
|
|
834
834
|
|
|
835
835
|
</success_criteria>
|
|
836
836
|
</output>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-correct-course
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Load original PRD and architecture docs, compare against current codebase implementation. Identify deviations, classify by type (scope drift, wrong architecture, missing acceptance criteria, tech debt), and produce ordered remediation plan with updated story file.
|
|
@@ -10,13 +10,13 @@ Load original PRD and architecture docs, compare against current codebase implem
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-correct-course <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-correct-course example 1
|
|
19
|
+
/rihal-correct-course example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -126,7 +126,7 @@ Task tool call:
|
|
|
126
126
|
- Rollback risk
|
|
127
127
|
- Acceptance criteria for "fixed"
|
|
128
128
|
|
|
129
|
-
Output: SPRINT.md that can be executed with /rihal
|
|
129
|
+
Output: SPRINT.md that can be executed with /rihal-execute
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
## Step 4 — Generate Report and Plan
|
|
@@ -155,7 +155,7 @@ Add section to story file:
|
|
|
155
155
|
### Tech Debt
|
|
156
156
|
- {list}
|
|
157
157
|
|
|
158
|
-
Remediation: See /rihal
|
|
158
|
+
Remediation: See /rihal-correct-course for ordered fix plan
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
Print:
|
|
@@ -173,7 +173,7 @@ Reports:
|
|
|
173
173
|
• Remediation plan: {remediation_plan_path}
|
|
174
174
|
|
|
175
175
|
Run remediation with:
|
|
176
|
-
/rihal
|
|
176
|
+
/rihal-execute {remediation_plan_path}
|
|
177
177
|
```
|
|
178
178
|
|
|
179
179
|
## Success Criteria
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-council
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Orchestrate a parallel panel of Rihal specialist subagents answering a strategic question. This is the v2 council — deterministic panel scoring via `rihal-tools.cjs`, parallel Task-tool spawning (not sequential roleplay), and structured artifact output to `.planning/council-sessions/`.
|
|
@@ -39,7 +39,7 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
39
39
|
|
|
40
40
|
**Usage:**
|
|
41
41
|
```
|
|
42
|
-
/rihal
|
|
42
|
+
/rihal-council <question> [--full] [--verbose] [--agents=a,b,c] [--explain] [--resume <session-path>]
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
**Flag semantics:**
|
|
@@ -49,12 +49,12 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
49
49
|
|
|
50
50
|
**Examples:**
|
|
51
51
|
```
|
|
52
|
-
/rihal
|
|
53
|
-
/rihal
|
|
54
|
-
/rihal
|
|
55
|
-
/rihal
|
|
56
|
-
/rihal
|
|
57
|
-
/rihal
|
|
52
|
+
/rihal-council should I start a new project or continue this one?
|
|
53
|
+
/rihal-council --agents=sadiq,waleed,fatima is this plan ready to ship?
|
|
54
|
+
/rihal-council --explain what stack should I use for a multi-tenant SaaS?
|
|
55
|
+
/rihal-council --full should we rewrite the auth layer?
|
|
56
|
+
/rihal-council --verbose --debate deep-dive the TTFT tradeoffs
|
|
57
|
+
/rihal-council --resume .planning/council-sessions/council-2026-04-12-should-i-start.md
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
**With --resume:** continue a prior council session with a new question. The prior session context is surfaced to the panel.
|
|
@@ -77,11 +77,11 @@ Proceed to Step 1 with the prior session context pre-loaded.
|
|
|
77
77
|
If `$ARGUMENTS` starts with an agent name (sadiq/waleed/fatima/mariam/hussain-pm) and looks like a question directed at one person (e.g., "ask waleed about X", "what does fatima think"):
|
|
78
78
|
|
|
79
79
|
```
|
|
80
|
-
⚠ That looks like a single-agent question — /rihal
|
|
80
|
+
⚠ That looks like a single-agent question — /rihal-discuss is faster.
|
|
81
81
|
|
|
82
82
|
Council spawns 3-5 agents in parallel for debate. For one expert, use:
|
|
83
83
|
|
|
84
|
-
/rihal
|
|
84
|
+
/rihal-discuss $ARGUMENTS
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
Only proceed past this step if the input is a true multi-perspective question (e.g., "should we...?", "is X a good idea?", "which approach is best?").
|
|
@@ -131,11 +131,11 @@ Print warning and use AskUserQuestion to confirm:
|
|
|
131
131
|
⚠ This appears to be a fresh project with no context.
|
|
132
132
|
Council answers may be generic without project-specific signal.
|
|
133
133
|
|
|
134
|
-
Run /rihal
|
|
134
|
+
Run /rihal-init first for richer context, or proceed anyway?
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
Options:
|
|
138
|
-
- "Run /rihal
|
|
138
|
+
- "Run /rihal-init first" → Print: `Copy-paste this: /rihal-init` and STOP
|
|
139
139
|
- "Proceed anyway" → Continue to Step 2
|
|
140
140
|
|
|
141
141
|
## Step 1 — Initialize
|
|
@@ -456,7 +456,7 @@ AskUserQuestion:
|
|
|
456
456
|
- label: "Both — in parallel tracks"
|
|
457
457
|
description: "{only offer if feasible}"
|
|
458
458
|
- label: "Discuss further with {agent-name}"
|
|
459
|
-
description: "Route to /rihal
|
|
459
|
+
description: "Route to /rihal-discuss for a deeper 1:1"
|
|
460
460
|
```
|
|
461
461
|
|
|
462
462
|
After the user picks, emit a one-line decision record and proceed to
|
|
@@ -520,7 +520,7 @@ Format each as a checkbox:}
|
|
|
520
520
|
|
|
521
521
|
The `{slug}` is a lowercase-hyphenated slug of the first 6 words of the question. Create `{paths.sessions_dir}` if it doesn't exist (`mkdir -p`).
|
|
522
522
|
|
|
523
|
-
**Follow-ups must NOT be empty.** Every council session produces at least one actionable item. If panelists only asked clarifying questions, the follow-up is "Answer the panel's clarifying questions and re-run /rihal
|
|
523
|
+
**Follow-ups must NOT be empty.** Every council session produces at least one actionable item. If panelists only asked clarifying questions, the follow-up is "Answer the panel's clarifying questions and re-run /rihal-council".
|
|
524
524
|
|
|
525
525
|
Print the artifact path to the user at the end:
|
|
526
526
|
|
|
@@ -557,7 +557,7 @@ node .rihal/bin/rihal-tools.cjs state record-session
|
|
|
557
557
|
## On Error
|
|
558
558
|
|
|
559
559
|
- **Empty arguments or --help:** print usage block (Step 0), stop.
|
|
560
|
-
- **Single-agent question detected:** redirect to `/rihal
|
|
560
|
+
- **Single-agent question detected:** redirect to `/rihal-discuss` (Step 0.5).
|
|
561
561
|
- **`rihal-tools.cjs` not found:** user has v1 installed or package broken. Tell user to run `npx @hanzlaa/rcode install` (or `rcode install` if installed globally).
|
|
562
562
|
- **Panel contains unknown agent:** print the installed-agent list and exit.
|
|
563
563
|
- **state.json missing or corrupted:** continue without error — session artifact is mandatory, state tracking is optional.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-create-epics-and-stories
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Parse a PRD, PROJECT.md, or project document to generate numbered epic files in `.planning/epics/`. Each epic file contains user stories with acceptance criteria, development notes, and effort estimates. Output is ready for `/rihal
|
|
4
|
+
Parse a PRD, PROJECT.md, or project document to generate numbered epic files in `.planning/epics/`. Each epic file contains user stories with acceptance criteria, development notes, and effort estimates. Output is ready for `/rihal-sprint-planning`.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
|
|
@@ -38,7 +38,7 @@ done
|
|
|
38
38
|
```
|
|
39
39
|
No PRD or PROJECT.md found. How should we proceed?
|
|
40
40
|
|
|
41
|
-
1. Initialize the project first — run /rihal
|
|
41
|
+
1. Initialize the project first — run /rihal-new-project to capture goals, stack,
|
|
42
42
|
milestones, and generate PROJECT.md. Recommended if this is a new project.
|
|
43
43
|
|
|
44
44
|
2. Gather context from codebase + GitHub issues — I'll scan the repo, read open
|
|
@@ -48,7 +48,7 @@ No PRD or PROJECT.md found. How should we proceed?
|
|
|
48
48
|
generate stories from that description directly.
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
- If **1**: invoke `/rihal
|
|
51
|
+
- If **1**: invoke `/rihal-new-project` and stop.
|
|
52
52
|
- If **2**: set `CONTEXT_MODE=codebase`
|
|
53
53
|
- If **3**: capture description → set `CONTEXT_MODE=interactive`, `DESCRIPTION=$response`
|
|
54
54
|
|
|
@@ -234,7 +234,7 @@ If any story fails, ask roadmapper to fix before continuing.
|
|
|
234
234
|
2.1.md
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
**Why split:** Epic files are kept lean so GitHub API updates only rewrite one small story file instead of the full epic. Token cost per `/rihal
|
|
237
|
+
**Why split:** Epic files are kept lean so GitHub API updates only rewrite one small story file instead of the full epic. Token cost per `/rihal-dev-story` is proportional to one story, not the whole epic.
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
240
|
mkdir -p .planning/epics/stories
|
|
@@ -294,7 +294,7 @@ As a {persona}, I want to {action} so that {outcome}.
|
|
|
294
294
|
{Exact file paths, function names, line-level hints}
|
|
295
295
|
|
|
296
296
|
---
|
|
297
|
-
*Start: `/rihal
|
|
297
|
+
*Start: `/rihal-dev-story {N}.{M}`*
|
|
298
298
|
```
|
|
299
299
|
|
|
300
300
|
## Step 5 — Write INDEX.md
|
|
@@ -325,7 +325,7 @@ Generated: {ISO date} | Source: {input filename}
|
|
|
325
325
|
|
|
326
326
|
---
|
|
327
327
|
*Update story status: edit `.planning/epics/stories/{N}.{M}.md` → change `Status:` line*
|
|
328
|
-
*Next: `/rihal
|
|
328
|
+
*Next: `/rihal-sprint-planning` or `/rihal-dev-story {N}.{M}`*
|
|
329
329
|
```
|
|
330
330
|
|
|
331
331
|
## Step 6 — Commit
|
|
@@ -346,8 +346,8 @@ Index: .planning/epics/INDEX.md
|
|
|
346
346
|
Effort: ~{weeks} total
|
|
347
347
|
|
|
348
348
|
Next:
|
|
349
|
-
/rihal
|
|
350
|
-
/rihal
|
|
349
|
+
/rihal-sprint-planning organise into sprints
|
|
350
|
+
/rihal-dev-story {N}.{M} start working on a story
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
## Errors
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-create-story
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Convert a single story from an EPIC file into a self-contained STORY.md file. This story is ready for `/rihal
|
|
4
|
+
Convert a single story from an EPIC file into a self-contained STORY.md file. This story is ready for `/rihal-dev-story` to be wrapped for AI-coder execution. Entry is gated by checklist-story-draft.md.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,13 +10,13 @@ Convert a single story from an EPIC file into a self-contained STORY.md file. Th
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-create-story <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-create-story example 1
|
|
19
|
+
/rihal-create-story example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -26,11 +26,11 @@ STOP — do not proceed.
|
|
|
26
26
|
**If no arguments:**
|
|
27
27
|
|
|
28
28
|
```
|
|
29
|
-
Usage: /rihal
|
|
29
|
+
Usage: /rihal-create-story <EPIC-file.md> [--story <id>]
|
|
30
30
|
|
|
31
31
|
Examples:
|
|
32
|
-
/rihal
|
|
33
|
-
/rihal
|
|
32
|
+
/rihal-create-story .planning/epics/EPIC-01.md
|
|
33
|
+
/rihal-create-story .planning/epics/EPIC-01.md --story EPIC-01.1
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Stop and wait for arguments.
|
|
@@ -243,7 +243,7 @@ Use checklist-story-dod.md. A story is "Done" when:
|
|
|
243
243
|
|
|
244
244
|
**Before you start:** Review this story, dev notes, and dependencies.
|
|
245
245
|
|
|
246
|
-
**During development:** See `/rihal
|
|
246
|
+
**During development:** See `/rihal-dev-story` to wrap this STORY.md for AI-coder execution.
|
|
247
247
|
|
|
248
248
|
**After complete:** Run checklist-story-dod.md to verify done.
|
|
249
249
|
|
|
@@ -251,7 +251,7 @@ Use checklist-story-dod.md. A story is "Done" when:
|
|
|
251
251
|
|
|
252
252
|
**Created:** {ISO date}
|
|
253
253
|
|
|
254
|
-
**Ready for:** /rihal
|
|
254
|
+
**Ready for:** /rihal-dev-story → /rihal-code → Definition of Done verification
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
## Step 6 — Commit Story File
|
|
@@ -272,7 +272,7 @@ Title: {Story title}
|
|
|
272
272
|
Effort: {Estimate}
|
|
273
273
|
Persona: {Persona}
|
|
274
274
|
|
|
275
|
-
Next step: /rihal
|
|
275
|
+
Next step: /rihal-dev-story .planning/stories/{story-id}.md
|
|
276
276
|
```
|
|
277
277
|
|
|
278
278
|
## Errors
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-dashboard
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Start the Diwan view-only dashboard — a local web UI that visualizes .rihal/state.json, .planning/ artifacts, phases, decisions, and council sessions. The dashboard is read-only (no write endpoints) and runs dep-free on Node stdlib.
|
|
@@ -9,14 +9,14 @@ Start the Diwan view-only dashboard — a local web UI that visualizes .rihal/st
|
|
|
9
9
|
If `$ARGUMENTS` contains `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-dashboard [--port <N>] [--no-open]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Examples:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
17
|
+
/rihal-dashboard # start on port 7717, open browser
|
|
18
|
+
/rihal-dashboard --port 8080 # use a different port
|
|
19
|
+
/rihal-dashboard --no-open # don't auto-open the browser
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -121,13 +121,13 @@ The server runs until the user kills it. The slash command returns after announc
|
|
|
121
121
|
## Examples
|
|
122
122
|
|
|
123
123
|
### Happy Path
|
|
124
|
-
**Input:** `/rihal
|
|
124
|
+
**Input:** `/rihal-dashboard`
|
|
125
125
|
**Expected:** Server starts on 7717, browser opens, confirmation printed.
|
|
126
126
|
|
|
127
127
|
### Edge Case: Port in use
|
|
128
|
-
**Input:** `/rihal
|
|
128
|
+
**Input:** `/rihal-dashboard` (when 7717 is taken)
|
|
129
129
|
**Expected:** Server reports EADDRINUSE. Suggest `--port` flag with alternative.
|
|
130
130
|
|
|
131
131
|
### Negative Test
|
|
132
|
-
**Input:** `/rihal
|
|
132
|
+
**Input:** `/rihal-dashboard --write something`
|
|
133
133
|
**Expected:** Dashboard is view-only. Reject unknown write-related flags.
|
package/rihal/workflows/debug.md
CHANGED
|
@@ -12,13 +12,13 @@ Orchestrator stays lean: parse issues, spawn agents, collect results, synthesize
|
|
|
12
12
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
13
13
|
|
|
14
14
|
```
|
|
15
|
-
/rihal
|
|
15
|
+
/rihal-debug <argument-here>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
**Examples:**
|
|
19
19
|
```
|
|
20
|
-
/rihal
|
|
21
|
-
/rihal
|
|
20
|
+
/rihal-debug example 1
|
|
21
|
+
/rihal-debug example 2
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
STOP — do not proceed.
|
|
@@ -48,10 +48,10 @@ With diagnosis: "Feature doesn't work" → "missing error handler" → precise f
|
|
|
48
48
|
If input contains "should we", "what is the best way to", "how do I implement" — these are not bugs, they are how-to or strategy questions.
|
|
49
49
|
|
|
50
50
|
```
|
|
51
|
-
⚠ /rihal
|
|
51
|
+
⚠ /rihal-debug investigates broken behavior, not how-to questions.
|
|
52
52
|
|
|
53
|
-
For implementation guidance: /rihal
|
|
54
|
-
For a strategic decision: /rihal
|
|
53
|
+
For implementation guidance: /rihal-discuss waleed $ARGUMENTS
|
|
54
|
+
For a strategic decision: /rihal-council $ARGUMENTS
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Only proceed past this step if the input describes broken or unexpected behavior (e.g., "error X occurs", "feature Y doesn't work", "API returns wrong data").
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-decisions
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Surface recent decisions across every Rihal project on this machine. Decisions are mirrored to `~/.rihal/decisions.jsonl` whenever a project runs `state add-decision`. Use this to see what was decided elsewhere, find precedent for a similar call you are about to make, or answer "what did I commit to last week?".
|
|
@@ -26,7 +26,7 @@ Newest decisions first. One row per decision with project, date, phase, and summ
|
|
|
26
26
|
If `$ARGUMENTS` contains `--help` or `-h`:
|
|
27
27
|
|
|
28
28
|
```
|
|
29
|
-
/rihal
|
|
29
|
+
/rihal-decisions [--limit N] [--project <name>] [--since <ISO-date>] [--this-project]
|
|
30
30
|
|
|
31
31
|
--limit N Max rows to show (default 20, max 500)
|
|
32
32
|
--project <name> Filter to one project name (as recorded in state.project)
|
|
@@ -61,7 +61,7 @@ The result is JSON: `{decisions: [...], total: N}`. If `decisions` is empty:
|
|
|
61
61
|
```
|
|
62
62
|
No decisions logged yet.
|
|
63
63
|
|
|
64
|
-
Decisions are mirrored to ~/.rihal/decisions.jsonl whenever /rihal
|
|
64
|
+
Decisions are mirrored to ~/.rihal/decisions.jsonl whenever /rihal-execute or /rihal-council records one. Run a council or complete a sprint to populate this log.
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
STOP.
|
|
@@ -90,8 +90,8 @@ Where filter suffix is, for example: ` · project=rihal-code · since=2026-01-01
|
|
|
90
90
|
|
|
91
91
|
## Step 5 — Next Up routing
|
|
92
92
|
|
|
93
|
-
- If `--this-project` was used and results look thin (fewer than 3) → `Next: /rihal
|
|
94
|
-
- Otherwise → `Next: /rihal
|
|
93
|
+
- If `--this-project` was used and results look thin (fewer than 3) → `Next: /rihal-council "<open question>" (then decisions flow back here)`
|
|
94
|
+
- Otherwise → `Next: /rihal-decisions --project <name> for deeper history on one project`
|
|
95
95
|
</process>
|
|
96
96
|
|
|
97
97
|
## Success Criteria
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-dev-story
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Wrap a STORY.md file for AI-coder consumption. Produces:
|
|
@@ -57,14 +57,14 @@ elif [[ "$ARGS" =~ ^[Ee]pic[[:space:]]+([0-9]+)$ ]] || [[ "$ARGS" =~ ^[Ee][Pp][I
|
|
|
57
57
|
EPIC_FILE=".planning/epics/EPIC-$(printf '%02d' $EPIC_NUM).md"
|
|
58
58
|
|
|
59
59
|
else
|
|
60
|
-
echo "Usage: /rihal
|
|
60
|
+
echo "Usage: /rihal-dev-story <epic-ref> [--branch]"
|
|
61
61
|
echo ""
|
|
62
62
|
echo "Examples:"
|
|
63
|
-
echo " /rihal
|
|
64
|
-
echo " /rihal
|
|
65
|
-
echo " /rihal
|
|
66
|
-
echo " /rihal
|
|
67
|
-
echo " /rihal
|
|
63
|
+
echo " /rihal-dev-story epic 1 # list stories in EPIC-01"
|
|
64
|
+
echo " /rihal-dev-story epic 1 story 3 # work on EPIC-01, story 3"
|
|
65
|
+
echo " /rihal-dev-story EPIC-01.3 # same as above"
|
|
66
|
+
echo " /rihal-dev-story 1.3 --branch # with new git branch"
|
|
67
|
+
echo " /rihal-dev-story .planning/epics/stories/1.3.md # direct path"
|
|
68
68
|
echo ""
|
|
69
69
|
echo "Story files live in: .planning/epics/stories/"
|
|
70
70
|
STOP
|
|
@@ -89,7 +89,7 @@ if [[ -z "$STORY_NUMBER" ]]; then
|
|
|
89
89
|
AVAILABLE=$(ls .planning/epics/stories/${EPIC_NUM}.*.md 2>/dev/null)
|
|
90
90
|
if [[ -z "$AVAILABLE" ]]; then
|
|
91
91
|
echo "Error: No stories found for Epic ${EPIC_NUM} in .planning/epics/stories/"
|
|
92
|
-
echo "Run /rihal
|
|
92
|
+
echo "Run /rihal-create-epics-and-stories first."
|
|
93
93
|
STOP
|
|
94
94
|
fi
|
|
95
95
|
echo "Stories in Epic ${EPIC_NUM}:"
|
|
@@ -334,7 +334,7 @@ This story is "Done" when all items in checklist-story-dod.md are checked:
|
|
|
334
334
|
To execute with an AI coder:
|
|
335
335
|
|
|
336
336
|
```bash
|
|
337
|
-
/rihal
|
|
337
|
+
/rihal-code .planning/dev-sessions/{story-id}-dev-prompt.md
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
---
|
|
@@ -383,7 +383,7 @@ Acceptance Criteria: {count}
|
|
|
383
383
|
|
|
384
384
|
Context file: {path to dev-prompt.md}
|
|
385
385
|
|
|
386
|
-
Next: /rihal
|
|
386
|
+
Next: /rihal-code {path to dev-prompt.md}
|
|
387
387
|
|
|
388
388
|
Or, continue the current session to:
|
|
389
389
|
- Ask clarifying questions
|
|
@@ -397,7 +397,7 @@ If user says "start coding" or "let's build", spawn the code execution workflow:
|
|
|
397
397
|
|
|
398
398
|
```bash
|
|
399
399
|
# User says "let's go" or "start", then:
|
|
400
|
-
/rihal
|
|
400
|
+
/rihal-code "$DEV_PROMPT_FILE"
|
|
401
401
|
```
|
|
402
402
|
|
|
403
403
|
Otherwise, offer:
|
|
@@ -405,7 +405,7 @@ Otherwise, offer:
|
|
|
405
405
|
```
|
|
406
406
|
Ready to code this story?
|
|
407
407
|
|
|
408
|
-
/rihal
|
|
408
|
+
/rihal-code {dev-prompt-file}
|
|
409
409
|
```
|
|
410
410
|
|
|
411
411
|
Stop and wait for user to proceed. Do NOT auto-spawn.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-diagnose-issues
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Reusable diagnosis subroutine called from /rihal
|
|
4
|
+
Reusable diagnosis subroutine called from /rihal-verify-work when
|
|
5
5
|
verification fails. Walks symptom → hypothesis → evidence → minimal
|
|
6
6
|
repro and returns a structured finding. Not a top-level command.
|
|
7
7
|
</purpose>
|
package/rihal/workflows/diff.md
CHANGED
|
@@ -13,9 +13,9 @@ If invalid args: Show usage
|
|
|
13
13
|
|
|
14
14
|
```
|
|
15
15
|
Usage:
|
|
16
|
-
/rihal
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
16
|
+
/rihal-diff # Diff HEAD~1 to HEAD
|
|
17
|
+
/rihal-diff --last # Diff against last session
|
|
18
|
+
/rihal-diff abc123 def456 # Diff between commits
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Step 1: Parse Arguments
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
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
|
|
15
|
+
/rihal-discuss-phase --power <argument-here>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
**Examples:**
|
|
19
19
|
```
|
|
20
|
-
/rihal
|
|
21
|
-
/rihal
|
|
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
|
|
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
|
|
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
|
|
297
|
+
Next step: /rihal-plan-phase {N}
|
|
298
298
|
```
|
|
299
299
|
</step>
|
|
300
300
|
|