@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
|
- Argument is the phase number to remove (integer or decimal)
|
|
14
|
-
- Example: `/rihal
|
|
15
|
-
- Example: `/rihal
|
|
14
|
+
- Example: `/rihal-remove-phase 17` → phase = 17
|
|
15
|
+
- Example: `/rihal-remove-phase 16.1` → phase = 16.1
|
|
16
16
|
|
|
17
17
|
If no argument provided:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
ERROR: Phase number required
|
|
21
|
-
Usage: /rihal
|
|
22
|
-
Example: /rihal
|
|
21
|
+
Usage: /rihal-remove-phase <phase-number>
|
|
22
|
+
Example: /rihal-remove-phase 17
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Exit.
|
|
@@ -53,7 +53,7 @@ Only future phases can be removed:
|
|
|
53
53
|
- Current phase: {current}
|
|
54
54
|
- Phase {target} is current or completed
|
|
55
55
|
|
|
56
|
-
To abandon current work, use /rihal
|
|
56
|
+
To abandon current work, use /rihal-pause-work instead.
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Exit.
|
|
@@ -126,7 +126,7 @@ Changes:
|
|
|
126
126
|
## What's Next
|
|
127
127
|
|
|
128
128
|
Would you like to:
|
|
129
|
-
- `/rihal
|
|
129
|
+
- `/rihal-progress` — see updated roadmap status
|
|
130
130
|
- Continue with current phase
|
|
131
131
|
- Review roadmap
|
|
132
132
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-remove-workspace
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Remove a workspace and clean up all its artifacts. This is destructive — deleted workspaces cannot be recovered unless `--archive` flag is used. Use when a parallel work stream is complete or abandoned.
|
|
@@ -9,14 +9,14 @@ Remove a workspace and clean up all its artifacts. This is destructive — delet
|
|
|
9
9
|
If `$ARGUMENTS` is empty or only `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-remove-workspace <workspace-name> [--archive] [--force]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Examples:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
17
|
+
/rihal-remove-workspace Bug Fix Sprint
|
|
18
|
+
/rihal-remove-workspace Emergency --force
|
|
19
|
+
/rihal-remove-workspace Old Work --archive
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -33,7 +33,7 @@ If `$WORKSPACE_NAME` is empty, ask:
|
|
|
33
33
|
```
|
|
34
34
|
AskUserQuestion(
|
|
35
35
|
header: "Remove Workspace",
|
|
36
|
-
question: "Which workspace? (list: /rihal
|
|
36
|
+
question: "Which workspace? (list: /rihal-list-workspaces)"
|
|
37
37
|
)
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -47,7 +47,7 @@ If not found:
|
|
|
47
47
|
|
|
48
48
|
```
|
|
49
49
|
⚠ Workspace not found: {WORKSPACE_NAME}
|
|
50
|
-
List workspaces: /rihal
|
|
50
|
+
List workspaces: /rihal-list-workspaces
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
STOP.
|
|
@@ -126,7 +126,7 @@ Print:
|
|
|
126
126
|
[Archive location: {ARCHIVE_PATH}] (if --archive)
|
|
127
127
|
|
|
128
128
|
Remaining workspaces: {count}
|
|
129
|
-
List: /rihal
|
|
129
|
+
List: /rihal-list-workspaces
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
## Success Criteria
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-replay
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Re-run a past council session with the same question for a fresh panel round. Useful when:
|
|
@@ -19,7 +19,7 @@ Open with banner:
|
|
|
19
19
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
End with a single-line redirect (per `command-redirect-format.md`) so the user copy-pastes the resulting `/rihal
|
|
22
|
+
End with a single-line redirect (per `command-redirect-format.md`) so the user copy-pastes the resulting `/rihal-council` invocation.
|
|
23
23
|
</output_format>
|
|
24
24
|
|
|
25
25
|
<required_reading>
|
|
@@ -33,7 +33,7 @@ End with a single-line redirect (per `command-redirect-format.md`) so the user c
|
|
|
33
33
|
If `$ARGUMENTS` is empty or contains only `--help` / `-h`:
|
|
34
34
|
|
|
35
35
|
```
|
|
36
|
-
/rihal
|
|
36
|
+
/rihal-replay <session-path-or-slug> [--agents a,b,c]
|
|
37
37
|
|
|
38
38
|
<session-path-or-slug> Full path to .planning/council-sessions/council-YYYY-MM-DD-<slug>.md
|
|
39
39
|
OR just the slug (e.g. "should-i-ship-v2") — the first matching
|
|
@@ -69,7 +69,7 @@ fi
|
|
|
69
69
|
If no sessions directory exists at all:
|
|
70
70
|
|
|
71
71
|
```
|
|
72
|
-
No council sessions on disk yet. Run /rihal
|
|
72
|
+
No council sessions on disk yet. Run /rihal-council "<question>" to create the first one.
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
STOP.
|
|
@@ -87,7 +87,7 @@ If the extracted question is empty:
|
|
|
87
87
|
```
|
|
88
88
|
Could not extract "## Question" heading from $SESSION_FILE. The artifact may be malformed. Open it and copy the question manually:
|
|
89
89
|
|
|
90
|
-
/rihal
|
|
90
|
+
/rihal-council <question>
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
STOP.
|
|
@@ -126,7 +126,7 @@ Re-running the council with a fresh panel on the original question.
|
|
|
126
126
|
|
|
127
127
|
Copy-paste this:
|
|
128
128
|
|
|
129
|
-
/rihal
|
|
129
|
+
/rihal-council {QUESTION}{agents_suffix}
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
Where `{agents_suffix}` is ` --agents=a,b,c` if `--agents` was passed, else empty.
|
|
@@ -141,7 +141,7 @@ node .rihal/bin/rihal-tools.cjs state add-decision \
|
|
|
141
141
|
2>/dev/null || true
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
The subsequent `/rihal
|
|
144
|
+
The subsequent `/rihal-council` run will attach its own artifact; pairing the two by date + slug lets `/rihal-decisions` and state readers show the replay chain.
|
|
145
145
|
</process>
|
|
146
146
|
|
|
147
147
|
## Success Criteria
|
|
@@ -155,6 +155,6 @@ The subsequent `/rihal:council` run will attach its own artifact; pairing the tw
|
|
|
155
155
|
|
|
156
156
|
## On Error
|
|
157
157
|
|
|
158
|
-
- Missing session directory → tell the user to run `/rihal
|
|
158
|
+
- Missing session directory → tell the user to run `/rihal-council` first
|
|
159
159
|
- Slug ambiguity → list the top 10 newest matches so the user can paste a fuller path
|
|
160
160
|
- Extraction returns empty → print the path and ask the user to copy the question manually
|
package/rihal/workflows/rerun.md
CHANGED
|
@@ -4,13 +4,13 @@ Re-execute a previously completed phase or plan. Resets its state to pending and
|
|
|
4
4
|
|
|
5
5
|
## Step 0: Usage Check
|
|
6
6
|
|
|
7
|
-
Verify argument: `/rihal
|
|
7
|
+
Verify argument: `/rihal-rerun <phase-id|plan-id>`
|
|
8
8
|
|
|
9
9
|
Examples:
|
|
10
|
-
- `/rihal
|
|
11
|
-
- `/rihal
|
|
10
|
+
- `/rihal-rerun 03` — re-run all plans in phase 3
|
|
11
|
+
- `/rihal-rerun 03-02` — re-run specific plan
|
|
12
12
|
|
|
13
|
-
If empty: `Usage: /rihal
|
|
13
|
+
If empty: `Usage: /rihal-rerun <phase-id|plan-id> (e.g., /rihal-rerun 03 or /rihal-rerun 03-02)`
|
|
14
14
|
|
|
15
15
|
## Step 0.5: Detect Target via Resolve
|
|
16
16
|
|
|
@@ -55,7 +55,7 @@ Write updated state.json back
|
|
|
55
55
|
|
|
56
56
|
## Step 3: Invoke Execute
|
|
57
57
|
|
|
58
|
-
Route to `/rihal
|
|
58
|
+
Route to `/rihal-execute-phase {target.id}`
|
|
59
59
|
|
|
60
60
|
The executor will:
|
|
61
61
|
- See status=pending in state.json
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<purpose>
|
|
2
2
|
Research how to implement a phase. Spawns rihal-phase-researcher with phase context.
|
|
3
3
|
|
|
4
|
-
Standalone research command. For most workflows, use `/rihal
|
|
4
|
+
Standalone research command. For most workflows, use `/rihal-plan` which integrates research automatically.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
<available_agent_types>
|
|
@@ -54,7 +54,7 @@ Research implementation approach for Phase {phase}: {name}
|
|
|
54
54
|
</objective>
|
|
55
55
|
|
|
56
56
|
<files_to_read>
|
|
57
|
-
- {context_path} (USER DECISIONS from /rihal
|
|
57
|
+
- {context_path} (USER DECISIONS from /rihal-discuss-phase)
|
|
58
58
|
- {requirements_path} (Project requirements)
|
|
59
59
|
- {state_path} (Project decisions and history)
|
|
60
60
|
</files_to_read>
|
|
@@ -28,7 +28,7 @@ Parse JSON for: `state_exists`, `roadmap_exists`, `project_exists`, `planning_ex
|
|
|
28
28
|
|
|
29
29
|
**If `state_exists` is true:** Proceed to load_state
|
|
30
30
|
**If `state_exists` is false but `roadmap_exists` or `project_exists` is true:** Offer to reconstruct STATE.md
|
|
31
|
-
**If `planning_exists` is false:** This is a new project - route to /rihal
|
|
31
|
+
**If `planning_exists` is false:** This is a new project - route to /rihal-new-project
|
|
32
32
|
</step>
|
|
33
33
|
|
|
34
34
|
<step name="load_state">
|
|
@@ -84,7 +84,7 @@ fi
|
|
|
84
84
|
|
|
85
85
|
**If HANDOFF.json exists:**
|
|
86
86
|
|
|
87
|
-
- This is the primary resumption source — structured data from `/rihal
|
|
87
|
+
- This is the primary resumption source — structured data from `/rihal-pause-work`
|
|
88
88
|
- Parse `status`, `phase`, `plan`, `task`, `total_tasks`, `next_action`
|
|
89
89
|
- Check `blockers` and `human_actions_pending` — surface these immediately
|
|
90
90
|
- Check `completed_tasks` for `in_progress` items — these need attention first
|
|
@@ -140,7 +140,7 @@ Present complete project status to user:
|
|
|
140
140
|
Resume with: Task tool (resume parameter with agent ID)
|
|
141
141
|
|
|
142
142
|
[If pending todos exist:]
|
|
143
|
-
📋 [N] pending todos — /rihal
|
|
143
|
+
📋 [N] pending todos — /rihal-check-todos to review
|
|
144
144
|
|
|
145
145
|
[If blockers exist:]
|
|
146
146
|
⚠️ Carried concerns:
|
|
@@ -200,11 +200,11 @@ What would you like to do?
|
|
|
200
200
|
[Primary action based on state - e.g.:]
|
|
201
201
|
1. Resume interrupted agent [if interrupted agent found]
|
|
202
202
|
OR
|
|
203
|
-
1. Execute phase (/rihal
|
|
203
|
+
1. Execute phase (/rihal-execute-phase {phase} ${Rihal_WS})
|
|
204
204
|
OR
|
|
205
|
-
1. Discuss Phase 3 context (/rihal
|
|
205
|
+
1. Discuss Phase 3 context (/rihal-discuss-phase 3 ${Rihal_WS}) [if CONTEXT.md missing]
|
|
206
206
|
OR
|
|
207
|
-
1. Plan Phase 3 (/rihal
|
|
207
|
+
1. Plan Phase 3 (/rihal-plan 3 ${Rihal_WS}) [if CONTEXT.md exists or discuss option declined]
|
|
208
208
|
|
|
209
209
|
[Secondary options:]
|
|
210
210
|
2. Review current phase status
|
|
@@ -237,7 +237,7 @@ Based on user selection, route to appropriate workflow:
|
|
|
237
237
|
|
|
238
238
|
`/clear` then:
|
|
239
239
|
|
|
240
|
-
`/rihal
|
|
240
|
+
`/rihal-execute-phase {phase} ${Rihal_WS}`
|
|
241
241
|
|
|
242
242
|
---
|
|
243
243
|
```
|
|
@@ -251,13 +251,13 @@ Based on user selection, route to appropriate workflow:
|
|
|
251
251
|
|
|
252
252
|
`/clear` then:
|
|
253
253
|
|
|
254
|
-
`/rihal
|
|
254
|
+
`/rihal-plan [phase-number] ${Rihal_WS}`
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|
|
258
258
|
**Also available:**
|
|
259
|
-
- `/rihal
|
|
260
|
-
- `/rihal
|
|
259
|
+
- `/rihal-discuss-phase [N] ${Rihal_WS}` — gather context first
|
|
260
|
+
- `/rihal-research-phase [N] ${Rihal_WS}` — investigate unknowns
|
|
261
261
|
|
|
262
262
|
---
|
|
263
263
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-review-adversarial
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Assume an adversarial/hostile perspective and audit code for weaknesses: SQL injection, XSS, race conditions, data loss scenarios, unauthorized access, abuse cases, denial of service vectors. Output attack/weakness report that feeds into story AC or subtasks.
|
|
@@ -10,13 +10,13 @@ Assume an adversarial/hostile perspective and audit code for weaknesses: SQL inj
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-review-adversarial <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-review-adversarial example 1
|
|
19
|
+
/rihal-review-adversarial example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-review-edge-case-hunter
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Systematically enumerate edge cases by category (input, state, concurrency, network) with severity (critical/high/medium/low). Callable during code-review.md workflow. Output feeds into story AC or subtasks. Focuses on "what breaks?" rather than security.
|
|
@@ -10,13 +10,13 @@ Systematically enumerate edge cases by category (input, state, concurrency, netw
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-review-edge-case-hunter <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-review-edge-case-hunter example 1
|
|
19
|
+
/rihal-review-edge-case-hunter example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -196,7 +196,7 @@ AskUserQuestion([
|
|
|
196
196
|
|
|
197
197
|
If "Yes, find edge cases":
|
|
198
198
|
```
|
|
199
|
-
/rihal
|
|
199
|
+
/rihal-review-edge-case-hunter --phase {current_phase}
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
## Success Criteria
|
|
@@ -39,7 +39,7 @@ No external AI CLIs found. Install at least one:
|
|
|
39
39
|
- claude: https://github.com/anthropics/claude-code
|
|
40
40
|
- opencode: https://opencode.ai (leverages GitHub Copilot subscription models)
|
|
41
41
|
|
|
42
|
-
Then run /rihal
|
|
42
|
+
Then run /rihal-review again.
|
|
43
43
|
```
|
|
44
44
|
Exit.
|
|
45
45
|
|
|
@@ -135,7 +135,7 @@ Focus on:
|
|
|
135
135
|
Output your review in markdown format.
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
Write to a temp file: `/tmp/rihal
|
|
138
|
+
Write to a temp file: `/tmp/rihal-review-prompt-{phase}.md`
|
|
139
139
|
</step>
|
|
140
140
|
|
|
141
141
|
<step name="invoke_reviewers">
|
|
@@ -143,17 +143,17 @@ For each selected CLI, invoke in sequence (not parallel — avoid rate limits):
|
|
|
143
143
|
|
|
144
144
|
**Gemini:**
|
|
145
145
|
```bash
|
|
146
|
-
gemini -p "$(cat /tmp/rihal
|
|
146
|
+
gemini -p "$(cat /tmp/rihal-review-prompt-{phase}.md)" 2>/dev/null > /tmp/rihal-review-gemini-{phase}.md
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
**Claude (separate session):**
|
|
150
150
|
```bash
|
|
151
|
-
claude -p "$(cat /tmp/rihal
|
|
151
|
+
claude -p "$(cat /tmp/rihal-review-prompt-{phase}.md)" 2>/dev/null > /tmp/rihal-review-claude-{phase}.md
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
**Codex:**
|
|
155
155
|
```bash
|
|
156
|
-
codex exec --skip-git-repo-check "$(cat /tmp/rihal
|
|
156
|
+
codex exec --skip-git-repo-check "$(cat /tmp/rihal-review-prompt-{phase}.md)" 2>/dev/null > /tmp/rihal-review-codex-{phase}.md
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
**CodeRabbit:**
|
|
@@ -161,14 +161,14 @@ codex exec --skip-git-repo-check "$(cat /tmp/rihal:review-prompt-{phase}.md)" 2>
|
|
|
161
161
|
Note: CodeRabbit reviews the current git diff/working tree — it does not accept a prompt. It may take up to 5 minutes. Use `timeout: 360000` on the Bash tool call.
|
|
162
162
|
|
|
163
163
|
```bash
|
|
164
|
-
coderabbit review --prompt-only 2>/dev/null > /tmp/rihal
|
|
164
|
+
coderabbit review --prompt-only 2>/dev/null > /tmp/rihal-review-coderabbit-{phase}.md
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
**OpenCode (via GitHub Copilot):**
|
|
168
168
|
```bash
|
|
169
|
-
cat /tmp/rihal
|
|
170
|
-
if [ ! -s /tmp/rihal
|
|
171
|
-
echo "OpenCode review failed or returned empty output." > /tmp/rihal
|
|
169
|
+
cat /tmp/rihal-review-prompt-{phase}.md | opencode run - 2>/dev/null > /tmp/rihal-review-opencode-{phase}.md
|
|
170
|
+
if [ ! -s /tmp/rihal-review-opencode-{phase}.md ]; then
|
|
171
|
+
echo "OpenCode review failed or returned empty output." > /tmp/rihal-review-opencode-{phase}.md
|
|
172
172
|
fi
|
|
173
173
|
```
|
|
174
174
|
|
|
@@ -264,7 +264,7 @@ Consensus concerns:
|
|
|
264
264
|
Full review: {padded_phase}-REVIEWS.md
|
|
265
265
|
|
|
266
266
|
To incorporate feedback into planning:
|
|
267
|
-
/rihal
|
|
267
|
+
/rihal-plan {N} --reviews
|
|
268
268
|
```
|
|
269
269
|
|
|
270
270
|
Clean up temp files.
|
|
@@ -277,5 +277,5 @@ Clean up temp files.
|
|
|
277
277
|
- [ ] REVIEWS.md written with structured feedback
|
|
278
278
|
- [ ] Consensus summary synthesized from multiple reviewers
|
|
279
279
|
- [ ] Temp files cleaned up
|
|
280
|
-
- [ ] User knows how to use feedback (/rihal
|
|
280
|
+
- [ ] User knows how to use feedback (/rihal-plan --reviews)
|
|
281
281
|
</success_criteria>
|
package/rihal/workflows/scan.md
CHANGED
|
@@ -20,16 +20,16 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
20
20
|
|
|
21
21
|
**Usage:**
|
|
22
22
|
```
|
|
23
|
-
/rihal
|
|
23
|
+
/rihal-scan [--focus tech|arch|quality|concerns|tech+arch] [--refresh] [--reset]
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
**Examples:**
|
|
27
27
|
```
|
|
28
|
-
/rihal
|
|
29
|
-
/rihal
|
|
30
|
-
/rihal
|
|
31
|
-
/rihal
|
|
32
|
-
/rihal
|
|
28
|
+
/rihal-scan --focus tech
|
|
29
|
+
/rihal-scan --focus arch
|
|
30
|
+
/rihal-scan --focus tech+arch
|
|
31
|
+
/rihal-scan --refresh # auto-update stale docs, brief diff, log to CHANGELOG.md
|
|
32
|
+
/rihal-scan --reset --focus tech+arch # silent overwrite (CI / autonomous)
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
**Refresh flag — memory-bank pattern.** When `--refresh` is passed AND existing docs are present, the orchestrator:
|
|
@@ -327,21 +327,21 @@ Insert at the TOP of the file body (newest-first), under any pre-existing `# Cha
|
|
|
327
327
|
```markdown
|
|
328
328
|
# Changelog — Codebase Memory Bank
|
|
329
329
|
|
|
330
|
-
This file tracks structural changes between scans. Each entry is auto-written by `/rihal
|
|
330
|
+
This file tracks structural changes between scans. Each entry is auto-written by `/rihal-scan --refresh`. Newest entries first.
|
|
331
331
|
|
|
332
332
|
---
|
|
333
333
|
|
|
334
334
|
{first entry here}
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
This file is **read by future `/rihal
|
|
337
|
+
This file is **read by future `/rihal-scan --refresh` runs** as additional anchor context — the memory bank is self-improving across scans.
|
|
338
338
|
|
|
339
339
|
## Step 7: Final cue (orchestrator-level, after RETURNED banner)
|
|
340
340
|
|
|
341
341
|
The RETURNED banner above is Dalil's voice. After it, the orchestrator may add ONE neutral cue line if the user might want a deeper scan:
|
|
342
342
|
|
|
343
343
|
```
|
|
344
|
-
Tip: `/rihal
|
|
344
|
+
Tip: `/rihal-map-codebase` runs a 4-area parallel scan if you want broader coverage.
|
|
345
345
|
```
|
|
346
346
|
|
|
347
347
|
Skip this cue if the user already asked for a focused scan — don't push an upsell.
|
|
@@ -19,13 +19,13 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
19
19
|
|
|
20
20
|
**Usage:**
|
|
21
21
|
```
|
|
22
|
-
/rihal
|
|
22
|
+
/rihal-secure-phase <phase>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**Examples:**
|
|
26
26
|
```
|
|
27
|
-
/rihal
|
|
28
|
-
/rihal
|
|
27
|
+
/rihal-secure-phase 01
|
|
28
|
+
/rihal-secure-phase 02.1
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
<process>
|
|
@@ -45,7 +45,7 @@ AUDITOR_MODEL=$(node ".rihal/bin/rihal-tools.cjs" resolve-model rihal-security-a
|
|
|
45
45
|
SECURITY_CFG=$(node ".rihal/bin/rihal-tools.cjs" config-get workflow.security_enforcement --raw 2>/dev/null || echo "true")
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
If `SECURITY_CFG` is `false`: exit with "Security enforcement disabled. Enable via /rihal
|
|
48
|
+
If `SECURITY_CFG` is `false`: exit with "Security enforcement disabled. Enable via /rihal-settings."
|
|
49
49
|
|
|
50
50
|
Display banner: `Rihal > SECURE PHASE {N}: {name}`
|
|
51
51
|
|
|
@@ -59,7 +59,7 @@ SUMMARY_FILES=$(ls "${PHASE_DIR}"/*-SUMMARY.md 2>/dev/null)
|
|
|
59
59
|
|
|
60
60
|
- **State A** (`SECURITY_FILE` non-empty): Audit existing
|
|
61
61
|
- **State B** (`SECURITY_FILE` empty, `PLAN_FILES` and `SUMMARY_FILES` non-empty): Run from artifacts
|
|
62
|
-
- **State C** (`SUMMARY_FILES` empty): Exit — "Phase {N} not executed. Run /rihal
|
|
62
|
+
- **State C** (`SUMMARY_FILES` empty): Exit — "Phase {N} not executed. Run /rihal-execute {N} first."
|
|
63
63
|
|
|
64
64
|
## 2. Discovery
|
|
65
65
|
|
|
@@ -140,7 +140,7 @@ Handle return:
|
|
|
140
140
|
```
|
|
141
141
|
Rihal > PHASE {N} SECURITY BLOCKED
|
|
142
142
|
{K} threats open — phase advancement blocked until threats_open: 0
|
|
143
|
-
▶ Fix mitigations then re-run: /rihal
|
|
143
|
+
▶ Fix mitigations then re-run: /rihal-secure-phase {N}
|
|
144
144
|
▶ Or document accepted risks in SECURITY.md and re-run.
|
|
145
145
|
```
|
|
146
146
|
|
|
@@ -158,8 +158,8 @@ node ".rihal/bin/rihal-tools.cjs" commit "docs(phase-${PHASE}): add/update secur
|
|
|
158
158
|
```
|
|
159
159
|
Rihal > PHASE {N} THREAT-SECURE
|
|
160
160
|
threats_open: 0 — all threats have dispositions.
|
|
161
|
-
▶ /rihal
|
|
162
|
-
▶ /rihal
|
|
161
|
+
▶ /rihal-validate {N} validate test coverage
|
|
162
|
+
▶ /rihal-verify-work {N} run UAT
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
Display `/clear` reminder.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-session-report
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Generate a comprehensive session report covering work done, token usage estimation, commits, decisions, blockers, and council sessions. Writes SESSION-REPORT-{date}.md to .planning/ directory.
|
|
@@ -10,13 +10,13 @@ Generate a comprehensive session report covering work done, token usage estimati
|
|
|
10
10
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/rihal
|
|
13
|
+
/rihal-session-report <argument-here>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Examples:**
|
|
17
17
|
```
|
|
18
|
-
/rihal
|
|
19
|
-
/rihal
|
|
18
|
+
/rihal-session-report example 1
|
|
19
|
+
/rihal-session-report example 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
STOP — do not proceed.
|
|
@@ -32,7 +32,7 @@ test -f .rihal/state.json && echo "exists" || echo "missing"
|
|
|
32
32
|
If missing, print and stop:
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
No state found. Run /rihal
|
|
35
|
+
No state found. Run /rihal-council or execute a plan to initialize state.
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Step 2 — Read state
|
|
@@ -153,7 +153,7 @@ Write `.planning/SESSION-REPORT-{YYYY-MM-DD-HHmmss}.md` with this structure:
|
|
|
153
153
|
## Next Steps
|
|
154
154
|
|
|
155
155
|
- Address {count} open blocker(s) before proceeding
|
|
156
|
-
- Plan next phase with `/rihal
|
|
156
|
+
- Plan next phase with `/rihal-plan-phase {next_phase}`
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
## Step 8 — Print confirmation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-settings
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
View and edit Rihal project settings stored in `.rihal/config.yaml`. Closes
|
|
@@ -16,18 +16,18 @@ wizard writes are settings that workflows actually honour.
|
|
|
16
16
|
If `$ARGUMENTS` contains `--help` or `-h`:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
/rihal
|
|
20
|
-
/rihal
|
|
21
|
-
/rihal
|
|
22
|
-
/rihal
|
|
19
|
+
/rihal-settings # show current + interactive edit
|
|
20
|
+
/rihal-settings show # show current only
|
|
21
|
+
/rihal-settings get <key> # read a single dotted key (e.g. workflow.discuss_mode)
|
|
22
|
+
/rihal-settings set <key> <value> # write a single dotted key
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**Examples:**
|
|
26
26
|
```
|
|
27
|
-
/rihal
|
|
28
|
-
/rihal
|
|
29
|
-
/rihal
|
|
30
|
-
/rihal
|
|
27
|
+
/rihal-settings show
|
|
28
|
+
/rihal-settings get workflow.research_by_default
|
|
29
|
+
/rihal-settings set workflow.research_by_default true
|
|
30
|
+
/rihal-settings set git.branching_strategy feature-branch
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Step 1 — Resolve mode
|
|
@@ -88,7 +88,7 @@ Current Rihal Settings (.rihal/config.yaml)
|
|
|
88
88
|
git.commit_docs : {value} # true | false
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
If invoked as `/rihal
|
|
91
|
+
If invoked as `/rihal-settings show`, STOP here.
|
|
92
92
|
|
|
93
93
|
## Step 1.7 — `get <key>`
|
|
94
94
|
|
|
@@ -165,20 +165,20 @@ Print:
|
|
|
165
165
|
```
|
|
166
166
|
✓ Settings saved to .rihal/config.yaml
|
|
167
167
|
|
|
168
|
-
Tip: settings take effect on the next workflow run. Use /rihal
|
|
169
|
-
to verify, or /rihal
|
|
168
|
+
Tip: settings take effect on the next workflow run. Use /rihal-settings show
|
|
169
|
+
to verify, or /rihal-resume-work to reload context.
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
## Success Criteria
|
|
173
173
|
|
|
174
|
-
- [ ] `/rihal
|
|
175
|
-
- [ ] `/rihal
|
|
174
|
+
- [ ] `/rihal-settings show` prints all 11 keys (no `(unset)` for keys with defaults)
|
|
175
|
+
- [ ] `/rihal-settings set workflow.discuss_mode discuss` round-trips: `config-get` returns `discuss`
|
|
176
176
|
- [ ] After any save, sibling keys in `workflow:` and `git:` blocks are preserved (no nesting corruption)
|
|
177
177
|
- [ ] Unknown keys are rejected with the allowed-keys table
|
|
178
178
|
|
|
179
179
|
## On Error
|
|
180
180
|
|
|
181
|
-
- **`.rihal/config.yaml` missing:** print "No config found. Run /rihal
|
|
181
|
+
- **`.rihal/config.yaml` missing:** print "No config found. Run /rihal-init first." and STOP.
|
|
182
182
|
- **Invalid key:** print the allowed keys from Step 1.5 and STOP.
|
|
183
183
|
- **Invalid value:** print the allowed values for that key and STOP.
|
|
184
184
|
- **`rihal-tools.cjs` missing:** print "Run: npx @hanzlaa/rcode install ." and STOP.
|
package/rihal/workflows/ship.md
CHANGED
|
@@ -12,8 +12,8 @@ the plan → execute → verify → **ship** loop.
|
|
|
12
12
|
6. Updates STATE.md with shipping status
|
|
13
13
|
|
|
14
14
|
**Preconditions (all must be true before running):**
|
|
15
|
-
- `/rihal
|
|
16
|
-
- `/rihal
|
|
15
|
+
- `/rihal-execute <phase>` completed
|
|
16
|
+
- `/rihal-verify-phase <phase>` passed (VERIFICATION.md exists with `status: passed`)
|
|
17
17
|
- You are on a feature branch (not main/develop directly)
|
|
18
18
|
- `gh` CLI is authenticated (`gh auth status`)
|
|
19
19
|
|
|
@@ -25,10 +25,10 @@ the plan → execute → verify → **ship** loop.
|
|
|
25
25
|
|
|
26
26
|
**Typical usage:**
|
|
27
27
|
```
|
|
28
|
-
/rihal
|
|
29
|
-
/rihal
|
|
30
|
-
/rihal
|
|
31
|
-
/rihal
|
|
28
|
+
/rihal-plan 1 → plan the phase
|
|
29
|
+
/rihal-execute 1 → build it
|
|
30
|
+
/rihal-verify-phase 1 → prove it works
|
|
31
|
+
/rihal-ship 1 → PR it ← you are here
|
|
32
32
|
```
|
|
33
33
|
</purpose>
|
|
34
34
|
|
|
@@ -241,8 +241,8 @@ Requirements: {N} REQ-IDs addressed
|
|
|
241
241
|
Next steps:
|
|
242
242
|
- Review/approve PR
|
|
243
243
|
- Merge when CI passes
|
|
244
|
-
- /rihal
|
|
245
|
-
- /rihal
|
|
244
|
+
- /rihal-complete-milestone (if last phase in milestone)
|
|
245
|
+
- /rihal-progress (to see what's next)
|
|
246
246
|
|
|
247
247
|
───────────────────────────────────────────────────────────────
|
|
248
248
|
```
|
|
@@ -253,9 +253,9 @@ Next steps:
|
|
|
253
253
|
<offer_next>
|
|
254
254
|
After shipping:
|
|
255
255
|
|
|
256
|
-
- /rihal
|
|
257
|
-
- /rihal
|
|
258
|
-
- /rihal
|
|
256
|
+
- /rihal-complete-milestone — if all phases in milestone are done
|
|
257
|
+
- /rihal-progress — see overall project state
|
|
258
|
+
- /rihal-execute-phase {next} — continue to next phase
|
|
259
259
|
</offer_next>
|
|
260
260
|
|
|
261
261
|
<success_criteria>
|