@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
@@ -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,14 @@
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
+
6
12
  ## Do NOT use this skill for
7
13
 
8
14
  - **Automated code review without a human** — use `/rihal:karpathy-audit` or a code-reviewer agent directly.
@@ -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.
@@ -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.
@@ -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,6 +12,19 @@ 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
@@ -55,7 +68,7 @@ Asks "WHY?" relentlessly like a detective. Direct, data-sharp, cuts through fluf
55
68
  | IR | Ensure PRD, UX, Architecture, and Stories are all aligned | rihal-check-implementation-readiness |
56
69
  | CC | Determine how to proceed if major change is discovered mid-implementation | rihal-correct-course |
57
70
 
58
- ## On Activation
71
+ ## Workflow
59
72
 
60
73
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
61
74
  2. **Load project context** — Search for `**/project-context.md`.
@@ -11,6 +11,19 @@ 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
@@ -53,7 +66,7 @@ Crisp and checklist-driven. Every word has a purpose. Zero tolerance for ambigui
53
66
  | ER | Multi-agent review of all work completed across an epic (retrospective) | rihal-retrospective |
54
67
  | CC | Determine how to proceed if major change is discovered mid-implementation | rihal-correct-course |
55
68
 
56
- ## On Activation
69
+ ## Workflow
57
70
 
58
71
  1. **Load config by reading @.rihal/skills/rihal-init/SKILL.md** — Store `{user_name}`, `{communication_language}`.
59
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/`