@hanzlaa/rcode 2.2.0 → 2.3.2

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 (143) hide show
  1. package/CLAUDE.md +15 -0
  2. package/CONTRIBUTING.md +138 -0
  3. package/README.md +74 -15
  4. package/cli/install.js +312 -80
  5. package/cli/postinstall.js +4 -4
  6. package/cli/uninstall.js +8 -0
  7. package/dist/rcode.js +19777 -0
  8. package/package.json +18 -5
  9. package/rihal/DOCS-AUDIT.md +14 -0
  10. package/rihal/agents/rihal-code-reviewer.md +1 -1
  11. package/rihal/agents/rihal-codebase-mapper.md +1 -1
  12. package/rihal/agents/rihal-docs-auditor.md +1 -1
  13. package/rihal/agents/rihal-edge-case-hunter.md +1 -1
  14. package/rihal/agents/rihal-executor.md +2 -1
  15. package/rihal/agents/rihal-hussain-pm.md +1 -0
  16. package/rihal/agents/rihal-nyquist-auditor.md +1 -1
  17. package/rihal/agents/rihal-phase-researcher.md +2 -2
  18. package/rihal/agents/rihal-planner.md +3 -2
  19. package/rihal/agents/rihal-roadmapper.md +1 -0
  20. package/rihal/agents/rihal-security-adversary.md +1 -1
  21. package/rihal/agents/rihal-security-auditor.md +1 -1
  22. package/rihal/agents/rihal-sprint-checker.md +1 -1
  23. package/rihal/agents/rihal-verifier.md +1 -1
  24. package/rihal/bin/lib/roadmap.cjs +2 -3
  25. package/rihal/bin/rihal-tools.cjs +11 -31
  26. package/rihal/brain/best-practices/no-theoretical-suggestions.md +56 -0
  27. package/rihal/commands/add-phase.md +2 -2
  28. package/rihal/commands/audit.md +8 -0
  29. package/rihal/commands/checkpoint-preview.md +13 -0
  30. package/rihal/commands/cleanup.md +2 -2
  31. package/rihal/commands/config.md +4 -4
  32. package/rihal/commands/pr-branch.md +2 -2
  33. package/rihal/commands/prfaq.md +15 -0
  34. package/rihal/commands/remove-phase.md +2 -2
  35. package/rihal/commands/research-phase.md +2 -2
  36. package/rihal/commands/settings.md +2 -2
  37. package/rihal/commands/ship.md +15 -3
  38. package/rihal/commands/validate-phase.md +1 -1
  39. package/rihal/commands/verify-phase.md +2 -2
  40. package/rihal/references/agent-contracts.md +12 -0
  41. package/rihal/references/karpathy-guidelines-full.md +79 -0
  42. package/rihal/references/karpathy-guidelines.md +8 -76
  43. package/rihal/references/model-profile-resolution.md +8 -0
  44. package/rihal/references/phase-argument-parsing.md +11 -0
  45. package/rihal/references/revision-loop.md +11 -0
  46. package/rihal/references/universal-anti-patterns.md +15 -0
  47. package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +11 -0
  48. package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +11 -0
  49. package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +13 -0
  50. package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +11 -0
  51. package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +12 -0
  52. package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +7 -0
  53. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +15 -1
  54. package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +21 -1
  55. package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +1 -1
  56. package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +26 -0
  57. package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +16 -2
  58. package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +12 -0
  59. package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +11 -0
  60. package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +13 -0
  61. package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +12 -0
  62. package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +12 -0
  63. package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +14 -0
  64. package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +12 -0
  65. package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +16 -0
  66. package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +12 -0
  67. package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +13 -0
  68. package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +12 -0
  69. package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +12 -0
  70. package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +11 -0
  71. package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +10 -0
  72. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +14 -1
  73. package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +10 -0
  74. package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +13 -1
  75. package/rihal/skills/agents/fatima-qa/SKILL.md +14 -1
  76. package/rihal/skills/agents/haitham-frontend/SKILL.md +15 -1
  77. package/rihal/skills/agents/hanzla-engineer/SKILL.md +14 -1
  78. package/rihal/skills/agents/hussain-pm/SKILL.md +22 -1
  79. package/rihal/skills/agents/hussain-sm/SKILL.md +22 -1
  80. package/rihal/skills/agents/layla-designer/SKILL.md +15 -1
  81. package/rihal/skills/agents/majlis-council/SKILL.md +14 -1
  82. package/rihal/skills/agents/mariam-marketing/SKILL.md +15 -1
  83. package/rihal/skills/agents/nasser-eng-manager/SKILL.md +14 -1
  84. package/rihal/skills/agents/noor-writer/SKILL.md +14 -1
  85. package/rihal/skills/agents/raees-orchestrator/SKILL.md +13 -1
  86. package/rihal/skills/agents/sadiq-analyst/SKILL.md +15 -1
  87. package/rihal/skills/agents/waleed-architect/SKILL.md +16 -1
  88. package/rihal/skills/agents/yousef-backend/SKILL.md +16 -1
  89. package/rihal/skills/agents/zahra-branding/SKILL.md +15 -1
  90. package/rihal/skills/agents/zayd-ml/SKILL.md +17 -1
  91. package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +12 -0
  92. package/rihal/skills/core/rihal-brainstorming/SKILL.md +16 -0
  93. package/rihal/skills/core/rihal-clone-website/SKILL.md +21 -0
  94. package/rihal/skills/core/rihal-distillator/SKILL.md +8 -0
  95. package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +12 -0
  96. package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +18 -0
  97. package/rihal/skills/core/rihal-help/SKILL.md +12 -0
  98. package/rihal/skills/core/rihal-index-docs/SKILL.md +18 -0
  99. package/rihal/skills/core/rihal-init/SKILL.md +8 -0
  100. package/rihal/skills/core/rihal-party-mode/SKILL.md +14 -0
  101. package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +12 -0
  102. package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +18 -0
  103. package/rihal/skills/core/rihal-shard-doc/SKILL.md +18 -0
  104. package/rihal/team.yaml +205 -0
  105. package/rihal/templates/UAT.md +29 -0
  106. package/rihal/templates/milestone.md +2 -0
  107. package/rihal/templates/sprint.md +11 -28
  108. package/rihal/templates/summary.md +30 -0
  109. package/rihal/templates/verification-report.md +28 -0
  110. package/rihal/workflows/audit-milestone.md +34 -2
  111. package/rihal/workflows/audit.md +172 -0
  112. package/rihal/workflows/autonomous.md +67 -0
  113. package/rihal/workflows/checkpoint-preview.md +7 -0
  114. package/rihal/workflows/council.md +3 -1
  115. package/rihal/workflows/debug.md +8 -1
  116. package/rihal/workflows/diagnose-issues.md +34 -0
  117. package/rihal/workflows/do.md +47 -3
  118. package/rihal/workflows/document-project.md +1 -1
  119. package/rihal/workflows/execute-sprint.md +11 -4
  120. package/rihal/workflows/execute.md +9 -3
  121. package/rihal/workflows/help.md +1 -1
  122. package/rihal/workflows/karpathy-audit.md +7 -14
  123. package/rihal/workflows/pause-work.md +7 -1
  124. package/rihal/workflows/prfaq.md +7 -0
  125. package/rihal/workflows/profile-user.md +2 -2
  126. package/rihal/workflows/settings.md +116 -117
  127. package/rihal/workflows/ship.md +31 -1
  128. package/rihal/workflows/sprint-planning.md +39 -8
  129. package/rihal/workflows/status.md +5 -0
  130. package/rihal/workflows/ui-phase.md +3 -3
  131. package/rihal/workflows/update.md +80 -22
  132. package/rihal/workflows/validate-phase.md +7 -1
  133. package/server/dashboard.js +34 -575
  134. package/server/lib/api.js +123 -0
  135. package/server/lib/html/client.js +969 -0
  136. package/server/lib/html/css.js +416 -0
  137. package/server/lib/html/shell.js +230 -0
  138. package/server/lib/scanner.js +142 -0
  139. package/rihal/agents/rihal-ui-designer.md +0 -6
  140. package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/SKILL.md +0 -148
  141. package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/methods.csv +0 -51
  142. package/rihal/skills/core/rihal-shard-doc/rihal-shard-doc/SKILL.md +0 -122
  143. package/rihal/workflows/config.md +0 -105
