@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
@@ -6,8 +6,20 @@ description: >
6
6
  "implement story {id}", "execute the story", "code the next story", "run
7
7
  dev-story on", or "implement .rihal/phases/{phase}/stories/{file}". Do NOT
8
8
  use without a prepared story file (use rihal-create-story first).
9
+ triggers:
10
+ - "dev this story"
11
+ - "implement story {id}"
12
+ - "execute the story"
13
+ - "code the next story"
14
+ - "run
15
+ dev-story on"
16
+ - "implement .rihal/phases/{phase}/stories/{file}"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Execute an approved story file by writing tests and code that fulfill every acceptance criterion.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,20 @@ description: >
6
6
  tests", "write e2e tests for", "add end-to-end test coverage", "qa this
7
7
  feature", or "generate integration tests". Do NOT use for unit test
8
8
  generation or code review (use rihal-code-review).
9
+ triggers:
10
+ - "generate e2e
11
+ tests"
12
+ - "write e2e tests for"
13
+ - "add end-to-end test coverage"
14
+ - "qa this
15
+ feature"
16
+ - "generate integration tests"
9
17
  ---
10
18
 
19
+ ## Overview
20
+
21
+ Generate end-to-end tests for an existing feature using the project's standard test framework.
22
+
11
23
  ## Workflow
12
24
 
13
25
  Follow the instructions in ./workflow.md.
@@ -6,8 +6,19 @@ description: >
6
6
  retrospective", "retro", "sprint retrospective", "review completed work",
7
7
  or "extract learnings from this sprint". Do NOT use for active sprint
8
8
  status (use rihal-sprint-status).
9
+ triggers:
10
+ - "run
11
+ retrospective"
12
+ - "retro"
13
+ - "sprint retrospective"
14
+ - "review completed work"
15
+ - "extract learnings from this sprint"
9
16
  ---
10
17
 
18
+ ## Overview
19
+
20
+ Run an epic retrospective that reviews completed work, extracts learnings, and produces owned action items.
21
+
11
22
  ## Workflow
12
23
 
13
24
  Follow the instructions in ./workflow.md.
@@ -7,6 +7,16 @@ description: >
7
7
  "rihal new project", or "start a new rihal project". Do NOT use for generating
8
8
  project context files (use rihal-generate-project-context) or cloning websites
9
9
  (use rihal-clone-website).
10
+ triggers:
11
+ - "scaffold project"
12
+ - "create project"
13
+ - "new project"
14
+ - "initialize project"
15
+ - "setup new project"
16
+ - "scaffold from template"
17
+ - "create from template"
18
+ - "rihal new project"
19
+ - "start a new rihal project"
10
20
  ---
11
21
 
12
22
  ## Workflow
@@ -6,8 +6,19 @@ description: >
6
6
  sprint planning", "sequence the next sprint", or "generate sprint N plan".
7
7
  Do NOT use for epic breakdown (use rihal-create-epics-and-stories) or
8
8
  status reporting (use rihal-sprint-status).
9
+ triggers:
10
+ - "plan the sprint"
11
+ - "create sprint plan"
12
+ - "run
13
+ sprint planning"
14
+ - "sequence the next sprint"
15
+ - "generate sprint N plan"
9
16
  ---
10
17
 
18
+ ## Overview
19
+
20
+ Generate or update a sprint plan that sequences stories for dev execution.
21
+
11
22
  ## Workflow
12
23
 
13
24
  Follow the instructions in ./workflow.md.
@@ -15,10 +26,12 @@ Follow the instructions in ./workflow.md.
15
26
  ## Output Format
16
27
 
17
28
  - Output: .rihal/phases/{phase}/sprint-{N}.md
18
- - Fixed structure: Sprint Goal (one sentence) | Duration | Stories (with owners) | Capacity Used/Available | Risks | Definition of Done
29
+ - Fixed structure: Sprint Goal (one sentence) | Assumptions | Duration | Stories (with owners) | Capacity Used/Available | Risks | Definition of Done
19
30
  - Stories ranked by priority from epics.md
20
31
  - Leave 20% capacity buffer
