@hanzlaa/rcode 2.3.1 → 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 (90) hide show
  1. package/CLAUDE.md +15 -0
  2. package/README.md +8 -8
  3. package/cli/postinstall.js +4 -4
  4. package/package.json +2 -2
  5. package/rihal/agents/rihal-executor.md +1 -0
  6. package/rihal/agents/rihal-phase-researcher.md +1 -0
  7. package/rihal/agents/rihal-planner.md +2 -1
  8. package/rihal/brain/best-practices/no-theoretical-suggestions.md +56 -0
  9. package/rihal/commands/add-phase.md +2 -2
  10. package/rihal/commands/cleanup.md +2 -2
  11. package/rihal/commands/pr-branch.md +2 -2
  12. package/rihal/commands/remove-phase.md +2 -2
  13. package/rihal/commands/research-phase.md +2 -2
  14. package/rihal/commands/ship.md +15 -3
  15. package/rihal/commands/validate-phase.md +1 -1
  16. package/rihal/commands/verify-phase.md +2 -2
  17. package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +11 -0
  18. package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +11 -0
  19. package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +13 -0
  20. package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +11 -0
  21. package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +2 -0
  22. package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +7 -0
  23. package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +12 -0
  24. package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +18 -0
  25. package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +13 -0
  26. package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +12 -0
  27. package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +12 -0
  28. package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +11 -0
  29. package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +13 -0
  30. package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +12 -0
  31. package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +12 -0
  32. package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +14 -0
  33. package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +12 -0
  34. package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +6 -0
  35. package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +12 -0
  36. package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +13 -0
  37. package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +12 -0
  38. package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +12 -0
  39. package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +11 -0
  40. package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +10 -0
  41. package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +11 -0
  42. package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +10 -0
  43. package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +13 -1
  44. package/rihal/skills/agents/fatima-qa/SKILL.md +14 -1
  45. package/rihal/skills/agents/haitham-frontend/SKILL.md +15 -1
  46. package/rihal/skills/agents/hanzla-engineer/SKILL.md +14 -1
  47. package/rihal/skills/agents/hussain-pm/SKILL.md +14 -1
  48. package/rihal/skills/agents/hussain-sm/SKILL.md +14 -1
  49. package/rihal/skills/agents/layla-designer/SKILL.md +15 -1
  50. package/rihal/skills/agents/majlis-council/SKILL.md +14 -1
  51. package/rihal/skills/agents/mariam-marketing/SKILL.md +15 -1
  52. package/rihal/skills/agents/nasser-eng-manager/SKILL.md +14 -1
  53. package/rihal/skills/agents/noor-writer/SKILL.md +14 -1
  54. package/rihal/skills/agents/raees-orchestrator/SKILL.md +13 -1
  55. package/rihal/skills/agents/sadiq-analyst/SKILL.md +15 -1
  56. package/rihal/skills/agents/waleed-architect/SKILL.md +16 -1
  57. package/rihal/skills/agents/yousef-backend/SKILL.md +16 -1
  58. package/rihal/skills/agents/zahra-branding/SKILL.md +15 -1
  59. package/rihal/skills/agents/zayd-ml/SKILL.md +17 -1
  60. package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +12 -0
  61. package/rihal/skills/core/rihal-brainstorming/SKILL.md +16 -0
  62. package/rihal/skills/core/rihal-clone-website/SKILL.md +21 -0
  63. package/rihal/skills/core/rihal-distillator/SKILL.md +8 -0
  64. package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +12 -0
  65. package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +18 -0
  66. package/rihal/skills/core/rihal-help/SKILL.md +12 -0
  67. package/rihal/skills/core/rihal-index-docs/SKILL.md +18 -0
  68. package/rihal/skills/core/rihal-init/SKILL.md +8 -0
  69. package/rihal/skills/core/rihal-party-mode/SKILL.md +14 -0
  70. package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +12 -0
  71. package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +18 -0
  72. package/rihal/skills/core/rihal-shard-doc/SKILL.md +18 -0
  73. package/rihal/team.yaml +205 -0
  74. package/rihal/workflows/autonomous.md +2 -2
  75. package/rihal/workflows/checkpoint-preview.md +1 -1
  76. package/rihal/workflows/document-project.md +1 -1
  77. package/rihal/workflows/help.md +1 -1
  78. package/rihal/workflows/prfaq.md +1 -1
  79. package/rihal/workflows/settings.md +18 -17
  80. package/rihal/workflows/ship.md +31 -1
  81. package/rihal/workflows/sprint-planning.md +2 -2
  82. package/server/dashboard.js +34 -575
  83. package/server/lib/api.js +123 -0
  84. package/server/lib/html/client.js +969 -0
  85. package/server/lib/html/css.js +416 -0
  86. package/server/lib/html/shell.js +230 -0
  87. package/server/lib/scanner.js +142 -0
  88. package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/SKILL.md +0 -148
  89. package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/methods.csv +0 -51
  90. package/rihal/skills/core/rihal-shard-doc/rihal-shard-doc/SKILL.md +0 -122