@@ -1,79 +1,11 @@
1
- # Karpathy Coding Guidelines
1
+ # Karpathy Guidelines — Quick Reference
2
2
 
3
- Behavioral guidelines derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls. Every rihal agent that writes, reviews, or refactors code must internalize these four principles.
3
+ Four hard constraints for every agent that writes, reviews, or modifies code or artifacts.
4
+ Full text with Rihal-specific application notes: `@.rihal/references/karpathy-guidelines-full.md`
4
5
 
5
- **Tradeoff:** These bias toward caution over speed. For trivial tasks, use judgment.
6
+ 1. **Think first (P1)** State assumptions explicitly before acting. If scope is ambiguous, ask. Never guess silently.
7
+ 2. **Simplicity (P2)** — Minimum code/scope that solves the problem. No speculative features, abstractions, or error handling for impossible cases.
8
+ 3. **Surgical (P3)** — Touch only what the task requires. Don't improve adjacent code, don't refactor what isn't broken.
9
+ 4. **Goal-driven (P4)** — Define a verifiable success criterion before starting. "Done when: X can be verified externally."
6
10
 
7
- ## 1. Think Before Coding
8
-
9
- **Don't assume. Don't hide confusion. Surface tradeoffs.**
10
-
11
- Before implementing:
12
- - State assumptions explicitly. If uncertain, ask.
13
- - If multiple interpretations exist, present them — don't pick silently.
14
- - If a simpler approach exists, say so. Push back when warranted.
15
- - If something is unclear, stop. Name what's confusing. Ask.
16
-
17
- **Rihal application:** In Round 1 of council/chain, every agent's response must include an `## Assumptions` block listing load-bearing assumptions. rihal-planner must ask via AskUserQuestion before writing a plan when scope is ambiguous. rihal-executor must stop on Rule 4 deviations and return a checkpoint, not silently guess.
18
-
19
- ## 2. Simplicity First
20
-
21
- **Minimum code that solves the problem. Nothing speculative.**
22
-
23
- - No features beyond what was asked.
24
- - No abstractions for single-use code.
25
- - No "flexibility" or "configurability" that wasn't requested.
26
- - No error handling for impossible scenarios.
27
- - If you write 200 lines and it could be 50, rewrite it.
28
-
29
- Test: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
30
-
31
- **Rihal application:** rihal-planner tasks must be single-purpose. rihal-executor must not add abstractions during task execution (deviation Rule 2 applies only to missing critical functionality, not speculative flexibility). rihal-code-review explicitly flags overengineering.
32
-
33
- ## 3. Surgical Changes
34
-
35
- **Touch only what you must. Clean up only your own mess.**
36
-
37
- When editing existing code:
38
- - Don't "improve" adjacent code, comments, or formatting.
39
- - Don't refactor things that aren't broken.
40
- - Match existing style, even if you'd do it differently.
41
- - If you notice unrelated dead code, mention it — don't delete it.
42
-
43
- When your changes create orphans:
44
- - Remove imports/variables/functions that YOUR changes made unused.
45
- - Don't remove pre-existing dead code unless asked.
46
-
47
- The test: Every changed line should trace directly to the user's request.
48
-
49
- **Rihal application:** rihal-executor commits must only include files its tasks touched. The deviation scope boundary (out-of-scope warnings logged to deferred-items.md, not fixed) enforces this. rihal-code-review-fix must not change style in files it's auditing.
50
-
51
- ## 4. Goal-Driven Execution
52
-
53
- **Define success criteria. Loop until verified.**
54
-
55
- Transform tasks into verifiable goals:
56
- - "Add validation" → "Write tests for invalid inputs, then make them pass"
57
- - "Fix the bug" → "Write a test that reproduces it, then make it pass"
58
- - "Refactor X" → "Ensure tests pass before and after"
59
-
60
- For multi-step tasks, state a brief plan:
61
- ```
62
- 1. [Step] → verify: [check]
63
- 2. [Step] → verify: [check]
64
- ```
65
-
66
- Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
67
-
68
- **Rihal application:** Every task in a SPRINT.md must have a "Done when:" clause that's externally verifiable. rihal-executor self-check loop verifies Done-when conditions were met. rihal-sprint-checker rejects plans where tasks have vague success criteria.
69
-
70
- ## Enforcement
71
-
72
- Agents that write or modify code (rihal-executor, rihal-planner, rihal-tech-writer, rihal-codebase-mapper when producing code docs) must:
73
- 1. @-include this file
74
- 2. Apply the 4 principles as hard constraints, not suggestions
75
- 3. Reference the specific principle when refusing to make a change (e.g., "Declining per Karpathy #3: that's adjacent to the requested change but not part of it")
76
-
77
- ## Credit
78
-
79
- Original principles by Andrej Karpathy. Reference implementation by Forrest Chang at github.com/forrestchang/andrej-karpathy-skills. Adapted and extended for rihal's multi-agent architecture.
11
+ When refusing a change, cite the principle: `"Declining per Karpathy P3 — that's adjacent to the requested change."`
@@ -0,0 +1,8 @@
1
+ # Model Profile Resolution
2
+
3
+ Workflows pick a model via `node .rihal/bin/rihal-tools.cjs resolve-model
4
+ <role>`, which reads `.rihal/config.yaml` `model_profile` and returns the
5
+ concrete model id for that role per `rihal/config/model-profiles.json`.
6
+
7
+ If `model_profile` is unset, default is `balanced`. Unknown profile falls
8
+ back to `balanced` with a stderr warning.
@@ -0,0 +1,11 @@
1
+ # Phase Argument Parsing
2
+
3
+ Workflows accept a phase argument in two forms:
4
+
5
+ - **Numeric**: `01`, `2`, `02.1` — resolved via
6
+ `node .rihal/bin/rihal-tools.cjs init phase-op "$ARG"` to the matching
7
+ phase directory under `.planning/phases/`.
8
+ - **Path**: a direct `.planning/phases/<slug>/PLAN.md` path — used as-is.
9
+
10
+ If the resolver returns `phase_found: false`, workflows must STOP with a
11
+ "phase not found" message rather than fabricating a target.
@@ -0,0 +1,11 @@
1
+ # Plan Revision Loop
2
+
3
+ When `workflow.plan_checker` is enabled (`/rihal:settings`), `/rihal:plan`
4
+ runs the rihal-plan-checker after the planner. Findings drive a bounded
5
+ revision loop:
6
+
7
+ 1. Planner produces PLAN.md.
8
+ 2. Plan-checker scores against goal-backward criteria.
9
+ 3. If BLOCK / FLAG: planner revises with the findings as added input.
10
+ 4. Up to 2 revision rounds. After that, surface to user for manual
11
+ confirmation rather than loop indefinitely.
@@ -0,0 +1,15 @@
1
+ # Universal Anti-Patterns (Discuss-Phase)
2
+
3
+ Common failure modes the discuss workflow checks for:
4
+
5
+ - **Solution-first framing**: jumping to implementation before constraints
6
+ are explicit.
7
+ - **Hidden binary choice**: presenting a "decision" that has only one
8
+ viable option.
9
+ - **Unowned action**: a "we should X" with no owner or deadline.
10
+ - **Sunk-cost continuation**: defending an existing plan instead of
11
+ evaluating fresh evidence.
12
+ - **Scope inflation**: bundling new work into the current decision.
13
+
14
+ Discuss-phase flags any of these and asks for explicit framing before
15
+ proceeding.
@@ -7,8 +7,19 @@ description: >
7
7
  me understand X industry", or "domain research for". Do NOT use for market
