@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
|
@@ -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
|
|
package/rihal/workflows/audit.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-audit
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Single entry point for every kind of audit. Asks the user *what* to audit
|
|
@@ -17,20 +17,20 @@ and auto-picks the most-relevant target based on project state. In
|
|
|
17
17
|
If `$ARGUMENTS` contains `--help` or `-h`:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
/rihal
|
|
21
|
-
/rihal
|
|
22
|
-
/rihal
|
|
23
|
-
/rihal
|
|
24
|
-
/rihal
|
|
25
|
-
/rihal
|
|
26
|
-
/rihal
|
|
20
|
+
/rihal-audit # interactive — asks what to audit
|
|
21
|
+
/rihal-audit phase [<NN>] # → /rihal-verify-phase
|
|
22
|
+
/rihal-audit milestone [--strict] # → /rihal-audit-milestone (with synth fallback)
|
|
23
|
+
/rihal-audit uat # → /rihal-audit-uat
|
|
24
|
+
/rihal-audit code [--scope=...] # → /rihal-code-review --karpathy
|
|
25
|
+
/rihal-audit fix # → /rihal-audit-fix
|
|
26
|
+
/rihal-audit work # → /rihal-verify-work
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
**Examples:**
|
|
30
30
|
```
|
|
31
|
-
/rihal
|
|
32
|
-
/rihal
|
|
33
|
-
/rihal
|
|
31
|
+
/rihal-audit
|
|
32
|
+
/rihal-audit milestone --strict
|
|
33
|
+
/rihal-audit phase 03
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Step 1 — Resolve mode + arguments
|
|
@@ -94,11 +94,11 @@ sub-workflow.
|
|
|
94
94
|
|
|
95
95
|
| target | precondition | failure message |
|
|
96
96
|
|---|---|---|
|
|
97
|
-
| phase | at least one `.planning/phases/*/PLAN.md` | `No PLAN.md found. Run /rihal
|
|
98
|
-
| milestone | ROADMAP.md exists | `No ROADMAP.md. Run /rihal
|
|
99
|
-
| uat | at least one UAT*.md exists | `No UAT files yet. Run /rihal
|
|
97
|
+
| phase | at least one `.planning/phases/*/PLAN.md` | `No PLAN.md found. Run /rihal-plan first.` |
|
|
98
|
+
| milestone | ROADMAP.md exists | `No ROADMAP.md. Run /rihal-new-milestone first.` |
|
|
99
|
+
| uat | at least one UAT*.md exists | `No UAT files yet. Run /rihal-execute on a phase first.` |
|
|
100
100
|
| code | git repo with at least one commit | `Empty repo — nothing to audit yet.` |
|
|
101
|
-
| fix | a prior audit report exists OR a prior `--report` artefact | `No audit findings yet. Run /rihal
|
|
101
|
+
| fix | a prior audit report exists OR a prior `--report` artefact | `No audit findings yet. Run /rihal-audit first.` |
|
|
102
102
|
| work | inside a git worktree | `Not in a git repo.` |
|
|
103
103
|
|
|
104
104
|
For `milestone` specifically, check the **graceful-degrade** condition
|
|
@@ -112,7 +112,7 @@ if [ "$TARGET" = "milestone" ] && [ "$SUMMARIES" -eq 0 ] && [ "$PLANS" -gt 0 ];
|
|
|
112
112
|
echo " Phases were executed but never formally closed."
|
|
113
113
|
# Offer (yolo: auto-pick 1; guided: ask):
|
|
114
114
|
# 1. Synthesize SUMMARY.md per phase from PLAN.md + git log [recommended]
|
|
115
|
-
# 2. Run /rihal
|
|
115
|
+
# 2. Run /rihal-verify-phase per phase (manual close)
|
|
116
116
|
# 3. Continue audit anyway (will only assess what's documented)
|
|
117
117
|
# 0. Cancel
|
|
118
118
|
fi
|
|
@@ -135,12 +135,12 @@ Run the target's slash command, forwarding remaining args:
|
|
|
135
135
|
|
|
136
136
|
| target | dispatch |
|
|
137
137
|
|---|---|
|
|
138
|
-
| phase | `/rihal
|
|
139
|
-
| milestone | `/rihal
|
|
140
|
-
| uat | `/rihal
|
|
141
|
-
| code | `/rihal
|
|
142
|
-
| fix | `/rihal
|
|
143
|
-
| work | `/rihal
|
|
138
|
+
| phase | `/rihal-verify-phase $REST_ARGS` |
|
|
139
|
+
| milestone | `/rihal-audit-milestone $REST_ARGS` |
|
|
140
|
+
| uat | `/rihal-audit-uat $REST_ARGS` |
|
|
141
|
+
| code | `/rihal-code-review $REST_ARGS --karpathy` |
|
|
142
|
+
| fix | `/rihal-audit-fix $REST_ARGS` |
|
|
143
|
+
| work | `/rihal-verify-work $REST_ARGS` |
|
|
144
144
|
|
|
145
145
|
## Step 6 — Closing summary
|
|
146
146
|
|
|
@@ -153,20 +153,20 @@ Report: {report_path or "(stdout only)"}
|
|
|
153
153
|
Findings: {count}
|
|
154
154
|
|
|
155
155
|
Next:
|
|
156
|
-
/rihal
|
|
157
|
-
/rihal
|
|
158
|
-
/rihal
|
|
156
|
+
/rihal-audit fix — auto-fix findings classified as auto-fixable
|
|
157
|
+
/rihal-audit code — drill into code-quality issues
|
|
158
|
+
/rihal-settings show — review which audit gates are enabled
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
## Success Criteria
|
|
162
162
|
|
|
163
|
-
- [ ] `/rihal
|
|
164
|
-
- [ ] `/rihal
|
|
163
|
+
- [ ] `/rihal-audit` (no args) presents menu in guided mode, auto-picks in yolo
|
|
164
|
+
- [ ] `/rihal-audit milestone` short-circuits the menu
|
|
165
165
|
- [ ] When SUMMARY.md absent but PLAN.md present, milestone offers synthesize/verify/skip — does not dead-halt
|
|
166
166
|
- [ ] Sub-workflow's closing report is surfaced unchanged
|
|
167
167
|
|
|
168
168
|
## On Error
|
|
169
169
|
|
|
170
|
-
- **Sub-workflow not installed** (slash file missing): `Audit subroute '/rihal
|
|
170
|
+
- **Sub-workflow not installed** (slash file missing): `Audit subroute '/rihal-{target}' not found. Run: npx @hanzlaa/rcode install .`
|
|
171
171
|
- **Precondition failed**: print the message from Step 4's table, suggest the unblocking command, STOP.
|
|
172
172
|
- **`.rihal/config.yaml` missing**: treat as `mode: guided`, continue.
|