@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,616 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Start a new milestone cycle for an existing project. Loads project context, gathers milestone goals interactively, updates PROJECT.md and STATE.md in-place, optionally runs parallel research, defines scoped requirements with REQ-IDs, spawns rihal-roadmapper to create the phased execution plan, and commits all artifacts. Brownfield equivalent of new-project.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
@.rihal/references/output-format.md
|
|
7
|
+
@.rihal/references/commit-conventions.md
|
|
8
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
9
|
+
</required_reading>
|
|
10
|
+
|
|
11
|
+
<available_agent_types>
|
|
12
|
+
Valid rihal subagent types (use exact names — do not fall back to 'general-purpose'):
|
|
13
|
+
- rihal-project-researcher — Researches project-level technical decisions
|
|
14
|
+
- rihal-research-synthesizer — Synthesizes findings from parallel research agents
|
|
15
|
+
- rihal-roadmapper — Creates phased execution roadmaps
|
|
16
|
+
</available_agent_types>
|
|
17
|
+
|
|
18
|
+
<process>
|
|
19
|
+
|
|
20
|
+
## 1. Parse arguments and load context
|
|
21
|
+
|
|
22
|
+
Parse `$ARGUMENTS` before anything else:
|
|
23
|
+
- `--reset-phase-numbers` flag → restart roadmap phase numbering at `1`
|
|
24
|
+
- `--dry-run` flag → show what would be written, do not commit
|
|
25
|
+
- Remaining text → milestone name (optional)
|
|
26
|
+
|
|
27
|
+
If the flag is absent, continue phase numbering from the previous milestone.
|
|
28
|
+
|
|
29
|
+
Read these files in parallel:
|
|
30
|
+
- `.planning/PROJECT.md` — existing project, validated requirements, decisions
|
|
31
|
+
- `.planning/MILESTONES.md` — what shipped previously (may not exist on first milestone)
|
|
32
|
+
- `.planning/STATE.md` — pending todos, blockers
|
|
33
|
+
- `.planning/MILESTONE-CONTEXT.md` — if it exists (from a prior `/rihal:discuss` about the next milestone)
|
|
34
|
+
|
|
35
|
+
If `.planning/PROJECT.md` does not exist, STOP and redirect:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
⚠ No project initialized. Run /rihal:new-project first.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 2. Gather milestone goals
|
|
42
|
+
|
|
43
|
+
**If `MILESTONE-CONTEXT.md` exists:**
|
|
44
|
+
- Summarize its features + scope
|
|
45
|
+
- Present for confirmation via AskUserQuestion: "Use this context?" → Yes / Revise
|
|
46
|
+
|
|
47
|
+
**If no context file:**
|
|
48
|
+
- Read `MILESTONES.md` (or tail of PROJECT.md history) and present a summary of what shipped last:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
Here's what shipped in the last milestone:
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
v[X.Y] [Name] (shipped [date])
|
|
55
|
+
- [feature 1]
|
|
56
|
+
- [feature 2]
|
|
57
|
+
- [feature 3]
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
What do you want to build next?
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- Wait for freeform user reply (NOT AskUserQuestion for the open-ended "what next" — raw text is higher signal). Then probe specifics with AskUserQuestion where needed.
|
|
64
|
+
|
|
65
|
+
## 3. Determine milestone version
|
|
66
|
+
|
|
67
|
+
- Parse the last version from `MILESTONES.md` (or PROJECT.md history section).
|
|
68
|
+
- Suggest the next version (v1.7 → v1.8 for minor; v1.x → v2.0 for major — ask the user which).
|
|
69
|
+
- Confirm via AskUserQuestion:
|
|
70
|
+
- "v[X.Y+1] (minor)" — default
|
|
71
|
+
- "v[X+1].0 (major)"
|
|
72
|
+
- "Custom" → ask plain text
|
|
73
|
+
|
|
74
|
+
## 3.5 Verify milestone understanding (mandatory — loop until confirmed)
|
|
75
|
+
|
|
76
|
+
Before writing any files, present a summary and require explicit confirmation:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
80
|
+
RIHAL ► MILESTONE SUMMARY
|
|
81
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
82
|
+
|
|
83
|
+
**Milestone v[X.Y]: [Name]**
|
|
84
|
+
|
|
85
|
+
**Goal:** [one sentence]
|
|
86
|
+
|
|
87
|
+
**Target features:**
|
|
88
|
+
- [feature 1]
|
|
89
|
+
- [feature 2]
|
|
90
|
+
- [feature 3]
|
|
91
|
+
|
|
92
|
+
**Key context:** [constraints, decisions, notes from questioning]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
AskUserQuestion:
|
|
96
|
+
- header: "Confirm?"
|
|
97
|
+
- question: "Does this capture what you want to build in this milestone?"
|
|
98
|
+
- options:
|
|
99
|
+
- "Looks good" → proceed to Step 4
|
|
100
|
+
- "Adjust" → collect changes and re-present
|
|
101
|
+
|
|
102
|
+
**If "Adjust":** ask for the delta as plain text, fold it in, re-present the summary. Loop until "Looks good".
|
|
103
|
+
|
|
104
|
+
## 4. Update PROJECT.md
|
|
105
|
+
|
|
106
|
+
Edit `.planning/PROJECT.md` in place. Add or update the `## Current Milestone` section:
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
## Current Milestone: v[X.Y] [Name]
|
|
110
|
+
|
|
111
|
+
**Goal:** [one sentence]
|
|
112
|
+
|
|
113
|
+
**Target features:**
|
|
114
|
+
- [feature 1]
|
|
115
|
+
- [feature 2]
|
|
116
|
+
- [feature 3]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Update the "Last updated" footer to today's date and milestone name.
|
|
120
|
+
|
|
121
|
+
Ensure the `## Evolution` section exists. If missing, insert before the footer:
|
|
122
|
+
|
|
123
|
+
```markdown
|
|
124
|
+
## Evolution
|
|
125
|
+
|
|
126
|
+
This document evolves at phase transitions and milestone boundaries.
|
|
127
|
+
|
|
128
|
+
**After each phase transition:**
|
|
129
|
+
1. Requirements invalidated? → move to Out of Scope with reason
|
|
130
|
+
2. Requirements validated? → move to Validated with phase reference
|
|
131
|
+
3. New requirements emerged? → add to Active
|
|
132
|
+
4. Decisions to log? → add to Key Decisions
|
|
133
|
+
5. "What This Is" still accurate? → update if drifted
|
|
134
|
+
|
|
135
|
+
**After each milestone (via `/rihal:complete-milestone`):**
|
|
136
|
+
1. Full review of all sections
|
|
137
|
+
2. Core Value check
|
|
138
|
+
3. Audit Out of Scope — reasons still valid?
|
|
139
|
+
4. Update Context with current state
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 5. Update STATE.md
|
|
143
|
+
|
|
144
|
+
Edit `.planning/STATE.md` in place. Set header + Current Position:
|
|
145
|
+
|
|
146
|
+
```yaml
|
|
147
|
+
---
|
|
148
|
+
rihal_state_version: 1.0
|
|
149
|
+
milestone: v[X.Y]
|
|
150
|
+
milestone_name: [Name]
|
|
151
|
+
status: defining_requirements
|
|
152
|
+
stopped_at: —
|
|
153
|
+
last_updated: "[ISO timestamp]"
|
|
154
|
+
last_activity: [YYYY-MM-DD]
|
|
155
|
+
progress:
|
|
156
|
+
total_phases: 0
|
|
157
|
+
completed_phases: 0
|
|
158
|
+
total_plans: 0
|
|
159
|
+
completed_plans: 0
|
|
160
|
+
percent: 0
|
|
161
|
+
---
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Current Position block:
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
## Current Position
|
|
168
|
+
|
|
169
|
+
Phase: Not started (defining requirements)
|
|
170
|
+
Plan: —
|
|
171
|
+
Status: Defining requirements
|
|
172
|
+
Last activity: [YYYY-MM-DD] — Milestone v[X.Y] started
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Keep the Accumulated Context section from the previous milestone intact.
|
|
176
|
+
|
|
177
|
+
## 6. Cleanup and commit
|
|
178
|
+
|
|
179
|
+
Delete `MILESTONE-CONTEXT.md` if it exists (consumed):
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
rm -f .planning/MILESTONE-CONTEXT.md
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Clear leftover phase directories from the previous milestone only if the previous milestone was archived (check `.planning/archive/` exists and contains the prior milestone's dir). If not archived, do NOT delete — prompt user to run `/rihal:complete-milestone` on the prior milestone first.
|
|
186
|
+
|
|
187
|
+
Load commit conventions (see `@.rihal/references/commit-conventions.md` — run the project-local scan before writing the commit message):
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
git add .planning/PROJECT.md .planning/STATE.md
|
|
191
|
+
git commit -m "docs: start milestone v[X.Y] [Name]"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
If `.planning/` is gitignored (common case), print:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
ℹ .planning/ is gitignored — state updated locally, no commit made.
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
and continue.
|
|
201
|
+
|
|
202
|
+
## 7. Load context and resolve models
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
INIT=$(node ".rihal/bin/rihal-tools.cjs" init new-milestone 2>/dev/null)
|
|
206
|
+
AGENT_SKILLS_RESEARCHER=$(node ".rihal/bin/rihal-tools.cjs" agent-info rihal-project-researcher 2>/dev/null)
|
|
207
|
+
AGENT_SKILLS_SYNTHESIZER=$(node ".rihal/bin/rihal-tools.cjs" agent-info rihal-research-synthesizer 2>/dev/null)
|
|
208
|
+
AGENT_SKILLS_ROADMAPPER=$(node ".rihal/bin/rihal-tools.cjs" agent-info rihal-roadmapper 2>/dev/null)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Extract from `INIT` JSON (where available): `research_enabled`, `current_milestone`, `project_exists`, `roadmap_exists`, `latest_completed_milestone`, `phase_dir_count`.
|
|
212
|
+
|
|
213
|
+
Resolve models per agent:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
RESEARCHER_MODEL=$(node ".rihal/bin/rihal-tools.cjs" resolve-model rihal-project-researcher 2>/dev/null)
|
|
217
|
+
SYNTHESIZER_MODEL=$(node ".rihal/bin/rihal-tools.cjs" resolve-model rihal-research-synthesizer 2>/dev/null)
|
|
218
|
+
ROADMAPPER_MODEL=$(node ".rihal/bin/rihal-tools.cjs" resolve-model rihal-roadmapper 2>/dev/null)
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## 7.5 Reset-phase safety (only when `--reset-phase-numbers`)
|
|
222
|
+
|
|
223
|
+
If `--reset-phase-numbers` is active:
|
|
224
|
+
|
|
225
|
+
1. Set starting phase number to `1` for the upcoming roadmap.
|
|
226
|
+
2. If `.planning/phases/` still contains directories from the previous milestone, archive them before roadmapping so new `01-*` / `02-*` directories cannot collide:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
ARCHIVE_DIR=".planning/archive/v[prev-version]"
|
|
230
|
+
if [ -d .planning/phases ] && [ "$(ls -A .planning/phases 2>/dev/null)" ]; then
|
|
231
|
+
mkdir -p "$ARCHIVE_DIR"
|
|
232
|
+
find .planning/phases -mindepth 1 -maxdepth 1 -type d -exec mv {} "$ARCHIVE_DIR/" \;
|
|
233
|
+
fi
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
If the previous milestone has not been completed/archived, STOP:
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
⚠ Prior milestone not archived. Run /rihal:complete-milestone v[prev] before --reset-phase-numbers.
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## 8. Research decision
|
|
243
|
+
|
|
244
|
+
Check `research_enabled` from init JSON.
|
|
245
|
+
|
|
246
|
+
AskUserQuestion: "Research the domain ecosystem for new features before defining requirements?"
|
|
247
|
+
|
|
248
|
+
If `research_enabled=true`:
|
|
249
|
+
- "Research first (recommended)" — discover patterns, features, architecture for NEW capabilities
|
|
250
|
+
- "Skip research for this milestone" — go straight to requirements (does not change project default)
|
|
251
|
+
|
|
252
|
+
If `research_enabled=false`:
|
|
253
|
+
- "Skip research (current default)" — go straight to requirements
|
|
254
|
+
- "Research first" — discover patterns, features, architecture for NEW capabilities
|
|
255
|
+
|
|
256
|
+
**Do NOT persist this choice.** To change the default, the user runs `/rihal:settings`.
|
|
257
|
+
|
|
258
|
+
**If "Research first":**
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
262
|
+
RIHAL ► RESEARCHING
|
|
263
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
264
|
+
|
|
265
|
+
◆ Spawning 4 researchers in parallel...
|
|
266
|
+
→ Stack, Features, Architecture, Pitfalls
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
mkdir -p .planning/research
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Spawn 4 parallel `rihal-project-researcher` Task calls in a single assistant response. Each produces one file in `.planning/research/`.
|
|
274
|
+
|
|
275
|
+
Per-researcher prompt template:
|
|
276
|
+
|
|
277
|
+
```
|
|
278
|
+
<research_type>Project Research — {DIMENSION} for [milestone features].</research_type>
|
|
279
|
+
|
|
280
|
+
<milestone_context>
|
|
281
|
+
SUBSEQUENT MILESTONE — Adding [target features] to existing app.
|
|
282
|
+
{EXISTING_CONTEXT}
|
|
283
|
+
Focus ONLY on what's needed for the NEW features.
|
|
284
|
+
</milestone_context>
|
|
285
|
+
|
|
286
|
+
<question>{QUESTION}</question>
|
|
287
|
+
|
|
288
|
+
<files_to_read>
|
|
289
|
+
- .planning/PROJECT.md
|
|
290
|
+
- .planning/MILESTONES.md (if exists)
|
|
291
|
+
</files_to_read>
|
|
292
|
+
|
|
293
|
+
${AGENT_SKILLS_RESEARCHER}
|
|
294
|
+
|
|
295
|
+
<downstream_consumer>{CONSUMER}</downstream_consumer>
|
|
296
|
+
|
|
297
|
+
<quality_gate>{GATES}</quality_gate>
|
|
298
|
+
|
|
299
|
+
<output>
|
|
300
|
+
Write to: .planning/research/{FILE}
|
|
301
|
+
</output>
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Dimension-specific fields:
|
|
305
|
+
|
|
306
|
+
| Field | Stack | Features | Architecture | Pitfalls |
|
|
307
|
+
|-------|-------|----------|--------------|----------|
|
|
308
|
+
| EXISTING_CONTEXT | Existing validated stack (DO NOT re-research): [from PROJECT.md] | Existing features already built: [from PROJECT.md] | Existing architecture: [from PROJECT.md or codebase map] | Common mistakes when ADDING these features to existing system |
|
|
309
|
+
| QUESTION | What stack additions/changes are needed for [new features]? | How do [target features] typically work? Expected behavior? | How do [target features] integrate with existing architecture? | Common mistakes when adding [target features] to [domain]? |
|
|
310
|
+
| CONSUMER | Libraries w/ versions for NEW capabilities, integration points, what NOT to add | Table stakes vs differentiators vs anti-features, complexity, dependencies on existing | Integration points, new components, data-flow changes, suggested build order | Warning signs, prevention strategy, which phase should address it |
|
|
311
|
+
| GATES | Versions current (verify via Context7), rationale WHY, integration considered | Categories clear, complexity noted, deps identified | Integration points identified, new vs modified explicit, build order considers deps | Pitfalls specific to these features, integration pitfalls covered, prevention actionable |
|
|
312
|
+
| FILE | STACK.md | FEATURES.md | ARCHITECTURE.md | PITFALLS.md |
|
|
313
|
+
|
|
314
|
+
After all 4 complete, spawn `rihal-research-synthesizer`:
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
Task(prompt="
|
|
318
|
+
Synthesize research outputs into SUMMARY.md.
|
|
319
|
+
|
|
320
|
+
<files_to_read>
|
|
321
|
+
- .planning/research/STACK.md
|
|
322
|
+
- .planning/research/FEATURES.md
|
|
323
|
+
- .planning/research/ARCHITECTURE.md
|
|
324
|
+
- .planning/research/PITFALLS.md
|
|
325
|
+
</files_to_read>
|
|
326
|
+
|
|
327
|
+
${AGENT_SKILLS_SYNTHESIZER}
|
|
328
|
+
|
|
329
|
+
Write to: .planning/research/SUMMARY.md
|
|
330
|
+
", subagent_type='rihal-research-synthesizer', model='${SYNTHESIZER_MODEL}', description='Synthesize research')
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Display:
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
337
|
+
RIHAL ► RESEARCH COMPLETE ✓
|
|
338
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
339
|
+
|
|
340
|
+
**Stack additions:** [from SUMMARY.md]
|
|
341
|
+
**Feature table stakes:** [from SUMMARY.md]
|
|
342
|
+
**Watch out for:** [from SUMMARY.md]
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
**If "Skip research":** continue to Step 9.
|
|
346
|
+
|
|
347
|
+
## 9. Define requirements
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
351
|
+
RIHAL ► DEFINING REQUIREMENTS
|
|
352
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Read PROJECT.md: core value, current milestone goal, validated requirements (what exists).
|
|
356
|
+
|
|
357
|
+
**If research exists:** read `FEATURES.md`, extract categories. Present:
|
|
358
|
+
|
|
359
|
+
```
|
|
360
|
+
## [Category 1]
|
|
361
|
+
**Table stakes:** Feature A, Feature B
|
|
362
|
+
**Differentiators:** Feature C, Feature D
|
|
363
|
+
**Research notes:** [any]
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
**If no research:** gather through conversation. Ask:
|
|
367
|
+
|
|
368
|
+
```
|
|
369
|
+
What are the main things users need to do with [new features]?
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
Clarify, probe for related capabilities, group into categories.
|
|
373
|
+
|
|
374
|
+
**Scope each category** via AskUserQuestion (`multiSelect: true`, header ≤12 chars):
|
|
375
|
+
|
|
376
|
+
- "[Feature 1]" — [brief]
|
|
377
|
+
- "[Feature 2]" — [brief]
|
|
378
|
+
- "None for this milestone" — defer whole category
|
|
379
|
+
|
|
380
|
+
Track: selected → this milestone. Unselected table stakes → Future. Unselected differentiators → Out of Scope.
|
|
381
|
+
|
|
382
|
+
**Identify gaps** via AskUserQuestion:
|
|
383
|
+
- "No, research covered it" — proceed
|
|
384
|
+
- "Yes, let me add some" — capture additions
|
|
385
|
+
|
|
386
|
+
**Generate `.planning/REQUIREMENTS.md`** with this structure:
|
|
387
|
+
|
|
388
|
+
```markdown
|
|
389
|
+
# Requirements — v[X.Y] [Name]
|
|
390
|
+
|
|
391
|
+
**Source:** [origin — e.g. roadmap doc name or "Conversation with Hanzla on [date]"]
|
|
392
|
+
**Scope:** [one-line scope statement]
|
|
393
|
+
|
|
394
|
+
**Quality constraint (applies to all requirements):** [any cross-cutting constraint the user named, e.g. "Every change must add value without degrading existing UX."]
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## [Category 1] ([PREFIX])
|
|
399
|
+
|
|
400
|
+
- [ ] **[PREFIX]-01**: User can do X
|
|
401
|
+
- [ ] **[PREFIX]-02**: User can do Y
|
|
402
|
+
|
|
403
|
+
## [Category 2] ([PREFIX2])
|
|
404
|
+
|
|
405
|
+
- [ ] **[PREFIX2]-01**: User can do Z
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
## Future (Deferred)
|
|
410
|
+
|
|
411
|
+
- [item carried forward]
|
|
412
|
+
|
|
413
|
+
## Out of Scope
|
|
414
|
+
|
|
415
|
+
- [explicit exclusion with reason]
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## Traceability
|
|
420
|
+
|
|
421
|
+
| Requirement | Phase | Status |
|
|
422
|
+
|-------------|-------|--------|
|
|
423
|
+
| [PREFIX]-01 | TBD | Pending |
|
|
424
|
+
| [PREFIX]-02 | TBD | Pending |
|
|
425
|
+
| [PREFIX2]-01 | TBD | Pending |
|
|
426
|
+
|
|
427
|
+
**Total:** [N] requirements across [M] categories — 0/[N] mapped ✓
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
**REQ-ID format:** `[CATEGORY-PREFIX]-[NUMBER]`. Pick a short, distinct prefix per category (SRV = Sequence Recipient Visibility, RNV = Record Navigation, AUTH = Auth, etc.). Do NOT reuse prefixes from a prior milestone.
|
|
431
|
+
|
|
432
|
+
**Requirement quality criteria:**
|
|
433
|
+
- **Specific + testable:** "User can reset password via email link" ≠ "Handle password reset"
|
|
434
|
+
- **User-centric:** "User can X" — not "System does Y"
|
|
435
|
+
- **Atomic:** one capability per line
|
|
436
|
+
- **Independent:** minimal cross-requirement deps
|
|
437
|
+
|
|
438
|
+
Present the FULL list for confirmation:
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
## Milestone v[X.Y] Requirements
|
|
442
|
+
|
|
443
|
+
### [Category 1]
|
|
444
|
+
- [ ] **CAT1-01**: User can do X
|
|
445
|
+
- [ ] **CAT1-02**: User can do Y
|
|
446
|
+
|
|
447
|
+
### [Category 2]
|
|
448
|
+
- [ ] **CAT2-01**: User can do Z
|
|
449
|
+
|
|
450
|
+
Does this capture what you're building? (yes / adjust)
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
If "adjust": return to scoping loop.
|
|
454
|
+
|
|
455
|
+
**Commit requirements:**
|
|
456
|
+
|
|
457
|
+
```bash
|
|
458
|
+
git add .planning/REQUIREMENTS.md 2>/dev/null && \
|
|
459
|
+
git commit -m "docs: define milestone v[X.Y] requirements" 2>/dev/null || \
|
|
460
|
+
echo "ℹ .planning/ gitignored — REQUIREMENTS.md written, not committed"
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
## 10. Create roadmap
|
|
464
|
+
|
|
465
|
+
```
|
|
466
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
467
|
+
RIHAL ► CREATING ROADMAP
|
|
468
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
469
|
+
|
|
470
|
+
◆ Spawning rihal-roadmapper...
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
**Starting phase number:**
|
|
474
|
+
- If `--reset-phase-numbers` is active, start at **Phase 1**
|
|
475
|
+
- Otherwise, continue from the previous milestone's last phase number (v1.7 ended at phase 67 → v1.8 starts at phase 68)
|
|
476
|
+
|
|
477
|
+
Spawn `rihal-roadmapper` via Task tool:
|
|
478
|
+
|
|
479
|
+
```
|
|
480
|
+
<planning_context>
|
|
481
|
+
<files_to_read>
|
|
482
|
+
- .planning/PROJECT.md
|
|
483
|
+
- .planning/REQUIREMENTS.md
|
|
484
|
+
- .planning/research/SUMMARY.md (if exists)
|
|
485
|
+
- .planning/MILESTONES.md (if exists)
|
|
486
|
+
- .rihal/config.yaml
|
|
487
|
+
</files_to_read>
|
|
488
|
+
|
|
489
|
+
${AGENT_SKILLS_ROADMAPPER}
|
|
490
|
+
</planning_context>
|
|
491
|
+
|
|
492
|
+
<instructions>
|
|
493
|
+
Create roadmap for milestone v[X.Y]:
|
|
494
|
+
1. Respect the selected numbering mode:
|
|
495
|
+
- `--reset-phase-numbers` → start at Phase 1
|
|
496
|
+
- default → continue from the previous milestone's last phase number ([N])
|
|
497
|
+
2. Derive phases from THIS MILESTONE's requirements only
|
|
498
|
+
3. Map every requirement to exactly one phase
|
|
499
|
+
4. Derive 2-5 success criteria per phase (observable user behaviors)
|
|
500
|
+
5. Validate 100% requirement coverage
|
|
501
|
+
6. Write files immediately:
|
|
502
|
+
- .planning/ROADMAP.md
|
|
503
|
+
- .planning/STATE.md (update with new phase count)
|
|
504
|
+
- .planning/REQUIREMENTS.md (fill traceability matrix)
|
|
505
|
+
7. Return "## ROADMAP CREATED" with summary, OR "## ROADMAP BLOCKED" with reason.
|
|
506
|
+
|
|
507
|
+
Write files first, then return.
|
|
508
|
+
</instructions>
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
**Handle return:**
|
|
512
|
+
|
|
513
|
+
**If `## ROADMAP BLOCKED`:** present the blocker, collect resolution from user, re-spawn the roadmapper with revision context.
|
|
514
|
+
|
|
515
|
+
**If `## ROADMAP CREATED`:** read ROADMAP.md, present inline:
|
|
516
|
+
|
|
517
|
+
```
|
|
518
|
+
## Proposed Roadmap
|
|
519
|
+
|
|
520
|
+
**[N] phases** | **[X] requirements mapped** | All covered ✓
|
|
521
|
+
|
|
522
|
+
| # | Phase | Goal | Requirements | Success Criteria |
|
|
523
|
+
|---|-------|------|--------------|------------------|
|
|
524
|
+
| [N] | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
525
|
+
|
|
526
|
+
### Phase Details
|
|
527
|
+
|
|
528
|
+
**Phase [N]: [Name]**
|
|
529
|
+
Goal: [goal]
|
|
530
|
+
Requirements: [REQ-IDs]
|
|
531
|
+
Success criteria:
|
|
532
|
+
1. [criterion]
|
|
533
|
+
2. [criterion]
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
Ask for approval via AskUserQuestion:
|
|
537
|
+
- "Approve" → commit and continue
|
|
538
|
+
- "Adjust phases" → collect notes, re-spawn
|
|
539
|
+
- "Review full file" → print raw ROADMAP.md, re-ask
|
|
540
|
+
|
|
541
|
+
**If "Adjust":** capture the delta as plain text, re-spawn roadmapper with revision context, loop.
|
|
542
|
+
**If "Review":** cat ROADMAP.md, re-ask.
|
|
543
|
+
|
|
544
|
+
**Commit roadmap (after approval):**
|
|
545
|
+
|
|
546
|
+
```bash
|
|
547
|
+
git add .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md 2>/dev/null && \
|
|
548
|
+
git commit -m "docs: create milestone v[X.Y] roadmap ([N] phases)" 2>/dev/null || \
|
|
549
|
+
echo "ℹ .planning/ gitignored — roadmap written, not committed"
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
Also record the milestone start in state:
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
node ".rihal/bin/rihal-tools.cjs" state add-decision \
|
|
556
|
+
--summary "Started milestone v[X.Y] [Name]: [N] phases, [X] requirements" 2>/dev/null || true
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
## 11. Done
|
|
560
|
+
|
|
561
|
+
```
|
|
562
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
563
|
+
RIHAL ► MILESTONE INITIALIZED ✓
|
|
564
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
565
|
+
|
|
566
|
+
**Milestone v[X.Y]: [Name]**
|
|
567
|
+
|
|
568
|
+
| Artifact | Location |
|
|
569
|
+
|----------------|-----------------------------|
|
|
570
|
+
| Project | `.planning/PROJECT.md` |
|
|
571
|
+
| Research | `.planning/research/` |
|
|
572
|
+
| Requirements | `.planning/REQUIREMENTS.md` |
|
|
573
|
+
| Roadmap | `.planning/ROADMAP.md` |
|
|
574
|
+
|
|
575
|
+
**[N] phases** | **[X] requirements** | Ready to build ✓
|
|
576
|
+
|
|
577
|
+
## ▶ Next Up
|
|
578
|
+
|
|
579
|
+
**Phase [N]: [Phase Name]** — [Goal]
|
|
580
|
+
|
|
581
|
+
`/clear` then:
|
|
582
|
+
|
|
583
|
+
`/rihal:discuss-phase [N]` — gather context and clarify approach
|
|
584
|
+
or
|
|
585
|
+
`/rihal:plan [N]` — skip discussion, plan directly
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
</process>
|
|
589
|
+
|
|
590
|
+
<success_criteria>
|
|
591
|
+
- [ ] PROJECT.md updated in-place with Current Milestone section
|
|
592
|
+
- [ ] STATE.md reset for new milestone (status = defining_requirements)
|
|
593
|
+
- [ ] MILESTONE-CONTEXT.md consumed and deleted (if existed)
|
|
594
|
+
- [ ] Version number determined (v[X.Y+1] or v[X+1].0)
|
|
595
|
+
- [ ] Milestone-summary confirmation loop ran until "Looks good"
|
|
596
|
+
- [ ] Research completed (if selected) — 4 parallel researchers + synthesizer
|
|
597
|
+
- [ ] Requirements gathered and scoped per category
|
|
598
|
+
- [ ] REQUIREMENTS.md created with category-prefixed REQ-IDs
|
|
599
|
+
- [ ] rihal-roadmapper spawned with correct phase numbering context
|
|
600
|
+
- [ ] Roadmap files written immediately (not draft)
|
|
601
|
+
- [ ] User approval captured before commit
|
|
602
|
+
- [ ] Phase numbering mode respected (continued or reset)
|
|
603
|
+
- [ ] All commits made (or gracefully skipped if .planning/ gitignored)
|
|
604
|
+
- [ ] User shown next command: `/rihal:discuss-phase [N]`
|
|
605
|
+
</success_criteria>
|
|
606
|
+
|
|
607
|
+
<on_error>
|
|
608
|
+
- **Empty `$ARGUMENTS` with no conversational context:** ask for milestone name; do not invent one.
|
|
609
|
+
- **No `.planning/PROJECT.md`:** redirect to `/rihal:new-project`.
|
|
610
|
+
- **Prior milestone not archived + `--reset-phase-numbers`:** stop, tell user to run `/rihal:complete-milestone` first.
|
|
611
|
+
- **Roadmapper returns ROADMAP BLOCKED:** surface the blocker, collect resolution, re-spawn.
|
|
612
|
+
- **`rihal-tools.cjs state` fails:** continue — state tracking is optional, file artifacts are mandatory.
|
|
613
|
+
- **`.planning/` is gitignored:** write files, print ℹ notice, do not error.
|
|
614
|
+
</on_error>
|
|
615
|
+
</content>
|
|
616
|
+
</invoke>
|