package/CLAUDE.md CHANGED
@@ -92,6 +92,21 @@ If a user says "just keep going" or "don't stop until done", that authorization
92
92
 
93
93
  ---
94
94
 
95
+ ## 🚨 No Theoretical Suggestions — Codebase First
96
+
97
+ **Every suggestion, plan, or change MUST be grounded in what actually exists in the codebase.**
98
+
99
+ - **NEVER suggest adding, fixing, or implementing something that doesn't exist yet** unless the user explicitly asked you to build it from scratch
100
+ - **ALWAYS read the actual files** before proposing a change — never assume a function, field, or file exists based on documentation or naming conventions
101
+ - **NEVER say "this probably does X"** — verify with `grep`, `find`, or `Read` first
102
+ - **NEVER produce an investigation/plan based on theoretical structure** — if you can't find it in the code, say "this doesn't exist yet" and stop
103
+ - **When a workflow or agent references something** (file path, function name, config key) — confirm it exists before including it in a plan
104
+ - If a file is missing that should exist: report it as a gap, do NOT write a plan that assumes it will work
105
+
106
+ **The test:** Could every line of your plan be traced back to a specific file and line number in the repo? If not, it's theoretical — don't ship it.
107
+
108
+ ---
109
+
95
110
  ## Communication Rules
96
111
 
97
112
  - Report progress honestly — do not claim work is done if it isn't
package/README.md CHANGED
@@ -37,8 +37,8 @@ Rihal Code packages a lot. To keep things approachable, everything is organized
37
37
 
38
38
  Most AI tools give you one assistant pretending to be everything. **Rihal Code gives you Rihal's team — and Rihal's brain — inside every project.**
39
39
 
40
- - **45 agents** with clear roles, cultural identity (Arabic names), and hard scope boundaries
41
- - **99 slash commands** covering research, planning, execution, verification, and recovery
40
+ - **44 agents** with clear roles, cultural identity (Arabic names), and hard scope boundaries
41
+ - **98 slash commands** covering research, planning, execution, verification, and recovery
42
42
  - **3 execution modes**: parallel debate (`/rihal:council`), sequential pipelines (`/rihal:chain`), and quick-sync (`/rihal:discuss`)
43
43
  - **File-based state** in `.rihal/` that every workflow reads and updates
44
44
  - **Intent guards** on every workflow — catch wrong commands early with copy-paste redirects
@@ -65,9 +65,9 @@ npx @hanzlaa/rcode install
65
65
  One unified installer. Pure file shipping, no runtime dependencies. Installs into:
66
66
 
67
67
  - `.rihal/` — config, workflows, references, bin (Rihal infrastructure)
68
- - `.claude/agents/` — 45 first-class subagents
69
- - `.claude/commands/rihal/` — 99 slash commands
70
- - `.claude/skills/` — 57 phrase-activated skills (scaffold-project, create-prd, prfaq, retrospective, etc.)
68
+ - `.claude/agents/` — 44 first-class subagents
69
+ - `.claude/commands/rihal/` — 98 slash commands
70
+ - `.claude/skills/` — 56 phrase-activated skills (scaffold-project, create-prd, prfaq, retrospective, etc.)
71
71
  - `rihal/brain/` — Rihal standards pulled from upstream (PR / commit / architecture docs)