8
8
  analysis (use rihal-market-research) or technical feasibility (use
9
9
  rihal-technical-research).
10
+ triggers:
11
+ - "research this domain"
12
+ - "domain deep dive"
13
+ - "explain this industry"
14
+ - "help
15
+ me understand X industry"
16
+ - "domain research for"
10
17
  ---
11
18
 
19
+ ## Overview
20
+
21
+ Conduct industry domain deep-dive research to build subject matter expertise on a specific business domain.
22
+
12
23
  ## Workflow
13
24
 
14
25
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,19 @@ description: >
6
6
  "competitive analysis", "market analysis for", "size the market",
7
7
  "competitor scan", or "analyze the market for X". Do NOT use for domain
8
8
  deep-dives (use rihal-domain-research) or technical feasibility.
9
+ triggers:
10
+ - "market research"
11
+ - "competitive analysis"
12
+ - "market analysis for"
13
+ - "size the market"
14
+ - "competitor scan"
15
+ - "analyze the market for X"
9
16
  ---
10
17
 
18
+ ## Overview
19
+
20
+ Analyze market size, competitive landscape, customer needs, and trends for a product or industry.
21
+
11
22
  ## Workflow
12
23
 
13
24
  Follow the instructions in ./workflow.md.
@@ -7,8 +7,21 @@ description: >
7
7
  options", "how would we build X", "what stack for", or "technical