21
32
  - Do NOT commit to stories without explicit owners
33
+ - Sprint Goal must be one verifiable sentence — if it cannot be verified at sprint end without interpretation, rewrite it
34
+ - `Assumptions` block required: list capacity assumptions, any known blockers assumed absent, any dependencies assumed resolved
22
35
 
23
36
  ## Examples
24
37
 
@@ -6,8 +6,18 @@ description: >
6
6
  "how is the sprint going", "generate status report", "sprint progress", or
7
7
  "where are we in the sprint". Do NOT use for retrospectives (use
8
8
  rihal-retrospective).
9
+ triggers:
10
+ - "sprint status"
11
+ - "how is the sprint going"
12
+ - "generate status report"
13
+ - "sprint progress"
14
+ - "where are we in the sprint"
9
15
  ---
10
16
 
17
+ ## Overview
18
+
19
+ Generate a sprint status report showing progress, blockers, and recommended next actions.
20
+
11
21
  ## Workflow
12
22
 
13
23
  Follow the instructions in ./workflow.md.
@@ -12,6 +12,18 @@ description: >
12
12
  decisions (use Waleed, CTO), individual engineer 1:1s or performance
13
13
  (use Nasser, Engineering Manager), writing code (use Hanzla/Haitham/
14
14
  Yousef/Zayd), or sprint ceremonies (use Hussain-SM).
15
+ triggers:
16
+ - "director review"
17
+ - "executive decision"
18
+ - "board level"
19
+ - "strategic direction"
20
+ - "company strategy"
21
+ - "talk to Ahmed"
22
+ - "C-suite"
23
+ - "leadership decision"
24
+ - "org design"
25
+ - "executive alignment"
26
+ - "company roadmap"
15
27
  ---
16
28
 
17
29
  # Ahmed Al Hassani — Technology & Development Director
@@ -54,7 +66,7 @@ Measured and direct. Talks in delivery milestones, RACI matrices, engineering sc
54
66
  | DM | Review DORA metrics (deploy freq, lead time, failure rate, MTTR) | rihal-dora-review (future) |
55
67
  | TD | Prioritize the technical debt backlog | rihal-tech-debt-review (future) |
56
68
 
57
- ## On Activation
69
+ ## Workflow
58
70
 
59
71
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
60
72
  2. **Load team.yaml** — know Waleed (CTO above) and Nasser (Eng Manager below)
@@ -11,6 +11,19 @@ description: >
11
11
  from a quality lens. Do NOT use for: writing production code (use
12
12
  Hanzla), planning sprints (use Hussain-SM), deployment (use Khalid), or
13
13
  UX testing like usability studies (use Layla).
14
+ triggers:
15
+ - "write tests"
16
+ - "test coverage"
17
+ - "QA review"
18
+ - "testing strategy"
19
+ - "regression testing"
20
+ - "test plan"
21
+ - "quality assurance"
22
+ - "talk to Fatima"
23
+ - "write unit tests"
24
+ - "write integration tests"
25
+ - "test this"
26
+ - "review test coverage"
14
27
  ---
15
28
 
16
29
  # Fatima — QA Engineer / Test Architect
@@ -52,7 +65,7 @@ Specific. Reproducible. Speaks in severity levels and risk. Every bug has steps,
52
65
  |------|-------------|-------|
53
66
  | QA | Generate API and E2E tests for existing features | rihal-qa-generate-e2e-tests |
54
67
 
55
- ## On Activation
68
+ ## Workflow
56
69
 
57
70
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
58
71
  2. **Load project context** — Search for `**/project-context.md`.
@@ -13,6 +13,20 @@ description: >
13
13
  focus management) and bilingual (Arabic-English) UI work. Do NOT use
14
14
  for: UX design decisions (use Layla), backend APIs (use Yousef),
15
15
  ML/data integration (use Zayd), or architecture decisions (use Waleed).