72
72
  - `.planning/` — where your artifacts land (council sessions, plans, chains, summaries)
73
73
 
@@ -309,7 +309,7 @@ Recent additions in this session:
309
309
 
310
310
  ---
311
311
 
312
- ## Full command surface (99 commands)
312
+ ## Full command surface (98 commands)
313
313
 
314
314
  ### Router + lifecycle
315
315
  `init` · `do` · `help` · `status` · `stats` · `health` · `forensics` · `update`
@@ -446,8 +446,8 @@ Every install runs 5 automated smoke tests before exiting:
446
446
  ✓ rihal-tools.cjs runs — syntax ok
447
447
  ✓ .rihal/config.yaml present — 412 bytes
448
448
  ✓ .rihal/state.json parses — valid JSON
449
- ✓ agents installed — 43
450
- ✓ skills + commands installed — 56 skills + 99 commands
449
+ ✓ agents installed — 44
450
+ ✓ skills + commands installed — 56 skills + 98 commands
451
451
  ```
452
452
 
453
453
  A failed check prints the debug command and returns exit code 1 so CI catches broken installs.
@@ -11,8 +11,8 @@ console.log(`
11
11
  🕌 Rihal Code installed.
12
12
 
13
13
  First-time setup:
14
- npx @hanzlahabib/rihal-code install # set up agents + slash commands
15
- npx @hanzlahabib/rihal-code tiers # see the tier map
14
+ npx @hanzlaa/rcode install # set up agents + slash commands
15
+ npx @hanzlaa/rcode tiers # see the tier map
16
16
 
17
17
  🌱 The Golden Path (say these phrases in your AI IDE):
18
18
  1. "scaffold a new project" → rihal-scaffold-project
@@ -24,8 +24,8 @@ First-time setup:
24
24
  7. "sprint status" → rihal-sprint-status
25
25
 
26
26
  More:
27
- npx @hanzlahabib/rihal-code help # all commands (grouped)
28
- npx @hanzlahabib/rihal-code dashboard # view-only Diwan on :7717
27
+ npx @hanzlaa/rcode help # all commands (grouped)
28
+ npx @hanzlaa/rcode dashboard # view-only Diwan on :7717
29
29
 
30
30
  Docs: https://github.com/hanzlahabib/rihal-code
31
31
  Tiers: docs/TIERS.md · Standards: docs/STANDARDS.md
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hanzlaa/rcode",
3
- "version": "2.3.1",
4
- "description": "Rihal Code (rcode) — installable context-brain for Rihalians. 44 agents, 93 slash commands, 58 skills, pullable Rihal standards. Unified install for Claude Code, Cursor, and Gemini.",
3
+ "version": "2.3.2",
4
+ "description": "Rihal Code (rcode) — installable context-brain for Rihalians. 44 agents, 98 slash commands, 56 skills, pullable Rihal standards. Unified install for Claude Code, Cursor, and Gemini.",
5
5
  "main": "cli/index.js",