8
8
  feasibility for". Do NOT use for final architecture decisions (use
9
9
  rihal-create-architecture) or market analysis.
10
+ triggers:
11
+ - "technical research"
12
+ - "feasibility study"
13
+ - "research implementation
14
+ options"
15
+ - "how would we build X"
16
+ - "what stack for"
17
+ - "technical
18
+ feasibility for"
10
19
  ---
11
20
 
21
+ ## Overview
22
+
23
+ Research technical feasibility, architecture options, and implementation approaches for a proposed product or feature.
24
+
12
25
  ## Workflow
13
26
 
14
27
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,19 @@ description: >
6
6
  "document this project", "analyze this codebase", "generate docs for
7
7
  existing code", "brownfield analysis", or "create LLM-friendly docs". Do
8
8
  NOT use for writing net-new docs (use write-document prompt).
9
+ triggers:
10
+ - "document this project"
11
+ - "analyze this codebase"
12
+ - "generate docs for
13
+ existing code"
14
+ - "brownfield analysis"
15
+ - "create LLM-friendly docs"
9
16
  ---
10
17
 
18
+ ## Overview
19
+
20
+ Analyze an existing codebase and produce documentation for both human and LLM consumption (brownfield analysis).
21
+
11
22
  ## Workflow
12
23
 