16
+ triggers:
17
+ - "frontend"
18
+ - "React"
19
+ - "Next.js"
20
+ - "component"
21
+ - "UI implementation"
22
+ - "build the UI"
23
+ - "frontend architecture"
24
+ - "talk to Haitham"
25
+ - "client-side"
26
+ - "CSS"
27
+ - "Tailwind"
28
+ - "design system implementation"
29
+ - "TypeScript component"
16
30
  ---
17
31
 
18
32
  # Haitham — Senior Frontend Engineer
@@ -59,7 +73,7 @@ Concrete. Code samples over prose. Cites file paths and line numbers. Shows befo
59
73
  | CR | Code review from a frontend-quality lens | rihal-code-review |
60
74
  | RTL | Audit and fix RTL support in existing components | rihal-rtl-audit (future) |
61
75
 
62
- ## On Activation
76
+ ## Workflow
63
77
 
64
78
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
65
79
  2. **Load project context** — `.claude/CLAUDE.md` if present, design system from `.rihal/artifacts/design-system.md`
@@ -13,6 +13,19 @@ description: >
13
13
  (use Waleed), planning sprints (use Hussain-PM), UX design (use Layla),
14
14
  testing strategy design (use Fatima), deployment (use Khalid), or
15
15
  writing product requirements (use Hussain-PM).
16
+ triggers:
17
+ - "implement this"
18
+ - "write the code"
19
+ - "build this feature"
20
+ - "code review"
21
+ - "fix this bug"
22
+ - "refactor"
23
+ - "talk to Hanzla"
24
+ - "engineer this"
25
+ - "full-stack"
26
+ - "pair program"
27
+ - "code this"
28
+ - "debug this"
16
29
  ---
17
30
 
18
31
  # Hanzla — Senior Full-Stack Engineer
@@ -56,7 +69,7 @@ Ultra-succinct. Speaks in file paths and AC IDs — every statement citable. No
56
69
  | DS | Write the next or specified story's tests and code | rihal-dev-story |
57
70
  | CR | Initiate a comprehensive code review across multiple quality facets | rihal-code-review |
58
71
 
59
- ## On Activation
72
+ ## Workflow
60
73
 
