@hanzlaa/rcode 3.6.8 → 3.6.15

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.
Files changed (142) hide show
  1. package/AGENTS.md +1 -1
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +3 -3
  4. package/cli/generate-command-skills.cjs +5 -12
  5. package/cli/index.js +5 -1
  6. package/cli/lib/manifest.cjs +51 -43
  7. package/dist/rcode.js +32 -35
  8. package/package.json +3 -2
  9. package/rihal/bin/rihal-tools.cjs +45 -24
  10. package/rihal/commands/add-todo.md +1 -1
  11. package/rihal/commands/check-implementation-readiness.md +18 -0
  12. package/rihal/commands/create-architecture.md +18 -0
  13. package/rihal/commands/debug.md +1 -1
  14. package/rihal/commands/edit-prd.md +18 -0
  15. package/rihal/commands/memory-audit.md +1 -1
  16. package/rihal/commands/memory-distill.md +1 -1
  17. package/rihal/commands/memory-init.md +1 -1
  18. package/rihal/commands/memory-update.md +1 -1
  19. package/rihal/commands/progress.md +1 -1
  20. package/rihal/commands/resume-work.md +1 -1
  21. package/rihal/commands/retrospective.md +18 -0
  22. package/rihal/commands/review-edge-case-hunter.md +18 -0
  23. package/rihal/commands/scaffold-project.md +18 -0
  24. package/rihal/commands/validate-prd.md +18 -0
  25. package/rihal/references/agent-contracts.md +46 -20
  26. package/rihal/references/continuation-format.md +5 -6
  27. package/rihal/references/model-profile-resolution.md +41 -5
  28. package/rihal/references/phase-argument-parsing.md +31 -7
  29. package/rihal/references/research-synthesis-playbook.md +1 -1
  30. package/rihal/references/revision-loop.md +36 -9
  31. package/rihal/references/universal-anti-patterns.md +56 -12
  32. package/rihal/skills/SKILLS_INDEX.md +34 -5
  33. package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +1 -0
  34. package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +1 -0
  35. package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +1 -0
  36. package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +1 -0
  37. package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +1 -0
  38. package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +1 -0
  39. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +1 -0
  40. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +12 -0
  41. package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +1 -0
  42. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +1 -1
  43. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +1 -1
  44. package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +1 -0
  45. package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +1 -0
  46. package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +1 -0
  47. package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +1 -0
  48. package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +1 -0
  49. package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +1 -0
  50. package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +1 -0
  51. package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +1 -0
  52. package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +1 -0
  53. package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +1 -0
  54. package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +1 -0
  55. package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +1 -0
  56. package/rihal/skills/actions/4-implementation/rihal-debug/SKILL.md +4 -16
  57. package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +1 -0
  58. package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +13 -0
  59. package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +1 -0
  60. package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +1 -0
  61. package/rihal/skills/actions/4-implementation/rihal-retrospective/workflow.md +12 -0
  62. package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +1 -0
  63. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +1 -0
  64. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +12 -0
  65. package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +1 -0
  66. package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +1 -0
  67. package/rihal/skills/agents/dalil-scout/SKILL.md +1 -0
  68. package/rihal/skills/agents/fatima-qa/SKILL.md +1 -0
  69. package/rihal/skills/agents/haitham-frontend/SKILL.md +1 -0
  70. package/rihal/skills/agents/hanzla-engineer/SKILL.md +1 -0
  71. package/rihal/skills/agents/hussain-pm/SKILL.md +1 -0
  72. package/rihal/skills/agents/hussain-sm/SKILL.md +1 -0
  73. package/rihal/skills/agents/layla-designer/SKILL.md +1 -0
  74. package/rihal/skills/agents/majlis-council/SKILL.md +1 -0
  75. package/rihal/skills/agents/mariam-marketing/SKILL.md +1 -0
  76. package/rihal/skills/agents/nasser-eng-manager/SKILL.md +1 -0
  77. package/rihal/skills/agents/noor-writer/SKILL.md +1 -0
  78. package/rihal/skills/agents/raees-orchestrator/SKILL.md +1 -0
  79. package/rihal/skills/agents/rihal-cross-platform-auditor/SKILL.md +1 -0
  80. package/rihal/skills/agents/rihal-dep-auditor/SKILL.md +1 -0
  81. package/rihal/skills/agents/rihal-deviation-analyzer/SKILL.md +1 -0
  82. package/rihal/skills/agents/rihal-i18n-auditor/SKILL.md +1 -0
  83. package/rihal/skills/agents/rihal-observability-auditor/SKILL.md +1 -0
  84. package/rihal/skills/agents/sadiq-analyst/SKILL.md +1 -0
  85. package/rihal/skills/agents/waleed-architect/SKILL.md +1 -0
  86. package/rihal/skills/agents/yousef-backend/SKILL.md +1 -0
  87. package/rihal/skills/agents/zahra-branding/SKILL.md +1 -0
  88. package/rihal/skills/agents/zayd-ml/SKILL.md +1 -0
  89. package/rihal/skills/core/rihal-init/SKILL.md +1 -1
  90. package/rihal/skills/core/rihal-memory-audit/SKILL.md +5 -5
  91. package/rihal/skills/core/rihal-memory-distill/SKILL.md +5 -5
  92. package/rihal/skills/core/rihal-memory-init/SKILL.md +7 -7
  93. package/rihal/skills/core/rihal-memory-update/SKILL.md +4 -4
  94. package/rihal/team.yaml +56 -0
  95. package/rihal/templates/UAT.md +69 -18
  96. package/rihal/templates/memory/INDEX.md +2 -2
  97. package/rihal/templates/memory/distillates/project.distillate.md +2 -2
  98. package/rihal/templates/memory/distillates/stack.distillate.md +2 -2
  99. package/rihal/templates/memory/project/stack.md +1 -1
  100. package/rihal/templates/summary.md +54 -37
  101. package/rihal/templates/verification-report.md +72 -17
  102. package/rihal/workflows/analyze-dependencies.md +4 -4
  103. package/rihal/workflows/audit-fix.md +3 -3
  104. package/rihal/workflows/audit-milestone.md +12 -11
  105. package/rihal/workflows/audit-worktrees.md +163 -0
  106. package/rihal/workflows/audit.md +18 -3
  107. package/rihal/workflows/autonomous.md +2 -2
  108. package/rihal/workflows/correct-course.md +3 -3
  109. package/rihal/workflows/create-architecture.md +3 -3
  110. package/rihal/workflows/create-epics-and-stories.md +3 -3
  111. package/rihal/workflows/create-prd.md +1 -1
  112. package/rihal/workflows/diagnose-issues.md +75 -22
  113. package/rihal/workflows/discuss-phase-power.md +1 -1
  114. package/rihal/workflows/discuss-phase.md +1 -1
  115. package/rihal/workflows/document-project.md +3 -3
  116. package/rihal/workflows/edit-prd.md +3 -3
  117. package/rihal/workflows/execute-milestone.md +3 -3
  118. package/rihal/workflows/execute-sprint.md +1 -1
  119. package/rihal/workflows/execute-waves.md +27 -2
  120. package/rihal/workflows/forensics.md +3 -3
  121. package/rihal/workflows/health.md +19 -4
  122. package/rihal/workflows/help.md +0 -2
  123. package/rihal/workflows/memory-audit.md +2 -2
  124. package/rihal/workflows/memory-distill.md +2 -2
  125. package/rihal/workflows/memory-init.md +2 -2
  126. package/rihal/workflows/memory-update.md +2 -2
  127. package/rihal/workflows/new-project-roadmap.md +2 -2
  128. package/rihal/workflows/plan-research-validation.md +2 -2
  129. package/rihal/workflows/plan.md +7 -7
  130. package/rihal/workflows/research-phase.md +1 -1
  131. package/rihal/workflows/retrospective.md +3 -3
  132. package/rihal/workflows/review-adversarial.md +8 -6
  133. package/rihal/workflows/review.md +2 -2
  134. package/rihal/workflows/scaffold-project.md +3 -3
  135. package/rihal/workflows/secure-phase.md +4 -4
  136. package/rihal/workflows/session-report.md +1 -1
  137. package/rihal/workflows/status.md +6 -10
  138. package/rihal/workflows/validate-prd.md +4 -4
  139. package/rihal/workflows/verify-phase.md +3 -3
  140. package/rihal/workflows/verify-work.md +1 -1
  141. package/rihal/workflows/workstream.md +3 -3
  142. package/server/lib/html/client/views/MemoryView.js +6 -6