13
24
  Follow the instructions in ./workflow.md.
@@ -1,8 +1,20 @@
1
1
  ---
2
2
  name: rihal-prfaq
3
3
  description: Working Backwards PRFAQ challenge to forge product concepts. Use when the user requests to 'create a PRFAQ', 'work backwards', or 'run the PRFAQ challenge'.
4
+ triggers:
5
+ - "prfaq"
4
6
  ---
5
7
 
8
+ ## Do NOT use this skill for
9
+
10
+ - **Refining an existing PRD** — use `rihal-create-prd` or `rihal-edit-prd`.
11
+ - **Brainstorming raw ideas** before there's a concept — use `rihal-brainstorming` first; PRFAQ assumes a candidate concept exists.
12
+ - **Sprint or phase planning** — use `rihal-sprint-planning` / `rihal-create-milestone`.
13
+ - **Pure market research with no product hypothesis** — use a research workflow.
14
+ - **Single-question Q&A** — PRFAQ runs a multi-stage gauntlet; for a one-off answer, just answer.
15
+
16
+ If the user asks to "validate" or "polish" an existing PRD, redirect to `rihal-validate-prd`.
17
+
6
18
  ## Workflow
7
19
 
8
20
 
@@ -6,6 +6,13 @@ description: >
6
6
  brief", "draft a brief for", "product briefing", or "create the brief". Do
7
7
  NOT use for full PRD (use rihal-create-prd) or market analysis alone (use
8
8
  rihal-market-research).
9
+ triggers:
10
+ - "create a product brief"
11
+ - "write a product
12
+ brief"
13
+ - "draft a brief for"
14
+ - "product briefing"
15
+ - "create the brief"
9
16
  ---
10
17
 
11
18
  ## Workflow
@@ -6,8 +6,20 @@ description: >
6
6
  the epic list", "epic and story breakdown", "decompose the PRD", or
7
7
  "create the backlog". Do NOT use to prepare a single story for dev (use
8
8
  rihal-create-story).
9
+ triggers:
10
+ - "create epics"
11
+ - "break this into stories"
12
+ - "generate
13
+ the epic list"
14
+ - "epic and story breakdown"
15
+ - "decompose the PRD"
16
+ - "create the backlog"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Break a PRD into epics and user stories that drive development.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -15,9 +27,11 @@ Follow the instructions in ./workflow.md.
15
27
  ## Output Format
16
28
 
17
29
  - Produces .rihal/phases/{phase}/epics.md with hierarchical structure
18
- - Each epic has: Title | Goal | Stories (list) | Priority | Estimate
30
+ - Each epic has: Title | Goal | Assumptions | Stories (list) | Priority | Estimate
19
31
  - Each story is independently testable and under 4-hour estimate
20
32
  - Do NOT create epics larger than 10 stories — split further
33
+ - Every epic must include an `Assumptions` line — at minimum one entry; "none" is not acceptable
34
+ - Every story must have a one-line verifiable AC before being listed — vague stories get flagged and blocked
21
35
 
22
36
  ## Examples
23
37
 
@@ -8,17 +8,37 @@ description: >
8
8
  lifecycle (use rihal-new-milestone / rihal-complete-milestone), for
9
9
  decomposing one milestone into epics (use rihal-create-epics-and-stories),