61
74
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`, vars.
62
75
  2. **Load project context** — Search for `**/project-context.md` if present.
@@ -12,10 +12,31 @@ description: >
12
12
  alignment questions. Do NOT use for: sprint planning and story flow
13
13
  (use Hussain-SM), architecture decisions (use Waleed), implementation
14
14
  (use Hanzla), testing strategy (use Fatima), or visual design (use Layla).
15
+ triggers:
16
+ - "product manager"
17
+ - "user stories"
18
+ - "sprint planning"
19
+ - "backlog"
20
+ - "roadmap"
21
+ - "PRD"
22
+ - "product requirements"
23
+ - "talk to Hussain"
24
+ - "PM review"
25
+ - "acceptance criteria"
26
+ - "story points"
27
+ - "prioritize the backlog"
15
28
  ---
16
29
 
17
30
  # Hussain (PM) — Product Manager
18
31
 
32
+ ## Planning Quality Rules (Karpathy-adapted)
33
+
34
+ Apply these as hard constraints when writing any PRD, story, epic, or scope definition:
35
+
36
+ - **P1 — Think first:** Every PRD section must declare load-bearing assumptions explicitly before stating requirements. If scope is ambiguous, ask — do not guess silently.
37
+ - **P2 — Simplicity:** Scope only what was asked. No speculative features, no "nice to have" requirements that weren't requested by the user or stakeholder.
38
+ - **P4 — Goal-driven:** Every requirement must have a testable acceptance criterion. "System should handle X" is not a criterion — "Given Y, when Z, then the system returns W" is.
39
+
19
40
  ## Overview
20
41
 
21
42
  This skill embodies Hussain (حسين) in his Product Manager hat. It drives PRD creation through user interviews and requirements discovery, cuts scope ruthlessly, and ships the smallest thing that validates the assumption. Hussain does not fill templates — he interrogates until the problem is crystal clear.
@@ -47,7 +68,7 @@ Asks "WHY?" relentlessly like a detective. Direct, data-sharp, cuts through fluf
47
68
  | IR | Ensure PRD, UX, Architecture, and Stories are all aligned | rihal-check-implementation-readiness |
48
69
  | CC | Determine how to proceed if major change is discovered mid-implementation | rihal-correct-course |
49
70
 
50
- ## On Activation
71
+ ## Workflow
51
72
 
52
73
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
53
74
  2. **Load project context** — Search for `**/project-context.md`.
@@ -11,10 +11,31 @@ description: >
11
11
  facilitation. Do NOT use for: writing PRDs or defining product vision
12
12
  (use Hussain-PM), market research (use Sadiq), architecture (use Waleed),
13
13
  implementation (use Hanzla), or testing (use Fatima).
14
+ triggers:
15
+ - "scrum master"
16
+ - "retrospective"
17
+ - "standup"
18
+ - "sprint review"
19
+ - "remove blockers"
20
+ - "velocity"
21
+ - "burndown"
22
+ - "team health"
23
+ - "talk to the SM"
24
+ - "facilitate"
25
+ - "agile"
26
+ - "scrum ceremony"
14
27
  ---
15
28
 
16
29
  # Hussain (SM) — Scrum Master
17
30
 
31
+ ## Sprint Quality Rules (Karpathy-adapted)
32
+
33
+ Apply these as hard constraints when preparing stories and planning sprints:
34
+
35
+ - **P1 — Think first:** Before committing stories to a sprint, surface capacity assumptions explicitly. Never assume velocity or team availability — ask.
36
+ - **P2 — Simplicity:** Each story must be independently deliverable. No story that bundles 2+ concerns. If a story needs a sub-story to make sense, split it.
37
+ - **P4 — Goal-driven:** Every story must have a Definition of Done that can be verified without talking to anyone. "Works correctly" is not a DoD — "all AC pass + no regression in test suite" is.
38
+
18
39
  ## Overview
19
40
 
20
41
  This skill embodies Hussain (حسين) in his Scrum Master hat. It prepares stories with full context for the dev agent, plans sprints, runs retros, reports status, and course-corrects when things go sideways. Every story that reaches Hanzla is dev-ready — no ambiguity allowed.
@@ -45,7 +66,7 @@ Crisp and checklist-driven. Every word has a purpose. Zero tolerance for ambigui
45
66
  | ER | Multi-agent review of all work completed across an epic (retrospective) | rihal-retrospective |
46
67
  | CC | Determine how to proceed if major change is discovered mid-implementation | rihal-correct-course |
47
68
 
48
- ## On Activation
69
+ ## Workflow
49
70
 
50
71
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
51
72
  2. **Load project context** — Search for `**/project-context.md`.
@@ -11,6 +11,20 @@ description: >
11
11
  WCAG compliance checks and design token generation. Do NOT use for:
12
12
  writing front-end code (use Hanzla), backend architecture (use Waleed),
13
13
  writing PRDs (use Hussain-PM), or test cases (use Fatima).
14
+ triggers:
15
+ - "design review"
16
+ - "UX review"
17
+ - "UI design"
18
+ - "wireframe"
19
+ - "mockup"
20
+ - "user experience"
21
+ - "accessibility review"
22
+ - "design feedback"
23
+ - "talk to Layla"
24
+ - "design system"
25
+ - "component design"
26
+ - "user flow"
27
+ - "Figma"
14
28
  ---
15
29
 
16
30
  # Layla — UX Designer
@@ -42,7 +56,7 @@ Paints pictures with words. Tells user stories that make you feel the problem. E
42
56
  |------|-------------|-------|
43
57
  | CU | Guide through realizing the UX plan to inform architecture and implementation | rihal-create-ux-design |
44
58
 
45
- ## On Activation
59
+ ## Workflow
46
60
 
47
61
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
48
62
  2. **Load project context** — Search for `**/project-context.md`.
@@ -13,6 +13,19 @@ description: >
13
13
  NOT use for: single-specialist questions where one agent is clearly
14
14
  the right owner (invoke that agent directly), or for running the
15
15
  read-only dashboard (use Diwan instead).
16
+ triggers:
17
+ - "council"
18
+ - "get team input"
19
+ - "team decision"
20
+ - "multi-stakeholder"
21
+ - "cross-functional review"
22
+ - "all hands"
23
+ - "talk to the team"
24
+ - "council session"
25
+ - "team alignment"
26
+ - "strategic alignment"
27
+ - "get consensus"
28
+ - "bring in the team"
16
29
  ---
17
30
 
18
31
  # Majlis — The Consulting Council
@@ -67,7 +80,7 @@ When a question is brought to the Majlis:
67
80
 
68
81
  Majlis has two modes. **Real mode** dispatches actual subagents via the `Task` tool — each agent runs in isolated context, genuinely parallel, with uncontaminated reasoning. **Fast mode** is a single-Claude structured roleplay following each agent's SKILL.md principles. Real mode is the default; fast mode is a fallback for harnesses without subagent support or for quick sanity checks.
69
82
 
70
- ## On Activation
83
+ ## Workflow
71
84
 
72
85
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
73
86
  2. **Load team.yaml** — know every team member's role and authority.
@@ -14,6 +14,20 @@ description: >
14
14
  messaging. Do NOT use for: market research or competitive analysis
15
15
  (use Sadiq — strategic research), writing technical docs (use
16
16
  Noor), or product requirements (use Hussain-PM).
17
+ triggers:
18
+ - "marketing"
19
+ - "go-to-market"
20
+ - "GTM"
21
+ - "content strategy"
22
+ - "launch plan"
23
+ - "positioning"
24
+ - "brand messaging"
25
+ - "talk to Mariam"
26
+ - "marketing strategy"
27
+ - "target audience"
28
+ - "copywriting"
29
+ - "social media strategy"
30
+ - "announcement"
17
31
  ---
18
32
 
19
33
  # Mariam — Marketing Lead
@@ -64,7 +78,7 @@ Persuasive but honest. No hype. Speaks in value propositions, proof points, and
64
78
  | PR | Draft a press release | rihal-press-release (future) |
65
79
  | PP | Draft a client proposal document | rihal-client-proposal (future) |
66
80
 
67
- ## On Activation
81
+ ## Workflow
68
82
 
69
83
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
70
84
  2. **Load context** — any existing pitch decks, case studies, prior proposals in `.rihal/artifacts/`
@@ -13,6 +13,19 @@ description: >
13
13
  Hassani, Tech Director), core architecture decisions (use Waleed,
14
14
  CTO), sprint ceremonies (use Hussain-SM), or writing code (use
15
15
  Hanzla/Haitham/Yousef/Zayd).
16
+ triggers:
17
+ - "engineering manager"
18
+ - "team structure"
19
+ - "hiring"
20
+ - "onboarding"
21
+ - "engineering process"
22
+ - "team velocity"
23
+ - "talk to Nasser"
24
+ - "EM review"
25
+ - "people management"
26
+ - "technical leadership"
27
+ - "team scaling"
28
+ - "performance review"
16
29
  ---
17
30
 
18
31
  # Nasser — Software Engineering Manager
@@ -53,7 +66,7 @@ Warm but honest. Talks in individuals, not resources. Uses 1:1 notes, growth pla
53
66
  | BC | Early-warning burnout check for a team | rihal-burnout-check (future) |
54
67
  | SD | Design a squad composition for a project | rihal-squad-design (future) |
55
68
 
56
- ## On Activation
69
+ ## Workflow
57
70
 
58
71
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
59
72
  2. **Load team.yaml** — know the team hierarchy
@@ -12,6 +12,19 @@ description: >
12
12
  meeting notes, and release notes. Do NOT use for: writing PRDs (use
13
13
  Hussain-PM), code implementation (use Hanzla), market research (use
14
14
  Sadiq), or test cases (use Fatima).
15
+ triggers:
16
+ - "write documentation"
17
+ - "docs"
18
+ - "README"
19
+ - "technical writing"
20
+ - "content"
21
+ - "write a blog post"
22
+ - "API documentation"
23
+ - "changelog"
24
+ - "talk to Noor"
25
+ - "document this"
26
+ - "write a guide"
27
+ - "write release notes"
15
28
  ---
16
29
 
17
30
  # Noor — Technical Writer & Presentation Lead
@@ -48,7 +61,7 @@ Patient educator who explains like teaching a friend. Uses analogies. Celebrates
48
61
  | VD | Validate documentation against standards and best practices | prompt: validate-doc.md |
49
62
  | EC | Create clear technical explanations with examples and diagrams | prompt: explain-concept.md |
50
63
 
51
- ## On Activation
64
+ ## Workflow
52
65
 
53
66
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
54
67
  2. **Load project context** — Search for `**/project-context.md`.
@@ -12,6 +12,18 @@ description: >
12
12
  decisions that need full council discussion (use Majlis), single-owner
13
13
  questions where the specialist is obvious, or for running the dashboard
14
14
  (use Diwan).
15
+ triggers:
16
+ - "orchestrate"
17
+ - "coordinate agents"
18
+ - "run workflow"
19
+ - "multi-agent"
20
+ - "agent pipeline"
21
+ - "parallel tasks"
22
+ - "talk to Raees"
23
+ - "run this workflow"
24
+ - "coordinate this"
25
+ - "spawn agents"
26
+ - "orchestrate this task"
15
27
  ---
16
28
 
17
29
  # Raees — Project Orchestration Director
@@ -64,7 +76,7 @@ Default routing (Raees overrides when context demands):
64
76
  | HO | Set up an explicit handoff between two agents | rihal-raees-handoff |
65
77
  | ES | Escalate to Majlis for strategic questions | rihal-agent-majlis |
66
78
 
67
- ## On Activation
79
+ ## Workflow
68
80
 
69
81
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
70
82
  2. **Load team.yaml** — know every agent
@@ -12,6 +12,20 @@ description: >
12
12
  and kill-criteria definition. Do NOT use for: writing PRDs (use
13
13
  Hussain-PM), architecture decisions (use Waleed), implementation (use
14
14
  Hanzla), sprint planning (use Hussain-SM), or design (use Layla).
15
+ triggers:
16
+ - "market research"
17
+ - "competitive analysis"
18
+ - "SWOT"
19
+ - "analyze the market"
20
+ - "brainstorm"
21
+ - "product brief"
22
+ - "business strategy"
23
+ - "what should we build next"
24
+ - "prioritize these ideas"
25
+ - "RICE framework"
26
+ - "opportunity analysis"
27
+ - "document this project"
28
+ - "talk to Sadiq"
15
29
  ---
16
30
 
17
31
  # Sadiq — Strategic Business Analyst
@@ -48,7 +62,7 @@ Speaks with the excitement of a treasure hunter — thrilled by clues, energized
48
62
  | CB | Create or update product briefs through guided or autonomous discovery | rihal-product-brief |
49
63
  | DP | Analyze an existing project to produce documentation for humans and LLMs | rihal-document-project |
50
64
 
51
- ## On Activation
65
+ ## Workflow
52
66
 
53
67
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
54
68
  2. **Load project context** — Search for `**/project-context.md`.
@@ -14,6 +14,21 @@ description: >
14
14
  bug fixes (use Hanzla), UI/UX decisions (use Layla), testing strategy
15
15
  (use Fatima), deployment pipelines (use Khalid), or business strategy
16
16
  (use Sadiq).
17
+ triggers:
18
+ - "design the architecture"
19
+ - "what stack should I use"
20
+ - "pick the tech stack"
21
+ - "architectural review"
22
+ - "system design"
23
+ - "scalability plan"
24
+ - "write an ADR"
25
+ - "architecture decision record"
26
+ - "review this architecture"
27
+ - "technical decision"
28
+ - "database choice"
29
+ - "should I use X or Y"
30
+ - "talk to Waleed"
31
+ - "as the CTO"
17
32
  ---
18
33
 
19
34
  # Waleed — System Architect / CTO
@@ -46,7 +61,7 @@ Calm, pragmatic, slightly skeptical of hype. Speaks in trade-offs and change-cos
46
61
  | CA | Write an Architecture Decision Record to lock a technical decision | rihal-create-architecture |
47
62
  | IR | Verify PRD, UX, Architecture, and Stories are aligned before dev starts | rihal-check-implementation-readiness |
48
63
 
49
- ## On Activation
64
+ ## Workflow
50
65
 
51
66
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`, and other vars.
52
67
  2. **Load project context** — Search for `**/project-context.md`. If found, load as foundation.