@@ -26,6 +26,7 @@ triggers:
26
26
  - "editorial"
27
27
  - "maximalist"
28
28
  license: Adapted from Anthropic's frontend-design skill
29
+ user-invocable: true
29
30
  ---
30
31
  @.rihal/references/karpathy-guidelines.md
31
32
 
@@ -14,6 +14,7 @@ triggers:
14
14
  - "PRD quality
15
15
  check"
16
16
  - "audit the PRD"
17
+ user-invocable: true
17
18
  ---
18
19
  @.rihal/references/karpathy-guidelines.md
19
20
 
@@ -15,6 +15,7 @@ triggers:
15
15
  - "readiness check"
16
16
  - "IR check"
17
17
  - "can we start building"
18
+ user-invocable: true
18
19
  ---
19
20
  @.rihal/references/karpathy-guidelines.md
20
21
 
@@ -18,6 +18,7 @@ triggers:
18
18
  - "lock this technical decision"
19
19
  - "record the
20
20
  decision to use X"
21
+ user-invocable: true
21
22
  ---
22
23
  @.rihal/references/karpathy-guidelines.md
23
24
 
@@ -16,6 +16,7 @@ triggers:
16
16
  - "setup AI context"
17
17
  - "create
18
18
  project-context.md"
19
+ user-invocable: true
19
20
  ---