10
10
  or for single-phase planning (use rihal-plan-phase).
11
+ triggers:
12
+ - "create milestones"
13
+ - "plan milestones"
14
+ - "create roadmap"
15
+ - "what milestones do I need"
16
+ - "break this project into
17
+ milestones"
18
+ - "roadmap for this product"
11
19
  ---
12
20
 
21
+ ## Overview
22
+
23
+ Design the milestone roadmap (M1..Mn) for a project from an approved PRD.
24
+
13
25
  Follow the instructions in ./workflow.md.
14
26
 
15
27
  ## Output Format
16
28
 
17
29
  - Output: ROADMAP.md in `{planning_artifacts}/`
18
- - Structure: per milestone — Name, Window (dates), Goal (one sentence), Acceptance criteria, Kill criteria (binary), Phases (stub list), then a trailing Backlog / parking lot section
30
+ - Structure: per milestone — Name, Window (dates), Goal (one sentence), Assumptions, Acceptance criteria, Kill criteria (binary), Phases (stub list), then a trailing Backlog / parking lot section
19
31
  - Each kill criterion must be binary (number + threshold), not adjectival
20
32
  - Every milestone has an explicit window with start + end dates
33
+ - Every milestone must include an `Assumptions` block — decisions that, if wrong, invalidate this milestone's scope
21
34
  - Do NOT include: unquantified success language ("grow the user base"), open-ended milestones without dates, or more than 6 active milestones in one roadmap (split into v1/v2 if needed)
35
+ - If a milestone goal cannot be expressed as a single verifiable sentence, split it into two milestones
36
+
37
+ ## Workflow
38
+
39
+ 1. Read the user request and extract key parameters.
40
+ 2. Execute the skill logic as described in the Overview.
41
+ 3. Return output in the format specified below.
22
42
 
23
43
  ## Examples
24
44
 
@@ -33,7 +33,7 @@ Hard deadline: {deadline or "none specified"}
33
33
  [{completedAt}]
34
34
  ```
35
35
 
36
- ### 3. Next-step menu (intent-based, mirrors the GSD /progress Route A/B/C pattern)
36
+ ### 3. Next-step menu (intent-based Route A/B/C pattern)
37
37
 
38
38
  ```
39
39
  What's next?
@@ -7,8 +7,21 @@ description: >
7
7
  "draft requirements for", "new product spec", or "start a PRD". Do NOT use
8
8
  for updating an existing PRD (use rihal-edit-prd), or validating an
9
9
  existing PRD (use rihal-validate-prd).
10
+ triggers:
11
+ - "create a PRD"
12
+ - "write product
13
+ requirements document"
14
+ - "lets make a PRD"
15
+ - "I want to create a new PRD"
16
+ - "draft requirements for"
17
+ - "new product spec"
18
+ - "start a PRD"
10
19
  ---
11
20
 
21
+ ## Overview
22
+
23
+ Create a new Product Requirements Document from scratch through guided facilitation.
24
+
12
25
  ## Workflow
13
26
 
14
27
  Follow the instructions in ./workflow.md.
@@ -21,6 +34,19 @@ Follow the instructions in ./workflow.md.
21
34
  - Every section has explicit owner and deadline
22
35
  - Do NOT include: vague verbs ("optimize"), unquantified metrics, or requirements without owners
23
36
 
37
+ ## Fast-path detection
38
+
39
+ If `$ARGUMENTS` or the opening message contains ALL FOUR of these fields, skip the discovery interview and go straight to drafting:
40
+
41
+ | Field | Signal words |
42
+ |-------|-------------|
43
+ | Product / feature name | explicit name or noun |
44
+ | Problem statement | "problem is", "users can't", "currently X fails" |
45
+ | Target user | "for X users", "persona is", "audience is" |
46
+ | Scope signal | "must have", "v1 only", "just need", "MVP" |
47
+
48
+ When fast-pathing: confirm detected fields in one line ("Got it — building {name} for {user} to solve {problem}. Starting PRD draft."), then generate without asking further questions. If any of the four are absent, run the normal interview.
49
+
24
50
  ## Examples
25
51
 
26
52
  ### Happy Path
@@ -6,8 +6,20 @@ description: >
6
6
  story {id}", "write the story for", "get next story ready for dev", or
7
7
  "assemble story context". Do NOT use to execute a story (use
8
8
  rihal-dev-story).
