@hanzlaa/rcode 3.3.0 → 3.3.2
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 +10 -10
- package/cli/install.js +11 -11
- 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 +15 -15
- 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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## STEP GOAL
|
|
6
6
|
|
|
7
|
-
Capture everything that is **not** in M1..Mn but was considered. Use Rihal's `999.x` parking-lot convention so items can be promoted later via `/rihal
|
|
7
|
+
Capture everything that is **not** in M1..Mn but was considered. Use Rihal's `999.x` parking-lot convention so items can be promoted later via `/rihal-plant-seed` or `/rihal-review-backlog`.
|
|
8
8
|
|
|
9
9
|
## MANDATORY RULES
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ Sources:
|
|
|
24
24
|
### 2. Number using 999.x convention
|
|
25
25
|
|
|
26
26
|
```
|
|
27
|
-
Backlog (999.x — promotable with /rihal
|
|
27
|
+
Backlog (999.x — promotable with /rihal-plant-seed):
|
|
28
28
|
|
|
29
29
|
999.1 Cross-post to LinkedIn — deferred: requires LinkedIn OAuth (M2+)
|
|
30
30
|
999.2 Auto-DM feature — deferred: abuse risk, needs rate-limit design
|
|
@@ -8,7 +8,7 @@ Call the state-sync CLI so `.rihal/state.json` reflects every milestone and phas
|
|
|
8
8
|
|
|
9
9
|
## MANDATORY RULES
|
|
10
10
|
|
|
11
|
-
- 🛑 This step MUST run. Skipping it leaves `/rihal
|
|
11
|
+
- 🛑 This step MUST run. Skipping it leaves `/rihal-status` and `/rihal-progress` showing stale data.
|
|
12
12
|
- 🛑 Report the sync result (pulled phases, existing phases updated, any errors) to the user.
|
|
13
13
|
|
|
14
14
|
## SEQUENCE
|
|
@@ -43,7 +43,7 @@ State sync complete:
|
|
|
43
43
|
Milestones: 3
|
|
44
44
|
Phases: 10
|
|
45
45
|
Phases upserted: 10 (new)
|
|
46
|
-
Epics: 0 (none yet — run /rihal
|
|
46
|
+
Epics: 0 (none yet — run /rihal-create-epics-and-stories next)
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### 3. Verify drift closed
|
|
@@ -39,16 +39,16 @@ Hard deadline: {deadline or "none specified"}
|
|
|
39
39
|
What's next?
|
|
40
40
|
|
|
41
41
|
[A] Decompose M1 into epics + stories
|
|
42
|
-
→ /rihal
|
|
42
|
+
→ /rihal-create-epics-and-stories
|
|
43
43
|
|
|
44
44
|
[B] Plan the first phase in detail
|
|
45
|
-
→ /rihal
|
|
45
|
+
→ /rihal-plan-phase 01
|
|
46
46
|
|
|
47
47
|
[C] Review the roadmap with the team
|
|
48
|
-
→ /rihal
|
|
48
|
+
→ /rihal-council "Is this roadmap realistic?"
|
|
49
49
|
|
|
50
50
|
[D] Park and review later
|
|
51
|
-
→ Roadmap is saved; pick up with /rihal
|
|
51
|
+
→ Roadmap is saved; pick up with /rihal-progress anytime
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### 4. HALT
|
|
@@ -33,7 +33,7 @@ This uses **step-file architecture** for disciplined execution:
|
|
|
33
33
|
- 💾 **ALWAYS** update frontmatter of output files when writing
|
|
34
34
|
- 🎯 **ALWAYS** follow the exact instructions in the step file
|
|
35
35
|
- 📋 **NEVER** create mental todo lists from future steps
|
|
36
|
-
- 🚷 **NEVER** invent an "autonomous mode" or self-declared bypass. The only sanctioned paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal
|
|
36
|
+
- 🚷 **NEVER** invent an "autonomous mode" or self-declared bypass. The only sanctioned paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal-do --auto`. See `../../_shared/no-autonomous-bypass.md`.
|
|
37
37
|
- 🔗 **NEVER** cite external sources without `WebFetch`. See `../../_shared/research-citation-rule.md`.
|
|
38
38
|
- 🗂️ **ALWAYS** sync every milestone/phase into `.rihal/state.json` after writing to ROADMAP.md. See `../../_shared/state-sync-rule.md`.
|
|
39
39
|
|
|
@@ -56,7 +56,7 @@ Load and read full config from `{main_config}` and resolve:
|
|
|
56
56
|
|
|
57
57
|
Verify `{inputFile}` (PRD) exists and is non-empty. If missing:
|
|
58
58
|
|
|
59
|
-
- Respond: *"I need an approved PRD first. Run `/rihal
|
|
59
|
+
- Respond: *"I need an approved PRD first. Run `/rihal-create-prd` or point me at the existing brief."*
|
|
60
60
|
- HALT. Do not create ROADMAP.md.
|
|
61
61
|
|
|
62
62
|
If PRD frontmatter shows `status: draft`, warn the user and ask whether to proceed.
|
|
@@ -80,7 +80,7 @@ Steps (loaded one at a time):
|
|
|
80
80
|
7. `step-07-backlog.md` — Capture parking-lot items.
|
|
81
81
|
8. `step-08-write-roadmap.md` — Append all milestones to ROADMAP.md.
|
|
82
82
|
9. `step-09-state-sync.md` — Upsert milestones + phases into `.rihal/state.json`.
|
|
83
|
-
10. `step-10-complete.md` — Summary, next-step hand-off (`/rihal
|
|
83
|
+
10. `step-10-complete.md` — Summary, next-step hand-off (`/rihal-create-epics-and-stories` for M1).
|
|
84
84
|
|
|
85
85
|
Each step halts at a menu: [A]ccept / [P]ropose change / [C]ontinue. Only on `C` does the workflow advance.
|
|
86
86
|
|
|
@@ -89,5 +89,5 @@ Each step halts at a menu: [A]ccept / [P]ropose change / [C]ontinue. Only on `C`
|
|
|
89
89
|
## HAND-OFF
|
|
90
90
|
|
|
91
91
|
On completion, recommend the user run:
|
|
92
|
-
- `/rihal
|
|
93
|
-
- `/rihal
|
|
92
|
+
- `/rihal-create-epics-and-stories` to decompose M1 into epics + stories.
|
|
93
|
+
- `/rihal-sprint-planning` once the first epic is scoped.
|
|
@@ -63,4 +63,4 @@ When fast-pathing: confirm detected fields in one line ("Got it — building {na
|
|
|
63
63
|
|
|
64
64
|
### Negative Example: Request to Bypass the Interview
|
|
65
65
|
**Input:** "use research skills and create the best PRD ready to execute" / "skip the questions and write it autonomously" / "just generate the full PRD"
|
|
66
|
-
**Expected behavior:** DO NOT invent an "autonomous mode". DO NOT generate a PRD without running discovery. Respond: "The discovery interview is mandatory unless `.rihal/config.yaml` has `mode: yolo` or you re-invoke via `/rihal
|
|
66
|
+
**Expected behavior:** DO NOT invent an "autonomous mode". DO NOT generate a PRD without running discovery. Respond: "The discovery interview is mandatory unless `.rihal/config.yaml` has `mode: yolo` or you re-invoke via `/rihal-do --auto`. Here is the step-01 menu — I will drive each step concisely." Then present the step-01 menu. See `../../_shared/no-autonomous-bypass.md`.
|
|
@@ -41,7 +41,7 @@ This uses **step-file architecture** for disciplined execution:
|
|
|
41
41
|
- 🎯 **ALWAYS** follow the exact instructions in the step file
|
|
42
42
|
- ⏸️ **ALWAYS** halt at menus and wait for user input
|
|
43
43
|
- 📋 **NEVER** create mental todo lists from future steps
|
|
44
|
-
- 🚷 **NEVER** invent an "autonomous mode", "research mode", or any self-declared bypass. The only sanctioned bypass paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal
|
|
44
|
+
- 🚷 **NEVER** invent an "autonomous mode", "research mode", or any self-declared bypass. The only sanctioned bypass paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal-do --auto`. See `../../_shared/no-autonomous-bypass.md` for the full rule and correct response pattern.
|
|
45
45
|
- 🔗 **NEVER** cite an external source (competitor pricing, API limits, market numbers) without first `WebFetch`ing it in the same session. `WebSearch` snippets are not sufficient evidence. See `../../_shared/research-citation-rule.md`.
|
|
46
46
|
|
|
47
47
|
## INITIALIZATION SEQUENCE
|
|
@@ -371,7 +371,7 @@ Load config from `{project-root}/.rihal/config.json` and resolve:
|
|
|
371
371
|
1. Review the comprehensive story in {{story_file}}
|
|
372
372
|
2. Run dev agents `dev-story` for optimized implementation
|
|
373
373
|
3. Run `code-review` when complete (auto-marks done)
|
|
374
|
-
4. Optional: If Test Architect module installed, run `/rihal
|
|
374
|
+
4. Optional: If Test Architect module installed, run `/rihal-tea:automate` after `dev-story` to generate guardrail tests
|
|
375
375
|
|
|
376
376
|
**The developer now has everything needed for flawless implementation!**
|
|
377
377
|
</output>
|
|
@@ -11,9 +11,9 @@ Checkpoint preview skill for Rihal Code.
|
|
|
11
11
|
|
|
12
12
|
## Do NOT use this skill for
|
|
13
13
|
|
|
14
|
-
- **Automated code review without a human** — use `/rihal
|
|
14
|
+
- **Automated code review without a human** — use `/rihal-code-review --karpathy` or a code-reviewer agent directly.
|
|
15
15
|
- **Approving a deploy or merge** — this skill explains a change; it does not authorize git push, deploys, or PR merges.
|
|
16
|
-
- **Bug investigation** from scratch — use `/rihal
|
|
16
|
+
- **Bug investigation** from scratch — use `/rihal-debug` or the diagnose-issues workflow.
|
|
17
17
|
- **Architecture review of an undelivered design** — this skill reviews delivered code/diffs, not specs.
|
|
18
18
|
- **Sprint retros or milestone closure** — use `rihal-retrospective` or `rihal-complete-milestone`.
|
|
19
19
|
|
|
@@ -57,7 +57,7 @@ Read fully and follow `./step-01-orientation.md` to begin.
|
|
|
57
57
|
## Examples
|
|
58
58
|
|
|
59
59
|
### Happy Path
|
|
60
|
-
**Input:** `/rihal
|
|
60
|
+
**Input:** `/rihal-checkpoint-preview` after a feature branch is complete
|
|
61
61
|
**Expected:** 5-step human review session with clear focus on what matters, testing recommendations, wrapup decision.
|
|
62
62
|
|
|
63
63
|
### Edge Case: No changes to review
|
|
@@ -437,7 +437,7 @@ Load config from `{project-root}/.rihal/config.json` and resolve:
|
|
|
437
437
|
- Verify all acceptance criteria are met
|
|
438
438
|
- Ensure deployment readiness if applicable
|
|
439
439
|
- Run `code-review` workflow for peer review
|
|
440
|
-
- Optional: If Test Architect module installed, run `/rihal
|
|
440
|
+
- Optional: If Test Architect module installed, run `/rihal-tea:automate` to expand guardrail tests
|
|
441
441
|
</action>
|
|
442
442
|
|
|
443
443
|
<output>💡 **Tip:** For best results, run `code-review` using a **different** LLM than the one that implemented this story.</output>
|
|
@@ -45,4 +45,4 @@ Follow the instructions in ./workflow.md.
|
|
|
45
45
|
|
|
46
46
|
### Negative Example: Fabricated Capacity
|
|
47
47
|
**Input:** "Plan the sprint" (no prior capacity info, no `mode: yolo`, no `--auto`)
|
|
48
|
-
**Expected behavior:** DO NOT assume "1 senior FT, 30 pts/week" or any other capacity. DO NOT write `sprint-N.md` until the user provides numeric answers for devs/PTO/velocity. If the user resists, point them at the two sanctioned bypass paths (`.rihal/config.yaml` → `mode: yolo` or `/rihal
|
|
48
|
+
**Expected behavior:** DO NOT assume "1 senior FT, 30 pts/week" or any other capacity. DO NOT write `sprint-N.md` until the user provides numeric answers for devs/PTO/velocity. If the user resists, point them at the two sanctioned bypass paths (`.rihal/config.yaml` → `mode: yolo` or `/rihal-do --auto`). See `../../_shared/no-autonomous-bypass.md`.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- [ ] Velocity is either (a) provided by the user, or (b) pulled from prior sprint retrospective
|
|
9
9
|
- [ ] 20% buffer is applied to the resulting capacity
|
|
10
10
|
|
|
11
|
-
If any of the above is missing and the session is NOT running with `.rihal/config.yaml` `mode: yolo` or `/rihal
|
|
11
|
+
If any of the above is missing and the session is NOT running with `.rihal/config.yaml` `mode: yolo` or `/rihal-do --auto`, the workflow MUST halt and ask the user — never fabricate numbers.
|
|
12
12
|
|
|
13
13
|
## Core Validation
|
|
14
14
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
- ⏸️ **ALWAYS** halt for capacity input (devs, PTO, meetings, velocity) before committing stories to the sprint. Per `SKILL.md` Edge Cases, the skill must ask: *"How many devs, any PTO, any known meetings? I need capacity numbers before committing to stories."*
|
|
12
12
|
- 🚫 **NEVER** fabricate capacity numbers (e.g. *"1 senior FT, 30 pts/week"*) when the user has not provided them.
|
|
13
|
-
- 🚷 **NEVER** invent an "autonomous mode" or any self-declared bypass. The only sanctioned bypass paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal
|
|
13
|
+
- 🚷 **NEVER** invent an "autonomous mode" or any self-declared bypass. The only sanctioned bypass paths are `.rihal/config.yaml` → `mode: yolo` or `/rihal-do --auto`. See `../../_shared/no-autonomous-bypass.md` for the full rule and correct response pattern.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -59,7 +59,7 @@ Load config from `{project-root}/.rihal/config.json` and resolve:
|
|
|
59
59
|
<action>Try {sprint_status_file}</action>
|
|
60
60
|
<check if="file not found">
|
|
61
61
|
<output>❌ sprint-status.yaml not found.
|
|
62
|
-
Run `/rihal
|
|
62
|
+
Run `/rihal-workflows:sprint-planning` to generate it, then rerun sprint-status.</output>
|
|
63
63
|
<action>Exit workflow</action>
|
|
64
64
|
</check>
|
|
65
65
|
<action>Continue to Step 2</action>
|
|
@@ -112,9 +112,9 @@ Enter corrections (e.g., "1=in-progress, 2=backlog") or "skip" to continue witho
|
|
|
112
112
|
|
|
113
113
|
<action>Detect risks:</action>
|
|
114
114
|
|
|
115
|
-
- IF any story has status "review": suggest `/rihal
|
|
115
|
+
- IF any story has status "review": suggest `/rihal-workflows:code-review`
|
|
116
116
|
- IF any story has status "in-progress" AND no stories have status "ready-for-dev": recommend staying focused on active story
|
|
117
|
-
- IF all epics have status "backlog" AND no stories have status "ready-for-dev": prompt `/rihal
|
|
117
|
+
- IF all epics have status "backlog" AND no stories have status "ready-for-dev": prompt `/rihal-workflows:create-story`
|
|
118
118
|
- IF `last_updated` timestamp is more than 7 days old (or `last_updated` is missing, fall back to `generated`): warn "sprint-status.yaml may be stale"
|
|
119
119
|
- IF any story key doesn't match an epic pattern (e.g., story "5-1-..." but no "epic-5"): warn "orphaned story detected"
|
|
120
120
|
- IF any epic has status in-progress but has no associated stories: warn "in-progress epic has no stories"
|
|
@@ -144,7 +144,7 @@ Enter corrections (e.g., "1=in-progress, 2=backlog") or "skip" to continue witho
|
|
|
144
144
|
|
|
145
145
|
**Epics:** backlog {{epic_backlog}}, in-progress {{epic_in_progress}}, done {{epic_done}}
|
|
146
146
|
|
|
147
|
-
**Next Recommendation:** /rihal
|
|
147
|
+
**Next Recommendation:** /rihal-workflows:{{next_workflow_id}} ({{next_story_id}})
|
|
148
148
|
|
|
149
149
|
{{#if risks}}
|
|
150
150
|
**Risks:**
|
|
@@ -166,7 +166,7 @@ Enter corrections (e.g., "1=in-progress, 2=backlog") or "skip" to continue witho
|
|
|
166
166
|
Choice:</ask>
|
|
167
167
|
|
|
168
168
|
<check if="choice == 1">
|
|
169
|
-
<output>Run `/rihal
|
|
169
|
+
<output>Run `/rihal-workflows:{{next_workflow_id}}`.
|
|
170
170
|
If the command targets a story, set `story_key={{next_story_id}}` when prompted.</output>
|
|
171
171
|
</check>
|
|
172
172
|
|
|
@@ -8,8 +8,8 @@ description: >
|
|
|
8
8
|
"map the codebase", "what's in this repo", "discover X across the
|
|
9
9
|
project", "audit instrumentation", "find all callers of Y", "is there
|
|
10
10
|
any Sentry / GraphQL / Redis usage", "explore the project structure",
|
|
11
|
-
"talk to Dalil", or "scout this repo". Also activates via /rihal
|
|
12
|
-
and /rihal
|
|
11
|
+
"talk to Dalil", or "scout this repo". Also activates via /rihal-scan
|
|
12
|
+
and /rihal-map-codebase. Do NOT use for: plan execution (use executor),
|
|
13
13
|
strategic decisions (use Sadiq / Waleed), test design (use Fatima), or
|
|
14
14
|
code modification (use Hanzla / Omar).
|
|
15
15
|
triggers:
|
|
@@ -39,10 +39,10 @@ First-person, calm, observational. Opens `Dalil here — starting the scan.`. Cl
|
|
|
39
39
|
|
|
40
40
|
| Code | Description | Workflow |
|
|
41
41
|
|---|---|---|
|
|
42
|
-
| SC | Lightweight focused scan — one focus area, single document set | `rihal
|
|
43
|
-
| MC | Comprehensive 4-area parallel scan | `rihal
|
|
44
|
-
| RF | Memory-bank refresh — diff against last scan, update `CHANGELOG.md` | `rihal
|
|
45
|
-
| TS | Topic-phrase sweep across all source roots with grounded file list | `rihal
|
|
42
|
+
| SC | Lightweight focused scan — one focus area, single document set | `rihal-scan` |
|
|
43
|
+
| MC | Comprehensive 4-area parallel scan | `rihal-map-codebase` |
|
|
44
|
+
| RF | Memory-bank refresh — diff against last scan, update `CHANGELOG.md` | `rihal-scan --refresh` |
|
|
45
|
+
| TS | Topic-phrase sweep across all source roots with grounded file list | `rihal-scan --focus <area> --topic "<phrase>"` |
|
|
46
46
|
|
|
47
47
|
## Workflow (every invocation)
|
|
48
48
|
|
|
@@ -90,7 +90,7 @@ The `Brief:` line is verbatim-extracted by the orchestrator into `.planning/code
|
|
|
90
90
|
## Examples
|
|
91
91
|
|
|
92
92
|
**Happy path — topic sweep on a polyglot monorepo**
|
|
93
|
-
`/rihal
|
|
93
|
+
`/rihal-scan --focus concerns --topic "Sentry instrumentation"` → discover `web/ backend/ ml/ deployments/` → detect Python + TS → topic sweep finds 47 files including `backend/onyx/server/exception_handlers.py` → write `CONCERNS.md` with full Scan Scope → close `— Dalil`.
|
|
94
94
|
|
|
95
95
|
**Edge case — topic phrase returns zero matches**
|
|
96
96
|
Re-grep with `-i`. Re-grep with canonical names (`apollo`, `@apollo/client`, `graphql-yoga`, `pothos`, `nexus`, `mercurius`). Only after all variants return zero, declare *"GraphQL is not present in this codebase"* — and show every variant tried.
|
|
@@ -95,7 +95,7 @@ Follow the instructions in ./workflow.md.
|
|
|
95
95
|
|
|
96
96
|
### Negative boundary
|
|
97
97
|
**User:** "brainstorm which tech stack to use"
|
|
98
|
-
**Result:** Redirects to `/rihal
|
|
98
|
+
**Result:** Redirects to `/rihal-council` or Waleed (CTO) — architecture decisions need structured ADR evaluation, not open ideation.
|
|
99
99
|
|
|
100
100
|
## Memory Bank Hooks
|
|
101
101
|
|
|
@@ -124,7 +124,7 @@ JSON config vars returned to the calling skill. When init path runs, interactive
|
|
|
124
124
|
|
|
125
125
|
### Negative boundary
|
|
126
126
|
**User:** "initialize my project"
|
|
127
|
-
**Result:** rihal-init is internal — user should use `rihal-scaffold-project` or `/rihal
|
|
127
|
+
**Result:** rihal-init is internal — user should use `rihal-scaffold-project` or `/rihal-install` instead
|
|
128
128
|
|
|
129
129
|
## Memory Bank Hooks
|
|
130
130
|
|
|
@@ -88,7 +88,7 @@ Each party mode turn follows this pattern:
|
|
|
88
88
|
|
|
89
89
|
### Negative boundary
|
|
90
90
|
**User:** "party mode — approve this PR"
|
|
91
|
-
**Result:** Redirects to `/rihal
|
|
91
|
+
**Result:** Redirects to `/rihal-code-review` — code review needs structured evaluation, not open discussion.
|
|
92
92
|
|
|
93
93
|
## Memory Bank Hooks
|
|
94
94
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- P2: Omit any section with nothing substantive. Empty sections are noise. Omit STATE.md blockers/workstreams if none active. Omit REQUIREMENTS.md out-of-scope if it doesn't constrain execution. -->
|
|
4
4
|
|
|
5
|
-
Use this template when starting a new milestone with `/rihal
|
|
5
|
+
Use this template when starting a new milestone with `/rihal-new-milestone`.
|
|
6
6
|
|
|
7
7
|
## ROADMAP.md
|
|
8
8
|
|
|
@@ -34,4 +34,4 @@ A headless API for {{use_case}}. Consumers are other services, internal apps, or
|
|
|
34
34
|
- Early API shape locks in; expensive to change once consumers integrate
|
|
35
35
|
|
|
36
36
|
## Evolution
|
|
37
|
-
_(Updated after each phase completion by `/rihal
|
|
37
|
+
_(Updated after each phase completion by `/rihal-execute`.)_
|
|
@@ -34,4 +34,4 @@ _(Describe the repeatable loop — 2-4 steps — that drives retention.)_
|
|
|
34
34
|
- **Push opt-in rate:** <30% is common; design core loop to work without push
|
|
35
35
|
|
|
36
36
|
## Evolution
|
|
37
|
-
_(Updated after each phase completion by `/rihal
|
|
37
|
+
_(Updated after each phase completion by `/rihal-execute`.)_
|
|
@@ -37,4 +37,4 @@ _(Market timing, regulatory shift, technology enabler, etc.)_
|
|
|
37
37
|
- **Regulatory:** PII/data-residency constraints depending on target market
|
|
38
38
|
|
|
39
39
|
## Evolution
|
|
40
|
-
_(Updated after each phase completion by `/rihal
|
|
40
|
+
_(Updated after each phase completion by `/rihal-execute`.)_
|
|
@@ -11,15 +11,15 @@ Read all files referenced by the invoking prompt's execution_context before star
|
|
|
11
11
|
<step name="parse_arguments">
|
|
12
12
|
Parse the command arguments:
|
|
13
13
|
- All arguments become the phase description
|
|
14
|
-
- Example: `/rihal
|
|
15
|
-
- Example: `/rihal
|
|
14
|
+
- Example: `/rihal-add-phase Add authentication` → description = "Add authentication"
|
|
15
|
+
- Example: `/rihal-add-phase Fix critical performance issues` → description = "Fix critical performance issues"
|
|
16
16
|
|
|
17
17
|
If no arguments provided:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
ERROR: Phase description required
|
|
21
|
-
Usage: /rihal
|
|
22
|
-
Example: /rihal
|
|
21
|
+
Usage: /rihal-add-phase <description>
|
|
22
|
+
Example: /rihal-add-phase Add authentication system
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Exit.
|
|
@@ -36,13 +36,13 @@ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
|
36
36
|
Check `roadmap_exists` from init JSON. If false:
|
|
37
37
|
```
|
|
38
38
|
ERROR: No roadmap found (.planning/ROADMAP.md)
|
|
39
|
-
Run /rihal
|
|
39
|
+
Run /rihal-new-project to initialize.
|
|
40
40
|
```
|
|
41
41
|
Exit.
|
|
42
42
|
</step>
|
|
43
43
|
|
|
44
44
|
<step name="detect_task_list">
|
|
45
|
-
**Detect bulk-task input** — when /rihal
|
|
45
|
+
**Detect bulk-task input** — when /rihal-quick or /rihal-do auto-routes a multi-task input here, the entire bug list arrives as `${description}`. Don't put it all in the phase title; extract structure.
|
|
46
46
|
|
|
47
47
|
Match if `${description}` contains ANY of:
|
|
48
48
|
- 5+ numbered list items (`/^\s*\d+\.\s/m` ≥ 5)
|
|
@@ -59,12 +59,12 @@ If matched:
|
|
|
59
59
|
```markdown
|
|
60
60
|
# Phase {N} — {phase name} — Tasks
|
|
61
61
|
|
|
62
|
-
*Auto-extracted from /rihal
|
|
62
|
+
*Auto-extracted from /rihal-quick or /rihal-do bulk auto-route on {ISO date}.*
|
|
63
63
|
|
|
64
64
|
{original body, preserved verbatim}
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
4. Note in the completion message: "TASKS.md written with N tasks". The downstream /rihal
|
|
67
|
+
4. Note in the completion message: "TASKS.md written with N tasks". The downstream /rihal-plan workflow consumes TASKS.md as the input to SPRINT.md generation — no manual re-paste needed.
|
|
68
68
|
|
|
69
69
|
If NOT matched (single task), proceed normally — `${description}` is the phase name as-is.
|
|
70
70
|
|
|
@@ -123,12 +123,12 @@ Roadmap updated: .planning/ROADMAP.md
|
|
|
123
123
|
|
|
124
124
|
`/clear` then:
|
|
125
125
|
|
|
126
|
-
`/rihal
|
|
126
|
+
`/rihal-plan {N}`
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|
|
130
130
|
**Also available:**
|
|
131
|
-
- `/rihal
|
|
131
|
+
- `/rihal-add-phase <description>` — add another phase
|
|
132
132
|
- Review roadmap
|
|
133
133
|
|
|
134
134
|
---
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<purpose>
|
|
2
2
|
Generate unit and E2E tests for a completed phase based on its SUMMARY.md, CONTEXT.md, and implementation. Classifies each changed file into TDD (unit), E2E (browser), or Skip categories, presents a test plan for user approval, then generates tests following RED-GREEN conventions.
|
|
3
3
|
|
|
4
|
-
Users currently hand-craft `/rihal
|
|
4
|
+
Users currently hand-craft `/rihal-quick` prompts for test generation after each phase. This workflow standardizes the process with proper classification, quality gates, and gap reporting.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
<required_reading>
|
|
@@ -15,15 +15,15 @@ Parse `$ARGUMENTS` for:
|
|
|
15
15
|
- Phase number (integer, decimal, or letter-suffix) → store as `$PHASE_ARG`
|
|
16
16
|
- Remaining text after phase number → store as `$EXTRA_INSTRUCTIONS` (optional)
|
|
17
17
|
|
|
18
|
-
Example: `/rihal
|
|
18
|
+
Example: `/rihal-add-tests 12 focus on edge cases` → `$PHASE_ARG=12`, `$EXTRA_INSTRUCTIONS="focus on edge cases"`
|
|
19
19
|
|
|
20
20
|
If no phase argument provided:
|
|
21
21
|
|
|
22
22
|
```
|
|
23
23
|
ERROR: Phase number required
|
|
24
|
-
Usage: /rihal
|
|
25
|
-
Example: /rihal
|
|
26
|
-
Example: /rihal
|
|
24
|
+
Usage: /rihal-add-tests <phase> [additional instructions]
|
|
25
|
+
Example: /rihal-add-tests 12
|
|
26
|
+
Example: /rihal-add-tests 12 focus on edge cases in the pricing module
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Exit.
|
|
@@ -54,7 +54,7 @@ Read the phase artifacts (in order of priority):
|
|
|
54
54
|
If no SUMMARY.md exists:
|
|
55
55
|
```
|
|
56
56
|
ERROR: No SUMMARY.md found for phase ${PHASE_ARG}
|
|
57
|
-
This command works on completed phases. Run /rihal
|
|
57
|
+
This command works on completed phases. Run /rihal-execute-phase first.
|
|
58
58
|
```
|
|
59
59
|
Exit.
|
|
60
60
|
|
|
@@ -315,7 +315,7 @@ Present next steps:
|
|
|
315
315
|
## ▶ Next Up
|
|
316
316
|
|
|
317
317
|
{if bugs discovered:}
|
|
318
|
-
**Fix discovered bugs:** `/rihal
|
|
318
|
+
**Fix discovered bugs:** `/rihal-quick fix the {N} test failures discovered in phase ${phase_number}`
|
|
319
319
|
|
|
320
320
|
{if blocked tests:}
|
|
321
321
|
**Resolve test blockers:** {description of what's needed}
|
|
@@ -326,8 +326,8 @@ Present next steps:
|
|
|
326
326
|
---
|
|
327
327
|
|
|
328
328
|
**Also available:**
|
|
329
|
-
- `/rihal
|
|
330
|
-
- `/rihal
|
|
329
|
+
- `/rihal-add-tests {next_phase}` — test another phase
|
|
330
|
+
- `/rihal-verify-work {phase_number}` — run UAT verification
|
|
331
331
|
|
|
332
332
|
---
|
|
333
333
|
```
|
|
@@ -8,13 +8,13 @@ Capture an idea, task, or issue that surfaces during a Rihal session as a struct
|
|
|
8
8
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
/rihal
|
|
11
|
+
/rihal-add-todo <argument-here>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
**Examples:**
|
|
15
15
|
```
|
|
16
|
-
/rihal
|
|
17
|
-
/rihal
|
|
16
|
+
/rihal-add-todo example 1
|
|
17
|
+
/rihal-add-todo example 2
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
STOP — do not proceed.
|
|
@@ -37,7 +37,7 @@ Ensure directories exist for organized todo capture.
|
|
|
37
37
|
|
|
38
38
|
<step name="extract_content">
|
|
39
39
|
**With arguments:** Use as the title/focus.
|
|
40
|
-
- `/rihal
|
|
40
|
+
- `/rihal-add-todo Add auth token refresh` → title = "Add auth token refresh"
|
|
41
41
|
|
|
42
42
|
**Without arguments:** Analyze recent conversation to extract:
|
|
43
43
|
- The specific problem, idea, or task discussed
|
|
@@ -148,7 +148,7 @@ Would you like to:
|
|
|
148
148
|
|
|
149
149
|
1. Continue with current work
|
|
150
150
|
2. Add another todo
|
|
151
|
-
3. View all todos (/rihal
|
|
151
|
+
3. View all todos (/rihal-add-todo --list)
|
|
152
152
|
```
|
|
153
153
|
</step>
|
|
154
154
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-analyze-dependencies
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Analyze ROADMAP.md phases for dependency relationships before execution. Detect file overlap between phases, semantic API/data-flow dependencies, and suggest `Depends on` entries to prevent merge conflicts during parallel execution by `/rihal
|
|
4
|
+
Analyze ROADMAP.md phases for dependency relationships before execution. Detect file overlap between phases, semantic API/data-flow dependencies, and suggest `Depends on` entries to prevent merge conflicts during parallel execution by `/rihal-manager`.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,13 +10,13 @@ Analyze ROADMAP.md phases for dependency relationships before execution. Detect
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-analyze-dependencies <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-analyze-dependencies example 1
|
|
19
|
+
/rihal-analyze-dependencies example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -26,7 +26,7 @@ STOP — do not proceed.
|
|
|
26
26
|
**Action:** Read `.planning/ROADMAP.md` and extract all phases.
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
test -f .planning/ROADMAP.md || echo "No ROADMAP.md found — run /rihal
|
|
29
|
+
test -f .planning/ROADMAP.md || echo "No ROADMAP.md found — run /rihal-new-project first."
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
For each phase, capture:
|
|
@@ -119,7 +119,7 @@ When writing:
|
|
|
119
119
|
- Preserve all other phase content unchanged
|
|
120
120
|
- Do not reorder phases
|
|
121
121
|
|
|
122
|
-
After applying: "ROADMAP.md updated. Run `/rihal
|
|
122
|
+
After applying: "ROADMAP.md updated. Run `/rihal-manager` to execute phases in the correct order."
|
|
123
123
|
|
|
124
124
|
## Success Criteria
|
|
125
125
|
|
|
@@ -16,14 +16,14 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
16
16
|
|
|
17
17
|
**Usage:**
|
|
18
18
|
```
|
|
19
|
-
/rihal
|
|
19
|
+
/rihal-audit-fix [--max N] [--severity high|medium|all] [--dry-run] [--source audit]
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Examples:**
|
|
23
23
|
```
|
|
24
|
-
/rihal
|
|
25
|
-
/rihal
|
|
26
|
-
/rihal
|
|
24
|
+
/rihal-audit-fix
|
|
25
|
+
/rihal-audit-fix --max 10 --severity high
|
|
26
|
+
/rihal-audit-fix --dry-run
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
<process>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-audit-milestone
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Cross-phase audit of milestone completion. Reads all SUMMARY.md files from completed phases, compares their outcomes to the original ROADMAP goals, flags gaps, and generates an audit report showing completion percentage and decision traceability.
|
|
@@ -9,13 +9,13 @@ Cross-phase audit of milestone completion. Reads all SUMMARY.md files from compl
|
|
|
9
9
|
If `$ARGUMENTS` contains only `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-audit-milestone [--strict] [--report]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Examples:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
17
|
+
/rihal-audit-milestone
|
|
18
|
+
/rihal-audit-milestone --strict --report
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
STOP — do not proceed.
|
|
@@ -32,7 +32,7 @@ If neither exists:
|
|
|
32
32
|
```
|
|
33
33
|
⚠ No active milestone found. Start a new one:
|
|
34
34
|
|
|
35
|
-
/rihal
|
|
35
|
+
/rihal-new-milestone <name>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
STOP.
|
|
@@ -159,7 +159,7 @@ If `PLANS > 0` AND (`GIT_FEAT > 0` OR `APPS > 0`):
|
|
|
159
159
|
1. Synthesize SUMMARY.md per phase from PLAN.md + git log [recommended]
|
|
160
160
|
(groups commits by phase tag like "feat(03-1):", writes a
|
|
161
161
|
first-pass SUMMARY.md the user can edit)
|
|
162
|
-
2. Run /rihal
|
|
162
|
+
2. Run /rihal-verify-phase NN per phase (manual close path)
|
|
163
163
|
3. Continue audit anyway (only assesses what is documented — likely
|
|
164
164
|
reports 0% goal coverage)
|
|
165
165
|
0. Cancel
|
|
@@ -174,7 +174,7 @@ If `PLANS == 0`:
|
|
|
174
174
|
```
|
|
175
175
|
⚠ No phase summaries and no plans found. Have phases been executed?
|
|
176
176
|
Check: {MILESTONE_DIR}/phases/
|
|
177
|
-
Start one: /rihal
|
|
177
|
+
Start one: /rihal-plan
|
|
178
178
|
```
|
|
179
179
|
|
|
180
180
|
STOP.
|
|
@@ -183,5 +183,5 @@ If ROADMAP missing:
|
|
|
183
183
|
|
|
184
184
|
```
|
|
185
185
|
⚠ ROADMAP.md missing. Cannot audit without original goals.
|
|
186
|
-
Create one: /rihal
|
|
186
|
+
Create one: /rihal-new-milestone
|
|
187
187
|
```
|
|
@@ -76,9 +76,9 @@ Present the audit report:
|
|
|
76
76
|
|
|
77
77
|
## Recommended Actions
|
|
78
78
|
|
|
79
|
-
1. **Close stale items:** `/rihal
|
|
79
|
+
1. **Close stale items:** `/rihal-verify-work {phase}` — mark stale tests as resolved
|
|
80
80
|
2. **Run active tests:** Human UAT test plan below
|
|
81
|
-
3. **When prerequisites met:** Retest blocked items with `/rihal
|
|
81
|
+
3. **When prerequisites met:** Retest blocked items with `/rihal-verify-work {phase}`
|
|
82
82
|
```
|
|
83
83
|
</step>
|
|
84
84
|
|