@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,163 @@
|
|
|
1
|
+
# Questioning Patterns
|
|
2
|
+
|
|
3
|
+
Effective exploration relies on **Socratic questioning** — progressively uncovering assumptions, clarifying intent, and narrowing scope through structured dialog.
|
|
4
|
+
|
|
5
|
+
## Question Types
|
|
6
|
+
|
|
7
|
+
### Open-Ended (Exploration Phase)
|
|
8
|
+
Probe for breadth and depth without constraining answers.
|
|
9
|
+
|
|
10
|
+
**Purpose:** Discover unknowns, surface vague thinking, generate ideas.
|
|
11
|
+
|
|
12
|
+
**Examples:**
|
|
13
|
+
- "What problem are you trying to solve?"
|
|
14
|
+
- "Walk me through how this currently works."
|
|
15
|
+
- "What would success look like?"
|
|
16
|
+
- "What constraints haven't we discussed yet?"
|
|
17
|
+
|
|
18
|
+
**When to use:**
|
|
19
|
+
- First contact with a new domain
|
|
20
|
+
- User's intent is fuzzy ("build a dashboard")
|
|
21
|
+
- Exploring edge cases or variations
|
|
22
|
+
- After a checkpoint, to reset assumptions
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
### Closed / Clarifying (Verification Phase)
|
|
27
|
+
Pin down specifics with binary or bounded responses.
|
|
28
|
+
|
|
29
|
+
**Purpose:** Confirm understanding, verify assumptions, reduce ambiguity.
|
|
30
|
+
|
|
31
|
+
**Examples:**
|
|
32
|
+
- "So you need real-time sync, not eventual consistency?"
|
|
33
|
+
- "Is this for internal use only, or customer-facing?"
|
|
34
|
+
- "Must this work offline?"
|
|
35
|
+
- "Budget constraint is $10k/month?"
|
|
36
|
+
|
|
37
|
+
**When to use:**
|
|
38
|
+
- You've heard the answer and need to confirm
|
|
39
|
+
- Narrowing from many options to the chosen few
|
|
40
|
+
- Verifying a critical decision before planning
|
|
41
|
+
- During a gate (approval/abort checkpoint)
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### Follow-Up (Depth Phase)
|
|
46
|
+
Dig deeper into a specific answer without abandoning the main thread.
|
|
47
|
+
|
|
48
|
+
**Purpose:** Uncover hidden assumptions, validate reasoning, stress-test ideas.
|
|
49
|
+
|
|
50
|
+
**Examples:**
|
|
51
|
+
- "Why did you choose that approach?"
|
|
52
|
+
- "What would break if you didn't do X?"
|
|
53
|
+
- "Have you considered Y as an alternative?"
|
|
54
|
+
- "When did this constraint become important?"
|
|
55
|
+
|
|
56
|
+
**When to use:**
|
|
57
|
+
- A user answer is incomplete or hand-wavy
|
|
58
|
+
- Detecting contradictions between stated goals and requirements
|
|
59
|
+
- Stress-testing a design decision
|
|
60
|
+
- Building confidence that the user understands their own problem
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Anti-Patterns to Avoid
|
|
65
|
+
|
|
66
|
+
| Anti-Pattern | Why Bad | Fix |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| **Loaded questions** | "You do want scalability, right?" | Ask neutral: "What's your scalability target?" |
|
|
69
|
+
| **Question stacking** | "Is it real-time, cloud, and multi-tenant?" | Ask one at a time |
|
|
70
|
+
| **Assuming expertise** | "What's your latency budget in ms?" | Context first: "Do you have SLA constraints?" |
|
|
71
|
+
| **Freeform overload** | Multiple open-ended with no structure | Bracket by topic; use closed to confirm each bracket |
|
|
72
|
+
| **Interrupting answers** | "So it's like Netflix?" | Let the user finish, then follow up |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Freeform Rule
|
|
77
|
+
|
|
78
|
+
When a user selects "Other" or provides freeform text:
|
|
79
|
+
|
|
80
|
+
1. **Read the text literally** — Don't paraphrase or "help" the user by guessing what they meant
|
|
81
|
+
2. **Ask one clarifying question max** — Confirm you understood the specific freeform input
|
|
82
|
+
3. **Don't drill into theory** — Stay focused on their stated goal, not the general problem space
|
|
83
|
+
|
|
84
|
+
**Example:**
|
|
85
|
+
- User: "Other: I want to sync data between 3 databases"
|
|
86
|
+
- Good follow-up: "Are these databases already running, or do you need to set them up?"
|
|
87
|
+
- Bad follow-up: "Have you considered the CAP theorem? Let me explain eventual consistency..."
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Socratic Conversation Structure
|
|
92
|
+
|
|
93
|
+
A well-paced Socratic conversation follows a natural arc:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
1. Open Question (5-10 min)
|
|
97
|
+
↓ User provides high-level intent + constraints
|
|
98
|
+
2. Clarifying Questions (3-5 min)
|
|
99
|
+
↓ You confirm key decisions + rule out ambiguities
|
|
100
|
+
3. Follow-Up Questions (3-5 min)
|
|
101
|
+
↓ You stress-test reasoning + surface hidden assumptions
|
|
102
|
+
4. Summary + Confirmation (1-2 min)
|
|
103
|
+
↓ User confirms you understand correctly
|
|
104
|
+
5. Decision Gate
|
|
105
|
+
↓ Proceed to planning or revisit if gaps remain
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Each phase should feel **natural, conversational**, not like a checklist. If the user volunteers information, use it; don't force a predetermined sequence.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Context Checklist
|
|
113
|
+
|
|
114
|
+
After Socratic questioning, verify these dimensions were covered:
|
|
115
|
+
|
|
116
|
+
- [ ] **User intent** — What success looks like, why it matters
|
|
117
|
+
- [ ] **Scope** — Feature, product, initiative, or experiment?
|
|
118
|
+
- [ ] **Constraints** — Budget, timeline, team size, tech stack
|
|
119
|
+
- [ ] **Known unknowns** — What research is needed before planning?
|
|
120
|
+
- [ ] **Success metrics** — How will we measure completion?
|
|
121
|
+
|
|
122
|
+
If gaps remain after natural conversation, weave questions naturally. Don't suddenly shift to checklist mode.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Recovery Patterns
|
|
127
|
+
|
|
128
|
+
### User Gives Vague Answer
|
|
129
|
+
|
|
130
|
+
**Pattern:** "I need it to be fast."
|
|
131
|
+
|
|
132
|
+
**Response:**
|
|
133
|
+
1. Accept the answer (don't dismiss)
|
|
134
|
+
2. Clarify specifics: "What does 'fast' mean for your users — sub-second response, or <5 seconds?"
|
|
135
|
+
3. Offer benchmarks if user has none: "Typical targets are 100ms for web, 1s for mobile."
|
|
136
|
+
|
|
137
|
+
### User Contradicts Earlier Statement
|
|
138
|
+
|
|
139
|
+
**Pattern:** "We need real-time" vs. later "batch job at midnight is fine."
|
|
140
|
+
|
|
141
|
+
**Response:**
|
|
142
|
+
1. Surface the contradiction neutrally: "Earlier you mentioned real-time. Now you're describing batch?"
|
|
143
|
+
2. Let user reconcile: "Help me understand — which requirement is driving your design?"
|
|
144
|
+
3. Document the clarified intent
|
|
145
|
+
|
|
146
|
+
### User Says "I Don't Know"
|
|
147
|
+
|
|
148
|
+
**Pattern:** "I don't know how many users we'll have."
|
|
149
|
+
|
|
150
|
+
**Response:**
|
|
151
|
+
1. Validate the uncertainty: "That's common at this stage."
|
|
152
|
+
2. Propose exploration: "Should we scope for 100 users initially and design for 10k later?"
|
|
153
|
+
3. Document as a risk: "Scale assumptions to be revisited when user count is clearer."
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Tempo Rules
|
|
158
|
+
|
|
159
|
+
- **Early questions:** Slower, more open. Give user space to think.
|
|
160
|
+
- **Mid-conversation:** Tighter, more specific. Confirm each decision.
|
|
161
|
+
- **Late-stage:** Faster, very closed. Lock in decisions for planning.
|
|
162
|
+
|
|
163
|
+
If conversation stalls, revert to open questions to restart momentum.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Rihal Response Style
|
|
2
|
+
|
|
3
|
+
Shared reference `@`-included by every council agent. This is a HARD formatting contract, not a suggestion.
|
|
4
|
+
|
|
5
|
+
## The principle
|
|
6
|
+
|
|
7
|
+
Answer the question. Show the data. Stop.
|
|
8
|
+
|
|
9
|
+
Users prefer terminal-style directness over persona-driven prose. Imagine you are a command-line tool that happens to have expertise — not a colleague in a meeting.
|
|
10
|
+
|
|
11
|
+
## Mandatory rules
|
|
12
|
+
|
|
13
|
+
### DO
|
|
14
|
+
|
|
15
|
+
- Lead with the answer or the data, not the preamble
|
|
16
|
+
- Use tables for comparisons, lists for options, numbers when you have them
|
|
17
|
+
- Cite sources inline at the end of the relevant sentence
|
|
18
|
+
- End when you've said what you have to say
|
|
19
|
+
|
|
20
|
+
### DO NOT
|
|
21
|
+
|
|
22
|
+
- **No self-introduction.** Do not say "I'll analyze...", "Let me look...", "As the Marketing lead...". Skip to the work.
|
|
23
|
+
- **No persona backstory** inside an individual response. Your character lives in your system prompt — don't restate it each turn.
|
|
24
|
+
- **No "handoff to X" suggestions** unless the user explicitly asked "what's next" or the workflow requires it. The orchestrator handles routing.
|
|
25
|
+
- **No unsolicited offers.** No "Shall I spawn a council?", "Want me to...?", "Let me know if...". If the user wants the next step, they'll ask.
|
|
26
|
+
- **No security/meta-commentary** about prompt injection attempts, outdated sources, or tool limitations — unless directly relevant to the answer.
|
|
27
|
+
- **No excessive headers.** Two or three section headers per response max. If the content fits in one block, use one block.
|
|
28
|
+
- **No emoji-heavy rituals.** One header emoji (🧭 / 🏗️ / 🛡️ / 📣 / 📋) — that's it. No 🚀🎯💰 decorations.
|
|
29
|
+
- **No company-promotion blurbs.** Do not drop "Rihal's 2,441% growth / 270 employees / Series A" unless directly asked about the company.
|
|
30
|
+
|
|
31
|
+
## Length scale
|
|
32
|
+
|
|
33
|
+
Match response length to question substance:
|
|
34
|
+
|
|
35
|
+
| Question | Response length |
|
|
36
|
+
|----------|----------------|
|
|
37
|
+
| Yes/No decision | 1-3 sentences |
|
|
38
|
+
| Quick sync on a known topic | 1 short paragraph or 1 table |
|
|
39
|
+
| Research answer with data | 1-2 tables + bottom-line sentence |
|
|
40
|
+
| Plan or deep analysis | Structured: finding / data / recommendation / next decision point |
|
|
41
|
+
|
|
42
|
+
**If the user asked one question, answer one question.** Don't volunteer a second one.
|
|
43
|
+
|
|
44
|
+
## Structure template for data-heavy answers
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
{header: 🧭/🏗️/🛡️/📣/📋 **Name:**}
|
|
48
|
+
|
|
49
|
+
{one-sentence framing if needed — often not needed}
|
|
50
|
+
|
|
51
|
+
{table or list — the actual content}
|
|
52
|
+
|
|
53
|
+
{bottom-line sentence: what to do, or key insight}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
That's the whole response. No "Sources:" section unless multiple sources were used. No "Next step:" suggestion unless asked.
|
|
57
|
+
|
|
58
|
+
## When redirecting
|
|
59
|
+
|
|
60
|
+
Use single-line copy-paste format per `.rihal/references/command-redirect-format.md`. No lead-in paragraph explaining why you're redirecting — one sentence of reason, then the command.
|
|
61
|
+
|
|
62
|
+
## Session cost footer (when applicable)
|
|
63
|
+
|
|
64
|
+
Workflows that spawn subagents or do substantial work should append a one-line footer:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
─── ~{tokens} tokens · {duration}s · {agents-spawned} agents ───
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Estimation rules:
|
|
71
|
+
- Council: ~5K tokens per agent per round (5 agents × 2 rounds = ~50K)
|
|
72
|
+
- Chain: ~5K per stage
|
|
73
|
+
- Discuss: ~10K
|
|
74
|
+
- Plan: ~10-15K
|
|
75
|
+
- Execute: depends on tasks (~5K per task)
|
|
76
|
+
|
|
77
|
+
This is informational only — don't waste tokens calculating precise values, use heuristics.
|
|
78
|
+
|
|
79
|
+
## The test
|
|
80
|
+
|
|
81
|
+
Before sending a response, ask: "Would a senior engineer skim this and find the answer in under 10 seconds?" If no, cut.
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# State Schema Reference
|
|
2
|
+
|
|
3
|
+
Documents every top-level field in `state.json`, used by rihal workflows for session persistence.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## File Structure
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"version": "1",
|
|
12
|
+
"project": "...",
|
|
13
|
+
"created": "...",
|
|
14
|
+
"updated": "...",
|
|
15
|
+
"current_phase": "...",
|
|
16
|
+
"current_plan": 1,
|
|
17
|
+
"phases": [...],
|
|
18
|
+
"executions": [...],
|
|
19
|
+
"decisions": [...],
|
|
20
|
+
"blockers": [...],
|
|
21
|
+
"council_sessions": [...],
|
|
22
|
+
"chains": [...],
|
|
23
|
+
"last_session": "...",
|
|
24
|
+
"workstreams": [...],
|
|
25
|
+
"active_workstream": "...",
|
|
26
|
+
"model_profile": "..."
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Field Reference
|
|
33
|
+
|
|
34
|
+
### `version`
|
|
35
|
+
**Type:** string
|
|
36
|
+
**Example:** `"1"`
|
|
37
|
+
**Written by:** `/rihal:install` (initialization)
|
|
38
|
+
**Purpose:** Schema version for compatibility checks. Change if fields added/removed.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### `project`
|
|
43
|
+
**Type:** string
|
|
44
|
+
**Example:** `"Rihal v2"`
|
|
45
|
+
**Written by:** `/rihal:install` (reads from config.yaml)
|
|
46
|
+
**Purpose:** Project name for context and reports.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### `created`
|
|
51
|
+
**Type:** ISO date string
|
|
52
|
+
**Example:** `"2026-04-01T10:30:00Z"`
|
|
53
|
+
**Written by:** `/rihal:install` (first session)
|
|
54
|
+
**Purpose:** Timestamp of project creation, never changes.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### `updated`
|
|
59
|
+
**Type:** ISO date string
|
|
60
|
+
**Example:** `"2026-04-12T15:45:30Z"`
|
|
61
|
+
**Written by:** Any command that modifies state
|
|
62
|
+
**Purpose:** Last write timestamp; aids session recovery.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### `current_phase`
|
|
67
|
+
**Type:** string or null
|
|
68
|
+
**Example:** `"Phase 2: Authentication"` or `null`
|
|
69
|
+
**Written by:** `/rihal:do`, `/rihal:next`, `/rihal:resume-work`
|
|
70
|
+
**Purpose:** Name of active phase, null if no phase active.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### `current_plan`
|
|
75
|
+
**Type:** number
|
|
76
|
+
**Example:** `2`
|
|
77
|
+
**Written by:** `/rihal:do --execute` (incremented after each phase completion)
|
|
78
|
+
**Purpose:** Counter for plan versions. Increments 1→2→3 as phases complete.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### `phases`
|
|
83
|
+
**Type:** array of objects
|
|
84
|
+
**Example:**
|
|
85
|
+
```json
|
|
86
|
+
[
|
|
87
|
+
{
|
|
88
|
+
"number": 1,
|
|
89
|
+
"name": "Setup & Scaffolding",
|
|
90
|
+
"started": "2026-04-01T10:30:00Z",
|
|
91
|
+
"completed": "2026-04-03T14:20:00Z",
|
|
92
|
+
"sprints": [
|
|
93
|
+
{
|
|
94
|
+
"id": "01.1",
|
|
95
|
+
"number": 1,
|
|
96
|
+
"goal": "Project structure + CI",
|
|
97
|
+
"status": "completed",
|
|
98
|
+
"velocity_target": 13,
|
|
99
|
+
"velocity_actual": 11,
|
|
100
|
+
"started_at": "2026-04-01T10:30:00Z",
|
|
101
|
+
"completed_at": "2026-04-02T18:00:00Z",
|
|
102
|
+
"stories": [
|
|
103
|
+
{
|
|
104
|
+
"id": "01.1.01",
|
|
105
|
+
"title": "Initialize repo with standard layout",
|
|
106
|
+
"points": 3,
|
|
107
|
+
"status": "done",
|
|
108
|
+
"acceptance": "Repo has src/, tests/, CI config"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "01.1.02",
|
|
112
|
+
"title": "Setup CI pipeline",
|
|
113
|
+
"points": 5,
|
|
114
|
+
"status": "done",
|
|
115
|
+
"acceptance": "PR checks run lint + test"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
```
|
|
123
|
+
**Written by:** `/rihal:do --execute`, `/rihal:next`, sprint/story state tools
|
|
124
|
+
**Purpose:** Tracks phases with nested sprints and stories.
|
|
125
|
+
|
|
126
|
+
**Sprint fields:**
|
|
127
|
+
- `id` — `{NN}.{S}` (phase.sprint)
|
|
128
|
+
- `goal` — one-sentence sprint focus
|
|
129
|
+
- `status` — `planned | active | completed`
|
|
130
|
+
- `velocity_target` — estimated story points
|
|
131
|
+
- `velocity_actual` — actual points completed (set on sprint complete)
|
|
132
|
+
- `stories[]` — array of story objects
|
|
133
|
+
|
|
134
|
+
**Story fields:**
|
|
135
|
+
- `id` — `{NN}.{S}.{TT}` (phase.sprint.story)
|
|
136
|
+
- `title` — story description
|
|
137
|
+
- `points` — story points (0 = unestimated)
|
|
138
|
+
- `status` — `todo | in_progress | review | done`
|
|
139
|
+
- `acceptance` — acceptance criteria (optional)
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### `velocity_history`
|
|
144
|
+
**Type:** array of objects
|
|
145
|
+
**Example:**
|
|
146
|
+
```json
|
|
147
|
+
[
|
|
148
|
+
{ "sprint": "01.1", "points": 11, "completed_at": "2026-04-02T18:00:00Z" },
|
|
149
|
+
{ "sprint": "01.2", "points": 13, "completed_at": "2026-04-05T16:00:00Z" }
|
|
150
|
+
]
|
|
151
|
+
```
|
|
152
|
+
**Written by:** `sprint complete` state tool
|
|
153
|
+
**Purpose:** Rolling velocity log. Used to calculate average velocity for sprint capacity planning.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### `current_sprint`
|
|
158
|
+
**Type:** string (nullable)
|
|
159
|
+
**Example:** `"01.1"`
|
|
160
|
+
**Written by:** `sprint add`, `sprint start`, `sprint complete`
|
|
161
|
+
**Purpose:** Currently active sprint. Null when no sprint in progress.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### `executions`
|
|
166
|
+
**Type:** array of objects
|
|
167
|
+
**Example:**
|
|
168
|
+
```json
|
|
169
|
+
[
|
|
170
|
+
{
|
|
171
|
+
"plan": "01.02",
|
|
172
|
+
"tasks": 3,
|
|
173
|
+
"duration_ms": 3600000,
|
|
174
|
+
"commit_hash": "abc123def456",
|
|
175
|
+
"committed_at": "2026-04-03T14:20:00Z"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
```
|
|
179
|
+
**Written by:** `/rihal:execute` (after each plan completes)
|
|
180
|
+
**Purpose:** Log of each plan execution. The `plan` field is the plan ID string (e.g., "01.02"), not a number.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
### `decisions`
|
|
185
|
+
**Type:** array of objects
|
|
186
|
+
**Example:**
|
|
187
|
+
```json
|
|
188
|
+
[
|
|
189
|
+
{
|
|
190
|
+
"summary": "Use JWT instead of session cookies",
|
|
191
|
+
"phase": "Phase 2",
|
|
192
|
+
"plan": 1,
|
|
193
|
+
"date": "2026-04-04T09:15:00Z"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
```
|
|
197
|
+
**Written by:** `/rihal:council`, `/rihal:discuss`
|
|
198
|
+
**Purpose:** Records architectural/strategic decisions for history.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
### `blockers`
|
|
203
|
+
**Type:** array of objects
|
|
204
|
+
**Example:**
|
|
205
|
+
```json
|
|
206
|
+
[
|
|
207
|
+
{
|
|
208
|
+
"description": "API rate limit blocks load testing",
|
|
209
|
+
"phase": "Phase 3",
|
|
210
|
+
"plan": 1,
|
|
211
|
+
"date": "2026-04-05T11:00:00Z",
|
|
212
|
+
"resolved": "2026-04-05T13:30:00Z"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
```
|
|
216
|
+
**Written by:** `/rihal:do`, `/rihal:health`
|
|
217
|
+
**Purpose:** Tracks blockers, when identified, which phase, and resolution time.
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
### `council_sessions`
|
|
222
|
+
**Type:** array of objects
|
|
223
|
+
**Example:**
|
|
224
|
+
```json
|
|
225
|
+
[
|
|
226
|
+
{
|
|
227
|
+
"date": "2026-04-04T10:00:00Z",
|
|
228
|
+
"question_slug": "auth-strategy",
|
|
229
|
+
"panel": ["rihal-sadiq", "rihal-waleed", "rihal-fatima"],
|
|
230
|
+
"artifact_path": "rihal/artifacts/council-sessions/auth-strategy-20260404.md"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
```
|
|
234
|
+
**Written by:** `/rihal:council`
|
|
235
|
+
**Purpose:** History of council deliberations, panelists, output artifacts.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
### `chains`
|
|
240
|
+
**Type:** array of objects
|
|
241
|
+
**Example:**
|
|
242
|
+
```json
|
|
243
|
+
[
|
|
244
|
+
{
|
|
245
|
+
"date": "2026-04-05T14:00:00Z",
|
|
246
|
+
"slug": "implement-login-flow",
|
|
247
|
+
"agents": ["rihal-waleed", "rihal-fatima"],
|
|
248
|
+
"artifacts_dir": "rihal/artifacts/chains/implement-login-flow-20260405"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
```
|
|
252
|
+
**Written by:** `/rihal:chain`
|
|
253
|
+
**Purpose:** History of multi-agent chains, participants, work artifacts.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
### `last_session`
|
|
258
|
+
**Type:** ISO date string
|
|
259
|
+
**Example:** `"2026-04-12T15:45:30Z"`
|
|
260
|
+
**Written by:** Every subcommand that runs (updates at session end)
|
|
261
|
+
**Purpose:** Enables `/rihal:resume-work` to find context from last session.
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
### `workstreams`
|
|
266
|
+
**Type:** array of objects
|
|
267
|
+
**Example:**
|
|
268
|
+
```json
|
|
269
|
+
[
|
|
270
|
+
{
|
|
271
|
+
"name": "Frontend",
|
|
272
|
+
"created": "2026-04-01T10:30:00Z",
|
|
273
|
+
"active": true,
|
|
274
|
+
"completed": null,
|
|
275
|
+
"phases": [1, 2, 3]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "Backend API",
|
|
279
|
+
"created": "2026-04-02T09:00:00Z",
|
|
280
|
+
"active": true,
|
|
281
|
+
"completed": null,
|
|
282
|
+
"phases": [1, 2, 4]
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
```
|
|
286
|
+
**Written by:** `/rihal:workstream --create`, `/rihal:do --execute`
|
|
287
|
+
**Purpose:** Tracks parallel workstreams, which phases belong to each.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
### `active_workstream`
|
|
292
|
+
**Type:** string or null
|
|
293
|
+
**Example:** `"Frontend"` or `null`
|
|
294
|
+
**Written by:** `/rihal:workstream --activate`, `/rihal:do`
|
|
295
|
+
**Purpose:** Currently active workstream; null if no workstream focus.
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
### `model_profile`
|
|
300
|
+
**Type:** string
|
|
301
|
+
**Example:** `"balanced"` (options: `quality`, `balanced`, `budget`, `inherit`)
|
|
302
|
+
**Written by:** `/rihal:set-profile`
|
|
303
|
+
**Purpose:** Model selection for council agents. Affects token spend and quality.
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Usage Examples
|
|
308
|
+
|
|
309
|
+
### Reading Phase Progress
|
|
310
|
+
```python
|
|
311
|
+
current_phase = state['current_phase']
|
|
312
|
+
completed_phases = [p for p in state['phases'] if p['completed'] is not None]
|
|
313
|
+
progress = f"{len(completed_phases)}/{len(state['phases'])} phases complete"
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Checking for Blockers
|
|
317
|
+
```python
|
|
318
|
+
unresolved_blockers = [b for b in state['blockers'] if b['resolved'] is None]
|
|
319
|
+
if unresolved_blockers:
|
|
320
|
+
print(f"⚠️ {len(unresolved_blockers)} open blockers")
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Resuming Session
|
|
324
|
+
```python
|
|
325
|
+
last_session = state['last_session']
|
|
326
|
+
current_phase = state['current_phase']
|
|
327
|
+
# Provide context: "Last session: {last_session}. Phase: {current_phase}"
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Tracking Decisions
|
|
331
|
+
```python
|
|
332
|
+
phase_decisions = [d for d in state['decisions'] if d['phase'] == current_phase]
|
|
333
|
+
print(f"Decisions made in {current_phase}:")
|
|
334
|
+
for d in phase_decisions:
|
|
335
|
+
print(f" - {d['summary']}")
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## ID Formats Accepted by resolve-id
|
|
341
|
+
|
|
342
|
+
The `state resolve-id <id>` command accepts the following formats:
|
|
343
|
+
|
|
344
|
+
| Format | Example | Resolves To | Notes |
|
|
345
|
+
|--------|---------|-------------|-------|
|
|
346
|
+
| `M{N}` | `M1`, `M2` | Milestone N | Lowercase or uppercase M |
|
|
347
|
+
| `{NN}` | `01`, `02`, `10` | Phase with number NN | Zero-padded two-digit phase number |
|
|
348
|
+
| `{NN.S}` | `01.1`, `02.3` | Sprint S in Phase NN | Sprint within a phase |
|
|
349
|
+
| `{NN.S.TT}` | `01.1.01`, `02.3.05` | Story TT in Sprint NN.S | Three-part hierarchical story ID |
|
|
350
|
+
| `{NN.M}` | `02.1`, `03.2` | Decimal phase (legacy) OR sprint | Context-dependent — prefer sprint interpretation |
|
|
351
|
+
|
|
352
|
+
**Examples:**
|
|
353
|
+
```bash
|
|
354
|
+
node .rihal/bin/rihal-tools.cjs state resolve-id M1 # → Milestone 1
|
|
355
|
+
node .rihal/bin/rihal-tools.cjs state resolve-id 02 # → Phase 02
|
|
356
|
+
node .rihal/bin/rihal-tools.cjs state resolve-id 01.1 # → Sprint 1 in Phase 01
|
|
357
|
+
node .rihal/bin/rihal-tools.cjs state resolve-id 01.1.03 # → Story 3 in Sprint 01.1
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**Sprint state commands:**
|
|
361
|
+
```bash
|
|
362
|
+
node .rihal/bin/rihal-tools.cjs state sprint add --phase 01 --goal "Setup" --velocity 13
|
|
363
|
+
node .rihal/bin/rihal-tools.cjs state story add --title "Login" --points 5
|
|
364
|
+
node .rihal/bin/rihal-tools.cjs state story move --id 01.1.01 --status done
|
|
365
|
+
node .rihal/bin/rihal-tools.cjs state sprint velocity
|
|
366
|
+
```
|