9
+ triggers:
10
+ - "create the next story"
11
+ - "prepare a story"
12
+ - "create
13
+ story {id}"
14
+ - "write the story for"
15
+ - "get next story ready for dev"
16
+ - "assemble story context"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Prepare a dev-ready user story with full implementation context.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -15,10 +27,12 @@ Follow the instructions in ./workflow.md.
15
27
  ## Output Format
16
28
 
17
29
  - Story file at .rihal/phases/{phase}/stories/story-{id}.md
18
- - Fixed sections: Goal | Context | Tasks (checklist) | Acceptance Criteria | Dependencies | File List (empty) | Dev Agent Record (empty)
30
+ - Fixed sections: Goal | Assumptions | Context | Tasks (checklist) | Acceptance Criteria | Dependencies | File List (empty) | Dev Agent Record (empty)
19
31
  - Each task is ≤4 hours, in execution order
20
- - Acceptance criteria in Given/When/Then
32
+ - Acceptance criteria in Given/When/Then — no criterion is valid unless a test can be written against it
33
+ - `## Assumptions` block is mandatory: list every assumption that, if wrong, would change the story scope
21
34
  - Do NOT include implementation details in the story — those emerge during dev
35
+ - If AC cannot be stated in Given/When/Then, stop and ask the user to clarify before generating the story
22
36
 
23
37
  ## Examples
24
38
 
@@ -6,8 +6,20 @@ description: >
6
6
  when the user says "create UX design", "design the user flow", "wireframe
7
7
  this", "UX plan", "design this screen", or "create the design for". Do NOT
8
8
  use for UI code (use rihal-dev-story) or visual code review.
9
+ triggers:
10
+ - "create UX design"
11
+ - "design the user flow"
12
+ - "wireframe
13
+ this"
14
+ - "UX plan"
15
+ - "design this screen"
16
+ - "create the design for"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Guide through realizing a UX design that informs architecture and implementation — user flows, wireframes, design system updates.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,19 @@ description: >
6
6
  PRD", "edit the PRD", "add a section to the PRD", "revise requirements",
7
7
  or "change the scope in the PRD". Do NOT use to create a new PRD (use
8
8
  rihal-create-prd) or to validate quality (use rihal-validate-prd).
9
+ triggers:
10
+ - "update the
11
+ PRD"
12
+ - "edit the PRD"
13
+ - "add a section to the PRD"
14
+ - "revise requirements"
15
+ - "change the scope in the PRD"
9
16
  ---
10
17
 
18
+ ## Overview
19
+
20
+ Update an existing Product Requirements Document with new sections, revisions, or clarifications.
21
+
11
22
  ## Workflow
12
23
 
13
24
  Follow the instructions in ./workflow.md.
@@ -14,6 +14,19 @@ description: >
14
14
  and rihal-agent-zahra (branding expert) for brand alignment. Do
15
15
  NOT use for: cloning existing sites (use rihal-clone-website
16
16
  instead), pure backend work, or documentation.
17
+ triggers:
18
+ - "AI slop"
19
+ - "design this UI"
20
+ - "build a beautiful frontend"
21
+ - "distinctive design"
22
+ - "creative UI"
23
+ - "unforgettable interface"
24
+ - "award-winning design"
25
+ - "not generic"
26
+ - "bold aesthetic"
27
+ - "brutalist"
28
+ - "editorial"
29
+ - "maximalist"
17
30
  license: Adapted from Anthropic's frontend-design skill
18
31
  ---
19
32
 
@@ -5,8 +5,20 @@ description: >
5
5
  and internal consistency. Activates when the user says "validate the PRD",
6
6
  "review the PRD", "check the PRD", "is the PRD ready", "PRD quality
7
7
  check", or "audit the PRD". Do NOT use to create or edit a PRD.
8
+ triggers:
9
+ - "validate the PRD"
10
+ - "review the PRD"
11
+ - "check the PRD"
12
+ - "is the PRD ready"
13
+ - "PRD quality
14
+ check"
15
+ - "audit the PRD"
8
16
  ---
9
17
 
18
+ ## Overview
19
+
20
+ Validate an existing PRD for comprehensiveness, leanness, organization, and internal consistency.
21
+
10
22
  ## Workflow
11
23
 
12
24
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,20 @@ description: >
6
6
  "check implementation readiness", "is this ready for dev", "verify
7
7
  alignment", "readiness check", "IR check", or "can we start building". Do