20
21
  @.rihal/references/karpathy-guidelines.md
21
22
 
@@ -9,6 +9,7 @@ triggers:
9
9
  - "review before checkpoint"
10
10
  - "checkpoint review session"
11
11
  - "preview changes before approval"
12
+ user-invocable: true
12
13
  ---
13
14
 
14
15
  ## Overview
@@ -27,6 +27,7 @@ triggers:
27
27
  - "افحص الكود"
28
28
  - "تدقيق الكود"
29
29
  - "جودة الكود"
30
+ user-invocable: true
30
31
  ---
31
32
  @.rihal/references/karpathy-guidelines.md
32
33
 
@@ -16,6 +16,7 @@ triggers:
16
16
  - "handle scope
17
17
  change"
18
18
  - "change story mid-way"
19
+ user-invocable: true
19
20
  ---
20
21
  @.rihal/references/karpathy-guidelines.md
21
22
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rihal-debug
3
- description: Root-cause debugging via the scientific method. Enforces investigate-before-fix, structured hypothesis iteration, multi-component evidence gathering, and architectural escalation after 3 failed fixes.
3
+ description: Scientific-method debugging: investigate first, test hypotheses, escalate at 3 failures.
4
4
  triggers:
5
5
  # English
6
6
  - "debug this"
@@ -31,7 +31,6 @@ user-invocable: false
31
31
  ---
32
32
  @.rihal/references/karpathy-guidelines.md
33
33
 
34
-
35
34
  ## The Iron Law
36
35
 
