@hanzlaa/rcode 2.1.0
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.
- package/AGENTS.md +120 -0
- package/CLAUDE.md +120 -0
- package/CONTRIBUTING.md +298 -0
- package/README.md +436 -0
- package/cli/config.js +142 -0
- package/cli/context.js +213 -0
- package/cli/dashboard.js +38 -0
- package/cli/digest.js +66 -0
- package/cli/doctor.js +283 -0
- package/cli/github-sync.js +1016 -0
- package/cli/index.js +113 -0
- package/cli/install.js +946 -0
- package/cli/lib/config.cjs +334 -0
- package/cli/lib/fsutil.cjs +76 -0
- package/cli/lib/github.cjs +365 -0
- package/cli/lib/manifest.cjs +240 -0
- package/cli/lib/memory-bank.cjs +348 -0
- package/cli/lib/model-profiles.cjs +169 -0
- package/cli/lib/prompts.cjs +355 -0
- package/cli/postinstall.js +32 -0
- package/cli/set-mode.js +94 -0
- package/cli/set-profile.js +80 -0
- package/cli/show-model.js +82 -0
- package/cli/team.js +35 -0
- package/cli/tiers.js +49 -0
- package/cli/uninstall.js +600 -0
- package/cli/update.js +373 -0
- package/package.json +60 -0
- package/rihal/agents/rihal-advisor-researcher.md +116 -0
- package/rihal/agents/rihal-ahmed.md +66 -0
- package/rihal/agents/rihal-architect.md +79 -0
- package/rihal/agents/rihal-assumptions-analyzer.md +117 -0
- package/rihal/agents/rihal-code-fixer.md +74 -0
- package/rihal/agents/rihal-code-reviewer.md +75 -0
- package/rihal/agents/rihal-codebase-mapper.md +170 -0
- package/rihal/agents/rihal-debugger.md +140 -0
- package/rihal/agents/rihal-deviation-analyzer.md +74 -0
- package/rihal/agents/rihal-docs-auditor.md +77 -0
- package/rihal/agents/rihal-edge-case-hunter.md +75 -0
- package/rihal/agents/rihal-executor.md +113 -0
- package/rihal/agents/rihal-fatima.md +68 -0
- package/rihal/agents/rihal-haitham.md +75 -0
- package/rihal/agents/rihal-hanzla.md +59 -0
- package/rihal/agents/rihal-hussain-pm.md +82 -0
- package/rihal/agents/rihal-integration-checker.md +455 -0
- package/rihal/agents/rihal-khalid.md +59 -0
- package/rihal/agents/rihal-layla.md +57 -0
- package/rihal/agents/rihal-mariam.md +58 -0
- package/rihal/agents/rihal-nasser.md +57 -0
- package/rihal/agents/rihal-noor.md +60 -0
- package/rihal/agents/rihal-nyquist-auditor.md +182 -0
- package/rihal/agents/rihal-omar.md +57 -0
- package/rihal/agents/rihal-phase-researcher.md +84 -0
- package/rihal/agents/rihal-planner.md +176 -0
- package/rihal/agents/rihal-profiler.md +74 -0
- package/rihal/agents/rihal-project-researcher.md +80 -0
- package/rihal/agents/rihal-remediation-planner.md +78 -0
- package/rihal/agents/rihal-research-synthesizer.md +253 -0
- package/rihal/agents/rihal-roadmapper.md +73 -0
- package/rihal/agents/rihal-sadiq.md +72 -0
- package/rihal/agents/rihal-security-adversary.md +82 -0
- package/rihal/agents/rihal-security-auditor.md +78 -0
- package/rihal/agents/rihal-sprint-checker.md +124 -0
- package/rihal/agents/rihal-tech-writer.md +80 -0
- package/rihal/agents/rihal-ui-auditor.md +81 -0
- package/rihal/agents/rihal-ui-designer.md +6 -0
- package/rihal/agents/rihal-ux-designer.md +83 -0
- package/rihal/agents/rihal-verifier.md +124 -0
- package/rihal/agents/rihal-waleed.md +60 -0
- package/rihal/agents/rihal-yousef.md +78 -0
- package/rihal/agents/rihal-zahra.md +62 -0
- package/rihal/agents/rihal-zayd.md +78 -0
- package/rihal/agents/rules/codebase-mapper/detailed-guide.md +615 -0
- package/rihal/agents/rules/debugger/checkpoint-recovery.md +272 -0
- package/rihal/agents/rules/debugger/debug-session-state.md +261 -0
- package/rihal/agents/rules/debugger/hypothesis-templates.md +330 -0
- package/rihal/agents/rules/debugger/investigation-protocol.md +298 -0
- package/rihal/agents/rules/debugger/scientific-method.md +317 -0
- package/rihal/agents/rules/executor/authentication-gates.md +202 -0
- package/rihal/agents/rules/executor/deviation-rules.md +191 -0
- package/rihal/agents/rules/executor/execution-flow.md +116 -0
- package/rihal/agents/rules/executor/self-check.md +241 -0
- package/rihal/agents/rules/executor/stub-detection.md +267 -0
- package/rihal/agents/rules/executor/summary-creation.md +76 -0
- package/rihal/agents/rules/executor/task-commit-protocol.md +283 -0
- package/rihal/agents/rules/executor/tdd-flow.md +294 -0
- package/rihal/agents/rules/phase-researcher/detailed-guide.md +628 -0
- package/rihal/agents/rules/planner/common-patterns.md +373 -0
- package/rihal/agents/rules/planner/dependency-analysis.md +195 -0
- package/rihal/agents/rules/planner/goal-backward-thinking.md +220 -0
- package/rihal/agents/rules/planner/sprint-verification.md +202 -0
- package/rihal/agents/rules/planner/task-templates.md +296 -0
- package/rihal/agents/rules/project-researcher/detailed-guide.md +589 -0
- package/rihal/agents/rules/roadmapper/detailed-guide.md +620 -0
- package/rihal/agents/rules/sprint-checker/dimensions.md +414 -0
- package/rihal/agents/rules/sprint-checker/process.md +377 -0
- package/rihal/agents/rules/verifier/anti-patterns.md +94 -0
- package/rihal/agents/rules/verifier/artifact-verification.md +69 -0
- package/rihal/agents/rules/verifier/behavioral-spot-checks.md +49 -0
- package/rihal/agents/rules/verifier/context-loading.md +84 -0
- package/rihal/agents/rules/verifier/data-flow-trace.md +65 -0
- package/rihal/agents/rules/verifier/gap-output.md +51 -0
- package/rihal/agents/rules/verifier/key-links.md +56 -0
- package/rihal/agents/rules/verifier/requirements-coverage.md +28 -0
- package/rihal/agents/rules/verifier/verification-report.md +131 -0
- package/rihal/bin/lib/code-references.cjs +196 -0
- package/rihal/bin/lib/config.cjs +146 -0
- package/rihal/bin/lib/council-panel.cjs +501 -0
- package/rihal/bin/lib/roadmap.cjs +256 -0
- package/rihal/bin/lib/verify.cjs +118 -0
- package/rihal/bin/rihal-hooks.cjs +204 -0
- package/rihal/bin/rihal-tools.cjs +3554 -0
- package/rihal/brain/README.md +38 -0
- package/rihal/brain/best-practices/no-autonomous-bypass.md +37 -0
- package/rihal/brain/best-practices/research-citation-rule.md +39 -0
- package/rihal/brain/best-practices/state-sync-rule.md +43 -0
- package/rihal/brain/sources.yaml +59 -0
- package/rihal/commands/add-phase.md +18 -0
- package/rihal/commands/add-tests.md +18 -0
- package/rihal/commands/add-todo.md +8 -0
- package/rihal/commands/analyze-dependencies.md +11 -0
- package/rihal/commands/audit-fix.md +14 -0
- package/rihal/commands/audit-milestone.md +12 -0
- package/rihal/commands/audit-uat.md +18 -0
- package/rihal/commands/autonomous.md +19 -0
- package/rihal/commands/brainstorm.md +11 -0
- package/rihal/commands/chain.md +8 -0
- package/rihal/commands/check-implementation-readiness.md +8 -0
- package/rihal/commands/check-todos.md +18 -0
- package/rihal/commands/cleanup.md +18 -0
- package/rihal/commands/code-review-fix.md +14 -0
- package/rihal/commands/code-review.md +14 -0
- package/rihal/commands/complete-milestone.md +12 -0
- package/rihal/commands/config.md +8 -0
- package/rihal/commands/correct-course.md +8 -0
- package/rihal/commands/council.md +25 -0
- package/rihal/commands/create-epics-and-stories.md +8 -0
- package/rihal/commands/create-story.md +8 -0
- package/rihal/commands/dashboard.md +10 -0
- package/rihal/commands/debug.md +8 -0
- package/rihal/commands/decisions.md +10 -0
- package/rihal/commands/dev-story.md +8 -0
- package/rihal/commands/diff.md +10 -0
- package/rihal/commands/discuss-phase-power.md +11 -0
- package/rihal/commands/discuss-phase.md +19 -0
- package/rihal/commands/discuss.md +23 -0
- package/rihal/commands/do.md +22 -0
- package/rihal/commands/docs-update.md +14 -0
- package/rihal/commands/document-project.md +8 -0
- package/rihal/commands/enable-hooks.md +11 -0
- package/rihal/commands/execute-sprint.md +13 -0
- package/rihal/commands/execute.md +19 -0
- package/rihal/commands/explore.md +14 -0
- package/rihal/commands/export-to-github.md +11 -0
- package/rihal/commands/forensics.md +11 -0
- package/rihal/commands/from-template.md +11 -0
- package/rihal/commands/health.md +10 -0
- package/rihal/commands/help.md +8 -0
- package/rihal/commands/import.md +12 -0
- package/rihal/commands/inbox.md +12 -0
- package/rihal/commands/init.md +14 -0
- package/rihal/commands/insert-phase.md +11 -0
- package/rihal/commands/install.md +10 -0
- package/rihal/commands/karpathy-audit.md +12 -0
- package/rihal/commands/list-plans.md +11 -0
- package/rihal/commands/list-workspaces.md +10 -0
- package/rihal/commands/map-codebase.md +14 -0
- package/rihal/commands/milestone-summary.md +11 -0
- package/rihal/commands/new-milestone.md +12 -0
- package/rihal/commands/new-project-research.md +11 -0
- package/rihal/commands/new-project-roadmap.md +11 -0
- package/rihal/commands/new-project.md +13 -0
- package/rihal/commands/new-workspace.md +12 -0
- package/rihal/commands/next.md +19 -0
- package/rihal/commands/note.md +12 -0
- package/rihal/commands/notify-test.md +10 -0
- package/rihal/commands/pause-work.md +8 -0
- package/rihal/commands/plan-milestone-gaps.md +18 -0
- package/rihal/commands/plan.md +19 -0
- package/rihal/commands/plant-seed.md +18 -0
- package/rihal/commands/pr-branch.md +18 -0
- package/rihal/commands/profile-user.md +8 -0
- package/rihal/commands/progress.md +19 -0
- package/rihal/commands/quick.md +14 -0
- package/rihal/commands/remove-phase.md +18 -0
- package/rihal/commands/remove-workspace.md +11 -0
- package/rihal/commands/replay.md +11 -0
- package/rihal/commands/report.md +10 -0
- package/rihal/commands/rerun.md +11 -0
- package/rihal/commands/research-phase.md +18 -0
- package/rihal/commands/resume-work.md +8 -0
- package/rihal/commands/review-adversarial.md +8 -0
- package/rihal/commands/review-edge-case-hunter.md +8 -0
- package/rihal/commands/review.md +18 -0
- package/rihal/commands/scan.md +14 -0
- package/rihal/commands/secure-phase.md +14 -0
- package/rihal/commands/session-report.md +10 -0
- package/rihal/commands/settings.md +8 -0
- package/rihal/commands/ship.md +18 -0
- package/rihal/commands/show.md +10 -0
- package/rihal/commands/sprint-planning.md +20 -0
- package/rihal/commands/sprint-status.md +21 -0
- package/rihal/commands/stats.md +10 -0
- package/rihal/commands/status.md +21 -0
- package/rihal/commands/ui-phase.md +8 -0
- package/rihal/commands/ui-review.md +8 -0
- package/rihal/commands/undo.md +14 -0
- package/rihal/commands/update.md +11 -0
- package/rihal/commands/validate-phase.md +18 -0
- package/rihal/commands/verify-phase.md +18 -0
- package/rihal/commands/verify-work.md +19 -0
- package/rihal/commands/why.md +10 -0
- package/rihal/commands/workstream.md +11 -0
- package/rihal/config/model-profiles.json +226 -0
- package/rihal/config/model-profiles.schema.json +36 -0
- package/rihal/config.yaml +39 -0
- package/rihal/digests/README.md +50 -0
- package/rihal/digests/fatima.md +24 -0
- package/rihal/digests/hussain-pm.md +24 -0
- package/rihal/digests/mariam.md +24 -0
- package/rihal/digests/sadiq.md +24 -0
- package/rihal/digests/waleed.md +24 -0
- package/rihal/modules/core.yaml +101 -0
- package/rihal/modules/discovery.yaml +50 -0
- package/rihal/modules/execution.yaml +66 -0
- package/rihal/references/brain-methods.csv +9 -0
- package/rihal/references/checklist-architect.md +146 -0
- package/rihal/references/checklist-change.md +136 -0
- package/rihal/references/checklist-pm.md +154 -0
- package/rihal/references/checklist-po-master.md +100 -0
- package/rihal/references/checklist-story-dod.md +75 -0
- package/rihal/references/checklist-story-draft.md +53 -0
- package/rihal/references/checkpoints-index.md +53 -0
- package/rihal/references/checkpoints.md +778 -0
- package/rihal/references/codebase-grounding.md +76 -0
- package/rihal/references/command-redirect-format.md +62 -0
- package/rihal/references/commit-conventions.md +125 -0
- package/rihal/references/common-bug-patterns-index.md +44 -0
- package/rihal/references/common-bug-patterns.md +621 -0
- package/rihal/references/context-budget.md +104 -0
- package/rihal/references/continuation-format.md +249 -0
- package/rihal/references/council-protocol.md +91 -0
- package/rihal/references/domain-probes.md +213 -0
- package/rihal/references/elicitation-methods.csv +16 -0
- package/rihal/references/execution-protocol.md +155 -0
- package/rihal/references/gate-prompts.md +212 -0
- package/rihal/references/gates.md +127 -0
- package/rihal/references/git-integration.md +159 -0
- package/rihal/references/git-planning-commit.md +185 -0
- package/rihal/references/karpathy-guidelines.md +79 -0
- package/rihal/references/model-profiles.md +90 -0
- package/rihal/references/no-unauthorized-git-ops.md +73 -0
- package/rihal/references/output-format.md +319 -0
- package/rihal/references/output-realism.md +52 -0
- package/rihal/references/project-types.yaml +270 -0
- package/rihal/references/questioning.md +163 -0
- package/rihal/references/response-style.md +81 -0
- package/rihal/references/state-schema.md +366 -0
- package/rihal/references/tdd.md +263 -0
- package/rihal/references/thinking-models-debug.md +126 -0
- package/rihal/references/thinking-models-planning.md +127 -0
- package/rihal/references/ui-brand.md +254 -0
- package/rihal/references/verification-patterns-index.md +76 -0
- package/rihal/references/verification-patterns.md +612 -0
- package/rihal/references/workstream-flag.md +166 -0
- package/rihal/skills/SKILLS_INDEX.md +114 -0
- package/rihal/skills/_shared/no-autonomous-bypass.md +37 -0
- package/rihal/skills/_shared/research-citation-rule.md +39 -0
- package/rihal/skills/_shared/state-sync-rule.md +43 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +31 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-01-init.md +137 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-05-technical-trends.md +234 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-06-research-synthesis.md +444 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/workflow.md +49 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +30 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-01-init.md +184 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-02-customer-behavior.md +239 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-03-customer-pain-points.md +251 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-04-customer-decisions.md +261 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-05-competitive-analysis.md +173 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-06-research-completion.md +478 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/workflow.md +49 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +31 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-01-init.md +137 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-02-technical-overview.md +239 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-05-implementation-research.md +233 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-06-research-synthesis.md +487 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/workflow.md +50 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +30 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/checklist.md +245 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/documentation-requirements.csv +12 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/instructions.md +128 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/deep-dive-template.md +345 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/index-template.md +169 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/project-overview-template.md +103 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/project-scan-report-schema.json +160 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/source-tree-template.md +135 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflow.md +27 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/deep-dive-instructions.md +299 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/deep-dive-workflow.md +34 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/full-scan-instructions.md +1107 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/full-scan-workflow.md +34 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +120 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/agents/artifact-analyzer.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/agents/web-researcher.md +49 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/assets/prfaq-template.md +62 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/customer-faq.md +55 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/internal-faq.md +51 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/press-release.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/verdict.md +79 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/rihal-manifest.json +16 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +112 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/artifact-analyzer.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/opportunity-reviewer.md +44 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/skeptic-reviewer.md +44 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/web-researcher.md +49 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/contextual-discovery.md +57 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/draft-and-review.md +86 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/finalize.md +75 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/guided-elicitation.md +70 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/resources/brief-template.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/rihal-manifest.json +17 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-01-validate-prerequisites.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-02-design-epics.md +212 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-04-final-validation.md +131 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/templates/epics-template.md +61 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +54 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +39 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/README.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-01-init.md +62 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-02-outcomes.md +64 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-03-sequencing.md +65 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-04-windows.md +60 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-05-kill-criteria.md +59 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +56 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-07-backlog.md +44 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-08-write-roadmap.md +58 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-09-state-sync.md +62 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +56 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/workflow.md +93 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +40 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/domain-complexity.csv +15 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/prd-purpose.md +197 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/project-types.csv +11 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-01-init.md +178 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-01b-continue.md +161 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02-discovery.md +208 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02b-vision.md +142 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02c-executive-summary.md +158 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-03-success.md +214 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-04-journeys.md +201 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-05-domain.md +194 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-06-innovation.md +211 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-07-project-type.md +222 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-08-scoping.md +216 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-09-functional.md +219 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-10-nonfunctional.md +230 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-11-polish.md +221 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-12-complete.md +115 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/templates/prd-template.md +10 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/workflow.md +64 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +31 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/checklist.md +357 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/discover-inputs.md +88 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/template.md +49 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/workflow.md +380 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +31 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-01-init.md +135 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-01b-continue.md +127 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-02-discovery.md +190 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-03-core-experience.md +217 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-04-emotional-response.md +220 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-05-inspiration.md +235 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-06-design-system.md +253 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-07-defining-experience.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-08-visual-foundation.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-09-design-directions.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-10-user-journeys.md +242 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-11-component-strategy.md +249 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-12-ux-patterns.md +238 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-13-responsive-accessibility.md +265 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-14-complete.md +171 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/ux-design-template.md +13 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/workflow.md +36 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01-discovery.md +242 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01b-legacy-conversion.md +204 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-02-review.md +245 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-03-edit.md +250 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-04-complete.md +165 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/workflow.md +63 -0
- package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +169 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +29 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/domain-complexity.csv +15 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/prd-purpose.md +197 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/project-types.csv +11 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-01-discovery.md +221 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +211 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-05-measurability-validation.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-06-traceability-validation.md +214 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +202 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +240 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-09-project-type-validation.md +260 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-10-smart-validation.md +206 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-12-completeness-validation.md +239 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/workflow.md +62 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +30 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-06-final-assessment.md +126 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/workflow.md +49 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +32 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/architecture-decision-template.md +12 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/data/domain-complexity.csv +13 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/data/project-types.csv +7 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-01-init.md +153 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-01b-continue.md +173 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-02-context.md +224 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-03-starter.md +329 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-04-decisions.md +318 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-05-patterns.md +359 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-06-structure.md +379 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-07-validation.md +359 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-08-complete.md +76 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/workflow.md +38 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +31 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/project-context-template.md +21 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-01-discover.md +186 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-02-generate.md +321 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-03-complete.md +278 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/workflow.md +43 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +48 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/generate-trail.md +38 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-01-orientation.md +105 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-04-testing.md +74 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-05-wrapup.md +24 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +31 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-01-gather-context.md +62 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-02-review.md +34 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-03-triage.md +49 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-04-present.md +129 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/workflow.md +55 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +29 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/checklist.md +288 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/workflow.md +267 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +36 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/checklist.md +80 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +450 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +31 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/checklist.md +33 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/workflow.md +136 -0
- package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +30 -0
- package/rihal/skills/actions/4-implementation/rihal-retrospective/workflow.md +1479 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +77 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-01-target.md +17 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-02-safety.md +35 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-03-clone.md +50 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-04-post-setup.md +44 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +35 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/checklist.md +43 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/sprint-status-template.yaml +56 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +284 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +30 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/workflow.md +261 -0
- package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +121 -0
- package/rihal/skills/agents/fatima-qa/SKILL.md +106 -0
- package/rihal/skills/agents/fatima-qa/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/haitham-frontend/SKILL.md +120 -0
- package/rihal/skills/agents/hanzla-engineer/SKILL.md +109 -0
- package/rihal/skills/agents/hanzla-engineer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/hussain-pm/SKILL.md +107 -0
- package/rihal/skills/agents/hussain-pm/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/hussain-sm/SKILL.md +104 -0
- package/rihal/skills/agents/hussain-sm/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/layla-designer/SKILL.md +96 -0
- package/rihal/skills/agents/layla-designer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/majlis-council/SKILL.md +179 -0
- package/rihal/skills/agents/mariam-marketing/SKILL.md +133 -0
- package/rihal/skills/agents/nasser-eng-manager/SKILL.md +125 -0
- package/rihal/skills/agents/noor-writer/SKILL.md +104 -0
- package/rihal/skills/agents/noor-writer/explain-concept.md +20 -0
- package/rihal/skills/agents/noor-writer/mermaid-gen.md +20 -0
- package/rihal/skills/agents/noor-writer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/noor-writer/validate-doc.md +19 -0
- package/rihal/skills/agents/noor-writer/write-document.md +20 -0
- package/rihal/skills/agents/raees-orchestrator/SKILL.md +154 -0
- package/rihal/skills/agents/sadiq-analyst/SKILL.md +106 -0
- package/rihal/skills/agents/sadiq-analyst/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/waleed-architect/SKILL.md +106 -0
- package/rihal/skills/agents/waleed-architect/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/yousef-backend/SKILL.md +136 -0
- package/rihal/skills/agents/zahra-branding/SKILL.md +141 -0
- package/rihal/skills/agents/zayd-ml/SKILL.md +124 -0
- package/rihal/skills/core/module-help.csv +11 -0
- package/rihal/skills/core/module.yaml +25 -0
- package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +155 -0
- package/rihal/skills/core/rihal-advanced-elicitation/methods.csv +51 -0
- package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/SKILL.md +148 -0
- package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/methods.csv +51 -0
- package/rihal/skills/core/rihal-brainstorming/SKILL.md +82 -0
- package/rihal/skills/core/rihal-brainstorming/brain-methods.csv +62 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-01-session-setup.md +214 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-01b-continue.md +124 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02a-user-selected.md +229 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02b-ai-recommended.md +239 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02c-random-selection.md +211 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02d-progressive-flow.md +266 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-03-technique-execution.md +401 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-04-idea-organization.md +305 -0
- package/rihal/skills/core/rihal-brainstorming/template.md +15 -0
- package/rihal/skills/core/rihal-brainstorming/workflow.md +53 -0
- package/rihal/skills/core/rihal-clone-website/SKILL.md +395 -0
- package/rihal/skills/core/rihal-distillator/SKILL.md +205 -0
- package/rihal/skills/core/rihal-distillator/agents/distillate-compressor.md +116 -0
- package/rihal/skills/core/rihal-distillator/agents/round-trip-reconstructor.md +68 -0
- package/rihal/skills/core/rihal-distillator/resources/compression-rules.md +51 -0
- package/rihal/skills/core/rihal-distillator/resources/distillate-format-reference.md +227 -0
- package/rihal/skills/core/rihal-distillator/resources/splitting-strategy.md +78 -0
- package/rihal/skills/core/rihal-distillator/scripts/analyze_sources.py +300 -0
- package/rihal/skills/core/rihal-distillator/scripts/tests/test_analyze_sources.py +204 -0
- package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +108 -0
- package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +193 -0
- package/rihal/skills/core/rihal-help/SKILL.md +91 -0
- package/rihal/skills/core/rihal-index-docs/SKILL.md +80 -0
- package/rihal/skills/core/rihal-init/SKILL.md +119 -0
- package/rihal/skills/core/rihal-init/resources/core-module.yaml +25 -0
- package/rihal/skills/core/rihal-init/scripts/rihal_init.py +593 -0
- package/rihal/skills/core/rihal-init/scripts/tests/test_rihal_init.py +329 -0
- package/rihal/skills/core/rihal-party-mode/SKILL.md +77 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-01-agent-loading.md +138 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-02-discussion-orchestration.md +187 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-03-graceful-exit.md +167 -0
- package/rihal/skills/core/rihal-party-mode/workflow.md +190 -0
- package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +55 -0
- package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +81 -0
- package/rihal/skills/core/rihal-shard-doc/SKILL.md +119 -0
- package/rihal/skills/core/rihal-shard-doc/rihal-shard-doc/SKILL.md +122 -0
- package/rihal/team.yaml +343 -0
- package/rihal/templates/UI-SPEC.md +127 -0
- package/rihal/templates/documentation-requirements.csv +11 -0
- package/rihal/templates/github/bug-template.md +53 -0
- package/rihal/templates/github/epic-template.md +57 -0
- package/rihal/templates/github/feature-template.md +55 -0
- package/rihal/templates/github/task-template.md +52 -0
- package/rihal/templates/milestone.md +147 -0
- package/rihal/templates/projects/api-backend/PROJECT.md +37 -0
- package/rihal/templates/projects/api-backend/REQUIREMENTS.md +38 -0
- package/rihal/templates/projects/api-backend/ROADMAP.md +92 -0
- package/rihal/templates/projects/api-backend/template.yaml +17 -0
- package/rihal/templates/projects/mobile-app/PROJECT.md +37 -0
- package/rihal/templates/projects/mobile-app/REQUIREMENTS.md +32 -0
- package/rihal/templates/projects/mobile-app/ROADMAP.md +93 -0
- package/rihal/templates/projects/mobile-app/template.yaml +17 -0
- package/rihal/templates/projects/saas-b2b/PROJECT.md +40 -0
- package/rihal/templates/projects/saas-b2b/REQUIREMENTS.md +38 -0
- package/rihal/templates/projects/saas-b2b/ROADMAP.md +95 -0
- package/rihal/templates/projects/saas-b2b/template.yaml +18 -0
- package/rihal/templates/settings-hooks.json +36 -0
- package/rihal/templates/sprint.md +70 -0
- package/rihal/workflows/add-phase.md +112 -0
- package/rihal/workflows/add-tests.md +351 -0
- package/rihal/workflows/add-todo.md +181 -0
- package/rihal/workflows/analyze-dependencies.md +138 -0
- package/rihal/workflows/audit-fix.md +190 -0
- package/rihal/workflows/audit-milestone.md +155 -0
- package/rihal/workflows/audit-uat.md +109 -0
- package/rihal/workflows/autonomous.md +992 -0
- package/rihal/workflows/brainstorm.md +203 -0
- package/rihal/workflows/chain.md +188 -0
- package/rihal/workflows/check-implementation-readiness.md +193 -0
- package/rihal/workflows/check-todos.md +177 -0
- package/rihal/workflows/cleanup.md +152 -0
- package/rihal/workflows/code-review-fix.md +529 -0
- package/rihal/workflows/code-review.md +566 -0
- package/rihal/workflows/complete-milestone.md +836 -0
- package/rihal/workflows/config.md +105 -0
- package/rihal/workflows/correct-course.md +190 -0
- package/rihal/workflows/council.md +565 -0
- package/rihal/workflows/create-epics-and-stories.md +373 -0
- package/rihal/workflows/create-story.md +297 -0
- package/rihal/workflows/dashboard.md +102 -0
- package/rihal/workflows/debug.md +256 -0
- package/rihal/workflows/decisions.md +107 -0
- package/rihal/workflows/dev-story.md +432 -0
- package/rihal/workflows/diff.md +74 -0
- package/rihal/workflows/discuss-phase-power.md +325 -0
- package/rihal/workflows/discuss-phase.md +1201 -0
- package/rihal/workflows/discuss.md +227 -0
- package/rihal/workflows/do.md +175 -0
- package/rihal/workflows/docs-update.md +261 -0
- package/rihal/workflows/document-project.md +180 -0
- package/rihal/workflows/enable-hooks.md +102 -0
- package/rihal/workflows/execute-sprint.md +514 -0
- package/rihal/workflows/execute.md +1478 -0
- package/rihal/workflows/explore.md +171 -0
- package/rihal/workflows/export-to-github.md +174 -0
- package/rihal/workflows/forensics.md +201 -0
- package/rihal/workflows/from-template.md +173 -0
- package/rihal/workflows/health.md +194 -0
- package/rihal/workflows/help.md +318 -0
- package/rihal/workflows/import.md +306 -0
- package/rihal/workflows/inbox.md +418 -0
- package/rihal/workflows/init.md +245 -0
- package/rihal/workflows/insert-phase.md +116 -0
- package/rihal/workflows/install.md +85 -0
- package/rihal/workflows/karpathy-audit.md +409 -0
- package/rihal/workflows/list-plans.md +146 -0
- package/rihal/workflows/list-workspaces.md +115 -0
- package/rihal/workflows/map-codebase.md +449 -0
- package/rihal/workflows/milestone-summary.md +206 -0
- package/rihal/workflows/new-milestone.md +616 -0
- package/rihal/workflows/new-project-research.md +262 -0
- package/rihal/workflows/new-project-roadmap.md +446 -0
- package/rihal/workflows/new-project.md +1503 -0
- package/rihal/workflows/new-workspace.md +167 -0
- package/rihal/workflows/next.md +162 -0
- package/rihal/workflows/note.md +156 -0
- package/rihal/workflows/notify-test.md +113 -0
- package/rihal/workflows/pause-work.md +243 -0
- package/rihal/workflows/plan-milestone-gaps.md +273 -0
- package/rihal/workflows/plan.md +1262 -0
- package/rihal/workflows/plant-seed.md +169 -0
- package/rihal/workflows/pr-branch.md +129 -0
- package/rihal/workflows/profile-user.md +162 -0
- package/rihal/workflows/progress.md +184 -0
- package/rihal/workflows/quick.md +105 -0
- package/rihal/workflows/remove-phase.md +155 -0
- package/rihal/workflows/remove-workspace.md +158 -0
- package/rihal/workflows/replay.md +160 -0
- package/rihal/workflows/rerun.md +77 -0
- package/rihal/workflows/research-phase.md +82 -0
- package/rihal/workflows/resume-work.md +326 -0
- package/rihal/workflows/review-adversarial.md +180 -0
- package/rihal/workflows/review-edge-case-hunter.md +214 -0
- package/rihal/workflows/review.md +281 -0
- package/rihal/workflows/scan.md +135 -0
- package/rihal/workflows/secure-phase.md +196 -0
- package/rihal/workflows/session-report.md +187 -0
- package/rihal/workflows/settings.md +185 -0
- package/rihal/workflows/ship.md +237 -0
- package/rihal/workflows/show.md +63 -0
- package/rihal/workflows/sprint-planning.md +166 -0
- package/rihal/workflows/sprint-status.md +124 -0
- package/rihal/workflows/stats.md +141 -0
- package/rihal/workflows/status.md +116 -0
- package/rihal/workflows/ui-phase.md +148 -0
- package/rihal/workflows/ui-review.md +130 -0
- package/rihal/workflows/undo.md +426 -0
- package/rihal/workflows/update.md +185 -0
- package/rihal/workflows/validate-phase.md +174 -0
- package/rihal/workflows/verify-phase.md +375 -0
- package/rihal/workflows/verify-work.md +717 -0
- package/rihal/workflows/why.md +130 -0
- package/rihal/workflows/workstream.md +197 -0
- package/server/dashboard.js +632 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
# Workflow: rihal:council
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Orchestrate a parallel panel of Rihal specialist subagents answering a strategic question. This is the v2 council โ deterministic panel scoring via `rihal-tools.cjs`, parallel Task-tool spawning (not sequential roleplay), and structured artifact output to `.planning/council-sessions/`.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<output_format>
|
|
8
|
+
Open with banner:
|
|
9
|
+
```
|
|
10
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
11
|
+
RIHAL โบ MAJLIS CONVENING
|
|
12
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
13
|
+
|
|
14
|
+
Question: {$ARGUMENTS}
|
|
15
|
+
Panel: {N} agents selected by keyword scoring
|
|
16
|
+
```
|
|
17
|
+
TaskCreate: "Classify question type", "Select panel ({N} agents)", "Spawn agents in parallel", "Collect + synthesize responses", "Write artifact to council-sessions/".
|
|
18
|
+
Per-agent spawn indicator:
|
|
19
|
+
```
|
|
20
|
+
โ Spawning panel in parallel:
|
|
21
|
+
โ ๐งญ Sadiq (strategy)
|
|
22
|
+
โ ๐๏ธ Waleed (architecture)
|
|
23
|
+
โ ๐ก๏ธ Fatima (QA)
|
|
24
|
+
```
|
|
25
|
+
Agent headers when presenting responses: `๐งญ **Sadiq (ุตุงุฏู) โ Director of Strategy:**`.
|
|
26
|
+
Closure: `RIHAL โบ COUNCIL COMPLETE โ` + Next Up with decision options.
|
|
27
|
+
</output_format>
|
|
28
|
+
|
|
29
|
+
<required_reading>
|
|
30
|
+
@.rihal/references/output-format.md
|
|
31
|
+
</required_reading>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
## Step 0 โ Usage check
|
|
35
|
+
|
|
36
|
+
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
37
|
+
- Print the usage block below
|
|
38
|
+
- STOP โ do not proceed to Step 1, do not read any reference files
|
|
39
|
+
|
|
40
|
+
**Usage:**
|
|
41
|
+
```
|
|
42
|
+
/rihal:council <question> [--full] [--verbose] [--agents=a,b,c] [--explain] [--resume <session-path>]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Flag semantics:**
|
|
46
|
+
- `--full` โ expanded panel (5 agents instead of 3), full panelist roster
|
|
47
|
+
- `--verbose` โ print full verbatim agent transcripts inline (default is compact summary; artifact always has full text)
|
|
48
|
+
- `--debate` / `--round-2` / `--deep` โ force Round 2 cross-talk even if consensus
|
|
49
|
+
|
|
50
|
+
**Examples:**
|
|
51
|
+
```
|
|
52
|
+
/rihal:council should I start a new project or continue this one?
|
|
53
|
+
/rihal:council --agents=sadiq,waleed,fatima is this plan ready to ship?
|
|
54
|
+
/rihal:council --explain what stack should I use for a multi-tenant SaaS?
|
|
55
|
+
/rihal:council --full should we rewrite the auth layer?
|
|
56
|
+
/rihal:council --verbose --debate deep-dive the TTFT tradeoffs
|
|
57
|
+
/rihal:council --resume .planning/council-sessions/council-2026-04-12-should-i-start.md
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**With --resume:** continue a prior council session with a new question. The prior session context is surfaced to the panel.
|
|
61
|
+
|
|
62
|
+
Only after the user provides arguments, proceed to Step 0.5.
|
|
63
|
+
|
|
64
|
+
## Step 0.5 โ Detect --resume flag (continuation mode)
|
|
65
|
+
|
|
66
|
+
If `$ARGUMENTS` contains `--resume <session-path>`:
|
|
67
|
+
|
|
68
|
+
1. Read the session artifact at `<session-path>`
|
|
69
|
+
2. Extract the prior "Panel Responses" section
|
|
70
|
+
3. Set `INPUT_TYPE='resume'` and load the prior session content into the observation block (Step 1 will use this as context)
|
|
71
|
+
4. Continue with the NEW question provided (if any) or ask user for a follow-up question
|
|
72
|
+
|
|
73
|
+
Proceed to Step 1 with the prior session context pre-loaded.
|
|
74
|
+
|
|
75
|
+
## Step 0.6 โ Detect single-agent questions (STOP and redirect)
|
|
76
|
+
|
|
77
|
+
If `$ARGUMENTS` starts with an agent name (sadiq/waleed/fatima/mariam/hussain-pm) and looks like a question directed at one person (e.g., "ask waleed about X", "what does fatima think"):
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
โ That looks like a single-agent question โ /rihal:discuss is faster.
|
|
81
|
+
|
|
82
|
+
Council spawns 3-5 agents in parallel for debate. For one expert, use:
|
|
83
|
+
|
|
84
|
+
/rihal:discuss $ARGUMENTS
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Only proceed past this step if the input is a true multi-perspective question (e.g., "should we...?", "is X a good idea?", "which approach is best?").
|
|
88
|
+
|
|
89
|
+
After Step 0.6 confirmation, proceed to load references by Reading:
|
|
90
|
+
- `.rihal/references/council-protocol.md` (the 5-step majlis protocol and cross-talk conventions)
|
|
91
|
+
|
|
92
|
+
<available_agent_types>
|
|
93
|
+
Read the `installed_agents` array from INIT_JSON. Every entry can be invoked as
|
|
94
|
+
`subagent_type: "rihal-{id}"`. The classifier and panel scorer will surface only
|
|
95
|
+
agents present in this list.
|
|
96
|
+
|
|
97
|
+
Currently registered council agents (always available if installed):
|
|
98
|
+
- rihal-sadiq, rihal-waleed, rihal-fatima, rihal-mariam, rihal-hussain-pm
|
|
99
|
+
|
|
100
|
+
Specialist agents that may be installed (add to panel if scorer surfaces them):
|
|
101
|
+
- rihal-architect, rihal-ux-designer, rihal-tech-writer
|
|
102
|
+
- rihal-codebase-mapper, rihal-project-researcher, rihal-roadmapper
|
|
103
|
+
- (and any other rihal-* agent in installed_agents)
|
|
104
|
+
|
|
105
|
+
Do not invoke `general-purpose` or any agent type not present in
|
|
106
|
+
`installed_agents`. If the scorer surfaces an unknown agent, drop it
|
|
107
|
+
from the panel silently.
|
|
108
|
+
</available_agent_types>
|
|
109
|
+
|
|
110
|
+
## Step 1 โ Observe
|
|
111
|
+
|
|
112
|
+
Before initialization, gather initial context signals:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Check for fresh project indicators
|
|
116
|
+
test -f README.md && echo "has_readme=1" || echo "has_readme=0"
|
|
117
|
+
test -f .rihal/config.yaml && grep -q "user_name:" .rihal/config.yaml && echo "has_config=1" || echo "has_config=0"
|
|
118
|
+
test -f .rihal/state.json && grep -q "phases\|decisions" .rihal/state.json && echo "has_state=1" || echo "has_state=0"
|
|
119
|
+
test -f package.json -o -f Cargo.toml -o -f go.mod -o -f pyproject.toml && echo "has_build=1" || echo "has_build=0"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Count the signals. If 0 of 4 are true (fresh project), continue to Step 1.5.
|
|
123
|
+
|
|
124
|
+
## Step 1.5 โ Fresh project guard
|
|
125
|
+
|
|
126
|
+
If the project appears fresh (no README, default config, no state, no build manifest):
|
|
127
|
+
|
|
128
|
+
Print warning and use AskUserQuestion to confirm:
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
โ This appears to be a fresh project with no context.
|
|
132
|
+
Council answers may be generic without project-specific signal.
|
|
133
|
+
|
|
134
|
+
Run /rihal:init first for richer context, or proceed anyway?
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Options:
|
|
138
|
+
- "Run /rihal:init first" โ Print: `Copy-paste this: /rihal:init` and STOP
|
|
139
|
+
- "Proceed anyway" โ Continue to Step 2
|
|
140
|
+
|
|
141
|
+
## Step 1 โ Initialize
|
|
142
|
+
|
|
143
|
+
Call the helper binary once to load all context:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
INIT_JSON=$(node .rihal/bin/rihal-tools.cjs init council "$ARGUMENTS")
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Parse the JSON for:
|
|
150
|
+
|
|
151
|
+
- `question` โ the cleaned question text (ARGUMENTS minus flags)
|
|
152
|
+
- `flags.full` โ boolean, `--full` was passed
|
|
153
|
+
- `flags.agents` โ string[], explicit `--agents=...` list or empty
|
|
154
|
+
- `flags.explain` โ boolean, show panel scoring
|
|
155
|
+
- `panel` โ string[], the pre-computed panel (respects `--full` and `--agents`)
|
|
156
|
+
- `scores` โ object, per-agent scoring for explain mode
|
|
157
|
+
- `question_type` โ `"codebase" | "discovery" | "market" | "greenfield"` โ drives Step 1 branching
|
|
158
|
+
- `question_signals` โ string[], matched phrases that drove the classification
|
|
159
|
+
- `config` โ `{ user_name, project_name, language, mode }` from `.rihal/config.yaml`
|
|
160
|
+
- `paths` โ `{ state, planning_root, sessions_dir, references_dir }`
|
|
161
|
+
- `state_exists` โ boolean, `.rihal/state.json` present
|
|
162
|
+
- `installed_agents` โ the authoritative list of installed agent ids (for validation)
|
|
163
|
+
|
|
164
|
+
**If the panel contains any id not in `installed_agents`:** stop, print `Unknown agent: {id}. Installed: {installed_agents.join(', ')}`, exit.
|
|
165
|
+
|
|
166
|
+
## Step 2 โ Pre-consultation context gathering
|
|
167
|
+
|
|
168
|
+
๐ Session artifact will be saved to: `.planning/council-sessions/council-{date}-{slug}.md`
|
|
169
|
+
|
|
170
|
+
**Branch on `question_type`** (returned by `rihal-tools.cjs init` as `question_type`):
|
|
171
|
+
|
|
172
|
+
- `codebase` โ existing code question โ codebase scan
|
|
173
|
+
- `performance` โ latency/p95/throughput โ codebase scan + read `baseline-metrics.md` if present
|
|
174
|
+
- `ml` โ OCR/retrieval/LLM โ codebase scan + read ML service paths
|
|
175
|
+
- `frontend` โ React/UI/a11y/RTL โ codebase scan + read component dirs
|
|
176
|
+
- `team` โ people/process question โ codebase scan (for team context from README/state) + no external research
|
|
177
|
+
- `release` โ shipping/incident โ codebase scan
|
|
178
|
+
- `design` โ UX/brand โ codebase scan
|
|
179
|
+
- `market` โ external plan/geography/regulation โ research pre-step
|
|
180
|
+
- `discovery` โ what to build/which sector โ research pre-step
|
|
181
|
+
- `greenfield` โ starting from scratch โ research pre-step
|
|
182
|
+
|
|
183
|
+
**Context grounding is mandatory for concrete technical categories.** For
|
|
184
|
+
`codebase`, `performance`, `ml`, `frontend`, `release` โ the orchestrator
|
|
185
|
+
MUST pass the full "Observed context" block into each subagent's prompt so
|
|
186
|
+
panelists start grounded, not speculating. Subagents then Read/Grep/Bash
|
|
187
|
+
specific files to deepen their answer.
|
|
188
|
+
|
|
189
|
+
### If `question_type` is `"codebase"`, `"team"`, `"release"`, or `"design"` โ run the codebase scan
|
|
190
|
+
|
|
191
|
+
Run this block ONCE. Target < 2k tokens output. Do not read files not listed here.
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Cheap, bounded signals only โ orchestrator uses the output to brief subagents.
|
|
195
|
+
test -f .rihal/state.json && cat .rihal/state.json
|
|
196
|
+
test -f .rihal/config.yaml && cat .rihal/config.yaml
|
|
197
|
+
test -f README.md && head -60 README.md
|
|
198
|
+
|
|
199
|
+
# Only read build manifests for codebase/release questions
|
|
200
|
+
if [[ "$QUESTION_TYPE" == "codebase" || "$QUESTION_TYPE" == "release" ]]; then
|
|
201
|
+
test -f package.json && head -40 package.json
|
|
202
|
+
test -f pyproject.toml && head -40 pyproject.toml
|
|
203
|
+
test -f Cargo.toml && head -40 Cargo.toml
|
|
204
|
+
test -f go.mod && head -20 go.mod
|
|
205
|
+
fi
|
|
206
|
+
|
|
207
|
+
git log --oneline -20 2>/dev/null
|
|
208
|
+
ls -la
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Emit a 5-8 line "Observed context" block to the user:
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
๐ Observed context (codebase)
|
|
215
|
+
Stack: <detected stack>
|
|
216
|
+
State: <current phase/sprint if any>
|
|
217
|
+
Recent commits: <top 3 one-liners>
|
|
218
|
+
Notable files: <any .md files that jump out>
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### If `question_type` is `"market"`, `"discovery"`, or `"greenfield"` โ run the research pre-step
|
|
222
|
+
|
|
223
|
+
Do NOT skip this step. A council that answers market questions from training data alone is producing confident guesses, not grounded advice.
|
|
224
|
+
|
|
225
|
+
1. Run 1-3 targeted `WebSearch` queries to gather real facts relevant to the question. Choose queries that will return authoritative sources (government plans, industry reports, named organizations).
|
|
226
|
+
2. Synthesize into a 6-10 line "Research context" block that names specific facts, sectors, figures, or constraints. This block is passed verbatim to every subagent.
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
๐ Research context (market/discovery)
|
|
230
|
+
Source 1: <name + 2-line summary>
|
|
231
|
+
Source 2: <name + 2-line summary>
|
|
232
|
+
Key facts: <bullet list of 4-6 specific, citable data points>
|
|
233
|
+
Constraints: <regulatory, geographic, or operational limits>
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Also run the minimal codebase scan (config.yaml + README only) so subagents know the team's current capabilities:
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
test -f .rihal/config.yaml && cat .rihal/config.yaml
|
|
240
|
+
test -f README.md && head -40 README.md
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
This is the factual baseline every subagent will be briefed on. It replaces the v1 "vibes-based council" problem.
|
|
244
|
+
|
|
245
|
+
## Step 3 โ Panel selection
|
|
246
|
+
|
|
247
|
+
**If `flags.explain` is true:** print the panel scoring table before proceeding:
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
Panel scoring:
|
|
251
|
+
sadiq [score] โ [top matched keyword or "padded"]
|
|
252
|
+
waleed [score] โ ...
|
|
253
|
+
fatima [score] โ ...
|
|
254
|
+
|
|
255
|
+
Selected: sadiq, waleed, fatima
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
**If `config.mode === 'guided'`:** confirm with the user:
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
Panel for this question: <comma-separated display names>
|
|
262
|
+
Proceed? [Y/n]
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Use the AskUserQuestion tool (not raw stdin) for the confirmation.
|
|
266
|
+
|
|
267
|
+
**If `config.mode === 'yolo'`:** print the panel one-liner and proceed without confirmation.
|
|
268
|
+
|
|
269
|
+
## Step 4 โ Spawn the panel in parallel (two rounds)
|
|
270
|
+
|
|
271
|
+
### Round 1 โ Independent perspectives
|
|
272
|
+
|
|
273
|
+
**Spawn all panelists in a single response with multiple Task tool calls.** Do not spawn sequentially โ the whole point of v2 is real parallel dispatch.
|
|
274
|
+
|
|
275
|
+
For each agent id in `panel`, build this prompt:
|
|
276
|
+
|
|
277
|
+
```
|
|
278
|
+
You are being spawned as part of a Rihal council session.
|
|
279
|
+
|
|
280
|
+
## The user's question
|
|
281
|
+
{question}
|
|
282
|
+
|
|
283
|
+
## Observed context
|
|
284
|
+
{the summary block from Step 1 โ codebase scan OR research context depending on question_type}
|
|
285
|
+
|
|
286
|
+
## Session metadata
|
|
287
|
+
- Project: {config.project_name}
|
|
288
|
+
- User: {config.user_name}
|
|
289
|
+
- Communication language: {config.language}
|
|
290
|
+
|
|
291
|
+
## Instructions
|
|
292
|
+
This is Round 1 โ give your independent perspective. Follow your agent file's
|
|
293
|
+
response format exactly. Scale to the substance โ do not pad. Start your reply
|
|
294
|
+
with your icon + name header.
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Spawn all at once:
|
|
298
|
+
|
|
299
|
+
```
|
|
300
|
+
(Task tool call with subagent_type = "rihal-sadiq", prompt = <above>)
|
|
301
|
+
(Task tool call with subagent_type = "rihal-waleed", prompt = <above>)
|
|
302
|
+
(Task tool call with subagent_type = "rihal-fatima", prompt = <above>)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
All in the same assistant response block so they execute concurrently.
|
|
306
|
+
|
|
307
|
+
### Round 2 โ Cross-talk
|
|
308
|
+
|
|
309
|
+
After Round 1 completes, spawn all panelists again in a single response. Pass each agent the full set of Round 1 responses and ask them to react:
|
|
310
|
+
|
|
311
|
+
```
|
|
312
|
+
You are in Round 2 of a Rihal council session.
|
|
313
|
+
|
|
314
|
+
## The user's question
|
|
315
|
+
{question}
|
|
316
|
+
|
|
317
|
+
## Observed context
|
|
318
|
+
{same summary as Round 1}
|
|
319
|
+
|
|
320
|
+
## Round 1 responses from your fellow panelists
|
|
321
|
+
### ๐งญ Sadiq (Round 1)
|
|
322
|
+
{sadiq_round1_response}
|
|
323
|
+
|
|
324
|
+
### ๐๏ธ Waleed (Round 1)
|
|
325
|
+
{waleed_round1_response}
|
|
326
|
+
|
|
327
|
+
### ๐ก๏ธ Fatima (Round 1)
|
|
328
|
+
{fatima_round1_response}
|
|
329
|
+
|
|
330
|
+
## Instructions
|
|
331
|
+
This is Round 2 โ cross-talk. Respond with **deltas only**:
|
|
332
|
+
- What changed in your position after reading your colleagues' Round 1 (walk-back, sharpen, narrow, extend)
|
|
333
|
+
- Where you specifically agree/disagree with another panelist (name them)
|
|
334
|
+
- If you hold your Round 1 position unchanged, say so in one sentence and stop.
|
|
335
|
+
|
|
336
|
+
Do NOT restate your Round 1 answer. Do NOT re-derive reasoning already in Round 1.
|
|
337
|
+
Target 6-12 lines max unless genuine new substance. Start with your icon + name header.
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Spawn all at once (same pattern as Round 1).
|
|
341
|
+
|
|
342
|
+
**Default: SKIP Round 2.** Only fire Round 2 if at least ONE of these triggers:
|
|
343
|
+
|
|
344
|
+
1. **Disagreement** โ Round 1 responses name contradictory approaches
|
|
345
|
+
(e.g. Waleed says "rewrite", Yousef says "optimize in place"). Verbatim
|
|
346
|
+
conflict, not stylistic difference.
|
|
347
|
+
2. **Unresolved dependency** โ An agent explicitly said "I need X from {other agent}"
|
|
348
|
+
or "this depends on {other agent}'s call."
|
|
349
|
+
3. **Question is strategic/ambiguous** โ Classifier returned `discovery`,
|
|
350
|
+
`greenfield`, or `market` (high-ambiguity categories). Not `codebase`,
|
|
351
|
+
`performance`, `release`, `ml`, `frontend` (concrete technical categories).
|
|
352
|
+
4. **User requested deliberation** โ `$ARGUMENTS` contains `--debate`, `--round-2`,
|
|
353
|
+
or `--deep` flag.
|
|
354
|
+
|
|
355
|
+
If NONE of these fire, skip Round 2 and proceed to Step 5 (presentation).
|
|
356
|
+
Print one line: `โ Round 2 skipped โ {reason: "agents aligned" / "concrete technical question" / etc.}`.
|
|
357
|
+
|
|
358
|
+
**Rationale:** Round 2 doubles token cost and wall-clock. For concrete technical
|
|
359
|
+
questions (fix latency, add feature, debug bug), Round 1 responses grounded in
|
|
360
|
+
the codebase are enough. Cross-talk adds value only when there's genuine tension
|
|
361
|
+
to resolve or strategic ambiguity to explore.
|
|
362
|
+
|
|
363
|
+
## Step 5 โ Present responses
|
|
364
|
+
|
|
365
|
+
Before saving any artifact, print the panel output inline. Two modes:
|
|
366
|
+
|
|
367
|
+
### Default mode (compact summary)
|
|
368
|
+
|
|
369
|
+
**Scannable in 20 seconds. No verbatim transcripts. Full text goes to the artifact file.**
|
|
370
|
+
|
|
371
|
+
Format:
|
|
372
|
+
|
|
373
|
+
```
|
|
374
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
375
|
+
RIHAL โบ COUNCIL VERDICT
|
|
376
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
377
|
+
|
|
378
|
+
**One-liners (Round 1)**
|
|
379
|
+
๐งญ Sadiq: {one-sentence position}
|
|
380
|
+
๐๏ธ Waleed: {one-sentence position}
|
|
381
|
+
๐ก๏ธ Fatima: {one-sentence position}
|
|
382
|
+
|
|
383
|
+
**Convergence / divergence**
|
|
384
|
+
| Issue | Sadiq | Waleed | Fatima |
|
|
385
|
+
|-------|-------|--------|--------|
|
|
386
|
+
| {axis 1} | {stance} | {stance} | {stance} |
|
|
387
|
+
| {axis 2} | {stance} | {stance} | {stance} |
|
|
388
|
+
|
|
389
|
+
{If Round 2 ran:}
|
|
390
|
+
**Round 2 deltas**
|
|
391
|
+
๐งญ Sadiq: {what changed, or "held position"}
|
|
392
|
+
๐๏ธ Waleed: {what changed}
|
|
393
|
+
๐ก๏ธ Fatima: {what changed}
|
|
394
|
+
|
|
395
|
+
**Orchestrator note**
|
|
396
|
+
{max 2 sentences โ sharpest remaining disagreement OR clearest convergent action}
|
|
397
|
+
|
|
398
|
+
๐ Full transcripts: {artifact path}
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Rules for compact mode:
|
|
402
|
+
- Each one-liner โค 25 words. Paraphrase, don't quote.
|
|
403
|
+
- Convergence table: 2-5 rows, only axes where panelists take a stance. Cells โค 6 words.
|
|
404
|
+
- Round 2 deltas: โค 15 words each. "Held position" is a valid delta.
|
|
405
|
+
- No section headers beyond the four above. No numbered story breakdowns. No tables from panelists verbatim.
|
|
406
|
+
|
|
407
|
+
### Verbose mode (`--verbose` flag)
|
|
408
|
+
|
|
409
|
+
Print Round 1 (and Round 2 if ran) verbatim in panel order. Do NOT summarize.
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
### Round 1
|
|
413
|
+
|
|
414
|
+
๐งญ **Sadiq:**
|
|
415
|
+
<full verbatim response>
|
|
416
|
+
|
|
417
|
+
๐๏ธ **Waleed:**
|
|
418
|
+
<full verbatim response>
|
|
419
|
+
|
|
420
|
+
๐ก๏ธ **Fatima:**
|
|
421
|
+
<full verbatim response>
|
|
422
|
+
|
|
423
|
+
### Round 2 โ Cross-talk
|
|
424
|
+
{same pattern}
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
**Orchestrator Note:** {max 3 sentences}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Before presenting, load the commit format reference:
|
|
431
|
+
- `.rihal/references/commit-conventions.md` (commit format rules for session-save artifact)
|
|
432
|
+
|
|
433
|
+
**Either mode:** the artifact file saved in Step 6 always contains full verbatim text โ the compact/verbose flag only controls inline presentation.
|
|
434
|
+
|
|
435
|
+
## Step 5b โ Drill-down question (MANDATORY when disagreement exists)
|
|
436
|
+
|
|
437
|
+
If Round 1 (or Round 2) surfaced a concrete disagreement between panelists,
|
|
438
|
+
you MUST use AskUserQuestion to force resolution before proceeding. Do NOT
|
|
439
|
+
just list "Next Up" options and leave โ a disagreement with no decision
|
|
440
|
+
means nothing shipped.
|
|
441
|
+
|
|
442
|
+
Format the question as the specific tension the user needs to resolve,
|
|
443
|
+
with 2-4 concrete options reflecting the panelists' positions:
|
|
444
|
+
|
|
445
|
+
```
|
|
446
|
+
AskUserQuestion:
|
|
447
|
+
question: "{Panelist A} says {X}. {Panelist B} says {Y}. Which do you pick?"
|
|
448
|
+
header: "{short label}"
|
|
449
|
+
options:
|
|
450
|
+
- label: "{A's position, paraphrased}"
|
|
451
|
+
description: "{tradeoff in one line โ what you gain, what you lose}"
|
|
452
|
+
- label: "{B's position, paraphrased}"
|
|
453
|
+
description: "{tradeoff}"
|
|
454
|
+
- label: "Both โ in parallel tracks"
|
|
455
|
+
description: "{only offer if feasible}"
|
|
456
|
+
- label: "Discuss further with {agent-name}"
|
|
457
|
+
description: "Route to /rihal:discuss for a deeper 1:1"
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
After the user picks, emit a one-line decision record and proceed to
|
|
461
|
+
Save step. The chosen path is what goes into the "Next Up" block โ
|
|
462
|
+
the options list is no longer needed once a decision is made.
|
|
463
|
+
|
|
464
|
+
**Skip Step 5b only if:** there was genuine consensus (all agents aligned)
|
|
465
|
+
or user passed `--no-followup` flag.
|
|
466
|
+
|
|
467
|
+
## Step 6 โ Save the session
|
|
468
|
+
|
|
469
|
+
Write the session artifact to `{paths.sessions_dir}/council-{YYYY-MM-DD}-{slug}.md`:
|
|
470
|
+
|
|
471
|
+
```markdown
|
|
472
|
+
# Council Session โ {short question summary}
|
|
473
|
+
|
|
474
|
+
**Date:** {ISO date}
|
|
475
|
+
**Panel:** {comma-separated display names}
|
|
476
|
+
**Mode:** {guided | yolo}
|
|
477
|
+
**Project:** {config.project_name}
|
|
478
|
+
|
|
479
|
+
## Question
|
|
480
|
+
{original question}
|
|
481
|
+
|
|
482
|
+
## Observed Context
|
|
483
|
+
{the Step 1 summary block}
|
|
484
|
+
|
|
485
|
+
## Panel Responses
|
|
486
|
+
|
|
487
|
+
### Round 1
|
|
488
|
+
#### ๐งญ Sadiq
|
|
489
|
+
{verbatim}
|
|
490
|
+
|
|
491
|
+
#### ๐๏ธ Waleed
|
|
492
|
+
{verbatim}
|
|
493
|
+
|
|
494
|
+
#### ๐ก๏ธ Fatima
|
|
495
|
+
{verbatim}
|
|
496
|
+
|
|
497
|
+
### Round 2 โ Cross-talk
|
|
498
|
+
#### ๐งญ Sadiq
|
|
499
|
+
{verbatim}
|
|
500
|
+
|
|
501
|
+
#### ๐๏ธ Waleed
|
|
502
|
+
{verbatim}
|
|
503
|
+
|
|
504
|
+
#### ๐ก๏ธ Fatima
|
|
505
|
+
{verbatim}
|
|
506
|
+
|
|
507
|
+
## Orchestrator Note
|
|
508
|
+
{if any}
|
|
509
|
+
|
|
510
|
+
## Follow-ups
|
|
511
|
+
{Extract concrete action items from the session. Read through ALL panelist responses and pull out:
|
|
512
|
+
- Explicit "next step" statements ("first, validate X", "before committing, answer Y")
|
|
513
|
+
- Open questions that need a human decision
|
|
514
|
+
- Risks that were named but not resolved
|
|
515
|
+
Format each as a checkbox:}
|
|
516
|
+
- [ ] {action item}
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
The `{slug}` is a lowercase-hyphenated slug of the first 6 words of the question. Create `{paths.sessions_dir}` if it doesn't exist (`mkdir -p`).
|
|
520
|
+
|
|
521
|
+
**Follow-ups must NOT be empty.** Every council session produces at least one actionable item. If panelists only asked clarifying questions, the follow-up is "Answer the panel's clarifying questions and re-run /rihal:council".
|
|
522
|
+
|
|
523
|
+
Print the artifact path to the user at the end:
|
|
524
|
+
|
|
525
|
+
```
|
|
526
|
+
๐พ Session saved: .planning/council-sessions/council-2026-04-12-should-i-start-new-project.md
|
|
527
|
+
|
|
528
|
+
โโโ ~50K tokens ยท {duration}s ยท {5-agents} agents โโโ
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
(Use the footer format from `.rihal/references/response-style.md#session-cost-footer`)
|
|
532
|
+
|
|
533
|
+
### Step 6b โ Update state (silent)
|
|
534
|
+
|
|
535
|
+
After the artifact is written, update `.rihal/state.json` with the council session record and session timestamp. These commands run silently โ do not print output to the user for this step.
|
|
536
|
+
|
|
537
|
+
```bash
|
|
538
|
+
node .rihal/bin/rihal-tools.cjs state record-council \
|
|
539
|
+
--slug "{slug}" \
|
|
540
|
+
--panel "{comma-separated panel names}" \
|
|
541
|
+
--artifact "{artifact path}"
|
|
542
|
+
node .rihal/bin/rihal-tools.cjs state record-session
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
> **Note:** If `rihal-tools.cjs` state commands fail (e.g. state.json missing or not yet initialized), continue without error โ state tracking is optional, the session artifact saved in Step 5 is mandatory.
|
|
546
|
+
|
|
547
|
+
## Success Criteria
|
|
548
|
+
|
|
549
|
+
- [ ] All panelists selected and spawned in Round 1
|
|
550
|
+
- [ ] Round 1 responses collected from all agents
|
|
551
|
+
- [ ] Round 2 cross-talk executed (unless consensus or agent deferred)
|
|
552
|
+
- [ ] Session artifact written to `.planning/council-sessions/council-{date}-{slug}.md`
|
|
553
|
+
- [ ] State updated with session record and timestamp
|
|
554
|
+
|
|
555
|
+
## On Error
|
|
556
|
+
|
|
557
|
+
- **Empty arguments or --help:** print usage block (Step 0), stop.
|
|
558
|
+
- **Single-agent question detected:** redirect to `/rihal:discuss` (Step 0.5).
|
|
559
|
+
- **`rihal-tools.cjs` not found:** user has v1 installed or package broken. Tell user to run `rihal-code install-v2`.
|
|
560
|
+
- **Panel contains unknown agent:** print the installed-agent list and exit.
|
|
561
|
+
- **state.json missing or corrupted:** continue without error โ session artifact is mandatory, state tracking is optional.
|
|
562
|
+
- **All panelists return empty responses:** likely subagents were spawned without proper prompts. Re-check Step 4 prompt construction.
|
|
563
|
+
- **`.rihal/config.yaml` missing:** warn and use defaults (`user_name=User`, `language=English`, `mode=guided`).
|
|
564
|
+
|
|
565
|
+
</process>
|