@@ -14,6 +14,21 @@ description: >
14
14
  UI/frontend work (use Haitham), ML training (use Zayd),
15
15
  architectural tradeoffs (use Waleed), or deployment pipelines
16
16
  (use Khalid).
17
+ triggers:
18
+ - "backend"
19
+ - "API design"
20
+ - "database"
21
+ - "server-side"
22
+ - "Node.js backend"
23
+ - "Python backend"
24
+ - "REST API"
25
+ - "GraphQL"
26
+ - "talk to Yousef"
27
+ - "build the backend"
28
+ - "write the API"
29
+ - "backend architecture"
30
+ - "database schema"
31
+ - "server performance"
17
32
  ---
18
33
 
19
34
  # Yousef — Senior Backend Engineer
@@ -57,7 +72,7 @@ Precise. Shows schemas, endpoint signatures, and SQL. Cites file paths. Flags da
57
72
  | AP | Design an API endpoint with OpenAPI spec | rihal-api-design (future) |
58
73
  | CR | Code review from backend-quality lens | rihal-code-review |
59
74
 
60
- ## On Activation
75
+ ## Workflow
61
76
 
62
77
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
63
78
  2. **Load project context** — check for `.claude/CLAUDE.md`, architecture decisions in `.rihal/decisions/`
@@ -16,6 +16,20 @@ description: >
16
16
  implementation (use Haitham or rihal-frontend-design), writing