37
36
  ```
@@ -44,6 +43,7 @@ If you have not completed Phase 1, you cannot propose a fix. "It seems to work"
44
43
 
45
44
  Debugging is investigation, not pattern-matching. Each iteration narrows the problem space — never widens it. The skill enforces a written hypothesis, an experiment that distinguishes "yes" from "no", and a captured observation. Random fixes are not allowed — the bug must be understood before the fix is written.
46
45
 
46
+ ## Workflow
47
47
  ## Phase 1 — Root Cause Investigation
48
48
 
49
49
  **BEFORE attempting ANY fix:**
@@ -135,7 +135,6 @@ If the project has Sentry (`@sentry/*` in `package.json` or `sentry-sdk` in Pyth
135
135
  - Read breadcrumbs for the chain of events leading to the error
136
136
  - Check "first seen / last seen" — recurring or one-off matters
137
137
  - Cross-reference with deployment timestamps to identify regressions
138
-
139
138
  ## Red Flags — STOP and return to Phase 1
140
139
 
141
140
  If you catch yourself thinking any of these:
@@ -151,17 +150,6 @@ If you catch yourself thinking any of these:
151
150
 
152
151
  **ALL of these mean: STOP. Return to Phase 1.**
153
152
 
154
- ## Common Rationalizations
155
-
156
- | Excuse | Reality |
157
- |--------|---------|
158
- | "Issue is simple, don't need process" | Simple bugs have root causes too. Process is fast for simple bugs. |
159
- | "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
160
- | "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
161
- | "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
162
- | "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
163
- | "One more fix attempt" (after 2+) | 3+ failures = architectural problem. Escalate, don't fix again. |
164
-
165
153
  ## Output Format
166
154
 
167
155
  ```
@@ -207,5 +195,5 @@ Do NOT include: "tried X and it seems to work" · speculative "maybe it's cachin
207
195
 
208
196
  ## Memory Bank Hooks
209
197
 
210
- - **Reads:** `.rihal/memory/incidents/known-issues.md` (prior debugging context), `.rihal/memory/project/stack.md` (Sentry presence, observability tools)
211
- - **Writes:** append root cause to `.rihal/memory/incidents/post-mortems/YYYYMMDD-<slug>.md` when resolved; remove from `known-issues.md` once fix is verified in production
198
+ - **Reads:** `known-issues.md`, `stack.md`
199
+ - **Writes:** append to `post-mortems/YYYYMMDD-<slug>.md`; remove from `known-issues.md` once fixed in production
@@ -15,6 +15,7 @@ triggers:
15
15
  - "run
16
16
  dev-story on"
17
17
  - "implement .rihal/phases/{phase}/stories/{file}"
18
+ user-invocable: true
18
19
  ---
19
20
  @.rihal/references/karpathy-guidelines.md
20
21
 
@@ -3,6 +3,19 @@
3
3
  **Goal:** Execute story implementation following a context filled story spec file.
4
4
 
5
5
  **Your Role:** Developer implementing the story.
6
+
7
+ ## State-sync rule (NO EXCEPTIONS)
8
+
9
+ After this workflow writes any SUMMARY.md, updates a story status in epics.md, or marks a phase complete:
10
+
11
+ ```bash
12
+ node .rihal/bin/rihal-tools.cjs state sync --from-disk
13
+ ```
14
+
15
+ This keeps `.rihal/state.json` in sync with disk — `/rihal:progress`, `/rihal:status`, and `/rihal:execute` all read state.json. Skipping the sync silently drifts them. See `../../_shared/state-sync-rule.md`.
16
+
17
+ ---
18
+
6
19
  - Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}
7
20
  - Generate all documents in {document_output_language}
8
21
  - Only modify the story file in these areas: Tasks/Subtasks checkboxes, Dev Agent Record (Debug Log, Completion Notes), File List, Change Log, and Status
@@ -15,6 +15,7 @@ triggers:
15
15
  - "qa this
16
16
  feature"
17
17
  - "generate integration tests"
18
+ user-invocable: true
18
19
  ---
19
20
  @.rihal/references/karpathy-guidelines.md
20
21
 
@@ -14,6 +14,7 @@ triggers:
14
14
  - "sprint retrospective"
15
15
  - "review completed work"
16
16
  - "extract learnings from this sprint"
17
+ user-invocable: true
17
18
  ---
18
19
  @.rihal/references/karpathy-guidelines.md
19
20
 
@@ -3,6 +3,18 @@
3
3
  **Goal:** Post-epic review to extract lessons and assess success.
4
4
 
5
5
  **Your Role:** Scrum Master facilitating retrospective.
6
+
7
+ ## State-sync rule (NO EXCEPTIONS)
8
+
9
+ After this workflow writes any `.planning/` artifact (ROADMAP.md, epics.md, sprint-*.md, SUMMARY.md, etc.) or updates phase/story status:
10
+
11
+ ```bash
12
+ node .rihal/bin/rihal-tools.cjs state sync --from-disk
13
+ ```
14
+
15
+ This keeps `.rihal/state.json` in sync with disk — `/rihal:progress`, `/rihal:status`, and `/rihal:execute` all read state.json. Skipping the sync silently drifts them. See `../../_shared/state-sync-rule.md`.
16
+
17
+ ---
6
18
  - No time estimates — NEVER mention hours, days, weeks, months, or ANY time-based predictions. AI has fundamentally changed development speed.
7
19
  - Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}
8
20
  - Generate all documents in {document_output_language}
@@ -18,6 +18,7 @@ triggers:
18
18
  - "create from template"
19
19
  - "rihal new project"
20
20
  - "start a new rihal project"
21
+ user-invocable: true
21
22
  ---
22
23
  @.rihal/references/karpathy-guidelines.md
23
24
 
@@ -25,6 +25,7 @@ triggers:
25
25
  - "أنشئ خطة السباق"
26
26
  - "السباق التالي"
27
27
  - "جدولة السبرنت"
28
+ user-invocable: true
28
29
  ---
29
30
  @.rihal/references/karpathy-guidelines.md
30
31
 
@@ -4,6 +4,18 @@
4
4
 
5
5
  **Your Role:** You are a Scrum Master generating and maintaining sprint tracking. Parse epic files, detect story statuses, and produce a structured sprint-status.yaml.
6
6
 
7
+ ## State-sync rule (NO EXCEPTIONS)
8
+
9
+ After this workflow writes any `.planning/` artifact (ROADMAP.md, epics.md, sprint-*.md, SUMMARY.md, etc.) or updates phase/story status:
10
+
11
+ ```bash
12
+ node .rihal/bin/rihal-tools.cjs state sync --from-disk
13
+ ```
14
+
15
+ This keeps `.rihal/state.json` in sync with disk — `/rihal:progress`, `/rihal:status`, and `/rihal:execute` all read state.json. Skipping the sync silently drifts them. See `../../_shared/state-sync-rule.md`.
16
+
17
+ ---
18
+
7
19
  ---
8
20
 
9
21
  ## CRITICAL RULES (NO EXCEPTIONS)
@@ -13,6 +13,7 @@ triggers:
13
13
  - "generate status report"
14
14
  - "sprint progress"
15
15
  - "where are we in the sprint"
16
+ user-invocable: true
16
17
  ---
17
18
  @.rihal/references/karpathy-guidelines.md
18
19
 
@@ -38,6 +38,7 @@ triggers:
38
38
  - "معايير الهندسة"
39
39
  - "تنسيق الفرق"
40
40
  - "مقاييس التسليم"
41
+ user-invocable: true
41
42
  ---
42
43
  @.rihal/references/karpathy-guidelines.md
43
44
 
@@ -37,6 +37,7 @@ triggers:
37
37
  - "استكشف الكود"
38
38
  - "خريطة الكود"
39
39
  - "ما هو في المستودع"
40
+ user-invocable: true
40
41
  ---
41
42
  @.rihal/references/karpathy-guidelines.md
42
43
 
@@ -39,6 +39,7 @@ triggers:
39
39
  - "تغطية الاختبارات"
40
40
  - "خطة الاختبار"
41
41
  - "ضمان الجودة"
42
+ user-invocable: true
42
43
  ---
43
44
  @.rihal/references/karpathy-guidelines.md
44
45
 
@@ -39,6 +39,7 @@ triggers:
39
39
  - "تصميم RTL"
40
40
  - "صفحة Next"
41
41
  - "مكون React"
42
+ user-invocable: true
42
43
  ---
43
44
  @.rihal/references/karpathy-guidelines.md
44
45
  @.rihal/references/design-tokens.md
@@ -38,6 +38,7 @@ triggers:
38
38
  - "ابني هذه الميزة"
39
39
  - "أصلح الخطأ"
40
40
  - "إعادة هيكلة"
41
+ user-invocable: true
41
42
  ---
42
43
  @.rihal/references/karpathy-guidelines.md
43
44
 
@@ -40,6 +40,7 @@ triggers:
40
40
  - "قصص المستخدم"
41
41
  - "معايير القبول"
42
42
  - "خارطة المنتج"
43
+ user-invocable: true
43
44
  ---
44
45
  @.rihal/references/karpathy-guidelines.md
45
46
 
@@ -37,6 +37,7 @@ triggers:
37
37
  - "مراجعة السباق"
38
38
  - "إزالة العوائق"
39
39
  - "حالة السباق"
40
+ user-invocable: true
40
41
  ---
41
42
  @.rihal/references/karpathy-guidelines.md
42
43
 
@@ -37,6 +37,7 @@ triggers:
37
37
  - "مراجعة التصميم"
38
38
  - "تجربة الاستخدام"
39
39
  - "نظام التصميم"
40
+ user-invocable: true
40
41
  ---
41
42
  @.rihal/references/karpathy-guidelines.md
42
43
 
@@ -41,6 +41,7 @@ triggers:
41
41
  - "استشارة جماعية"
42
42
  - "ما رأي الفريق"
43
43
  - "قرار جماعي"
44
+ user-invocable: true
44
45
  ---
45
46
  @.rihal/references/karpathy-guidelines.md
46
47
 
@@ -41,6 +41,7 @@ triggers:
41
41
  - "محتوى تسويقي"
42
42
  - "السوق الخليجي"
43
43
  - "تحديد الجمهور"
44
+ user-invocable: true
44
45
  ---
45
46
  @.rihal/references/karpathy-guidelines.md
46
47
 
@@ -41,6 +41,7 @@ triggers:
41
41
  - "خطة التوظيف"
42
42
  - "صحة الفريق"
43
43
  - "نمو الموظفين"
44
+ user-invocable: true
44
45
  ---
45
46
  @.rihal/references/karpathy-guidelines.md
46
47
 
@@ -39,6 +39,7 @@ triggers:
39
39
  - "اكتب README"
40
40
  - "دليل المستخدم"
41
41
  - "ملاحظات الإصدار"
42
+ user-invocable: true
42
43
  ---
43
44
  @.rihal/references/karpathy-guidelines.md
44
45
 
@@ -38,6 +38,7 @@ triggers:
38
38
  - "توجيه المهمة"
39
39
  - "ترتيب التنفيذ"
40
40
  - "من يتولى"
41
+ user-invocable: true
41
42
  ---
42
43
  @.rihal/references/karpathy-guidelines.md
43
44
 
@@ -26,6 +26,7 @@ not-for:
26
26
  - Docker / container portability (use rihal-khalid for infra)
27
27
  - browser compatibility (use rihal-haitham)
28
28
  allowed-tools: Read, Bash, Write
29
+ user-invocable: true
29
30
  ---
30
31
 
31
32
  ## Overview
@@ -26,6 +26,7 @@ not-for:
26
26
  - license compliance audits
27
27
  - bundle size analysis (use rihal-perf)
28
28
  allowed-tools: Read, Bash, Write
29
+ user-invocable: true
29
30
  ---
30
31
 
31
32
  ## Overview
@@ -22,6 +22,7 @@ triggers:
22
22
  - "deviation analyzer"
23
23
  - "انحراف الخطة"
24
24
  - "تحليل الانحراف"
25
+ user-invocable: true
25
26
  ---
26
27
  @.rihal/references/response-style.md
27
28
 
@@ -27,6 +27,7 @@ not-for:
27
27
  - RTL CSS flipping (use rihal-haitham for frontend RTL)
28
28
  - content translation (use a human translator)
29
29
  allowed-tools: Read, Bash, Write
30
+ user-invocable: true
30
31
  ---
31
32
 
32
33
  ## Overview
@@ -28,6 +28,7 @@ not-for:
28
28
  - performance monitoring (use rihal-perf)
29
29
  - log aggregation setup (use rihal-khalid)
30
30
  allowed-tools: Read, Bash, Write
31
+ user-invocable: true
31
32
  ---
32
33
 
33
34
  ## Overview
@@ -36,6 +36,7 @@ triggers:
36
36
  - "تحليل تنافسي"
37
37
  - "استراتيجية المنتج"
38
38
  - "ماذا نبني"
39
+ user-invocable: true
39
40
  ---
40
41
  @.rihal/references/karpathy-guidelines.md
41
42
 
@@ -39,6 +39,7 @@ triggers:
39
39
  - "اختر التقنية"
40
40
  - "قرار معماري"
41
41
  - "مراجعة معمارية"
42
+ user-invocable: true
42
43
  ---
43
44
  @.rihal/references/karpathy-guidelines.md
44
45
 
@@ -39,6 +39,7 @@ triggers:
39
39
  - "صمم API"
40
40
  - "قاعدة البيانات"
41
41
  - "خدمة خلفية"
42
+ user-invocable: true
42
43
  ---
43
44
  @.rihal/references/karpathy-guidelines.md
44
45
 
@@ -44,6 +44,7 @@ triggers:
44
44
  - "خطوط عربية"
45
45
  - "إرشادات العلامة"
46
46
  - "صوت العلامة"
47
+ user-invocable: true
47
48
  ---
48
49
  @.rihal/references/karpathy-guidelines.md
49
50
 
@@ -42,6 +42,7 @@ triggers:
42
42
  - "نموذج ذكاء اصطناعي"
43
43
  - "هندسة الموجهات"
44
44
  - "معالجة اللغة العربية"
45
+ user-invocable: true
45
46
  ---
46
47
  @.rihal/references/karpathy-guidelines.md
47
48
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal-init
3
3
  internal: true
4
- description: "INTERNAL config loader called by other skills, not by users directly. Loads module config vars from .rihal/. Install puts this in .rihal/skills/, not .claude/skills/."
4
+ description: "INTERNAL config loader for skills. Loads .rihal/ vars; lives in .rihal/skills/ not .claude/skills/."
5
5
  argument-hint: "[--module=module_code] [--vars=var1:default1,var2] [--skill-path=/path/to/calling/skill]"
6
6
  triggers:
7
7
  - "init"
@@ -4,7 +4,7 @@ description: >
4
4
  Audit the Memory Bank for stale entries, contradictions, missing sections,
5
5
  and content that should be archived. Produces a report with severity-tagged
6
6
  findings and one-line fix suggestions. Activates when the user says
7
- "audit memory bank", "check memory bank", "/rcode:memory-audit",
7
+ "audit memory bank", "check memory bank", "/rihal-memory-audit",
8
8
  "memory bank ka audit", "find stale entries", "is my memory bank healthy".
9
9
  Optional --fix flag patches trivial items (typos, stale dates, broken paths)
10
10
  atomically; non-trivial findings always report-only.
@@ -19,7 +19,7 @@ triggers:
19
19
  - "auto-fix memory bank"
20
20
  - "memory bank --fix"
21
21
  - "patch trivial memory drift"
22
- - "/rcode:memory-audit"
22
+ - "/rihal-memory-audit"
23
23
  - "/rihal-memory-audit"
24
24
  # Roman Urdu / Hindi
25
25
  - "memory bank ka audit"
@@ -72,7 +72,7 @@ CRITICAL (1)
72
72
  WARN (3)
73
73
  milestones/current.md
74
74
  └─ Milestone target close was 2026-02-01 (84 days ago) but file still says "active"
75
- Fix: archive via /rcode:memory-update or move to milestones/archive/
75
+ Fix: archive via /rihal-memory-update or move to milestones/archive/
76
76
 
77
77
  incidents/known-issues.md
78
78
  └─ Issue "SSO Safari 16 fails" — real fix was planned for M2 (closed)
@@ -80,14 +80,14 @@ WARN (3)
80
80
 
81
81
  distillates/project.distillate.md
82
82
  └─ Source digest stale — 4 source files modified since last regenerate
83
- Fix: /rcode:memory-distill
83
+ Fix: /rihal-memory-distill
84
84
 
85
85
  INFO (2)
86
86
  project/glossary.md
87
87
  └─ Empty — no terms recorded yet
88
88
  people/team.md
89
89
  └─ Coverage table contains 3 unfilled cells
90
- Fix: /rcode:memory-update with team coverage info
90
+ Fix: /rihal-memory-update with team coverage info
91
91
  ```
92
92
 
93
93
  ## Examples
@@ -5,7 +5,7 @@ description: >
5
5
  compressions of Memory Bank source files for fast LLM context loading.
6
6
  Produces `distillates/project.distillate.md` and `distillates/stack.distillate.md`.
7
7
  Activates when the user says "distill memory bank", "regenerate distillates",
8
- "refresh distillates", "/rcode:memory-distill", "compress memory bank",
8
+ "refresh distillates", "/rihal-memory-distill", "compress memory bank",
9
9
  "memory bank ko compress karo". Do NOT use for: bootstrap (use rcode-memory-init),
10
10
  surgical updates (use rcode-memory-update), or finding stale entries (use
11
11
  rcode-memory-audit). For non-Memory-Bank document compression, use the
@@ -16,7 +16,7 @@ triggers:
16
16
  - "refresh distillates"
17
17
  - "compress memory bank"
18
18
  - "memory bank ko compress karo"
19
- - "/rcode:memory-distill"
19
+ - "/rihal-memory-distill"
20
20
  user-invocable: false
21
21
  ---
22
22
  @.rihal/references/karpathy-guidelines.md
@@ -39,7 +39,7 @@ Read the Memory Bank source files and produce two LLM-optimised distillates: a f
39
39
  ---
40
40
  generated: true
41
41
  do-not-edit: true
42
- regenerate-with: /rcode:memory-distill
42
+ regenerate-with: /rihal-memory-distill
43
43
  source-digest: <hash>
44
44
  generated-at: <ISO datetime>
45
45
  source-files: [list of files included]
@@ -69,14 +69,14 @@ Skip notice: source files unchanged since last run — no rewrite was needed.
69
69
  ## Examples
70
70
 
71
71
  **Happy path**
72
- User: `/rcode:memory-distill`
72
+ User: `/rihal-memory-distill`
73
73
  Skill: reads sources, regenerates both distillates, prints summary. ~10 seconds for a typical project.
74
74
 
75
75
  **No-op skip**
76
76
  User runs distill twice in a row without changing source files. Second run reports "source files unchanged" and exits without rewriting.
77
77
 
78
78
  **Force refresh**
79
- User: `/rcode:memory-distill --force`
79
+ User: `/rihal-memory-distill --force`
80
80
  Skill: regenerates regardless of digest match. Useful when distillate format itself changes.
81
81
 
82
82
  **Negative — used on non-memory docs**
@@ -5,7 +5,7 @@ description: >
5
5
  `rihal/templates/memory/` into `.rihal/memory/`, then asks 5 questions to
6
6
  populate the most-used files (stack, current milestone, primary stakeholder).
7
7
  Activates when the user says "init memory bank", "bootstrap memory",
8
- "set up memory bank", "/rcode:memory-init", "create memory bank",
8
+ "set up memory bank", "/rihal-memory-init", "create memory bank",
9
9
  "memory bank initialise", "memory bank kaise banayen". Do NOT use for:
10
10
  updating an existing Memory Bank (use rcode-memory-update), regenerating
11
11
  distillates (use rcode-memory-distill), or finding stale entries (use
@@ -17,7 +17,7 @@ triggers:
17
17
  - "set up memory bank"
18
18
  - "create memory bank"
19
19
  - "memory bank initialise"
20
- - "/rcode:memory-init"
20
+ - "/rihal-memory-init"
21
21
  - "/rihal-memory-init"
22
22
  # Roman Urdu / Hindi
23
23
  - "memory bank kaise banayen"
@@ -49,7 +49,7 @@ Initialise the `.rihal/memory/` directory in the current project. Copies the tem
49
49
  3. Current milestone name → seeds `milestones/current.md` Milestone Name
50
50
  4. Primary external stakeholder (name + role) → seeds `people/stakeholders.md`
51
51
  5. Any known production issue today → seeds `incidents/known-issues.md`
52
- 5. **Print the summary.** Show the file tree, where to add more, and recommend running `/rcode:memory-distill` once `project/stack.md` is fleshed out.
52
+ 5. **Print the summary.** Show the file tree, where to add more, and recommend running `/rihal-memory-distill` once `project/stack.md` is fleshed out.
53
53
  6. **Update `.rihal/state.json`** to record `memory_bank.initialised_at` so the dashboard shows it as live.
54
54
 
55
55
  ## Output Format
@@ -69,18 +69,18 @@ Files still empty (fill as you go):
69
69
  • people/team.md
70
70
  • change-records/
71
71
 
72
- Next step: run /rcode:memory-distill to generate fast-load distillates.
72
+ Next step: run /rihal-memory-distill to generate fast-load distillates.
73
73
  ```
74
74
 
75
75
  ## Examples
76
76
 
77
77
  **Happy path**
78
- User: `/rcode:memory-init`
78
+ User: `/rihal-memory-init`
79
79
  Skill: asks 5 questions, populates files, prints summary, updates state.json. Total time: under two minutes.
80
80
 
81
81
  **Already initialised**
82
- User: `/rcode:memory-init` on a project that already has `.rihal/memory/INDEX.md`.
83
- Skill: refuses to overwrite. Lists files, shows which are still empty, suggests `/rcode:memory-update` for surgical edits.
82
+ User: `/rihal-memory-init` on a project that already has `.rihal/memory/INDEX.md`.
83
+ Skill: refuses to overwrite. Lists files, shows which are still empty, suggests `/rihal-memory-update` for surgical edits.
84
84
 
85
85
  **Negative — wrong skill**
86
86
  User wants to "update the stakeholder list". Do not use this skill. Use `rcode-memory-update`.
@@ -5,7 +5,7 @@ description: >
5
5
  Adds an entry to decisions.md, appends a known issue, updates the current
6
6
  milestone, or extends the stakeholder list — without rewriting whole files.
7
7
  Activates when the user says "remember this decision", "log this decision",
8
- "add this to memory bank", "update memory bank", "/rcode:memory-update",
8
+ "add this to memory bank", "update memory bank", "/rihal-memory-update",
9
9
  "save this to memory", "yeh memory mein add karo", or after a council
10
10
  session that produced a clear decision. Do NOT use for: initial bootstrap
11
11
  (use rcode-memory-init), regenerating distillates (use rcode-memory-distill),
@@ -17,7 +17,7 @@ triggers:
17
17
  - "add this to memory bank"
18
18
  - "update memory bank"
19
19
  - "save this to memory"
20
- - "/rcode:memory-update"
20
+ - "/rihal-memory-update"
21
21
  - "/rihal-memory-update"
22
22
  # Roman Urdu / Hindi
23
23
  - "yeh memory mein add karo"
@@ -53,7 +53,7 @@ Append or update a single Memory Bank file based on the current conversation con
53
53
  3. **Append using the file's documented format.** Each Memory Bank file documents its own entry format at the top — follow it exactly.
54
54
  4. **Never overwrite.** If the user wants to *change* an existing entry, refuse and direct them to edit the file directly. This skill is append-only for safety.
55
55
  5. **Stamp with date** in `YYYY-MM-DD` format.
56
- 6. **Suggest distillate refresh** if the update was substantive (`/rcode:memory-distill`).
56
+ 6. **Suggest distillate refresh** if the update was substantive (`/rihal-memory-distill`).
57
57
 
58
58
  ## Output Format
59
59
 
@@ -64,7 +64,7 @@ Append or update a single Memory Bank file based on the current conversation con
64
64
  **Decision:** Upgrade primary database to Postgres 16.4.
65
65
  **Rationale:** ...
66
66
 
67
- Tip: run /rcode:memory-distill to refresh the project distillate.
67
+ Tip: run /rihal-memory-distill to refresh the project distillate.
68
68
  ```
69
69
 
70
70
  ## Examples