@hanzlaa/rcode 3.4.3 → 3.4.5
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/AGENTS.md +1 -1
- package/CONTRIBUTING.md +63 -1
- package/README.md +9 -4
- package/cli/generate-command-skills.cjs +5 -5
- package/cli/index.js +0 -0
- package/cli/install.js +128 -3
- package/cli/lib/manifest.cjs +1 -1
- package/cli/uninstall.js +8 -0
- package/dist/rcode.js +19 -1
- package/package.json +16 -17
- package/rihal/agents/rihal-ahmed.md +2 -1
- package/rihal/agents/rihal-code-fixer.md +46 -0
- package/rihal/agents/rihal-code-reviewer.md +46 -1
- package/rihal/agents/rihal-deviation-analyzer.md +1 -0
- package/rihal/agents/rihal-docs-auditor.md +106 -1
- package/rihal/agents/rihal-edge-case-hunter.md +47 -1
- package/rihal/agents/rihal-executor.md +1 -1
- package/rihal/agents/rihal-khalid.md +40 -1
- package/rihal/agents/rihal-layla.md +2 -1
- package/rihal/agents/rihal-nasser.md +2 -1
- package/rihal/agents/rihal-noor.md +3 -2
- package/rihal/agents/rihal-nyquist-auditor.md +1 -1
- package/rihal/agents/rihal-phase-researcher.md +46 -1
- package/rihal/agents/rihal-planner.md +1 -1
- package/rihal/agents/rihal-profiler.md +45 -2
- package/rihal/agents/rihal-project-researcher.md +47 -0
- package/rihal/agents/rihal-remediation-planner.md +45 -0
- package/rihal/agents/rihal-roadmapper.md +46 -0
- package/rihal/agents/rihal-security-adversary.md +46 -1
- package/rihal/agents/rihal-security-auditor.md +45 -1
- package/rihal/agents/rihal-ui-auditor.md +44 -1
- package/rihal/agents/rihal-ux-designer.md +41 -1
- package/rihal/agents/rihal-zahra.md +2 -1
- package/rihal/agents/rihal-zayd.md +2 -1
- package/rihal/bin/lib/config.cjs +13 -1
- package/rihal/bin/lib/council-panel.cjs +185 -23
- package/rihal/bin/lib/roadmap.cjs +27 -2
- package/rihal/bin/rihal-tools.cjs +1837 -99
- package/rihal/commands/audit.md +2 -2
- package/rihal/commands/capture.md +12 -0
- package/rihal/commands/diagnose-issues.md +18 -0
- package/rihal/commands/discuss-phase-power.md +18 -0
- package/rihal/commands/feature-drift.md +18 -0
- package/rihal/commands/karpathy-audit.md +18 -0
- package/rihal/commands/lens-audit.md +70 -0
- package/rihal/commands/new-project-research.md +18 -0
- package/rihal/commands/new-project-roadmap.md +18 -0
- package/rihal/commands/phase.md +11 -0
- package/rihal/references/continuation-format.md +3 -3
- package/rihal/references/output-format.md +79 -0
- package/rihal/references/revision-loop.md +1 -1
- package/rihal/references/verb-dictionary.md +85 -28
- package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +1 -1
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +12 -2
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-04-final-validation.md +12 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +12 -2
- package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +12 -2
- package/rihal/skills/actions/4-implementation/rihal-browser-verify/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-ci/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +16 -4
- package/rihal/skills/actions/4-implementation/rihal-debug/SKILL.md +14 -1
- package/rihal/skills/actions/4-implementation/rihal-git-flow/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-harden/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-incremental/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-migrate/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-perf/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-prove-it/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-01-target.md +6 -0
- package/rihal/skills/actions/4-implementation/rihal-source-truth/SKILL.md +1 -1
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +14 -3
- package/rihal/skills/actions/4-implementation/rihal-trim/SKILL.md +1 -1
- package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +15 -1
- package/rihal/skills/agents/dalil-scout/SKILL.md +14 -2
- package/rihal/skills/agents/fatima-qa/SKILL.md +16 -1
- package/rihal/skills/agents/haitham-frontend/SKILL.md +13 -1
- package/rihal/skills/agents/hanzla-engineer/SKILL.md +13 -1
- package/rihal/skills/agents/hussain-pm/SKILL.md +16 -1
- package/rihal/skills/agents/hussain-sm/SKILL.md +14 -1
- package/rihal/skills/agents/layla-designer/SKILL.md +13 -1
- package/rihal/skills/agents/majlis-council/SKILL.md +16 -1
- package/rihal/skills/agents/mariam-marketing/SKILL.md +14 -1
- package/rihal/skills/agents/nasser-eng-manager/SKILL.md +16 -1
- package/rihal/skills/agents/noor-writer/SKILL.md +15 -1
- package/rihal/skills/agents/raees-orchestrator/SKILL.md +15 -1
- package/rihal/skills/agents/rihal-cross-platform-auditor/SKILL.md +162 -0
- package/rihal/skills/agents/rihal-dep-auditor/SKILL.md +151 -0
- package/rihal/skills/agents/rihal-deviation-analyzer/SKILL.md +78 -0
- package/rihal/skills/agents/rihal-i18n-auditor/SKILL.md +152 -0
- package/rihal/skills/agents/rihal-observability-auditor/SKILL.md +156 -0
- package/rihal/skills/agents/sadiq-analyst/SKILL.md +12 -2
- package/rihal/skills/agents/waleed-architect/SKILL.md +12 -2
- package/rihal/skills/agents/yousef-backend/SKILL.md +12 -2
- package/rihal/skills/agents/zahra-branding/SKILL.md +15 -1
- package/rihal/skills/agents/zayd-ml/SKILL.md +13 -1
- package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +2 -2
- package/rihal/skills/core/rihal-auth-audit/SKILL.md +1 -1
- package/rihal/skills/core/rihal-brainstorming/SKILL.md +13 -2
- package/rihal/skills/core/rihal-client-gate/SKILL.md +1 -1
- package/rihal/skills/core/rihal-clone-website/SKILL.md +11 -1
- package/rihal/skills/core/rihal-deploy-unify/SKILL.md +1 -1
- package/rihal/skills/core/rihal-distillator/SKILL.md +2 -2
- package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +1 -1
- package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +2 -2
- package/rihal/skills/core/rihal-help/SKILL.md +18 -1
- package/rihal/skills/core/rihal-incident-record/SKILL.md +1 -1
- package/rihal/skills/core/rihal-index-docs/SKILL.md +1 -1
- package/rihal/skills/core/rihal-memory-audit/SKILL.md +18 -1
- package/rihal/skills/core/rihal-memory-init/SKILL.md +13 -1
- package/rihal/skills/core/rihal-memory-update/SKILL.md +13 -1
- package/rihal/skills/core/rihal-mvp-graduate/SKILL.md +1 -1
- package/rihal/skills/core/rihal-ocr-consistency/SKILL.md +1 -1
- package/rihal/skills/core/rihal-rebrand/SKILL.md +1 -1
- package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +1 -1
- package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +17 -1
- package/rihal/skills/core/rihal-shard-doc/SKILL.md +1 -1
- package/rihal/skills/core/rihal-theme-system/SKILL.md +1 -1
- package/rihal/team.yaml +0 -7
- package/rihal/templates/RESEARCH.md +84 -0
- package/rihal/templates/VALIDATION.md +45 -0
- package/rihal/templates/memory/INDEX.md +1 -0
- package/rihal/templates/memory/project/design-system.md +128 -0
- package/rihal/templates/summary.md +33 -3
- package/rihal/workflows/add-tests.md +1 -1
- package/rihal/workflows/add-todo.md +6 -0
- package/rihal/workflows/analyze-dependencies.md +6 -0
- package/rihal/workflows/audit-fix.md +12 -0
- package/rihal/workflows/audit-milestone.md +2 -2
- package/rihal/workflows/audit.md +23 -14
- package/rihal/workflows/autonomous-smart-discuss.md +247 -0
- package/rihal/workflows/autonomous.md +54 -267
- package/rihal/workflows/capture.md +60 -0
- package/rihal/workflows/chain.md +1 -1
- package/rihal/workflows/code-review-fix.md +6 -3
- package/rihal/workflows/code-review.md +34 -10
- package/rihal/workflows/complete-milestone.md +17 -8
- package/rihal/workflows/correct-course.md +6 -0
- package/rihal/workflows/council.md +37 -23
- package/rihal/workflows/create-architecture.md +31 -0
- package/rihal/workflows/create-epics-and-stories.md +7 -1
- package/rihal/workflows/create-prd.md +25 -0
- package/rihal/workflows/dashboard.md +1 -1
- package/rihal/workflows/debug.md +8 -0
- package/rihal/workflows/decisions.md +1 -1
- package/rihal/workflows/diff.md +6 -0
- package/rihal/workflows/discuss-phase-discuss-areas.md +271 -0
- package/rihal/workflows/discuss-phase.md +27 -266
- package/rihal/workflows/do.md +51 -12
- package/rihal/workflows/docs-update.md +3 -0
- package/rihal/workflows/document-project.md +7 -1
- package/rihal/workflows/edit-prd.md +31 -0
- package/rihal/workflows/enable-hooks.md +1 -1
- package/rihal/workflows/execute-regression-gates.md +131 -0
- package/rihal/workflows/execute-sprint.md +31 -2
- package/rihal/workflows/execute-verify-phase-goal.md +136 -0
- package/rihal/workflows/execute-waves.md +404 -0
- package/rihal/workflows/execute.md +101 -642
- package/rihal/workflows/feature-drift.md +243 -0
- package/rihal/workflows/forensics.md +10 -2
- package/rihal/workflows/health.md +65 -16
- package/rihal/workflows/help.md +36 -9
- package/rihal/workflows/import.md +17 -3
- package/rihal/workflows/init.md +20 -10
- package/rihal/workflows/install.md +2 -10
- package/rihal/workflows/lens-audit.md +689 -0
- package/rihal/workflows/map-codebase.md +7 -1
- package/rihal/workflows/memory-audit.md +67 -5
- package/rihal/workflows/memory-distill.md +10 -0
- package/rihal/workflows/memory-init.md +4 -0
- package/rihal/workflows/memory-update.md +4 -0
- package/rihal/workflows/new-milestone.md +7 -1
- package/rihal/workflows/new-project-create-roadmap.md +176 -0
- package/rihal/workflows/new-project-define-requirements.md +160 -0
- package/rihal/workflows/new-project-research-decision.md +247 -0
- package/rihal/workflows/new-project.md +3 -557
- package/rihal/workflows/note.md +1 -1
- package/rihal/workflows/phase.md +54 -0
- package/rihal/workflows/plan-milestone-gaps.md +1 -1
- package/rihal/workflows/plan-prd-express.md +108 -0
- package/rihal/workflows/plan-research-validation.md +313 -0
- package/rihal/workflows/plan-spawn-planner.md +204 -0
- package/rihal/workflows/plan.md +91 -532
- package/rihal/workflows/plant-seed.md +1 -1
- package/rihal/workflows/pr-branch.md +1 -1
- package/rihal/workflows/profile-user.md +1 -1
- package/rihal/workflows/quick.md +3 -3
- package/rihal/workflows/remove-phase.md +6 -1
- package/rihal/workflows/remove-workspace.md +6 -0
- package/rihal/workflows/rerun.md +1 -1
- package/rihal/workflows/research-phase.md +4 -2
- package/rihal/workflows/resume-work.md +8 -3
- package/rihal/workflows/retrospective.md +31 -0
- package/rihal/workflows/review-adversarial.md +12 -0
- package/rihal/workflows/review.md +6 -0
- package/rihal/workflows/scaffold-project.md +31 -0
- package/rihal/workflows/scan.md +10 -0
- package/rihal/workflows/secure-phase.md +15 -2
- package/rihal/workflows/session-report.md +32 -7
- package/rihal/workflows/ship.md +7 -2
- package/rihal/workflows/show.md +6 -0
- package/rihal/workflows/sprint-status.md +4 -4
- package/rihal/workflows/status.md +2 -2
- package/rihal/workflows/ui-phase.md +1 -1
- package/rihal/workflows/undo.md +2 -3
- package/rihal/workflows/update.md +2 -2
- package/rihal/workflows/validate-phase.md +1 -1
- package/rihal/workflows/validate-prd.md +31 -0
- package/rihal/workflows/verify-phase.md +38 -5
- package/rihal/workflows/verify-work.md +25 -11
- package/rihal/workflows/workstream.md +20 -8
- package/server/lib/html/client.js +13 -63
- package/server/lib/html/shell.js +0 -1
- package/server/lib/scanner.js +33 -2
package/rihal/commands/audit.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rihal-audit
|
|
3
|
-
description: Single audit entry point — asks what to audit (phase, milestone, UAT, code, fix, work) and dispatches to the right subroute. Honours .rihal/config.yaml mode.
|
|
4
|
-
argument-hint: "[phase | milestone | uat | code | fix | work] [...subroute args]"
|
|
3
|
+
description: Single audit entry point — asks what to audit (phase, milestone, UAT, code, fix, work, lens) and dispatches to the right subroute. Honours .rihal/config.yaml mode.
|
|
4
|
+
argument-hint: "[phase | milestone | uat | code | fix | work | lens [<1-15> | all]] [...subroute args]"
|
|
5
5
|
allowed-tools: Read, Write, Bash, AskUserQuestion
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-capture
|
|
3
|
+
description: Capture a thought as todo (default), note, seed, or list pending — unified entry replacing /rihal-add-todo, /rihal-note, /rihal-plant-seed, /rihal-check-todos.
|
|
4
|
+
argument-hint: "[text] [--note] [--seed] [--list]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
@.rihal/workflows/capture.md
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-diagnose-issues
|
|
3
|
+
description: Reusable diagnosis subroutine. Walks symptom → hypothesis → evidence → minimal reproduction → fix recommendation. Called from verify-work when verification fails.
|
|
4
|
+
argument-hint: "[symptom description]"
|
|
5
|
+
allowed-tools: Read, Bash, Glob, Grep
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Diagnose systemic issues by walking through symptom, hypothesis, evidence, and minimal reproduction steps.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/diagnose-issues.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the diagnose-issues workflow from @.rihal/workflows/diagnose-issues.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-discuss-phase-power
|
|
3
|
+
description: Power user mode for discuss-phase. Generates all questions upfront into a JSON state file and HTML companion UI, then processes all answers in one pass to produce CONTEXT.md.
|
|
4
|
+
argument-hint: "<phase-number>"
|
|
5
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Power mode discuss-phase: batch all questions upfront, collect answers at user's pace, produce CONTEXT.md in one processing pass.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/discuss-phase-power.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the discuss-phase-power workflow from @.rihal/workflows/discuss-phase-power.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-feature-drift
|
|
3
|
+
description: "Detect drift between PRD, epics, stories, and code. Severity-tagged report; --fix patches trivial items only. Reuses verifier-loop pattern from /rihal-docs-update."
|
|
4
|
+
argument-hint: "[--fix] [--scope phase|project] [phase-number]"
|
|
5
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, Task, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Execute feature-drift workflow
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/feature-drift.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the feature-drift workflow from @.rihal/workflows/feature-drift.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-karpathy-audit
|
|
3
|
+
description: Audit source code changes against Andrej Karpathy's 4 LLM coding principles. Flags unclear assumptions, overengineering, surgical violations, and stubs.
|
|
4
|
+
argument-hint: "[--files <glob>] [--since <commit>]"
|
|
5
|
+
allowed-tools: Read, Bash, Glob, Grep
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Audit code changes against Karpathy's 4 principles and return structured findings with severity and fix guidance.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/karpathy-audit.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the karpathy-audit workflow from @.rihal/workflows/karpathy-audit.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-lens-audit
|
|
3
|
+
triggers:
|
|
4
|
+
- rihal-lens-audit
|
|
5
|
+
- lens audit
|
|
6
|
+
- lens audit karo
|
|
7
|
+
- run lens audit
|
|
8
|
+
- audit with lens
|
|
9
|
+
- audit lens
|
|
10
|
+
- specific lens audit
|
|
11
|
+
- run security lens
|
|
12
|
+
- run performance lens
|
|
13
|
+
- run testability lens
|
|
14
|
+
- run all lenses
|
|
15
|
+
- 15 lens audit
|
|
16
|
+
not-for:
|
|
17
|
+
- phase audit (use /rihal-audit phase)
|
|
18
|
+
- milestone audit (use /rihal-audit milestone)
|
|
19
|
+
- karpathy audit without lens context (use /rihal-code-review --karpathy)
|
|
20
|
+
description: Run a structured 15-lens code audit. Picks one lens or all 15 sequentially. Prints findings and ready-to-paste GitHub issue bodies. Never auto-fixes — audit-first.
|
|
21
|
+
argument-hint: "[<1-15> | <lens-name> | all]"
|
|
22
|
+
allowed-tools: Read, Write, Bash, AskUserQuestion
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Overview
|
|
26
|
+
|
|
27
|
+
15-lens audit entry point. Each lens is an independent inspection angle:
|
|
28
|
+
security, performance, testability, extensibility, dep-health, error-recovery,
|
|
29
|
+
state-machine, i18n, documentation, cross-platform, karpathy, sxo,
|
|
30
|
+
observability, naming, coverage.
|
|
31
|
+
|
|
32
|
+
Runs the selected lens(es), prints labelled findings, outputs GH issue bodies
|
|
33
|
+
for each lens with findings. Never modifies files — audit-first, fix-second.
|
|
34
|
+
|
|
35
|
+
## Workflow
|
|
36
|
+
|
|
37
|
+
@.rihal/workflows/lens-audit.md
|
|
38
|
+
|
|
39
|
+
## Output Format
|
|
40
|
+
|
|
41
|
+
Per-lens labelled finding blocks, then a summary banner with counts, then
|
|
42
|
+
foldable GitHub issue bodies ready to copy-paste or pipe to `gh issue create`.
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
**Happy path — interactive:**
|
|
47
|
+
```
|
|
48
|
+
/rihal-lens-audit
|
|
49
|
+
→ shows lens picker, user selects 1 (security)
|
|
50
|
+
→ runs security lens, prints findings, prints GH issue body
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Happy path — direct:**
|
|
54
|
+
```
|
|
55
|
+
/rihal-lens-audit security
|
|
56
|
+
/rihal-lens-audit 3
|
|
57
|
+
/rihal-lens-audit all
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Edge — no findings:**
|
|
61
|
+
```
|
|
62
|
+
/rihal-lens-audit 5
|
|
63
|
+
→ ✓ Lens 5 (dep-health): no findings
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Negative — wrong lens number:**
|
|
67
|
+
```
|
|
68
|
+
/rihal-lens-audit 99
|
|
69
|
+
→ Error: lens must be 1-15 or a lens name. Run /rihal-lens-audit --help.
|
|
70
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-new-project-research
|
|
3
|
+
description: Research subcommand for new-project. Deep research phase producing artifacts that feed into requirements and roadmap generation.
|
|
4
|
+
argument-hint: "[--deep] [--domain <domain>]"
|
|
5
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, WebSearch, WebFetch
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Execute the research phase of new-project setup: produce research artifacts consumed by requirements and roadmap steps.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/new-project-research.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the new-project-research subworkflow from @.rihal/workflows/new-project-research.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-new-project-roadmap
|
|
3
|
+
description: Roadmap subcommand for new-project. Generates PROJECT.md requirements, ROADMAP.md, and the Done signoff after setup and optional research.
|
|
4
|
+
argument-hint: "[--from-research]"
|
|
5
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Execute the requirements + roadmap phase of new-project: produce PROJECT.md, REQUIREMENTS.md, and ROADMAP.md.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.rihal/workflows/new-project-roadmap.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the new-project-roadmap subworkflow from @.rihal/workflows/new-project-roadmap.md end-to-end.
|
|
18
|
+
</process>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rihal-phase
|
|
3
|
+
description: Phase CRUD — add (default), insert decimal, or remove. Unified entry replacing /rihal-add-phase, /rihal-insert-phase, /rihal-remove-phase.
|
|
4
|
+
argument-hint: "[name] [--insert <after>] [--remove <id>]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
@.rihal/workflows/phase.md
|
|
@@ -44,7 +44,7 @@ Standard format for presenting next steps after completing a command or workflow
|
|
|
44
44
|
|
|
45
45
|
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
46
46
|
|
|
47
|
-
`/rihal-execute
|
|
47
|
+
`/rihal-execute 2`
|
|
48
48
|
|
|
49
49
|
<sub>`/clear` first → fresh context window</sub>
|
|
50
50
|
|
|
@@ -69,7 +69,7 @@ Add note that this is the last plan and what comes after:
|
|
|
69
69
|
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
70
70
|
<sub>Final plan in Phase 2</sub>
|
|
71
71
|
|
|
72
|
-
`/rihal-execute
|
|
72
|
+
`/rihal-execute 2`
|
|
73
73
|
|
|
74
74
|
<sub>`/clear` first → fresh context window</sub>
|
|
75
75
|
|
|
@@ -214,7 +214,7 @@ Extract: `**02-03: Refresh Token Rotation** — Add /api/auth/refresh with slidi
|
|
|
214
214
|
## To Continue
|
|
215
215
|
|
|
216
216
|
Run `/clear`, then paste:
|
|
217
|
-
/rihal-execute
|
|
217
|
+
/rihal-execute 2
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
User has no idea what 02-03 is about.
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
<ui_patterns>
|
|
2
2
|
|
|
3
|
+
## Workflow Step Heading (canonical format)
|
|
4
|
+
|
|
5
|
+
All workflows MUST use `## Step N — {Name}` for top-level steps. No other format.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
## Step 1 — Parse arguments
|
|
9
|
+
## Step 2 — Load state
|
|
10
|
+
## Step 3 — Spawn agents
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
**Deprecated forms (do not use in new or updated workflows):**
|
|
14
|
+
- `<step name="...">` — XML-tag format (legacy, still accepted by agents but not for new workflows)
|
|
15
|
+
- `### Step N` — wrong heading level
|
|
16
|
+
- `**Step N:**` — bold-text format
|
|
17
|
+
|
|
18
|
+
When refactoring a workflow, convert its steps to `## Step N — {Name}` incrementally. Do not leave a mix of formats within the same workflow.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Subagent Output Format Contract
|
|
23
|
+
|
|
24
|
+
When spawning a subagent with `Task()`, the spawning prompt MUST include a brief expected output section so the sub-agent produces machine-parseable results. Minimal template:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
## Expected output format
|
|
28
|
+
{One of: JSON object / Markdown report / Plain text / VERIFICATION.md schema}
|
|
29
|
+
Return exactly this format — no extra commentary before or after.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Workflows that omit this cause silent format mismatches where the orchestrator cannot parse the sub-agent's response.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
|
|
3
37
|
Visual patterns for user-facing Rihal output. Orchestrators @-reference this file.
|
|
4
38
|
|
|
5
39
|
## Stage Banners
|
|
@@ -307,6 +341,50 @@ Use agent emoji + bilingual name prefix once per turn. No repeat in same respons
|
|
|
307
341
|
|
|
308
342
|
---
|
|
309
343
|
|
|
344
|
+
## RTL / Arabic Output Safety
|
|
345
|
+
|
|
346
|
+
When `response_language` is Arabic or another RTL language, bidi-unaware terminals
|
|
347
|
+
corrupt fixed-width ASCII art (banners, progress bars) when Arabic text is embedded
|
|
348
|
+
inside them. Follow these rules to avoid visual corruption:
|
|
349
|
+
|
|
350
|
+
**Banner stage names:** Always keep stage names in **English** even when
|
|
351
|
+
`response_language` is Arabic. The `━━━` border lines are width-sensitive; mixed
|
|
352
|
+
RTL characters inside them break alignment. Place the Arabic description **below**
|
|
353
|
+
the banner, not inside it.
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
357
|
+
RIHAL ► PLANNING SPRINT 01.1
|
|
358
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
359
|
+
التخطيط للسباق 01.1 — يرجى الانتظار
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
**Progress bars:** Keep the bar characters (`█░`) and percentages on their own line.
|
|
363
|
+
Put the Arabic label on a separate preceding line:
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
التقدم:
|
|
367
|
+
████████░░ 80%
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Do **not** embed Arabic text inside the bar line — it reverses the order of `%` and digits in bidi terminals.
|
|
371
|
+
|
|
372
|
+
**Checkpoint boxes:** The `╔ ═ ╚` box characters are LTR-anchored. Place Arabic
|
|
373
|
+
content in the body paragraph below the box, not as the box heading:
|
|
374
|
+
|
|
375
|
+
```
|
|
376
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
377
|
+
║ CHECKPOINT: Verification Required ║
|
|
378
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
379
|
+
|
|
380
|
+
هل تمت المراجعة؟ اكتب "approved" للمتابعة.
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
**General rule:** ASCII-art structure (borders, bars, arrows) stays in LTR. All
|
|
384
|
+
translated prose goes outside the art, on its own line(s).
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
310
388
|
## Anti-Patterns
|
|
311
389
|
|
|
312
390
|
- Varying box/banner widths within same output
|
|
@@ -315,5 +393,6 @@ Use agent emoji + bilingual name prefix once per turn. No repeat in same respons
|
|
|
315
393
|
- Random emoji (`🚀`, `✨`, `💫`) outside the approved set
|
|
316
394
|
- Missing Next Up block after workflow completions
|
|
317
395
|
- Hardcoding references to other methodologies in rihal's UX
|
|
396
|
+
- Embedding Arabic/RTL text inside fixed-width ASCII banners or progress bars
|
|
318
397
|
|
|
319
398
|
</ui_patterns>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plan Revision Loop
|
|
2
2
|
|
|
3
3
|
When `workflow.plan_checker` is enabled (`/rihal-settings`), `/rihal-plan`
|
|
4
|
-
runs the rihal-
|
|
4
|
+
runs the rihal-sprint-checker after the planner. Findings drive a bounded
|
|
5
5
|
revision loop:
|
|
6
6
|
|
|
7
7
|
1. Planner produces PLAN.md.
|
|
@@ -1,72 +1,102 @@
|
|
|
1
1
|
# Verb Dictionary — multilingual intent matching
|
|
2
2
|
|
|
3
|
-
**Purpose:** single source of truth for action verbs across all Rihal workflows that do intent matching. Without this, each workflow's matcher diverges and Roman Urdu / Hindi instructions silently miss.
|
|
3
|
+
**Purpose:** single source of truth for action verbs across all Rihal workflows that do intent matching. Without this, each workflow's matcher diverges and Roman Urdu / Hindi / Arabic instructions silently miss.
|
|
4
4
|
|
|
5
5
|
**How to use from a workflow:** include this file via `@.rihal/references/verb-dictionary.md` and reference categories by name (e.g. *"verbs from §Create"*) instead of restating English-only lists inline.
|
|
6
6
|
|
|
7
|
+
**Arabic priority:** Rihal's primary user base operates in Arabic. Native Arabic script (المشروع, مرحلة, راجع) MUST be in every category — transliteration is a fallback for keyboard input only. When you see a new Arabic phrasing in user input, add the native script first, then the transliteration.
|
|
8
|
+
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
## §Create — make / start / new / open
|
|
10
12
|
|
|
11
13
|
Match if `$QUESTION` contains any of these (case-insensitive):
|
|
12
14
|
|
|
13
|
-
- **English:** `create`, `make`, `start`, `build`, `set up`, `setup`, `kick off`, `spin up`, `open`, `begin`, `draft`, `generate`, `produce`, `initialize`, `init`, `bootstrap`, `establish`, `form`
|
|
15
|
+
- **English:** `create`, `make`, `start`, `build`, `set up`, `setup`, `kick off`, `spin up`, `open`, `begin`, `draft`, `generate`, `produce`, `initialize`, `init`, `bootstrap`, `establish`, `form`, `new`
|
|
14
16
|
- **Roman Urdu / Hindi:** `bnao`, `banao`, `bana do`, `bnado`, `banaa`, `banade`, `banayein`, `banadijiye`, `shuru karo`, `shuro karo`, `start karo`, `create karo`, `naya banao`, `nya banao`, `draft karo`, `banalo`, `khol do`, `khol lo`, `kholiye`
|
|
15
|
-
- **Arabic
|
|
17
|
+
- **Arabic native:** `أنشئ`, `أنشأ`, `ابدأ`, `اعمل`, `افتح`, `كوّن`, `كون`, `أسس`, `اصنع`, `أوجد`, `سوّي`, `سوي`, `جديد`, `جديدة`, `ابني`, `ابن`, `هيّئ`
|
|
18
|
+
- **Arabic transliteration:** `anshi'`, `inshaa'`, `ibda'`, `i3mal`, `iftah`, `kawwen`, `asses`, `isna3`, `awjid`, `sawwi`, `jadid`, `jadida`
|
|
16
19
|
|
|
17
20
|
## §Add — append / include / attach / extend
|
|
18
21
|
|
|
19
22
|
- **English:** `add`, `append`, `include`, `attach`, `insert`, `extend`, `expand`, `register`
|
|
20
23
|
- **Roman Urdu / Hindi:** `add karo`, `daal do`, `daalo`, `daal de`, `jor do`, `jor de`, `lagao`, `lagado`, `shamil karo`, `shaamil karo`, `barhao`
|
|
21
|
-
- **Arabic
|
|
24
|
+
- **Arabic native:** `أضف`, `زِد`, `ضمّ`, `أرفق`, `أدمج`, `ألحق`, `أدخل`, `أضِف`
|
|
25
|
+
- **Arabic transliteration:** `adhif`, `azif`, `zid`, `dhomm`, `arfeq`, `admij`, `alheq`
|
|
22
26
|
|
|
23
27
|
## §Plan — design / scope / outline
|
|
24
28
|
|
|
25
29
|
- **English:** `plan`, `design`, `draft`, `scope`, `outline`, `architect`, `lay out`, `schedule`
|
|
26
30
|
- **Roman Urdu / Hindi:** `plan karo`, `design karo`, `sochlo`, `soch lo`, `layout banao`, `tarteeb do`, `tartib karo`
|
|
27
|
-
- **Arabic
|
|
31
|
+
- **Arabic native:** `خطّط`, `خطط`, `صمّم`, `صمم`, `رتّب`, `رتب`, `نظّم`, `حدّد`, `هيكلة`, `خطة`, `تصميم`
|
|
32
|
+
- **Arabic transliteration:** `khattit`, `tasmim`, `sammim`, `rattib`, `nazzim`, `haddid`, `hayakla`
|
|
28
33
|
|
|
29
34
|
## §Execute — run / build / ship / implement / do
|
|
30
35
|
|
|
31
36
|
- **English:** `execute`, `run`, `build`, `ship`, `complete`, `do`, `implement`, `deliver`, `finish`, `wrap up`, `compile`
|
|
32
37
|
- **Roman Urdu / Hindi:** `chalao`, `chala do`, `run karo`, `kar do`, `kardo`, `kar lo`, `karlo`, `implement karo`, `mukammal karo`, `complete karo`, `khatam karo`, `pura karo`
|
|
33
|
-
- **Arabic
|
|
38
|
+
- **Arabic native:** `نفّذ`, `نفذ`, `أكمل`, `اكمل`, `أنجز`, `شغّل`, `شغل`, `حقّق`, `سلّم`, `بنّ`, `ابنِ`, `أنهِ`, `جهّز`
|
|
39
|
+
- **Arabic transliteration:** `naffidh`, `nafidh`, `aakmel`, `akmil`, `anjiz`, `shaghghil`, `haqqiq`, `sallim`, `jahhiz`
|
|
34
40
|
|
|
35
41
|
## §Review — audit / check / inspect / verify / validate
|
|
36
42
|
|
|
37
|
-
- **English:** `review`, `audit`, `check`, `inspect`, `verify`, `validate`, `examine`, `assess`, `evaluate`
|
|
43
|
+
- **English:** `review`, `audit`, `check`, `inspect`, `verify`, `validate`, `examine`, `assess`, `evaluate`, `look over`, `go over`, `spot check`
|
|
38
44
|
- **Roman Urdu / Hindi:** `dekho`, `dekh lo`, `dekhlo`, `check karo`, `audit karo`, `verify karo`, `validate karo`, `parkho`, `parakhh`, `mulahiza karo`, `nazar dalo`, `jaiza lo`
|
|
39
|
-
- **Arabic
|
|
45
|
+
- **Arabic native:** `راجع`, `تحقّق`, `تحقق`, `افحص`, `دقّق`, `دقق`, `تأكّد`, `تأكد`, `فتّش`, `فتش`, `قيّم`, `قيم`, `تفقّد`, `مراجعة`, `فحص`, `تدقيق`
|
|
46
|
+
- **Arabic transliteration:** `raji3`, `tahaqqaq`, `ifhas`, `daqqaq`, `ta'akkad`, `fattish`, `qayyim`, `tafaqqad`
|
|
40
47
|
|
|
41
48
|
## §Show — list / display / get / fetch / see
|
|
42
49
|
|
|
43
50
|
- **English:** `show`, `list`, `display`, `get`, `fetch`, `see`, `view`, `print`, `output`, `summarize`
|
|
44
51
|
- **Roman Urdu / Hindi:** `dikhao`, `dikha do`, `dikhado`, `dikha de`, `list karo`, `batao`, `bata do`, `bata de`, `kholo`, `khol do`
|
|
45
|
-
- **Arabic
|
|
52
|
+
- **Arabic native:** `أظهر`, `أرني`, `اعرض`, `اعرضها`, `شاهد`, `اطبع`, `لخّص`, `لخص`, `بيّن`, `بين`, `قائمة`, `اعرض القائمة`
|
|
53
|
+
- **Arabic transliteration:** `azhir`, `arini`, `i3rid`, `shahid`, `itba3`, `lakhkhis`, `bayyin`, `qa'ima`
|
|
46
54
|
|
|
47
55
|
## §Remove — delete / drop / undo / revert / kill
|
|
48
56
|
|
|
49
57
|
- **English:** `remove`, `delete`, `drop`, `undo`, `revert`, `rollback`, `kill`, `purge`, `uninstall`, `clear`, `wipe`, `erase`
|
|
50
58
|
- **Roman Urdu / Hindi:** `hatao`, `hata do`, `hatado`, `mita do`, `mita lo`, `mitao`, `delete karo`, `ulto`, `revert karo`, `nikalo`, `nikal do`, `khaali karo`
|
|
51
|
-
- **Arabic
|
|
59
|
+
- **Arabic native:** `احذف`, `أزل`, `ألغِ`, `الغ`, `امسح`, `أبطل`, `تراجع`, `أرجع`, `أزِل`, `حذف`
|
|
60
|
+
- **Arabic transliteration:** `ihdhif`, `azil`, `alghi`, `imsah`, `ibtil`, `taraja3`, `arji3`
|
|
52
61
|
|
|
53
62
|
## §Update — modify / change / edit / refresh / fix
|
|
54
63
|
|
|
55
64
|
- **English:** `update`, `modify`, `change`, `edit`, `refresh`, `fix`, `patch`, `tweak`, `adjust`, `correct`, `repair`
|
|
56
65
|
- **Roman Urdu / Hindi:** `update karo`, `badlo`, `badal do`, `badal de`, `change karo`, `edit karo`, `theek karo`, `theek kar do`, `thiek karo`, `fix karo`, `behtar karo`, `behter karo`, `improve karo`
|
|
57
|
-
- **Arabic
|
|
66
|
+
- **Arabic native:** `غيّر`, `غير`, `عدّل`, `عدل`, `أصلح`, `اصلح`, `حدّث`, `حدث`, `رقّع`, `صحّح`, `صحح`, `حسّن`, `حسن`, `تحديث`, `تعديل`
|
|
67
|
+
- **Arabic transliteration:** `ghayyir`, `aslih`, `haddith`, `raqqi3`, `sahheh`, `hassen`, `ta3deel`, `tahdeeth`
|
|
58
68
|
|
|
59
69
|
## §Pause — stop / wait / hold / cancel
|
|
60
70
|
|
|
61
71
|
- **English:** `pause`, `stop`, `wait`, `hold`, `cancel`, `abort`, `halt`, `freeze`, `defer`
|
|
62
72
|
- **Roman Urdu / Hindi:** `ruko`, `ruk jao`, `band karo`, `band kardo`, `cancel karo`, `roko`, `rok do`, `rok de`, `pause karo`, `wapas karo`
|
|
63
|
-
- **Arabic
|
|
73
|
+
- **Arabic native:** `توقّف`, `توقف`, `انتظر`, `أوقف`, `علّق`, `علق`, `إلغاء`, `أجّل`, `أجل`
|
|
74
|
+
- **Arabic transliteration:** `tawaqqaf`, `intazir`, `awqif`, `3alliq`, `ajjil`, `ilgha'`
|
|
64
75
|
|
|
65
76
|
## §Resume — continue / pick up / restart
|
|
66
77
|
|
|
67
78
|
- **English:** `resume`, `continue`, `pick up`, `restart`, `re-run`, `replay`, `re-do`, `keep going`, `proceed`
|
|
68
79
|
- **Roman Urdu / Hindi:** `phir se shuru karo`, `aage barho`, `aage chalao`, `continue karo`, `wapas chalao`, `dobara chalao`, `dobara karo`
|
|
69
|
-
- **Arabic
|
|
80
|
+
- **Arabic native:** `استمرّ`, `استمر`, `أعد`, `تابع`, `أكمل`, `ارجع`, `استأنف`, `كمّل`, `واصل`
|
|
81
|
+
- **Arabic transliteration:** `astamir`, `i'ad`, `tabi3`, `akmil`, `arji3`, `ista'naf`, `kammil`, `wasel`
|
|
82
|
+
|
|
83
|
+
## §Find — search / locate / discover / hunt
|
|
84
|
+
|
|
85
|
+
(New category — captures "find edge cases", "find bugs", "look for", which the original dictionary missed.)
|
|
86
|
+
|
|
87
|
+
- **English:** `find`, `search`, `locate`, `discover`, `hunt`, `surface`, `uncover`, `look for`, `identify`, `detect`
|
|
88
|
+
- **Roman Urdu / Hindi:** `dhoondo`, `dhoondh do`, `talash karo`, `khojo`, `dekho kahan`, `pata karo`, `find karo`, `search karo`
|
|
89
|
+
- **Arabic native:** `ابحث`, `جِد`, `اكتشف`, `استكشف`, `حدّد`, `بيّن`, `اعثر`, `استخرج`, `بحث`
|
|
90
|
+
- **Arabic transliteration:** `ibhath`, `jid`, `iktashif`, `i3thar`, `istakhrij`, `bahath`
|
|
91
|
+
|
|
92
|
+
## §Quality — bad code / smell / issues / problems
|
|
93
|
+
|
|
94
|
+
(New category — captures "bad code practices", "code smells", "issues" used in audit-style requests.)
|
|
95
|
+
|
|
96
|
+
- **English:** `bad code`, `code smell`, `smells`, `issues`, `problems`, `bugs`, `gotchas`, `pitfalls`, `anti-patterns`, `bad practices`, `tech debt`, `quality gaps`, `lint issues`
|
|
97
|
+
- **Roman Urdu / Hindi:** `kharab code`, `bad code`, `mistakes`, `ghaltiyan`, `masail`, `bug bug karo`, `quality check`
|
|
98
|
+
- **Arabic native:** `كود سيّئ`, `كود سيء`, `أخطاء`, `مشاكل`, `عيوب`, `ثغرات`, `جودة الكود`, `أنماط سيّئة`
|
|
99
|
+
- **Arabic transliteration:** `code sayyi'`, `akhta'`, `mashakil`, `3uyub`, `thaghrat`, `jawdat al-code`
|
|
70
100
|
|
|
71
101
|
---
|
|
72
102
|
|
|
@@ -74,21 +104,23 @@ Match if `$QUESTION` contains any of these (case-insensitive):
|
|
|
74
104
|
|
|
75
105
|
These are matched alongside §Create / §Add / §Plan verbs to determine the dispatch route.
|
|
76
106
|
|
|
77
|
-
| Scope noun | Aliases (English + Urdu) | Maps to (workflow) |
|
|
107
|
+
| Scope noun | Aliases (English + Urdu + Arabic) | Maps to (workflow) |
|
|
78
108
|
|---|---|---|
|
|
79
|
-
| milestone | `milestone`, `milestones`, `release`, `version`, `cycle
|
|
80
|
-
| phase | `phase`, `phases
|
|
81
|
-
| story | `story`, `stories`, `user story`, `kahani
|
|
82
|
-
| epic | `epic`, `epics`, `epics and stories
|
|
83
|
-
| sprint | `sprint`, `iteration
|
|
84
|
-
| PRD | `PRD`, `requirements doc`, `product requirements
|
|
85
|
-
| roadmap | `roadmap`, `plan` (top-level) | `/rihal-create-milestone` |
|
|
86
|
-
| council | `council`, `majlis`, `panel`, `mashwara`, `salah
|
|
87
|
-
| plan (verb form — "plan phase N") | `plan
|
|
88
|
-
| story (impl) | `dev story`, `implement story`, `build story
|
|
89
|
-
| brainstorm | `brainstorm`, `ideas`, `sochain`, `sochna
|
|
90
|
-
| review (code) | `code review`, `karpathy`, `check my diff
|
|
91
|
-
|
|
|
109
|
+
| milestone | `milestone`, `milestones`, `release`, `version`, `cycle`, **AR:** `معلم`, `إصدار`, `دورة`, `مرحلة كبرى` | `/rihal-new-milestone` |
|
|
110
|
+
| phase | `phase`, `phases`, **AR:** `مرحلة`, `مراحل`, `طور`, `فاز` | `/rihal-add-phase` |
|
|
111
|
+
| story | `story`, `stories`, `user story`, `kahani`, **AR:** `قصة`, `قصص`, `قصة مستخدم` | `/rihal-create-story` |
|
|
112
|
+
| epic | `epic`, `epics`, `epics and stories`, **AR:** `ملحمة`, `ملاحم`, `فصل`, `فصول` | `/rihal-create-epics-and-stories` |
|
|
113
|
+
| sprint | `sprint`, `iteration`, **AR:** `سباق`, `جولة`, `دورة عمل`, `سبرنت` | `/rihal-sprint-planning` |
|
|
114
|
+
| PRD | `PRD`, `requirements doc`, `product requirements`, **AR:** `وثيقة المتطلبات`, `متطلبات المنتج`, `وثيقة المنتج` | `/rihal-create-prd` |
|
|
115
|
+
| roadmap | `roadmap`, `plan` (top-level), **AR:** `خارطة طريق`, `خريطة الطريق`, `خطة عامة` | `/rihal-create-milestone` |
|
|
116
|
+
| council | `council`, `majlis`, `panel`, `mashwara`, `salah`, **AR:** `مجلس`, `شورى`, `لجنة`, `استشارة` | `/rihal-council` |
|
|
117
|
+
| plan (verb form — "plan phase N") | `plan`, **AR:** `خطّط`, `خطة` | `/rihal-plan` |
|
|
118
|
+
| story (impl) | `dev story`, `implement story`, `build story`, **AR:** `نفذ القصة`, `طبّق القصة` | `/rihal-dev-story` |
|
|
119
|
+
| brainstorm | `brainstorm`, `ideas`, `sochain`, `sochna`, **AR:** `عصف ذهني`, `أفكار`, `تفكير` | `/rihal-brainstorm` |
|
|
120
|
+
| review (code) | `code review`, `karpathy`, `check my diff`, **AR:** `مراجعة الكود`, `راجع الكود`, `فحص الكود` | `/rihal-code-review [--karpathy]` |
|
|
121
|
+
| edge cases | `edge cases`, `edge case hunt`, `find edge cases`, `corner cases`, **AR:** `حالات استثنائية`, `حالات حدية`, `حالات نادرة` | `/rihal-review-edge-case-hunter` |
|
|
122
|
+
| debug | `debug`, `fix`, `bug`, `error`, `crash`, `kharab`, `theek`, **AR:** `صحّح`, `أصلح`, `خطأ`, `مشكلة`, `عطل` | `/rihal-debug` |
|
|
123
|
+
| audit | `audit`, `quality audit`, `health check`, **AR:** `تدقيق`, `مراجعة شاملة`, `فحص الجودة`, `جودة` | `/rihal-audit` |
|
|
92
124
|
|
|
93
125
|
---
|
|
94
126
|
|
|
@@ -108,6 +140,9 @@ ambiguity prompt.
|
|
|
108
140
|
Example: "milestone bnao" → §Create matches "bnao", scope matches
|
|
109
141
|
"milestone" → /rihal-new-milestone (with state-aware redirect to
|
|
110
142
|
/rihal-add-phase if a milestone is already active).
|
|
143
|
+
|
|
144
|
+
Example: "ابدأ مرحلة جديدة" (Arabic — "start a new phase") → §Create
|
|
145
|
+
matches `ابدأ` + scope `مرحلة` + intensifier `جديدة` → /rihal-add-phase.
|
|
111
146
|
```
|
|
112
147
|
|
|
113
148
|
**From an agent file (e.g. `rihal-codebase-mapper.md`) when interpreting the orchestrator prompt:**
|
|
@@ -119,11 +154,33 @@ Example: "milestone bnao" → §Create matches "bnao", scope matches
|
|
|
119
154
|
|
|
120
155
|
Recognize §Show / §Review / §Update verbs against the codebase. Honor
|
|
121
156
|
multilingual phrasing — never silently fall through because a Roman
|
|
122
|
-
Urdu instruction was the verb form.
|
|
157
|
+
Urdu, Hindi, or Arabic instruction was the verb form.
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**From a SKILL.md `triggers:` array** — DO NOT restate the dictionary inline. Instead, copy the most-likely surface phrases per language so Claude Code's literal trigger matcher fires:
|
|
161
|
+
|
|
162
|
+
```yaml
|
|
163
|
+
triggers:
|
|
164
|
+
# English
|
|
165
|
+
- "review the code"
|
|
166
|
+
- "code review"
|
|
167
|
+
- "check the diff"
|
|
168
|
+
- "find bad practices"
|
|
169
|
+
# Roman Urdu / Hindi
|
|
170
|
+
- "code check karo"
|
|
171
|
+
- "review karo"
|
|
172
|
+
# Arabic native
|
|
173
|
+
- "راجع الكود"
|
|
174
|
+
- "مراجعة الكود"
|
|
175
|
+
- "افحص الكود"
|
|
123
176
|
```
|
|
124
177
|
|
|
178
|
+
5-12 triggers per skill is the spec. Always include English + Roman Urdu + Arabic for skills used in user-facing dispatch (council, do, add-phase, create-*, review-*).
|
|
179
|
+
|
|
125
180
|
---
|
|
126
181
|
|
|
127
182
|
## Maintenance
|
|
128
183
|
|
|
129
184
|
Every entry must be a verb actually observed in user input — not invented. When you discover a new phrasing that broke matching, add it to the relevant category here rather than to the consuming workflow's local list. Single source of truth.
|
|
185
|
+
|
|
186
|
+
**Arabic verbs:** add native script first (e.g. `أنشئ`), transliteration second (e.g. `anshi'`). Native script is what users actually type; transliteration is a keyboard fallback.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rihal-prfaq
|
|
3
|
-
description: Working Backwards PRFAQ challenge to forge product concepts.
|
|
3
|
+
description: Working Backwards PRFAQ challenge to forge product concepts.
|
|
4
4
|
triggers:
|
|
5
5
|
- "prfaq"
|
|
6
6
|
---
|
|
@@ -7,13 +7,23 @@ description: >
|
|
|
7
7
|
"create the backlog". Do NOT use to prepare a single story for dev (use
|
|
8
8
|
rihal-create-story).
|
|
9
9
|
triggers:
|
|
10
|
+
# English
|
|
10
11
|
- "create epics"
|
|
11
12
|
- "break this into stories"
|
|
12
|
-
- "generate
|
|
13
|
-
the epic list"
|
|
13
|
+
- "generate the epic list"
|
|
14
14
|
- "epic and story breakdown"
|
|
15
15
|
- "decompose the PRD"
|
|
16
16
|
- "create the backlog"
|
|
17
|
+
# Roman Urdu / Hindi
|
|
18
|
+
- "epics banao"
|
|
19
|
+
- "stories banao"
|
|
20
|
+
- "backlog banao"
|
|
21
|
+
# Arabic native
|
|
22
|
+
- "أنشئ ملاحم"
|
|
23
|
+
- "أنشئ القصص"
|
|
24
|
+
- "قسّم المتطلبات"
|
|
25
|
+
- "ابني القائمة"
|
|
26
|
+
- "تحليل وثيقة المتطلبات"
|
|
17
27
|
---
|
|
18
28
|
@.rihal/references/karpathy-guidelines.md
|
|
19
29
|
|
package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-04-final-validation.md
CHANGED
|
@@ -119,6 +119,18 @@ If all validations pass:
|
|
|
119
119
|
- Ensure proper formatting
|
|
120
120
|
- Save the final epics.md
|
|
121
121
|
|
|
122
|
+
### 7. State Sync (MANDATORY — closes #126)
|
|
123
|
+
|
|
124
|
+
After saving `.planning/epics.md`, you MUST sync state so `.rihal/state.json` reflects the new epics. Without this, downstream workflows (`/rihal-status`, `/rihal-progress`, `/rihal-execute`) see a divergent picture.
|
|
125
|
+
|
|
126
|
+
Per `@rihal/skills/_shared/state-sync-rule.md`:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
node .rihal/bin/rihal-tools.cjs state sync --from-disk
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Confirm output reports the epic and story count matching what `epics.md` shows. If counts diverge, surface a warning and inspect the markdown for malformation.
|
|
133
|
+
|
|
122
134
|
**Present Final Menu:**
|
|
123
135
|
**All validations complete!** [C] Complete Workflow
|
|
124
136
|
|
|
@@ -8,14 +8,24 @@ description: >
|
|
|
8
8
|
for updating an existing PRD (use rihal-edit-prd), or validating an
|
|
9
9
|
existing PRD (use rihal-validate-prd).
|
|
10
10
|
triggers:
|
|
11
|
+
# English
|
|
11
12
|
- "create a PRD"
|
|
12
|
-
- "write product
|
|
13
|
-
requirements document"
|
|
13
|
+
- "write product requirements document"
|
|
14
14
|
- "lets make a PRD"
|
|
15
15
|
- "I want to create a new PRD"
|
|
16
16
|
- "draft requirements for"
|
|
17
17
|
- "new product spec"
|
|
18
18
|
- "start a PRD"
|
|
19
|
+
# Roman Urdu / Hindi
|
|
20
|
+
- "PRD banao"
|
|
21
|
+
- "requirements likh do"
|
|
22
|
+
- "spec banao"
|
|
23
|
+
# Arabic native
|
|
24
|
+
- "أنشئ وثيقة المتطلبات"
|
|
25
|
+
- "اكتب متطلبات المنتج"
|
|
26
|
+
- "وثيقة المتطلبات"
|
|
27
|
+
- "ابدأ PRD"
|
|
28
|
+
- "صمم المتطلبات"
|
|
19
29
|
---
|
|
20
30
|
@.rihal/references/karpathy-guidelines.md
|
|
21
31
|
|