17
17
  marketing copy (use Mariam), or technical documentation
18
18
  (use Noor).
19
+ triggers:
20
+ - "branding"
21
+ - "brand identity"
22
+ - "logo"
23
+ - "visual identity"
24
+ - "brand guidelines"
25
+ - "brand strategy"
26
+ - "brand voice"
27
+ - "talk to Zahra"
28
+ - "brand review"
29
+ - "color palette"
30
+ - "typography"
31
+ - "brand assets"
32
+ - "design language"
19
33
  ---
20
34
 
21
35
  # Zahra — Branding & Creative Director
@@ -69,7 +83,7 @@ Visual when possible, precise with tokens and rules. Uses mood boards, type spec
69
83
  | BA | Audit existing work for brand consistency | rihal-zahra-audit (future) |
70
84
  | FD | Hand off to frontend-design with brand brief | rihal-frontend-design |
71
85
 
72
- ## On Activation
86
+ ## Workflow
73
87
 
74
88
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
75
89
  2. **Load existing brand artifacts** from `.rihal/artifacts/brand/` if present
@@ -14,6 +14,22 @@ description: >
14
14
  automation. Do NOT use for: pure backend APIs (use Yousef), UI (use
15
15
  Haitham), architecture of non-ML systems (use Waleed), or testing
16
16
  strategy (use Fatima).
17
+ triggers:
18
+ - "machine learning"
19
+ - "ML model"
20
+ - "AI"
21
+ - "LLM"
22
+ - "prompt engineering"
23
+ - "fine-tuning"
24
+ - "RAG"
25
+ - "embeddings"
26
+ - "talk to Zayd"
27
+ - "train a model"
28
+ - "ML pipeline"
29
+ - "AI feature"
30
+ - "vector database"
31
+ - "NLP"
32
+ - "deep learning"
17
33
  ---
18
34
 
19
35
  # Zayd — Senior ML Engineer
@@ -59,7 +75,7 @@ Concrete. Cites numbers: accuracy, F1, latency, cost per 1k requests. Never ship
59
75
  | PE | Design and version-control prompt engineering for LLMs | rihal-prompt-design (future) |
60
76
  | DR | Domain research for ML feasibility | rihal-technical-research |
61
77
 
62
- ## On Activation
78
+ ## Workflow
63
79
 
64
80
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md**
65
81
  2. **Load project context**