@hanzlaa/rcode 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -14,15 +14,15 @@ If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
|
14
14
|
|
|
15
15
|
**Usage:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
17
|
+
/rihal-code-review --karpathy <phase> [--files=path1,path2]
|
|
18
|
+
/rihal-code-review --karpathy <git-ref>..HEAD
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
**Examples:**
|
|
22
22
|
```
|
|
23
|
-
/rihal
|
|
24
|
-
/rihal
|
|
25
|
-
/rihal
|
|
23
|
+
/rihal-code-review --karpathy 03
|
|
24
|
+
/rihal-code-review --karpathy 02 --files=src/
|
|
25
|
+
/rihal-code-review --karpathy HEAD~5..HEAD
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
<process>
|
|
@@ -44,7 +44,7 @@ Parse: `phase_found`, `phase_dir`, `phase_number`, `padded_phase`.
|
|
|
44
44
|
|
|
45
45
|
If phase_found is false:
|
|
46
46
|
```
|
|
47
|
-
Error: Phase ${PHASE_ARG} not found. Try /rihal
|
|
47
|
+
Error: Phase ${PHASE_ARG} not found. Try /rihal-code-review --karpathy HEAD~5..HEAD to audit recent commits instead.
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
If git ref format (contains ".." or has no digit at start):
|
|
@@ -343,7 +343,7 @@ Aggregate all findings into a structured report:
|
|
|
343
343
|
---
|
|
344
344
|
|
|
345
345
|
**Generated:** {date}
|
|
346
|
-
**Run:** /rihal
|
|
346
|
+
**Run:** /rihal-code-review --karpathy {original_arguments}
|
|
347
347
|
```
|
|
348
348
|
|
|
349
349
|
Write report to stdout and optionally to file `{phase_dir}/{padded_phase}-KARPATHY-AUDIT.md` if phase mode.
|
|
@@ -369,14 +369,14 @@ If FAIL:
|
|
|
369
369
|
|
|
370
370
|
{list top 3 critical findings}
|
|
371
371
|
|
|
372
|
-
Review the full report above. Use /rihal
|
|
372
|
+
Review the full report above. Use /rihal-code-review-fix to auto-fix some issues.
|
|
373
373
|
```
|
|
374
374
|
|
|
375
375
|
**Next steps:**
|
|
376
376
|
```
|
|
377
377
|
View full report: {report file path}
|
|
378
|
-
Rerun: /rihal
|
|
379
|
-
Auto-fix some issues: /rihal
|
|
378
|
+
Rerun: /rihal-code-review --karpathy {arguments}
|
|
379
|
+
Auto-fix some issues: /rihal-code-review-fix {phase}
|
|
380
380
|
```
|
|
381
381
|
</step>
|
|
382
382
|
|
|
@@ -395,7 +395,7 @@ Auto-fix some issues: /rihal:code-review-fix {phase}
|
|
|
395
395
|
|
|
396
396
|
## On Error
|
|
397
397
|
|
|
398
|
-
- **Phase not found:** suggest `/rihal
|
|
398
|
+
- **Phase not found:** suggest `/rihal-code-review --karpathy HEAD~5..HEAD` as the git-ref fallback.
|
|
399
399
|
- **No source files in diff:** report "no auditable changes in range" and STOP — do not invent findings.
|
|
400
400
|
- **karpathy-guidelines.md missing:** print "Reference doc missing. Run: npx @hanzlaa/rcode install ." and STOP.
|
|
401
401
|
- **Empty diff:** STOP gracefully, do not run principle checks against an empty input.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-list-plans
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Display a table of all SPRINT.md plans across every phase in `.planning/phases/`. Gives a single-screen view of every plan in the project — phase, sprint ID, goal, story counts, point totals, and execution state. Use before starting new work to see what's already planned or in flight.
|
|
@@ -27,7 +27,7 @@ End with totals footer and Next Up routing hint.
|
|
|
27
27
|
If `$ARGUMENTS` contains `--help` or `-h`:
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
/rihal
|
|
30
|
+
/rihal-list-plans [--phase <id>] [--status <state>] [--detail]
|
|
31
31
|
|
|
32
32
|
--phase <id> Filter to one phase (e.g. 04 or 04-dashboard-refresh)
|
|
33
33
|
--status <state> Filter by plan state: todo | active | done | blocked
|
|
@@ -48,7 +48,7 @@ If `$PHASES_DIR` does not exist, print:
|
|
|
48
48
|
No plans yet. This project has no `.planning/phases/` directory.
|
|
49
49
|
|
|
50
50
|
Create the first plan:
|
|
51
|
-
/rihal
|
|
51
|
+
/rihal-plan "<task description>"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
STOP.
|
|
@@ -119,16 +119,16 @@ Totals: {N} plans · {done_stories}/{total_stories} stories · {done_pts}/{total
|
|
|
119
119
|
|
|
120
120
|
Pick ONE suggestion based on the current state:
|
|
121
121
|
|
|
122
|
-
- If there is an `active` plan → `Next: /rihal
|
|
123
|
-
- If no active but todos exist → `Next: /rihal
|
|
124
|
-
- If a plan is `blocked` → `Next: /rihal
|
|
125
|
-
- If all done → `Next: /rihal
|
|
122
|
+
- If there is an `active` plan → `Next: /rihal-sprint-status --sprint <id>` (that plan's sprint ID)
|
|
123
|
+
- If no active but todos exist → `Next: /rihal-execute .planning/phases/<first-todo-phase>/SPRINT.md`
|
|
124
|
+
- If a plan is `blocked` → `Next: /rihal-correct-course --phase <id>`
|
|
125
|
+
- If all done → `Next: /rihal-new-milestone (or `/rihal-sprint-planning` for the next sprint)`
|
|
126
126
|
|
|
127
127
|
If unplanned phases exist, also print:
|
|
128
128
|
|
|
129
129
|
```
|
|
130
130
|
⚠ Phases without SPRINT.md: {list}
|
|
131
|
-
Draft a plan: /rihal
|
|
131
|
+
Draft a plan: /rihal-plan --phase <id>
|
|
132
132
|
```
|
|
133
133
|
</process>
|
|
134
134
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-list-workspaces
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Display all active workspaces with summary status, creation date, and current phase. Use this to understand what parallel work is happening and switch contexts.
|
|
@@ -9,7 +9,7 @@ Display all active workspaces with summary status, creation date, and current ph
|
|
|
9
9
|
If `$ARGUMENTS` contains only `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-list-workspaces [--detail]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
STOP — do not proceed.
|
|
@@ -21,7 +21,7 @@ Verify `.rihal/workspaces.csv` exists. If not:
|
|
|
21
21
|
```
|
|
22
22
|
No workspaces defined yet. Create one:
|
|
23
23
|
|
|
24
|
-
/rihal
|
|
24
|
+
/rihal-new-workspace <name>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
STOP.
|
|
@@ -75,7 +75,7 @@ Workspace: {NAME}
|
|
|
75
75
|
- Active tasks: {count}
|
|
76
76
|
- Phases completed: {count}
|
|
77
77
|
|
|
78
|
-
Use: /rihal
|
|
78
|
+
Use: /rihal-plan <task> --workspace={name}
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## Step 6 — Report
|
|
@@ -85,7 +85,7 @@ If no workspaces:
|
|
|
85
85
|
```
|
|
86
86
|
No workspaces yet. Create one:
|
|
87
87
|
|
|
88
|
-
/rihal
|
|
88
|
+
/rihal-new-workspace <name>
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
Otherwise:
|
|
@@ -93,8 +93,8 @@ Otherwise:
|
|
|
93
93
|
```
|
|
94
94
|
✓ {count} active workspaces
|
|
95
95
|
Use --detail for full status
|
|
96
|
-
Switch: /rihal
|
|
97
|
-
Remove: /rihal
|
|
96
|
+
Switch: /rihal-workspace <name>
|
|
97
|
+
Remove: /rihal-remove-workspace <name>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
## Success Criteria
|
|
@@ -52,13 +52,13 @@ End with closure banner + top findings summary:
|
|
|
52
52
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
53
53
|
|
|
54
54
|
```
|
|
55
|
-
/rihal
|
|
55
|
+
/rihal-map-codebase <argument-here>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Examples:**
|
|
59
59
|
```
|
|
60
|
-
/rihal
|
|
61
|
-
/rihal
|
|
60
|
+
/rihal-map-codebase example 1
|
|
61
|
+
/rihal-map-codebase example 2
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
STOP — do not proceed.
|
|
@@ -404,14 +404,14 @@ Created .planning/codebase/:
|
|
|
404
404
|
|
|
405
405
|
**Initialize project** — use codebase context for planning
|
|
406
406
|
|
|
407
|
-
`/rihal
|
|
407
|
+
`/rihal-new-project`
|
|
408
408
|
|
|
409
409
|
<sub>`/clear` first → fresh context window</sub>
|
|
410
410
|
|
|
411
411
|
---
|
|
412
412
|
|
|
413
413
|
**Also available:**
|
|
414
|
-
- Re-run mapping: `/rihal
|
|
414
|
+
- Re-run mapping: `/rihal-map-codebase`
|
|
415
415
|
- Review specific file: `cat .planning/codebase/STACK.md`
|
|
416
416
|
- Edit any document before proceeding
|
|
417
417
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-milestone-summary
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Generate a human-readable summary of the current or specified milestone, including all phases, decisions, outcomes, and lessons learned. Output can be Markdown (default) or PDF. This creates a narrative view of the entire milestone arc.
|
|
@@ -9,13 +9,13 @@ Generate a human-readable summary of the current or specified milestone, includi
|
|
|
9
9
|
If `$ARGUMENTS` contains only `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-milestone-summary [--format=markdown|pdf] [--include-decisions]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Examples:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
17
|
+
/rihal-milestone-summary
|
|
18
|
+
/rihal-milestone-summary --format=pdf --include-decisions
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
STOP — do not proceed.
|
|
@@ -35,7 +35,7 @@ If not found:
|
|
|
35
35
|
```
|
|
36
36
|
⚠ No active milestone. Create one:
|
|
37
37
|
|
|
38
|
-
/rihal
|
|
38
|
+
/rihal-new-milestone <name>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
STOP. Store path as `$MILESTONE_DIR`.
|
|
@@ -188,8 +188,8 @@ If no phase summaries found:
|
|
|
188
188
|
```
|
|
189
189
|
⚠ No phase summaries in milestone. Execute phases first:
|
|
190
190
|
|
|
191
|
-
/rihal
|
|
192
|
-
/rihal
|
|
191
|
+
/rihal-plan <phase description>
|
|
192
|
+
/rihal-execute <plan-artifact>
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
If ROADMAP.md missing:
|
|
@@ -30,12 +30,12 @@ Read these files in parallel:
|
|
|
30
30
|
- `.planning/PROJECT.md` — existing project, validated requirements, decisions
|
|
31
31
|
- `.planning/MILESTONES.md` — what shipped previously (may not exist on first milestone)
|
|
32
32
|
- `.planning/STATE.md` — pending todos, blockers
|
|
33
|
-
- `.planning/MILESTONE-CONTEXT.md` — if it exists (from a prior `/rihal
|
|
33
|
+
- `.planning/MILESTONE-CONTEXT.md` — if it exists (from a prior `/rihal-discuss` about the next milestone)
|
|
34
34
|
|
|
35
35
|
If `.planning/PROJECT.md` does not exist, STOP and redirect:
|
|
36
36
|
|
|
37
37
|
```
|
|
38
|
-
⚠ No project initialized. Run /rihal
|
|
38
|
+
⚠ No project initialized. Run /rihal-new-project first.
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## 2. Gather milestone goals
|
|
@@ -132,7 +132,7 @@ This document evolves at phase transitions and milestone boundaries.
|
|
|
132
132
|
4. Decisions to log? → add to Key Decisions
|
|
133
133
|
5. "What This Is" still accurate? → update if drifted
|
|
134
134
|
|
|
135
|
-
**After each milestone (via `/rihal
|
|
135
|
+
**After each milestone (via `/rihal-complete-milestone`):**
|
|
136
136
|
1. Full review of all sections
|
|
137
137
|
2. Core Value check
|
|
138
138
|
3. Audit Out of Scope — reasons still valid?
|
|
@@ -182,7 +182,7 @@ Delete `MILESTONE-CONTEXT.md` if it exists (consumed):
|
|
|
182
182
|
rm -f .planning/MILESTONE-CONTEXT.md
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
Clear leftover phase directories from the previous milestone only if the previous milestone was archived (check `.planning/archive/` exists and contains the prior milestone's dir). If not archived, do NOT delete — prompt user to run `/rihal
|
|
185
|
+
Clear leftover phase directories from the previous milestone only if the previous milestone was archived (check `.planning/archive/` exists and contains the prior milestone's dir). If not archived, do NOT delete — prompt user to run `/rihal-complete-milestone` on the prior milestone first.
|
|
186
186
|
|
|
187
187
|
Load commit conventions (see `@.rihal/references/commit-conventions.md` — run the project-local scan before writing the commit message):
|
|
188
188
|
|
|
@@ -236,7 +236,7 @@ fi
|
|
|
236
236
|
If the previous milestone has not been completed/archived, STOP:
|
|
237
237
|
|
|
238
238
|
```
|
|
239
|
-
⚠ Prior milestone not archived. Run /rihal
|
|
239
|
+
⚠ Prior milestone not archived. Run /rihal-complete-milestone v[prev] before --reset-phase-numbers.
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
## 8. Research decision
|
|
@@ -253,7 +253,7 @@ If `research_enabled=false`:
|
|
|
253
253
|
- "Skip research (current default)" — go straight to requirements
|
|
254
254
|
- "Research first" — discover patterns, features, architecture for NEW capabilities
|
|
255
255
|
|
|
256
|
-
**Do NOT persist this choice.** To change the default, the user runs `/rihal
|
|
256
|
+
**Do NOT persist this choice.** To change the default, the user runs `/rihal-settings`.
|
|
257
257
|
|
|
258
258
|
**If "Research first":**
|
|
259
259
|
|
|
@@ -580,9 +580,9 @@ node ".rihal/bin/rihal-tools.cjs" state add-decision \
|
|
|
580
580
|
|
|
581
581
|
`/clear` then:
|
|
582
582
|
|
|
583
|
-
`/rihal
|
|
583
|
+
`/rihal-discuss-phase [N]` — gather context and clarify approach
|
|
584
584
|
or
|
|
585
|
-
`/rihal
|
|
585
|
+
`/rihal-plan [N]` — skip discussion, plan directly
|
|
586
586
|
```
|
|
587
587
|
|
|
588
588
|
</process>
|
|
@@ -601,13 +601,13 @@ or
|
|
|
601
601
|
- [ ] User approval captured before commit
|
|
602
602
|
- [ ] Phase numbering mode respected (continued or reset)
|
|
603
603
|
- [ ] All commits made (or gracefully skipped if .planning/ gitignored)
|
|
604
|
-
- [ ] User shown next command: `/rihal
|
|
604
|
+
- [ ] User shown next command: `/rihal-discuss-phase [N]`
|
|
605
605
|
</success_criteria>
|
|
606
606
|
|
|
607
607
|
<on_error>
|
|
608
608
|
- **Empty `$ARGUMENTS` with no conversational context:** ask for milestone name; do not invent one.
|
|
609
|
-
- **No `.planning/PROJECT.md`:** redirect to `/rihal
|
|
610
|
-
- **Prior milestone not archived + `--reset-phase-numbers`:** stop, tell user to run `/rihal
|
|
609
|
+
- **No `.planning/PROJECT.md`:** redirect to `/rihal-new-project`.
|
|
610
|
+
- **Prior milestone not archived + `--reset-phase-numbers`:** stop, tell user to run `/rihal-complete-milestone` first.
|
|
611
611
|
- **Roadmapper returns ROADMAP BLOCKED:** surface the blocker, collect resolution, re-spawn.
|
|
612
612
|
- **`rihal-tools.cjs state` fails:** continue — state tracking is optional, file artifacts are mandatory.
|
|
613
613
|
- **`.planning/` is gitignored:** write files, print ℹ notice, do not error.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Subworkflow: new-project — Research Phase
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Research phase of /rihal
|
|
4
|
+
Research phase of /rihal-new-project. Loaded from new-project.md via @-reference when user opts into research. Produces research artifacts that feed into Step 7 (Define Requirements) and Step 8 (Create Roadmap).
|
|
5
5
|
|
|
6
6
|
**Invariants from parent:** {project_name}, {planning_artifacts}, {researcher_model}, {synthesizer_model}, {user_preference_research}. Set in new-project.md Steps 1–5.5 before this loads.
|
|
7
7
|
</purpose>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Subworkflow: new-project — Requirements & Roadmap
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
|
-
Requirements + roadmap phase of /rihal
|
|
4
|
+
Requirements + roadmap phase of /rihal-new-project. Loaded from new-project.md via @-reference after setup (and optionally research) complete. Produces PROJECT.md requirements, ROADMAP.md, and the 'Done' signoff.
|
|
5
5
|
|
|
6
6
|
**Invariants from parent:** {project_name}, {planning_artifacts}, research artifacts (if any), PROJECT.md skeleton. Set in new-project.md Steps 1–5.5 (and optionally new-project-research.md).
|
|
7
7
|
</purpose>
|
|
@@ -339,7 +339,7 @@ Present completion summary:
|
|
|
339
339
|
╚══════════════════════════════════════════╝
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
Exit skill and invoke SlashCommand("/rihal
|
|
342
|
+
Exit skill and invoke SlashCommand("/rihal-discuss-phase 1 --auto")
|
|
343
343
|
|
|
344
344
|
**If interactive mode:**
|
|
345
345
|
|
|
@@ -359,15 +359,15 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qi "UI hint.*yes" && echo "true"
|
|
|
359
359
|
|
|
360
360
|
**Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
|
|
361
361
|
|
|
362
|
-
/rihal
|
|
362
|
+
/rihal-discuss-phase 1 — gather context and clarify approach
|
|
363
363
|
|
|
364
364
|
<sub>/clear first → fresh context window</sub>
|
|
365
365
|
|
|
366
366
|
---
|
|
367
367
|
|
|
368
368
|
**Also available:**
|
|
369
|
-
- /rihal
|
|
370
|
-
- /rihal
|
|
369
|
+
- /rihal-ui-phase 1 — generate UI design contract (recommended for frontend phases)
|
|
370
|
+
- /rihal-plan-phase 1 — skip discussion, plan directly
|
|
371
371
|
|
|
372
372
|
───────────────────────────────────────────────────────────────
|
|
373
373
|
```
|
|
@@ -381,14 +381,14 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qi "UI hint.*yes" && echo "true"
|
|
|
381
381
|
|
|
382
382
|
**Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
|
|
383
383
|
|
|
384
|
-
/rihal
|
|
384
|
+
/rihal-discuss-phase 1 — gather context and clarify approach
|
|
385
385
|
|
|
386
386
|
<sub>/clear first → fresh context window</sub>
|
|
387
387
|
|
|
388
388
|
---
|
|
389
389
|
|
|
390
390
|
**Also available:**
|
|
391
|
-
- /rihal
|
|
391
|
+
- /rihal-plan-phase 1 — skip discussion, plan directly
|
|
392
392
|
|
|
393
393
|
───────────────────────────────────────────────────────────────
|
|
394
394
|
```
|
|
@@ -431,7 +431,7 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qi "UI hint.*yes" && echo "true"
|
|
|
431
431
|
- [ ] STATE.md initialized
|
|
432
432
|
- [ ] REQUIREMENTS.md traceability updated
|
|
433
433
|
- [ ] CLAUDE.md generated with Rihal workflow guidance
|
|
434
|
-
- [ ] User knows next step is `/rihal
|
|
434
|
+
- [ ] User knows next step is `/rihal-discuss-phase 1`
|
|
435
435
|
|
|
436
436
|
**Atomic commits:** Each phase commits its artifacts immediately. If context is lost, artifacts persist.
|
|
437
437
|
|
|
@@ -47,7 +47,7 @@ Existing {stack} code found in {path}. Mapping it first will save
|
|
|
47
47
|
duplication during planning.
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Then AskUserQuestion to route to /rihal
|
|
50
|
+
Then AskUserQuestion to route to /rihal-map-codebase before proceeding.
|
|
51
51
|
|
|
52
52
|
**Exiting to map-codebase handoff:**
|
|
53
53
|
```
|
|
@@ -56,9 +56,9 @@ Then AskUserQuestion to route to /rihal:map-codebase before proceeding.
|
|
|
56
56
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
57
57
|
|
|
58
58
|
Per the workflow, mapping runs first. After it finishes I'll re-enter
|
|
59
|
-
/rihal
|
|
59
|
+
/rihal-new-project automatically with the map in hand.
|
|
60
60
|
|
|
61
|
-
Handing off to /rihal
|
|
61
|
+
Handing off to /rihal-map-codebase now.
|
|
62
62
|
```
|
|
63
63
|
</output_format>
|
|
64
64
|
|
|
@@ -68,14 +68,14 @@ Handing off to /rihal:map-codebase now.
|
|
|
68
68
|
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
69
69
|
|
|
70
70
|
```
|
|
71
|
-
/rihal
|
|
71
|
+
/rihal-new-project <argument-here>
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
**Examples:**
|
|
75
75
|
```
|
|
76
|
-
/rihal
|
|
77
|
-
/rihal
|
|
78
|
-
/rihal
|
|
76
|
+
/rihal-new-project employee leave request tracker for an Omani government ministry
|
|
77
|
+
/rihal-new-project car rental marketplace SEO site for Dubai
|
|
78
|
+
/rihal-new-project tasbeeh app with Arabic RTL support for Android
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
STOP — do not proceed.
|
|
@@ -100,9 +100,9 @@ If `$EXISTING` is non-empty (project already initialized):
|
|
|
100
100
|
```
|
|
101
101
|
⚠ A rihal project already exists here.
|
|
102
102
|
|
|
103
|
-
To check current state: /rihal
|
|
104
|
-
To find next action: /rihal
|
|
105
|
-
To start a fresh phase instead: /rihal
|
|
103
|
+
To check current state: /rihal-status
|
|
104
|
+
To find next action: /rihal-next
|
|
105
|
+
To start a fresh phase instead: /rihal-add-phase
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
Only proceed past this step if no project exists (`$EXISTING` is empty).
|
|
@@ -127,7 +127,7 @@ Check if `--auto` flag is present in $ARGUMENTS.
|
|
|
127
127
|
**Document requirement:**
|
|
128
128
|
Auto mode requires an idea document — either:
|
|
129
129
|
|
|
130
|
-
- File reference: `/rihal
|
|
130
|
+
- File reference: `/rihal-new-project --auto @prd.md`
|
|
131
131
|
- Pasted/written text in the prompt
|
|
132
132
|
|
|
133
133
|
If no document content provided, error:
|
|
@@ -136,8 +136,8 @@ If no document content provided, error:
|
|
|
136
136
|
Error: --auto requires an idea document.
|
|
137
137
|
|
|
138
138
|
Usage:
|
|
139
|
-
/rihal
|
|
140
|
-
/rihal
|
|
139
|
+
/rihal-new-project --auto @your-idea.md
|
|
140
|
+
/rihal-new-project --auto [paste or write your idea here]
|
|
141
141
|
|
|
142
142
|
The document should describe what you want to build.
|
|
143
143
|
```
|
|
@@ -186,7 +186,7 @@ if [ "$RUNTIME" = "codex" ]; then INSTRUCTION_FILE="AGENTS.md"; else INSTRUCTION
|
|
|
186
186
|
|
|
187
187
|
All subsequent references to the project instruction file use `$INSTRUCTION_FILE`.
|
|
188
188
|
|
|
189
|
-
**If `project_exists` is true:** Error — project already initialized. Use `/rihal
|
|
189
|
+
**If `project_exists` is true:** Error — project already initialized. Use `/rihal-progress`.
|
|
190
190
|
|
|
191
191
|
**If `has_git` is false:** Initialize git:
|
|
192
192
|
|
|
@@ -216,13 +216,13 @@ Use AskUserQuestion:
|
|
|
216
216
|
- header: "Codebase"
|
|
217
217
|
- question: "I detected existing code in this directory. Would you like to map the codebase first?"
|
|
218
218
|
- options:
|
|
219
|
-
- "Map codebase first" — Run /rihal
|
|
219
|
+
- "Map codebase first" — Run /rihal-map-codebase to understand existing architecture (Recommended)
|
|
220
220
|
- "Skip mapping" — Proceed with targeted discovery
|
|
221
221
|
|
|
222
222
|
**If "Map codebase first":**
|
|
223
223
|
|
|
224
224
|
```
|
|
225
|
-
Run `/rihal
|
|
225
|
+
Run `/rihal-map-codebase` first, then return to `/rihal-new-project`
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
Exit command.
|
|
@@ -585,14 +585,14 @@ Synthesize all context into `.planning/PROJECT.md`. If `.rihal/templates/project
|
|
|
585
585
|
|
|
586
586
|
This document evolves at phase transitions and milestone boundaries.
|
|
587
587
|
|
|
588
|
-
**After each phase transition** (via `/rihal
|
|
588
|
+
**After each phase transition** (via `/rihal-discuss-phase` + `/rihal-plan`):
|
|
589
589
|
1. Requirements invalidated? → Move to Out of Scope with reason
|
|
590
590
|
2. Requirements validated? → Move to Validated with phase reference
|
|
591
591
|
3. New requirements emerged? → Add to Active
|
|
592
592
|
4. Decisions to log? → Add to Key Decisions
|
|
593
593
|
5. "What This Is" still accurate? → Update if drifted
|
|
594
594
|
|
|
595
|
-
**After each milestone** (via `/rihal
|
|
595
|
+
**After each milestone** (via `/rihal-complete-milestone`):
|
|
596
596
|
1. Full review of all sections
|
|
597
597
|
2. Core Value check — still the right priority?
|
|
598
598
|
3. Audit Out of Scope — reasons still valid?
|
|
@@ -761,7 +761,7 @@ cat > .planning/config.json <<EOF
|
|
|
761
761
|
EOF
|
|
762
762
|
```
|
|
763
763
|
|
|
764
|
-
**Note:** Run `/rihal
|
|
764
|
+
**Note:** Run `/rihal-settings` anytime to update model profile, workflow agents, branching strategy, and other preferences.
|
|
765
765
|
|
|
766
766
|
**If commit_docs = No:**
|
|
767
767
|
|
|
@@ -1342,12 +1342,12 @@ The rihal-tools CLI does not expose a `generate-claude-md` subcommand. Instead,
|
|
|
1342
1342
|
This project uses Rihal for planning and execution. See `.planning/PROJECT.md` for context and `.planning/ROADMAP.md` for phases.
|
|
1343
1343
|
|
|
1344
1344
|
Common commands:
|
|
1345
|
-
- /rihal
|
|
1346
|
-
- /rihal
|
|
1347
|
-
- /rihal
|
|
1348
|
-
- /rihal
|
|
1349
|
-
- /rihal
|
|
1350
|
-
- /rihal
|
|
1345
|
+
- /rihal-progress — check status and next action
|
|
1346
|
+
- /rihal-discuss-phase N — gather context before planning phase N
|
|
1347
|
+
- /rihal-plan N — create a SPRINT.md for phase N
|
|
1348
|
+
- /rihal-execute N — execute a SPRINT.md
|
|
1349
|
+
- /rihal-verify-work — conversational UAT
|
|
1350
|
+
- /rihal-complete-milestone — archive milestone and reset
|
|
1351
1351
|
|
|
1352
1352
|
Rules:
|
|
1353
1353
|
- Never run `git push` without explicit user authorization.
|
|
@@ -1403,7 +1403,7 @@ Present completion summary:
|
|
|
1403
1403
|
╚══════════════════════════════════════════╝
|
|
1404
1404
|
```
|
|
1405
1405
|
|
|
1406
|
-
Exit skill and invoke `/rihal
|
|
1406
|
+
Exit skill and invoke `/rihal-discuss-phase 1 --auto`.
|
|
1407
1407
|
|
|
1408
1408
|
**If interactive mode:**
|
|
1409
1409
|
|
|
@@ -1425,13 +1425,13 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qiE "UI|interface|frontend|compon
|
|
|
1425
1425
|
|
|
1426
1426
|
/clear then:
|
|
1427
1427
|
|
|
1428
|
-
/rihal
|
|
1428
|
+
/rihal-discuss-phase 1 — gather context and clarify approach
|
|
1429
1429
|
|
|
1430
1430
|
---
|
|
1431
1431
|
|
|
1432
1432
|
**Also available:**
|
|
1433
|
-
- /rihal
|
|
1434
|
-
- /rihal
|
|
1433
|
+
- /rihal-ui-phase 1 — generate UI design contract (recommended for frontend phases)
|
|
1434
|
+
- /rihal-plan 1 — skip discussion, plan directly
|
|
1435
1435
|
|
|
1436
1436
|
───────────────────────────────────────────────────────────────
|
|
1437
1437
|
```
|
|
@@ -1447,12 +1447,12 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qiE "UI|interface|frontend|compon
|
|
|
1447
1447
|
|
|
1448
1448
|
/clear then:
|
|
1449
1449
|
|
|
1450
|
-
/rihal
|
|
1450
|
+
/rihal-discuss-phase 1 — gather context and clarify approach
|
|
1451
1451
|
|
|
1452
1452
|
---
|
|
1453
1453
|
|
|
1454
1454
|
**Also available:**
|
|
1455
|
-
- /rihal
|
|
1455
|
+
- /rihal-plan 1 — skip discussion, plan directly
|
|
1456
1456
|
|
|
1457
1457
|
───────────────────────────────────────────────────────────────
|
|
1458
1458
|
```
|
|
@@ -1495,7 +1495,7 @@ PHASE1_HAS_UI=$(echo "$PHASE1_SECTION" | grep -qiE "UI|interface|frontend|compon
|
|
|
1495
1495
|
- [ ] STATE.md initialized
|
|
1496
1496
|
- [ ] REQUIREMENTS.md traceability updated
|
|
1497
1497
|
- [ ] `$INSTRUCTION_FILE` generated (if missing) with rihal workflow guidance
|
|
1498
|
-
- [ ] User knows next step is `/rihal
|
|
1498
|
+
- [ ] User knows next step is `/rihal-discuss-phase 1`
|
|
1499
1499
|
- [ ] No `git push` issued by the workflow (per AGENTS.md)
|
|
1500
1500
|
|
|
1501
1501
|
**Atomic commits:** Each phase commits its artifacts immediately. If context is lost, artifacts persist. When `.planning/` is gitignored, files are written but commit is skipped gracefully.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Workflow: rihal
|
|
1
|
+
# Workflow: rihal-new-workspace
|
|
2
2
|
|
|
3
3
|
<purpose>
|
|
4
4
|
Create an isolated workspace for parallel work. Workspaces are independent planning directories with their own ROADMAP, STATE, and phases. Use when multiple concurrent initiatives need to run without interfering (e.g., "Q2 Platform Work" + "Bug Fix Sprint" in parallel).
|
|
@@ -9,13 +9,13 @@ Create an isolated workspace for parallel work. Workspaces are independent plann
|
|
|
9
9
|
If `$ARGUMENTS` is empty or only `--help` or `-h`:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
/rihal
|
|
12
|
+
/rihal-new-workspace <workspace-name> [--from-current]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Examples:**
|
|
16
16
|
```
|
|
17
|
-
/rihal
|
|
18
|
-
/rihal
|
|
17
|
+
/rihal-new-workspace Bug Fix Sprint
|
|
18
|
+
/rihal-new-workspace --from-current Emergency Hotfix
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
STOP — do not proceed.
|
|
@@ -136,10 +136,10 @@ Print:
|
|
|
136
136
|
Location: {WORKSPACE_DIR}
|
|
137
137
|
|
|
138
138
|
Start work:
|
|
139
|
-
/rihal
|
|
139
|
+
/rihal-plan <task> --workspace={WORKSPACE_NAME}
|
|
140
140
|
|
|
141
141
|
Switch context:
|
|
142
|
-
/rihal
|
|
142
|
+
/rihal-workspace {WORKSPACE_NAME}
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
## Success Criteria
|
|
@@ -156,7 +156,7 @@ If workspace with that name already exists:
|
|
|
156
156
|
|
|
157
157
|
```
|
|
158
158
|
⚠ Workspace '{WORKSPACE_NAME}' already exists.
|
|
159
|
-
Use a different name or: /rihal
|
|
159
|
+
Use a different name or: /rihal-remove-workspace {WORKSPACE_NAME}
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
If permissions prevent directory creation:
|