6
6
  "bin": {
7
7
  "rcode": "dist/rcode.js",
@@ -9,6 +9,7 @@ color: yellow
9
9
  @.rihal/references/karpathy-guidelines-full.md
10
10
  @.rihal/references/output-realism.md
11
11
  @.rihal/references/no-unauthorized-git-ops.md
12
+ @.rihal/brain/best-practices/no-theoretical-suggestions.md
12
13
 
13
14
  <role>
14
15
  Rihal sprint executor. Execute SPRINT.md files atomically, commit each story, handle deviations, pause at checkpoints, produce SUMMARY.md.
@@ -8,6 +8,7 @@ color: cyan
8
8
 
9
9
  @.rihal/references/response-style.md
10
10
  @.rihal/references/karpathy-guidelines.md
11
+ @.rihal/brain/best-practices/no-theoretical-suggestions.md
11
12
 
12
13
  <role>
13
14
  You are a Rihal phase researcher. You answer "What do I need to know to PLAN this phase well?" and produce a single RESEARCH.md that the planner consumes.
@@ -8,6 +8,7 @@ color: green
8
8
  @.rihal/references/response-style.md
9
9
  @.rihal/references/karpathy-guidelines-full.md
10
10
  @.rihal/references/output-realism.md
11
+ @.rihal/brain/best-practices/no-theoretical-suggestions.md
11
12
 
12
13
  <role>
13
14
  Rihal sprint planner. Create executable SPRINT.md files with story breakdown, dependency analysis, and goal-backward verification.
@@ -129,7 +130,7 @@ Output: [Artifacts created]
129
130
  </objective>
130
131
 
131
132
  <execution_context>
132
- @.rihal/workflows/execute-plan.md
133
+ @.rihal/workflows/execute.md
133
134
  @.rihal/templates/summary.md
134
135
  </execution_context>
135
136
 
@@ -0,0 +1,56 @@
1
+ # No Theoretical Suggestions Rule
2
+
3
+ Referenced by all agents that propose plans, file changes, or implementation steps.
4
+
5
+ ## The Rule
6
+
7
+ **Every suggestion, plan, or implementation step must be grounded in what actually exists in the codebase.** Never propose a change based on assumed structure, naming conventions, documentation, or what "probably" exists.
8
+
9
+ ## What This Means in Practice
10
+
11
+ Before including any file path, function name, config key, or field in a plan:
12
+
13
+ 1. Confirm it exists — use `Read`, `grep`, `find`, or `glob`.
14
+ 2. If it doesn't exist, say so explicitly: "this doesn't exist yet."
15
+ 3. Only then decide whether to create it (if the user asked) or report the gap (if they didn't).
16
+
17
+ ## The Test
18
+
19
+ Could every line of your plan be traced to a specific file and line number in the repo right now? If not, the plan contains theoretical content — do not ship it.
20
+
21
+ ## Failure Pattern to Avoid
22
+
23
+ - Agent reads an investigation doc or workflow description.
24
+ - Agent produces a plan based on what the doc *says* should exist.
25
+ - Agent never verifies the described files/fields/functions actually exist.
26
+ - Plan references symbols that are missing, misnamed, or not yet implemented.
27
+ - Execution fails or produces wrong results.
28
+
29
+ This pattern is forbidden. Investigation documents describe intent, not ground truth. Code is ground truth.
30
+
31
+ ## Correct Behavior
32
+
33
+ ```
34
+ # WRONG — theoretical
35
+ "Fix the force_web_search toggle in backend/config.py"
36
+ (without checking if force_web_search actually exists in that file)
37
+
38
+ # RIGHT — grounded
39
+ grep -r "force_web_search" backend/
40
+ → no results
41
+ → "force_web_search doesn't exist in the codebase yet. The investigation doc was theoretical. Here's what actually exists: ..."
42
+ ```
43
+
44
+ ## When You Can't Find Something
45
+
46
+ - Do NOT assume it's in a different file or under a different name.
47
+ - Do NOT write a plan that assumes you'll find it later.
48
+ - STOP and report: "I searched for X and found nothing. Either it doesn't exist yet or the investigation was theoretical."
49
+
50
+ ## Applies To
51
+
52
+ - `rihal-planner` — every task in SPRINT.md must reference real files
53
+ - `rihal-executor` — read the target file before writing any change
54
+ - `rihal-phase-researcher` — cite actual code paths, not presumed ones
55
+ - `rihal-sprint-checker` — flag plans that reference non-existent symbols
56
+ - All council agents — proposals must name real constraints, not theoretical ones
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:add-phase
3
- description: Execute add-phase workflow
4
- argument-hint: ""
3
+ description: "Add a new integer phase to the end of the current milestone. Auto-calculates the next phase number, creates the phase directory, and updates ROADMAP.md. Use when scope expands mid-milestone."
4
+ argument-hint: "<phase-name>"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:cleanup
3
- description: Execute cleanup workflow
4
- argument-hint: ""
3
+ description: "Archive completed milestone phase directories into .planning/milestones/. Run after /rihal:complete-milestone to keep .planning/ tidy. Shows a dry-run summary before moving anything."
4
+ argument-hint: "[--dry-run]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Agent
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:pr-branch
3
- description: Execute pr-branch workflow
4
- argument-hint: ""
3
+ description: "Create a clean PR branch that strips all Rihal planning artifacts (.planning/, SPRINT.md, SUMMARY.md, STATE.md). Reviewers see only code changes. Use before /rihal:ship when you want a clean git history in the PR."
4
+ argument-hint: "[<base-branch>]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:remove-phase
3
- description: Execute remove-phase workflow
4
- argument-hint: ""
3
+ description: "Remove an unstarted future phase from ROADMAP.md, delete its directory, and renumber all subsequent phases to maintain a clean sequence. Cannot remove a phase already in progress or completed."
4
+ argument-hint: "<phase-number>"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:research-phase
3
- description: Execute research-phase workflow
4
- argument-hint: ""
3
+ description: "Research how to implement a phase before planning. Spawns rihal-phase-researcher with phase context. Standalone tool — /rihal:plan already runs this automatically. Use only when you want research without immediately creating a plan."
4
+ argument-hint: "<phase-number>"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
6
6
  ---
7
7
 
@@ -1,12 +1,24 @@
1
1
  ---
2
2
  name: rihal:ship
3
- description: Execute ship workflow
4
- argument-hint: ""
3
+ description: "After a phase is verified, create a PR: push branch, auto-generate PR body from planning artifacts (ROADMAP, VERIFICATION, SUMMARY), and optionally request review. Closes the plan→execute→verify→ship loop."
4
+ argument-hint: "[<phase>] [--draft]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
6
6
  ---
7
7
 
8
8
  <objective>
9
- Execute ship workflow
9
+ Ship a completed, verified phase by pushing its feature branch and opening a
10
+ pull request with an auto-generated body drawn from planning artifacts.
11
+
12
+ **When to use:**
13
+ - You have finished `/rihal:execute <phase>` and `/rihal:verify-phase <phase>` passed
14
+ - You want to open a PR from your feature branch into main/develop
15
+ - You want the PR body auto-filled with phase goal, changes, requirements addressed, and verification status
16
+
17
+ **When NOT to use:**
18
+ - Publishing a package to npm → use `npm publish` directly
19
+ - Tagging a release → use `git tag` + `git push --tags`
20
+ - You are inside the rihal-code framework repo itself (no phases exist here)
21
+ - Your project uses `git.branching_strategy: none` and you commit directly to main
10
22
  </objective>
11
23
 
12
24
  <execution_context>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:validate-phase
3
3
  description: Audit Nyquist validation gaps for a completed phase. Generate missing tests. Update VALIDATION.md.
4
- argument-hint: ""
4
+ argument-hint: "<phase-number>"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Agent
6
6
  ---
7
7
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rihal:verify-phase
3
- description: Verify phase goal achievement through goal-backward analysis. Check that the codebase delivers what the phase promised,
4
- argument-hint: ""
3
+ description: "Goal-backward audit does the codebase actually deliver what the phase promised? Produces VERIFICATION.md with pass/fail. Required before /rihal:ship. Run after /rihal:execute completes."
4
+ argument-hint: "<phase-number>"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Agent
6
6
  ---
7
7
 
@@ -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,6 +1,8 @@
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
 
6
8
  ## Do NOT use this skill for
@@ -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.
@@ -8,8 +8,20 @@ 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
@@ -22,6 +34,12 @@ Follow the instructions in ./workflow.md.
22
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)
23
35
  - If a milestone goal cannot be expressed as a single verifiable sentence, split it into two milestones
24
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.
42
+
25
43
  ## Examples
26
44
 
27
45
  ### Happy Path
@@ -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.
@@ -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.
@@ -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.