8
8
  NOT use during active implementation (use rihal-correct-course instead).
9
+ triggers:
10
+ - "check implementation readiness"
11
+ - "is this ready for dev"
12
+ - "verify
13
+ alignment"
14
+ - "readiness check"
15
+ - "IR check"
16
+ - "can we start building"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Verify that PRD, UX designs, architecture decisions, and epics/stories are all aligned and ready for implementation.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -7,8 +7,22 @@ description: >
7
7
  architecture record", "lock this technical decision", or "record the
8
8
  decision to use X". Do NOT use for implementation code (use
9
9
  rihal-dev-story) or sprint planning (use rihal-sprint-planning).
10
+ triggers:
11
+ - "write an ADR"
12
+ - "create
13
+ architecture decision"
14
+ - "document this architectural choice"
15
+ - "write an
16
+ architecture record"
17
+ - "lock this technical decision"
18
+ - "record the
19
+ decision to use X"
10
20
  ---
11
21
 
22
+ ## Overview
23
+
24
+ Write an Architecture Decision Record (ADR) to lock a significant technical decision.
25
+
12
26
  ## Workflow
13
27
 
14
28
  Follow the instructions in ./workflow.md.
@@ -7,8 +7,20 @@ description: >
7
7
  file", "document project conventions", "setup AI context", or "create
8
8
  project-context.md". Do NOT use for full project documentation (use
9
9
  rihal-document-project).
10
+ triggers:
11
+ - "generate project context"
12
+ - "create context
13
+ file"
14
+ - "document project conventions"
15
+ - "setup AI context"
16
+ - "create
17
+ project-context.md"
10
18
  ---
11
19
 
20
+ ## Overview
21
+
22
+ Generate a project-context.md file that summarizes project standards, conventions, tech stack, and key patterns for AI agents to reference.
23
+
12
24
  ## Workflow
13
25
 
14
26
  Follow the instructions in ./workflow.md.
@@ -1,8 +1,24 @@
1
1
  ---
2
2
  name: rihal-checkpoint-preview
3
3
  description: 'LLM-assisted human-in-the-loop review. Make sense of a change, focus attention where it matters, test. Use when the user says "checkpoint", "human review", or "walk me through this change".'
4
+ triggers:
5
+ - "checkpoint preview"
4
6
  ---
5
7
 
8
+ ## Overview
9
+
10
+ Checkpoint preview skill for Rihal Code.
11
+
12
+ ## Do NOT use this skill for
13
+
14
+ - **Automated code review without a human** — use `/rihal:karpathy-audit` or a code-reviewer agent directly.
15
+ - **Approving a deploy or merge** — this skill explains a change; it does not authorize git push, deploys, or PR merges.
16
+ - **Bug investigation** from scratch — use `/rihal:debug` or the diagnose-issues workflow.
17
+ - **Architecture review of an undelivered design** — this skill reviews delivered code/diffs, not specs.
18
+ - **Sprint retros or milestone closure** — use `rihal-retrospective` or `rihal-complete-milestone`.
19
+
20
+ If the user has not produced a diff or change to review, ask them to do so first instead of invoking this skill.
21
+
6
22
  ## Workflow
7
23
 
8
24
 
@@ -6,8 +6,20 @@ description: >
6
6
  code review", "do a PR review", "review the diff", "critique this
7
7
  implementation", or "CR". Do NOT use for documentation review (use
8
8
  rihal-validate-prd or editorial skills).
9
+ triggers:
10
+ - "review this code"
11
+ - "run
12
+ code review"
13
+ - "do a PR review"
14
+ - "review the diff"
15
+ - "critique this
16
+ implementation"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Review code changes using parallel adversarial review layers and produce actionable findings.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,21 @@ description: >
6
6
  the scope mid-sprint", "we need to pivot", "correct course", "handle scope
7
7
  change", or "change story mid-way". Do NOT use for normal sprint updates
8
8
  (use rihal-sprint-status).
9
+ triggers:
10
+ - "course correct"
11
+ - "change
12
+ the scope mid-sprint"
13
+ - "we need to pivot"
14
+ - "correct course"
15
+ - "handle scope
16
+ change"
17
+ - "change story mid-way"
9
18
  ---
10
19
 
20
+ ## Overview
21
+
22
+ Course-correct when major change is discovered mid-sprint or mid-implementation.
23
+
11
24
  ## Workflow
12
25
 
13
26
  Follow the instructions in ./workflow.md.