@hanzlaa/rcode 3.6.16 → 4.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 +4 -4
- package/CLAUDE.md +3 -3
- package/CONTRIBUTING.md +86 -68
- package/README.md +114 -93
- package/cli/agent.js +8 -8
- package/cli/config.js +13 -13
- package/cli/context.js +23 -23
- package/cli/dashboard.js +5 -5
- package/cli/digest.js +11 -11
- package/cli/doctor.js +39 -22
- package/cli/generate-command-skills.cjs +39 -37
- package/cli/github-sync.js +35 -28
- package/cli/index.js +23 -23
- package/cli/install.js +485 -262
- package/cli/lib/config.cjs +9 -9
- package/cli/lib/fsutil.cjs +3 -3
- package/cli/lib/github.cjs +11 -6
- package/cli/lib/manifest.cjs +50 -37
- package/cli/lib/memory-bank.cjs +23 -18
- package/cli/lib/model-profiles.cjs +7 -7
- package/cli/lib/prompts.cjs +2 -2
- package/cli/lib/schemas.cjs +10 -10
- package/cli/nuke.js +42 -42
- package/cli/postinstall.js +14 -14
- package/cli/set-mode.js +20 -10
- package/cli/set-profile.js +15 -5
- package/cli/show-model.js +1 -1
- package/cli/team.js +5 -5
- package/cli/tiers.js +10 -10
- package/cli/uninstall.js +229 -168
- package/cli/update.js +52 -52
- package/dist/rcode.js +343 -21639
- package/package.json +4 -6
- package/rcode/DOCS-AUDIT.md +14 -0
- package/rcode/agents/rcode-advisor-researcher.md +93 -0
- package/rcode/agents/rcode-ahmed.md +10 -0
- package/rcode/agents/rcode-assumptions-analyzer.md +49 -0
- package/rcode/agents/rcode-code-fixer.md +57 -0
- package/rcode/agents/rcode-code-reviewer.md +57 -0
- package/rcode/agents/rcode-codebase-mapper.md +78 -0
- package/rcode/agents/rcode-cross-platform-auditor.md +15 -0
- package/rcode/agents/rcode-debugger.md +37 -0
- package/rcode/agents/rcode-dep-auditor.md +15 -0
- package/rcode/agents/rcode-deviation-analyzer.md +75 -0
- package/rcode/agents/rcode-docs-auditor.md +31 -0
- package/rcode/agents/rcode-edge-case-hunter.md +95 -0
- package/rcode/agents/rcode-executor.md +27 -0
- package/rcode/agents/rcode-fatima.md +19 -0
- package/rcode/agents/rcode-haitham.md +99 -0
- package/rcode/agents/rcode-hanzla.md +18 -0
- package/rcode/agents/rcode-hussain-pm.md +19 -0
- package/rcode/agents/rcode-i18n-auditor.md +16 -0
- package/rcode/agents/rcode-integration-checker.md +61 -0
- package/rcode/agents/rcode-khalid.md +99 -0
- package/rcode/agents/rcode-layla.md +10 -0
- package/rcode/agents/rcode-mariam.md +18 -0
- package/rcode/agents/rcode-nasser.md +10 -0
- package/rcode/agents/rcode-noor.md +11 -0
- package/rcode/agents/rcode-nyquist-auditor.md +24 -0
- package/rcode/agents/rcode-observability-auditor.md +16 -0
- package/rcode/agents/rcode-omar.md +96 -0
- package/rcode/agents/rcode-phase-researcher.md +96 -0
- package/rcode/agents/rcode-planner.md +32 -0
- package/rcode/agents/rcode-profiler.md +98 -0
- package/rcode/agents/rcode-project-researcher.md +94 -0
- package/rcode/agents/rcode-remediation-planner.md +56 -0
- package/rcode/agents/rcode-research-synthesizer.md +45 -0
- package/rcode/agents/rcode-roadmapper.md +48 -0
- package/rcode/agents/rcode-sadiq.md +18 -0
- package/rcode/agents/rcode-security-adversary.md +98 -0
- package/rcode/agents/rcode-security-auditor.md +100 -0
- package/rcode/agents/rcode-sprint-checker.md +31 -0
- package/rcode/agents/rcode-ui-auditor.md +100 -0
- package/rcode/agents/rcode-ux-designer.md +57 -0
- package/rcode/agents/rcode-verifier.md +40 -0
- package/rcode/agents/rcode-waleed.md +20 -0
- package/rcode/agents/rcode-yousef.md +97 -0
- package/rcode/agents/rcode-zahra.md +63 -0
- package/rcode/agents/rcode-zayd.md +79 -0
- package/rcode/agents/rules/codebase-mapper/detailed-guide.md +615 -0
- package/rcode/agents/rules/debugger/checkpoint-recovery.md +272 -0
- package/rcode/agents/rules/debugger/debug-session-state.md +261 -0
- package/rcode/agents/rules/debugger/investigation-protocol.md +298 -0
- package/rcode/agents/rules/debugger/scientific-method.md +317 -0
- package/rcode/agents/rules/executor/authentication-gates.md +202 -0
- package/rcode/agents/rules/executor/deviation-rules.md +191 -0
- package/rcode/agents/rules/executor/execution-flow.md +116 -0
- package/rcode/agents/rules/executor/self-check.md +241 -0
- package/rcode/agents/rules/executor/stub-detection.md +267 -0
- package/rcode/agents/rules/executor/summary-creation.md +76 -0
- package/rcode/agents/rules/executor/task-commit-protocol.md +309 -0
- package/rcode/agents/rules/executor/tdd-flow.md +294 -0
- package/rcode/agents/rules/phase-researcher/detailed-guide.md +628 -0
- package/rcode/agents/rules/planner/goal-backward-thinking.md +220 -0
- package/rcode/agents/rules/planner/task-templates.md +296 -0
- package/rcode/agents/rules/project-researcher/detailed-guide.md +589 -0
- package/rcode/agents/rules/roadmapper/detailed-guide.md +620 -0
- package/rcode/agents/rules/sprint-checker/dimensions.md +414 -0
- package/rcode/agents/rules/sprint-checker/process.md +377 -0
- package/rcode/agents/rules/verifier/anti-patterns.md +94 -0
- package/rcode/agents/rules/verifier/artifact-verification.md +69 -0
- package/rcode/agents/rules/verifier/context-loading.md +84 -0
- package/rcode/agents/rules/verifier/gap-output.md +51 -0
- package/rcode/agents/rules/verifier/key-links.md +56 -0
- package/rcode/agents/rules/verifier/requirements-coverage.md +28 -0
- package/rcode/agents/rules/verifier/verification-report.md +131 -0
- package/rcode/bin/lib/config.cjs +158 -0
- package/rcode/bin/lib/council-panel.cjs +663 -0
- package/rcode/bin/lib/roadmap.cjs +359 -0
- package/rcode/bin/rcode-hooks.cjs +711 -0
- package/rcode/bin/rcode-tools.cjs +7366 -0
- package/rcode/brain/README.md +38 -0
- package/rcode/brain/best-practices/no-autonomous-bypass.md +37 -0
- package/rcode/brain/best-practices/no-theoretical-suggestions.md +56 -0
- package/rcode/brain/best-practices/research-citation-rule.md +39 -0
- package/rcode/brain/best-practices/state-sync-rule.md +43 -0
- package/rcode/brain/sources.yaml +62 -0
- package/rcode/commands/add-phase.md +18 -0
- package/rcode/commands/add-tests.md +18 -0
- package/rcode/commands/add-todo.md +8 -0
- package/rcode/commands/analyze-dependencies.md +11 -0
- package/rcode/commands/audit-fix.md +14 -0
- package/rcode/commands/audit-milestone.md +12 -0
- package/rcode/commands/audit-uat.md +18 -0
- package/rcode/commands/audit.md +8 -0
- package/rcode/commands/autonomous.md +19 -0
- package/rcode/commands/brainstorm.md +11 -0
- package/rcode/commands/capture.md +12 -0
- package/rcode/commands/chain.md +8 -0
- package/rcode/commands/check-implementation-readiness.md +18 -0
- package/rcode/commands/check-todos.md +18 -0
- package/rcode/commands/checkpoint-preview.md +13 -0
- package/rcode/commands/cleanup.md +18 -0
- package/rcode/commands/code-review.md +14 -0
- package/rcode/commands/complete-milestone.md +12 -0
- package/rcode/commands/config.md +8 -0
- package/rcode/commands/correct-course.md +8 -0
- package/rcode/commands/council.md +25 -0
- package/rcode/commands/create-architecture.md +18 -0
- package/rcode/commands/create-epics-and-stories.md +8 -0
- package/rcode/commands/create-prd.md +18 -0
- package/rcode/commands/create-story.md +8 -0
- package/rcode/commands/dashboard.md +10 -0
- package/rcode/commands/debug.md +8 -0
- package/rcode/commands/decisions.md +10 -0
- package/rcode/commands/dev-story.md +8 -0
- package/rcode/commands/diagnose-issues.md +18 -0
- package/rcode/commands/diff.md +10 -0
- package/rcode/commands/discuss-phase-power.md +18 -0
- package/rcode/commands/discuss-phase.md +19 -0
- package/rcode/commands/discuss.md +23 -0
- package/rcode/commands/do.md +22 -0
- package/rcode/commands/docs-update.md +14 -0
- package/rcode/commands/document-project.md +8 -0
- package/rcode/commands/edit-prd.md +18 -0
- package/rcode/commands/enable-hooks.md +11 -0
- package/rcode/commands/execute-milestone.md +18 -0
- package/rcode/commands/execute-sprint.md +13 -0
- package/rcode/commands/execute.md +19 -0
- package/rcode/commands/explore.md +14 -0
- package/rcode/commands/export-to-github.md +11 -0
- package/rcode/commands/feature-drift.md +18 -0
- package/rcode/commands/forensics.md +11 -0
- package/rcode/commands/from-template.md +11 -0
- package/rcode/commands/health.md +10 -0
- package/rcode/commands/help.md +8 -0
- package/rcode/commands/import.md +12 -0
- package/rcode/commands/inbox.md +12 -0
- package/rcode/commands/init.md +14 -0
- package/rcode/commands/insert-phase.md +11 -0
- package/rcode/commands/install.md +10 -0
- package/rcode/commands/karpathy-audit.md +18 -0
- package/rcode/commands/lens-audit.md +70 -0
- package/rcode/commands/list-plans.md +11 -0
- package/rcode/commands/list-workspaces.md +10 -0
- package/rcode/commands/map-codebase.md +14 -0
- package/rcode/commands/memory-audit.md +10 -0
- package/rcode/commands/memory-distill.md +11 -0
- package/rcode/commands/memory-init.md +12 -0
- package/rcode/commands/memory-update.md +12 -0
- package/rcode/commands/milestone-summary.md +11 -0
- package/rcode/commands/new-milestone.md +12 -0
- package/rcode/commands/new-project-research.md +18 -0
- package/rcode/commands/new-project-roadmap.md +18 -0
- package/rcode/commands/new-project.md +13 -0
- package/rcode/commands/new-workspace.md +12 -0
- package/rcode/commands/next.md +19 -0
- package/rcode/commands/note.md +12 -0
- package/rcode/commands/notify-test.md +10 -0
- package/rcode/commands/pause-work.md +8 -0
- package/rcode/commands/phase.md +11 -0
- package/rcode/commands/plan-milestone-gaps.md +18 -0
- package/rcode/commands/plan-milestone.md +18 -0
- package/rcode/commands/plan.md +19 -0
- package/rcode/commands/plant-seed.md +18 -0
- package/rcode/commands/pr-branch.md +18 -0
- package/rcode/commands/prfaq.md +15 -0
- package/rcode/commands/profile-user.md +8 -0
- package/rcode/commands/progress.md +18 -0
- package/rcode/commands/quick.md +14 -0
- package/rcode/commands/remove-phase.md +18 -0
- package/rcode/commands/remove-workspace.md +11 -0
- package/rcode/commands/replay.md +11 -0
- package/rcode/commands/rerun.md +11 -0
- package/rcode/commands/research-phase.md +18 -0
- package/rcode/commands/resume-work.md +8 -0
- package/rcode/commands/retrospective.md +18 -0
- package/rcode/commands/review-edge-case-hunter.md +18 -0
- package/rcode/commands/review-fix.md +14 -0
- package/rcode/commands/review.md +18 -0
- package/rcode/commands/scaffold-milestone.md +18 -0
- package/rcode/commands/scaffold-project.md +18 -0
- package/rcode/commands/scaffold-skill.md +18 -0
- package/rcode/commands/scan.md +14 -0
- package/rcode/commands/secure-phase.md +14 -0
- package/rcode/commands/session-report.md +10 -0
- package/rcode/commands/settings.md +8 -0
- package/rcode/commands/ship.md +30 -0
- package/rcode/commands/show.md +10 -0
- package/rcode/commands/sprint-planning.md +20 -0
- package/rcode/commands/sprint-status.md +21 -0
- package/rcode/commands/stats.md +10 -0
- package/rcode/commands/status.md +21 -0
- package/rcode/commands/ui-phase.md +8 -0
- package/rcode/commands/ui-review.md +8 -0
- package/rcode/commands/undo.md +14 -0
- package/rcode/commands/update.md +11 -0
- package/rcode/commands/validate-phase.md +18 -0
- package/rcode/commands/validate-prd.md +18 -0
- package/rcode/commands/verify-phase.md +18 -0
- package/rcode/commands/verify-work.md +19 -0
- package/rcode/commands/why.md +10 -0
- package/rcode/commands/workstream.md +11 -0
- package/rcode/config/model-profiles.json +226 -0
- package/rcode/config/model-profiles.schema.json +36 -0
- package/rcode/config.yaml +39 -0
- package/rcode/digests/README.md +50 -0
- package/rcode/digests/fatima.md +24 -0
- package/rcode/digests/hussain-pm.md +24 -0
- package/rcode/digests/mariam.md +24 -0
- package/rcode/digests/sadiq.md +24 -0
- package/rcode/digests/waleed.md +24 -0
- package/rcode/modules/core.yaml +101 -0
- package/rcode/modules/discovery.yaml +50 -0
- package/rcode/modules/execution.yaml +66 -0
- package/rcode/references/REFERENCES_INDEX.md +109 -0
- package/rcode/references/agent-contracts.md +48 -0
- package/rcode/references/agent-shared-rules.md +81 -0
- package/rcode/references/assumptions-analyzer-playbook.md +82 -0
- package/rcode/references/auditor-shared-checklists.md +91 -0
- package/rcode/references/auto-init-guard.md +117 -0
- package/rcode/references/checkpoints-index.md +53 -0
- package/rcode/references/code-fixer-playbook.md +71 -0
- package/rcode/references/code-reviewer-playbook.md +71 -0
- package/rcode/references/codebase-mapping-process.md +176 -0
- package/rcode/references/command-redirect-format.md +62 -0
- package/rcode/references/commit-conventions.md +125 -0
- package/rcode/references/common-bug-patterns-index.md +44 -0
- package/rcode/references/context-budget.md +104 -0
- package/rcode/references/continuation-format.md +248 -0
- package/rcode/references/council-protocol.md +91 -0
- package/rcode/references/debugger-playbook.md +127 -0
- package/rcode/references/design-tokens.md +98 -0
- package/rcode/references/dispatch-banner.md +157 -0
- package/rcode/references/docs-auditor-playbook.md +148 -0
- package/rcode/references/execution-protocol.md +155 -0
- package/rcode/references/executor-playbook.md +119 -0
- package/rcode/references/gate-prompts.md +212 -0
- package/rcode/references/gates.md +127 -0
- package/rcode/references/git-integration.md +159 -0
- package/rcode/references/git-planning-commit.md +185 -0
- package/rcode/references/git-preflight.md +117 -0
- package/rcode/references/integration-verification-playbook.md +392 -0
- package/rcode/references/iterative-retrieval.md +85 -0
- package/rcode/references/karpathy-guidelines-full.md +79 -0
- package/rcode/references/karpathy-guidelines.md +11 -0
- package/rcode/references/model-profile-resolution.md +44 -0
- package/rcode/references/model-profiles.md +90 -0
- package/rcode/references/no-unauthorized-git-ops.md +73 -0
- package/rcode/references/nyquist-auditor-playbook.md +157 -0
- package/rcode/references/output-format.md +398 -0
- package/rcode/references/output-realism.md +52 -0
- package/rcode/references/persona-engineer-shared.md +61 -0
- package/rcode/references/phase-argument-parsing.md +35 -0
- package/rcode/references/phase-id-conventions.md +101 -0
- package/rcode/references/planner-playbook.md +217 -0
- package/rcode/references/remediation-planner-playbook.md +75 -0
- package/rcode/references/research-synthesis-playbook.md +205 -0
- package/rcode/references/researcher-shared.md +87 -0
- package/rcode/references/response-style.md +81 -0
- package/rcode/references/revision-loop.md +38 -0
- package/rcode/references/roadmapper-playbook.md +82 -0
- package/rcode/references/sprint-checker-playbook.md +128 -0
- package/rcode/references/state-schema.md +366 -0
- package/rcode/references/ui-brand.md +254 -0
- package/rcode/references/universal-anti-patterns.md +59 -0
- package/rcode/references/ux-designer-playbook.md +74 -0
- package/rcode/references/verb-dictionary.md +186 -0
- package/rcode/references/verification-patterns-index.md +76 -0
- package/rcode/references/verification-patterns.md +612 -0
- package/rcode/references/verifier-playbook.md +104 -0
- package/rcode/references/workstream-flag.md +166 -0
- package/rcode/skills/SKILLS_INDEX.md +144 -0
- package/rcode/skills/_shared/no-autonomous-bypass.md +37 -0
- package/rcode/skills/_shared/research-citation-rule.md +39 -0
- package/rcode/skills/_shared/state-sync-rule.md +43 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/SKILL.md +51 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/templates/index-template.md +169 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/templates/project-overview-template.md +103 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/templates/source-tree-template.md +135 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/workflow.md +27 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/workflows/deep-dive-workflow.md +34 -0
- package/rcode/skills/actions/1-analysis/rcode-document-project/workflows/full-scan-workflow.md +34 -0
- package/rcode/skills/actions/1-analysis/rcode-prfaq/SKILL.md +145 -0
- package/rcode/skills/actions/1-analysis/rcode-product-brief/SKILL.md +123 -0
- package/rcode/skills/actions/1-analysis/rcode-product-brief/rcode-manifest.json +17 -0
- package/rcode/skills/actions/1-analysis/research/rcode-domain-research/SKILL.md +46 -0
- package/rcode/skills/actions/1-analysis/research/rcode-domain-research/workflow.md +49 -0
- package/rcode/skills/actions/1-analysis/research/rcode-market-research/SKILL.md +45 -0
- package/rcode/skills/actions/1-analysis/research/rcode-market-research/workflow.md +49 -0
- package/rcode/skills/actions/1-analysis/research/rcode-technical-research/SKILL.md +48 -0
- package/rcode/skills/actions/1-analysis/research/rcode-technical-research/workflow.md +50 -0
- package/rcode/skills/actions/2-plan/rcode-create-epics-and-stories/SKILL.md +58 -0
- package/rcode/skills/actions/2-plan/rcode-create-epics-and-stories/steps/step-02-design-epics.md +212 -0
- package/rcode/skills/actions/2-plan/rcode-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/rcode/skills/actions/2-plan/rcode-create-epics-and-stories/steps/step-04-final-validation.md +143 -0
- package/rcode/skills/actions/2-plan/rcode-create-epics-and-stories/workflow.md +66 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/SKILL.md +63 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/README.md +30 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-03-sequencing.md +65 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-05-kill-criteria.md +59 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-06-phase-stubs.md +56 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-07-backlog.md +44 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-08-write-roadmap.md +58 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-09-state-sync.md +62 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/steps/step-10-complete.md +56 -0
- package/rcode/skills/actions/2-plan/rcode-create-milestone/workflow.md +93 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/SKILL.md +80 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/data/prd-purpose.md +197 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/data/project-types.csv +11 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-02-discovery.md +208 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-02b-vision.md +142 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-02c-executive-summary.md +158 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-03-success.md +214 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-04-journeys.md +201 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-05-domain.md +194 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-06-innovation.md +211 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-07-project-type.md +222 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-08-scoping.md +216 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-09-functional.md +219 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-10-nonfunctional.md +230 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-11-polish.md +221 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/steps-c/step-12-complete.md +115 -0
- package/rcode/skills/actions/2-plan/rcode-create-prd/workflow.md +64 -0
- package/rcode/skills/actions/2-plan/rcode-create-story/SKILL.md +59 -0
- package/rcode/skills/actions/2-plan/rcode-create-story/workflow.md +380 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/SKILL.md +47 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-02-discovery.md +190 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-03-core-experience.md +217 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-04-emotional-response.md +220 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-05-inspiration.md +235 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-06-design-system.md +253 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-07-defining-experience.md +255 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-08-visual-foundation.md +225 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-09-design-directions.md +225 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-10-user-journeys.md +242 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-11-component-strategy.md +249 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-12-ux-patterns.md +238 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-13-responsive-accessibility.md +265 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/steps/step-14-complete.md +171 -0
- package/rcode/skills/actions/2-plan/rcode-create-ux-design/workflow.md +36 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/SKILL.md +45 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/steps-e/step-e-01-discovery.md +242 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/steps-e/step-e-01b-legacy-conversion.md +204 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/steps-e/step-e-02-review.md +245 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/steps-e/step-e-03-edit.md +250 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/steps-e/step-e-04-complete.md +165 -0
- package/rcode/skills/actions/2-plan/rcode-edit-prd/workflow.md +63 -0
- package/rcode/skills/actions/2-plan/rcode-frontend-design/SKILL.md +96 -0
- package/rcode/skills/actions/2-plan/rcode-frontend-design/references.md +79 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/SKILL.md +45 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/data/prd-purpose.md +197 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/data/project-types.csv +11 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-01-discovery.md +221 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
- package/rcode/skills/actions/2-plan/rcode-validate-prd/workflow.md +62 -0
- package/rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness/SKILL.md +52 -0
- package/rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness/steps/step-06-final-assessment.md +126 -0
- package/rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness/workflow.md +49 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/SKILL.md +50 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-02-context.md +224 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-03-starter.md +329 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-04-decisions.md +318 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-05-patterns.md +359 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-06-structure.md +379 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-07-validation.md +359 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/steps/step-08-complete.md +76 -0
- package/rcode/skills/actions/3-solutioning/rcode-create-architecture/workflow.md +38 -0
- package/rcode/skills/actions/3-solutioning/rcode-generate-project-context/SKILL.md +47 -0
- package/rcode/skills/actions/3-solutioning/rcode-generate-project-context/steps/step-02-generate.md +321 -0
- package/rcode/skills/actions/3-solutioning/rcode-generate-project-context/workflow.md +43 -0
- package/rcode/skills/actions/4-implementation/rcode-browser-verify/SKILL.md +73 -0
- package/rcode/skills/actions/4-implementation/rcode-checkpoint-preview/SKILL.md +75 -0
- package/rcode/skills/actions/4-implementation/rcode-ci/SKILL.md +115 -0
- package/rcode/skills/actions/4-implementation/rcode-code-review/SKILL.md +59 -0
- package/rcode/skills/actions/4-implementation/rcode-code-review/steps/step-02-review.md +38 -0
- package/rcode/skills/actions/4-implementation/rcode-code-review/workflow.md +55 -0
- package/rcode/skills/actions/4-implementation/rcode-correct-course/SKILL.md +46 -0
- package/rcode/skills/actions/4-implementation/rcode-correct-course/workflow.md +267 -0
- package/rcode/skills/actions/4-implementation/rcode-debug/SKILL.md +199 -0
- package/rcode/skills/actions/4-implementation/rcode-dev-story/SKILL.md +80 -0
- package/rcode/skills/actions/4-implementation/rcode-dev-story/workflow.md +537 -0
- package/rcode/skills/actions/4-implementation/rcode-git-flow/SKILL.md +93 -0
- package/rcode/skills/actions/4-implementation/rcode-harden/SKILL.md +98 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/SKILL.md +162 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/references.md +136 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/backlog-building.md +113 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/composition-with-herdr.md +85 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/integration-branch.md +191 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/merge-strategy.md +113 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/orchestrator-rhythm.md +119 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/rules/wave-design.md +100 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/templates/BACKLOG-template.md +34 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/templates/STATE-template.md +40 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/templates/heartbeat.sh +29 -0
- package/rcode/skills/actions/4-implementation/rcode-herdr-orchestration/templates/wave-prompt.md +69 -0
- package/rcode/skills/actions/4-implementation/rcode-incremental/SKILL.md +53 -0
- package/rcode/skills/actions/4-implementation/rcode-migrate/SKILL.md +93 -0
- package/rcode/skills/actions/4-implementation/rcode-perf/SKILL.md +99 -0
- package/rcode/skills/actions/4-implementation/rcode-prove-it/SKILL.md +67 -0
- package/rcode/skills/actions/4-implementation/rcode-qa-generate-e2e-tests/SKILL.md +47 -0
- package/rcode/skills/actions/4-implementation/rcode-qa-generate-e2e-tests/checklist.md +33 -0
- package/rcode/skills/actions/4-implementation/rcode-qa-generate-e2e-tests/workflow.md +136 -0
- package/rcode/skills/actions/4-implementation/rcode-retrospective/SKILL.md +45 -0
- package/rcode/skills/actions/4-implementation/rcode-retrospective/workflow.md +1491 -0
- package/rcode/skills/actions/4-implementation/rcode-scaffold-project/SKILL.md +91 -0
- package/rcode/skills/actions/4-implementation/rcode-scaffold-project/steps/step-03-clone.md +50 -0
- package/rcode/skills/actions/4-implementation/rcode-scaffold-project/steps/step-04-post-setup.md +44 -0
- package/rcode/skills/actions/4-implementation/rcode-source-truth/SKILL.md +79 -0
- package/rcode/skills/actions/4-implementation/rcode-sprint-planning/SKILL.md +63 -0
- package/rcode/skills/actions/4-implementation/rcode-sprint-planning/checklist.md +43 -0
- package/rcode/skills/actions/4-implementation/rcode-sprint-planning/workflow.md +296 -0
- package/rcode/skills/actions/4-implementation/rcode-sprint-status/SKILL.md +48 -0
- package/rcode/skills/actions/4-implementation/rcode-sprint-status/workflow.md +214 -0
- package/rcode/skills/actions/4-implementation/rcode-trim/SKILL.md +76 -0
- package/rcode/skills/agents/ahmed-hassani-director/SKILL.md +156 -0
- package/rcode/skills/agents/dalil-scout/SKILL.md +135 -0
- package/rcode/skills/agents/dalil-scout/references.md +67 -0
- package/rcode/skills/agents/fatima-qa/SKILL.md +158 -0
- package/rcode/skills/agents/fatima-qa/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/haitham-frontend/SKILL.md +151 -0
- package/rcode/skills/agents/hanzla-engineer/SKILL.md +159 -0
- package/rcode/skills/agents/hanzla-engineer/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/hussain-pm/SKILL.md +167 -0
- package/rcode/skills/agents/hussain-pm/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/hussain-sm/SKILL.md +141 -0
- package/rcode/skills/agents/hussain-sm/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/layla-designer/SKILL.md +125 -0
- package/rcode/skills/agents/layla-designer/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/majlis-council/SKILL.md +116 -0
- package/rcode/skills/agents/majlis-council/references.md +90 -0
- package/rcode/skills/agents/mariam-marketing/SKILL.md +188 -0
- package/rcode/skills/agents/nasser-eng-manager/SKILL.md +162 -0
- package/rcode/skills/agents/noor-writer/SKILL.md +134 -0
- package/rcode/skills/agents/noor-writer/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/raees-orchestrator/SKILL.md +122 -0
- package/rcode/skills/agents/raees-orchestrator/references.md +47 -0
- package/rcode/skills/agents/rcode-cross-platform-auditor/SKILL.md +163 -0
- package/rcode/skills/agents/rcode-dep-auditor/SKILL.md +152 -0
- package/rcode/skills/agents/rcode-deviation-analyzer/SKILL.md +79 -0
- package/rcode/skills/agents/rcode-i18n-auditor/SKILL.md +153 -0
- package/rcode/skills/agents/rcode-observability-auditor/SKILL.md +157 -0
- package/rcode/skills/agents/sadiq-analyst/SKILL.md +163 -0
- package/rcode/skills/agents/sadiq-analyst/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/waleed-architect/SKILL.md +154 -0
- package/rcode/skills/agents/waleed-architect/skill-manifest.yaml +11 -0
- package/rcode/skills/agents/yousef-backend/SKILL.md +164 -0
- package/rcode/skills/agents/zahra-branding/SKILL.md +179 -0
- package/rcode/skills/agents/zayd-ml/SKILL.md +155 -0
- package/rcode/skills/core/module-help.csv +11 -0
- package/rcode/skills/core/module.yaml +25 -0
- package/rcode/skills/core/rcode-advanced-elicitation/SKILL.md +69 -0
- package/rcode/skills/core/rcode-auth-audit/SKILL.md +95 -0
- package/rcode/skills/core/rcode-brainstorming/SKILL.md +116 -0
- package/rcode/skills/core/rcode-brainstorming/steps/step-03-technique-execution.md +401 -0
- package/rcode/skills/core/rcode-brainstorming/workflow.md +53 -0
- package/rcode/skills/core/rcode-client-gate/SKILL.md +93 -0
- package/rcode/skills/core/rcode-clone-website/SKILL.md +87 -0
- package/rcode/skills/core/rcode-deploy-unify/SKILL.md +89 -0
- package/rcode/skills/core/rcode-distillator/SKILL.md +65 -0
- package/rcode/skills/core/rcode-distillator/references.md +118 -0
- package/rcode/skills/core/rcode-distillator/resources/distillate-format-reference.md +227 -0
- package/rcode/skills/core/rcode-distillator/scripts/analyze_sources.py +300 -0
- package/rcode/skills/core/rcode-editorial-review-prose/SKILL.md +127 -0
- package/rcode/skills/core/rcode-editorial-review-structure/SKILL.md +75 -0
- package/rcode/skills/core/rcode-editorial-review-structure/references.md +110 -0
- package/rcode/skills/core/rcode-help/SKILL.md +127 -0
- package/rcode/skills/core/rcode-incident-record/SKILL.md +163 -0
- package/rcode/skills/core/rcode-index-docs/SKILL.md +105 -0
- package/rcode/skills/core/rcode-init/SKILL.md +134 -0
- package/rcode/skills/core/rcode-init/resources/core-module.yaml +25 -0
- package/rcode/skills/core/rcode-init/scripts/__pycache__/rcode_init.cpython-38.pyc +0 -0
- package/rcode/skills/core/rcode-init/scripts/rcode_init.py +593 -0
- package/rcode/skills/core/rcode-init/scripts/tests/__pycache__/test_rcode_init.cpython-38.pyc +0 -0
- package/rcode/skills/core/rcode-init/scripts/tests/test_rcode_init.py +329 -0
- package/rcode/skills/core/rcode-memory-audit/SKILL.md +107 -0
- package/rcode/skills/core/rcode-memory-distill/SKILL.md +89 -0
- package/rcode/skills/core/rcode-memory-init/SKILL.md +91 -0
- package/rcode/skills/core/rcode-memory-update/SKILL.md +87 -0
- package/rcode/skills/core/rcode-mvp-graduate/SKILL.md +118 -0
- package/rcode/skills/core/rcode-ocr-consistency/SKILL.md +108 -0
- package/rcode/skills/core/rcode-party-mode/SKILL.md +98 -0
- package/rcode/skills/core/rcode-party-mode/steps/step-01-agent-loading.md +138 -0
- package/rcode/skills/core/rcode-party-mode/steps/step-02-discussion-orchestration.md +187 -0
- package/rcode/skills/core/rcode-party-mode/steps/step-03-graceful-exit.md +167 -0
- package/rcode/skills/core/rcode-party-mode/workflow.md +190 -0
- package/rcode/skills/core/rcode-rebrand/SKILL.md +135 -0
- package/rcode/skills/core/rcode-review-adversarial-general/SKILL.md +74 -0
- package/rcode/skills/core/rcode-review-edge-case-hunter/SKILL.md +122 -0
- package/rcode/skills/core/rcode-shard-doc/SKILL.md +157 -0
- package/rcode/skills/core/rcode-theme-system/SKILL.md +115 -0
- package/rcode/skills/rcode-init/SKILL.md +134 -0
- package/rcode/state.json +21 -0
- package/rcode/team.yaml +523 -0
- package/rcode/templates/RESEARCH.md +84 -0
- package/rcode/templates/UAT.md +80 -0
- package/rcode/templates/VALIDATION.md +45 -0
- package/rcode/templates/github/bug-template.md +53 -0
- package/rcode/templates/github/epic-template.md +57 -0
- package/rcode/templates/github/feature-template.md +55 -0
- package/rcode/templates/github/task-template.md +52 -0
- package/rcode/templates/memory/INDEX.md +47 -0
- package/rcode/templates/memory/distillates/project.distillate.md +11 -0
- package/rcode/templates/memory/distillates/stack.distillate.md +11 -0
- package/rcode/templates/memory/project/decisions.md +32 -0
- package/rcode/templates/memory/project/design-system.md +128 -0
- package/rcode/templates/memory/project/stack.md +46 -0
- package/rcode/templates/milestone.md +149 -0
- package/rcode/templates/projects/api-backend/PROJECT.md +37 -0
- package/rcode/templates/projects/api-backend/template.yaml +17 -0
- package/rcode/templates/projects/mobile-app/PROJECT.md +37 -0
- package/rcode/templates/projects/mobile-app/template.yaml +17 -0
- package/rcode/templates/projects/saas-b2b/PROJECT.md +40 -0
- package/rcode/templates/projects/saas-b2b/template.yaml +18 -0
- package/rcode/templates/settings-hooks.json +75 -0
- package/rcode/templates/sprint.md +69 -0
- package/rcode/templates/summary.md +77 -0
- package/rcode/templates/verification-report.md +83 -0
- package/rcode/workflows/add-phase.md +193 -0
- package/rcode/workflows/add-tests.md +362 -0
- package/rcode/workflows/add-todo.md +193 -0
- package/rcode/workflows/analyze-dependencies.md +149 -0
- package/rcode/workflows/audit-fix.md +211 -0
- package/rcode/workflows/audit-milestone.md +193 -0
- package/rcode/workflows/audit-plans.md +260 -0
- package/rcode/workflows/audit-uat.md +114 -0
- package/rcode/workflows/audit-worktrees.md +168 -0
- package/rcode/workflows/audit.md +207 -0
- package/rcode/workflows/autonomous-smart-discuss.md +253 -0
- package/rcode/workflows/autonomous.md +936 -0
- package/rcode/workflows/brainstorm.md +219 -0
- package/rcode/workflows/capture.md +65 -0
- package/rcode/workflows/chain.md +199 -0
- package/rcode/workflows/check-implementation-readiness.md +204 -0
- package/rcode/workflows/check-todos.md +191 -0
- package/rcode/workflows/checkpoint-preview.md +12 -0
- package/rcode/workflows/cleanup.md +157 -0
- package/rcode/workflows/code-review-fix.md +546 -0
- package/rcode/workflows/code-review.md +628 -0
- package/rcode/workflows/complete-milestone.md +849 -0
- package/rcode/workflows/correct-course.md +207 -0
- package/rcode/workflows/council.md +587 -0
- package/rcode/workflows/create-architecture.md +36 -0
- package/rcode/workflows/create-epics-and-stories.md +388 -0
- package/rcode/workflows/create-prd.md +30 -0
- package/rcode/workflows/create-story.md +303 -0
- package/rcode/workflows/dashboard.md +138 -0
- package/rcode/workflows/debug.md +278 -0
- package/rcode/workflows/decisions.md +112 -0
- package/rcode/workflows/dev-story.md +443 -0
- package/rcode/workflows/diagnose-issues.md +92 -0
- package/rcode/workflows/diff.md +85 -0
- package/rcode/workflows/discuss-phase-discuss-areas.md +275 -0
- package/rcode/workflows/discuss-phase-power.md +332 -0
- package/rcode/workflows/discuss-phase.md +972 -0
- package/rcode/workflows/discuss.md +232 -0
- package/rcode/workflows/do.md +438 -0
- package/rcode/workflows/docs-update.md +271 -0
- package/rcode/workflows/document-project.md +197 -0
- package/rcode/workflows/edit-prd.md +36 -0
- package/rcode/workflows/enable-hooks.md +112 -0
- package/rcode/workflows/execute-milestone.md +144 -0
- package/rcode/workflows/execute-regression-gates.md +136 -0
- package/rcode/workflows/execute-sprint.md +613 -0
- package/rcode/workflows/execute-verify-phase-goal.md +168 -0
- package/rcode/workflows/execute-waves.md +462 -0
- package/rcode/workflows/execute.md +1062 -0
- package/rcode/workflows/explore.md +179 -0
- package/rcode/workflows/export-to-github.md +179 -0
- package/rcode/workflows/feature-drift.md +248 -0
- package/rcode/workflows/forensics.md +215 -0
- package/rcode/workflows/from-template.md +178 -0
- package/rcode/workflows/health.md +265 -0
- package/rcode/workflows/help.md +354 -0
- package/rcode/workflows/import.md +326 -0
- package/rcode/workflows/inbox.md +425 -0
- package/rcode/workflows/init.md +356 -0
- package/rcode/workflows/insert-phase.md +122 -0
- package/rcode/workflows/install.md +82 -0
- package/rcode/workflows/karpathy-audit.md +412 -0
- package/rcode/workflows/lens-audit.md +705 -0
- package/rcode/workflows/list-plans.md +151 -0
- package/rcode/workflows/list-workspaces.md +120 -0
- package/rcode/workflows/map-codebase.md +466 -0
- package/rcode/workflows/memory-audit.md +150 -0
- package/rcode/workflows/memory-distill.md +118 -0
- package/rcode/workflows/memory-init.md +111 -0
- package/rcode/workflows/memory-update.md +92 -0
- package/rcode/workflows/milestone-summary.md +211 -0
- package/rcode/workflows/new-milestone.md +644 -0
- package/rcode/workflows/new-project-create-roadmap.md +210 -0
- package/rcode/workflows/new-project-define-requirements.md +167 -0
- package/rcode/workflows/new-project-research-decision.md +254 -0
- package/rcode/workflows/new-project-research.md +318 -0
- package/rcode/workflows/new-project-roadmap.md +451 -0
- package/rcode/workflows/new-project.md +994 -0
- package/rcode/workflows/new-workspace.md +172 -0
- package/rcode/workflows/next.md +167 -0
- package/rcode/workflows/note.md +161 -0
- package/rcode/workflows/notify-test.md +118 -0
- package/rcode/workflows/pause-work.md +253 -0
- package/rcode/workflows/phase.md +94 -0
- package/rcode/workflows/plan-milestone-gaps.md +278 -0
- package/rcode/workflows/plan-milestone.md +110 -0
- package/rcode/workflows/plan-prd-express.md +113 -0
- package/rcode/workflows/plan-research-validation.md +320 -0
- package/rcode/workflows/plan-spawn-planner.md +357 -0
- package/rcode/workflows/plan.md +1062 -0
- package/rcode/workflows/plant-seed.md +180 -0
- package/rcode/workflows/pr-branch.md +134 -0
- package/rcode/workflows/prfaq.md +12 -0
- package/rcode/workflows/profile-user.md +173 -0
- package/rcode/workflows/progress.md +51 -0
- package/rcode/workflows/quick.md +213 -0
- package/rcode/workflows/remove-phase.md +165 -0
- package/rcode/workflows/remove-workspace.md +169 -0
- package/rcode/workflows/replay.md +165 -0
- package/rcode/workflows/rerun.md +82 -0
- package/rcode/workflows/research-phase.md +113 -0
- package/rcode/workflows/resume-work.md +336 -0
- package/rcode/workflows/retrospective.md +36 -0
- package/rcode/workflows/review-adversarial.md +205 -0
- package/rcode/workflows/review-edge-case-hunter.md +225 -0
- package/rcode/workflows/review.md +297 -0
- package/rcode/workflows/scaffold-milestone.md +65 -0
- package/rcode/workflows/scaffold-project.md +36 -0
- package/rcode/workflows/scaffold-skill.md +142 -0
- package/rcode/workflows/scan.md +388 -0
- package/rcode/workflows/secure-phase.md +216 -0
- package/rcode/workflows/session-report.md +257 -0
- package/rcode/workflows/settings.md +189 -0
- package/rcode/workflows/ship.md +284 -0
- package/rcode/workflows/show.md +74 -0
- package/rcode/workflows/sprint-planning.md +208 -0
- package/rcode/workflows/sprint-status.md +129 -0
- package/rcode/workflows/stats.md +147 -0
- package/rcode/workflows/status.md +164 -0
- package/rcode/workflows/ui-phase.md +159 -0
- package/rcode/workflows/ui-review.md +145 -0
- package/rcode/workflows/undo.md +432 -0
- package/rcode/workflows/update.md +249 -0
- package/rcode/workflows/validate-phase.md +191 -0
- package/rcode/workflows/validate-prd.md +36 -0
- package/rcode/workflows/verify-phase.md +420 -0
- package/rcode/workflows/verify-work.md +733 -0
- package/rcode/workflows/why.md +135 -0
- package/rcode/workflows/workstream.md +215 -0
- package/server/dashboard.js +24 -19
- package/server/lib/api.js +26 -7
- package/server/lib/html/client/components/Sidebar.js +2 -2
- package/server/lib/html/client/components/shared.js +9 -9
- package/server/lib/html/client/orchestrator.js +17 -17
- package/server/lib/html/client/util.js +26 -26
- package/server/lib/html/client/views/DecisionsView.js +4 -4
- package/server/lib/html/client/views/FilesView.js +18 -3
- package/server/lib/html/client/views/KanbanView.js +1 -1
- package/server/lib/html/client/views/MemoryView.js +7 -7
- package/server/lib/html/client/views/OrchestrationView.js +2 -2
- package/server/lib/html/client/views/OverviewView.js +5 -5
- package/server/lib/html/client/views/PhasesView.js +9 -9
- package/server/lib/html/client/views/RoadmapView.js +11 -11
- package/server/lib/html/client/views/SprintsView.js +7 -7
- package/server/lib/html/client/views/TasksView.js +7 -7
- package/server/lib/html/css.js +2 -2
- package/server/lib/html/shell.js +27 -4
- package/server/lib/scanner.js +19 -19
- package/server/orchestrator.js +48 -23
- package/rihal/DOCS-AUDIT.md +0 -14
- package/rihal/agents/rihal-advisor-researcher.md +0 -93
- package/rihal/agents/rihal-ahmed.md +0 -10
- package/rihal/agents/rihal-assumptions-analyzer.md +0 -49
- package/rihal/agents/rihal-code-fixer.md +0 -57
- package/rihal/agents/rihal-code-reviewer.md +0 -57
- package/rihal/agents/rihal-codebase-mapper.md +0 -78
- package/rihal/agents/rihal-cross-platform-auditor.md +0 -15
- package/rihal/agents/rihal-debugger.md +0 -37
- package/rihal/agents/rihal-dep-auditor.md +0 -15
- package/rihal/agents/rihal-deviation-analyzer.md +0 -75
- package/rihal/agents/rihal-docs-auditor.md +0 -31
- package/rihal/agents/rihal-edge-case-hunter.md +0 -95
- package/rihal/agents/rihal-executor.md +0 -27
- package/rihal/agents/rihal-fatima.md +0 -19
- package/rihal/agents/rihal-haitham.md +0 -99
- package/rihal/agents/rihal-hanzla.md +0 -18
- package/rihal/agents/rihal-hussain-pm.md +0 -19
- package/rihal/agents/rihal-i18n-auditor.md +0 -16
- package/rihal/agents/rihal-integration-checker.md +0 -61
- package/rihal/agents/rihal-khalid.md +0 -99
- package/rihal/agents/rihal-layla.md +0 -10
- package/rihal/agents/rihal-mariam.md +0 -18
- package/rihal/agents/rihal-nasser.md +0 -10
- package/rihal/agents/rihal-noor.md +0 -11
- package/rihal/agents/rihal-nyquist-auditor.md +0 -24
- package/rihal/agents/rihal-observability-auditor.md +0 -16
- package/rihal/agents/rihal-omar.md +0 -96
- package/rihal/agents/rihal-phase-researcher.md +0 -96
- package/rihal/agents/rihal-planner.md +0 -32
- package/rihal/agents/rihal-profiler.md +0 -98
- package/rihal/agents/rihal-project-researcher.md +0 -94
- package/rihal/agents/rihal-remediation-planner.md +0 -56
- package/rihal/agents/rihal-research-synthesizer.md +0 -45
- package/rihal/agents/rihal-roadmapper.md +0 -48
- package/rihal/agents/rihal-sadiq.md +0 -18
- package/rihal/agents/rihal-security-adversary.md +0 -98
- package/rihal/agents/rihal-security-auditor.md +0 -100
- package/rihal/agents/rihal-sprint-checker.md +0 -31
- package/rihal/agents/rihal-ui-auditor.md +0 -100
- package/rihal/agents/rihal-ux-designer.md +0 -57
- package/rihal/agents/rihal-verifier.md +0 -40
- package/rihal/agents/rihal-waleed.md +0 -20
- package/rihal/agents/rihal-yousef.md +0 -97
- package/rihal/agents/rihal-zahra.md +0 -63
- package/rihal/agents/rihal-zayd.md +0 -79
- package/rihal/agents/rules/codebase-mapper/detailed-guide.md +0 -615
- package/rihal/agents/rules/debugger/checkpoint-recovery.md +0 -272
- package/rihal/agents/rules/debugger/debug-session-state.md +0 -261
- package/rihal/agents/rules/debugger/investigation-protocol.md +0 -298
- package/rihal/agents/rules/debugger/scientific-method.md +0 -317
- package/rihal/agents/rules/executor/authentication-gates.md +0 -202
- package/rihal/agents/rules/executor/deviation-rules.md +0 -191
- package/rihal/agents/rules/executor/execution-flow.md +0 -116
- package/rihal/agents/rules/executor/self-check.md +0 -241
- package/rihal/agents/rules/executor/stub-detection.md +0 -267
- package/rihal/agents/rules/executor/summary-creation.md +0 -76
- package/rihal/agents/rules/executor/task-commit-protocol.md +0 -309
- package/rihal/agents/rules/executor/tdd-flow.md +0 -294
- package/rihal/agents/rules/phase-researcher/detailed-guide.md +0 -628
- package/rihal/agents/rules/planner/goal-backward-thinking.md +0 -220
- package/rihal/agents/rules/planner/task-templates.md +0 -296
- package/rihal/agents/rules/project-researcher/detailed-guide.md +0 -589
- package/rihal/agents/rules/roadmapper/detailed-guide.md +0 -620
- package/rihal/agents/rules/sprint-checker/dimensions.md +0 -414
- package/rihal/agents/rules/sprint-checker/process.md +0 -377
- package/rihal/agents/rules/verifier/anti-patterns.md +0 -94
- package/rihal/agents/rules/verifier/artifact-verification.md +0 -69
- package/rihal/agents/rules/verifier/context-loading.md +0 -84
- package/rihal/agents/rules/verifier/gap-output.md +0 -51
- package/rihal/agents/rules/verifier/key-links.md +0 -56
- package/rihal/agents/rules/verifier/requirements-coverage.md +0 -28
- package/rihal/agents/rules/verifier/verification-report.md +0 -131
- package/rihal/bin/lib/config.cjs +0 -158
- package/rihal/bin/lib/council-panel.cjs +0 -663
- package/rihal/bin/lib/roadmap.cjs +0 -280
- package/rihal/bin/rihal-hooks.cjs +0 -709
- package/rihal/bin/rihal-tools.cjs +0 -7150
- package/rihal/brain/README.md +0 -38
- package/rihal/brain/best-practices/no-autonomous-bypass.md +0 -37
- package/rihal/brain/best-practices/no-theoretical-suggestions.md +0 -56
- package/rihal/brain/best-practices/research-citation-rule.md +0 -39
- package/rihal/brain/best-practices/state-sync-rule.md +0 -43
- package/rihal/brain/sources.yaml +0 -62
- package/rihal/commands/add-phase.md +0 -18
- package/rihal/commands/add-tests.md +0 -18
- package/rihal/commands/add-todo.md +0 -8
- package/rihal/commands/analyze-dependencies.md +0 -11
- package/rihal/commands/audit-fix.md +0 -14
- package/rihal/commands/audit-milestone.md +0 -12
- package/rihal/commands/audit-uat.md +0 -18
- package/rihal/commands/audit.md +0 -8
- package/rihal/commands/autonomous.md +0 -19
- package/rihal/commands/brainstorm.md +0 -11
- package/rihal/commands/capture.md +0 -12
- package/rihal/commands/chain.md +0 -8
- package/rihal/commands/check-implementation-readiness.md +0 -18
- package/rihal/commands/check-todos.md +0 -18
- package/rihal/commands/checkpoint-preview.md +0 -13
- package/rihal/commands/cleanup.md +0 -18
- package/rihal/commands/code-review-fix.md +0 -14
- package/rihal/commands/code-review.md +0 -14
- package/rihal/commands/complete-milestone.md +0 -12
- package/rihal/commands/config.md +0 -8
- package/rihal/commands/correct-course.md +0 -8
- package/rihal/commands/council.md +0 -25
- package/rihal/commands/create-architecture.md +0 -18
- package/rihal/commands/create-epics-and-stories.md +0 -8
- package/rihal/commands/create-prd.md +0 -18
- package/rihal/commands/create-story.md +0 -8
- package/rihal/commands/dashboard.md +0 -10
- package/rihal/commands/debug.md +0 -8
- package/rihal/commands/decisions.md +0 -10
- package/rihal/commands/dev-story.md +0 -8
- package/rihal/commands/diagnose-issues.md +0 -18
- package/rihal/commands/diff.md +0 -10
- package/rihal/commands/discuss-phase-power.md +0 -18
- package/rihal/commands/discuss-phase.md +0 -19
- package/rihal/commands/discuss.md +0 -23
- package/rihal/commands/do.md +0 -22
- package/rihal/commands/docs-update.md +0 -14
- package/rihal/commands/document-project.md +0 -8
- package/rihal/commands/edit-prd.md +0 -18
- package/rihal/commands/enable-hooks.md +0 -11
- package/rihal/commands/execute-milestone.md +0 -18
- package/rihal/commands/execute-sprint.md +0 -13
- package/rihal/commands/execute.md +0 -19
- package/rihal/commands/explore.md +0 -14
- package/rihal/commands/export-to-github.md +0 -11
- package/rihal/commands/feature-drift.md +0 -18
- package/rihal/commands/forensics.md +0 -11
- package/rihal/commands/from-template.md +0 -11
- package/rihal/commands/health.md +0 -10
- package/rihal/commands/help.md +0 -8
- package/rihal/commands/import.md +0 -12
- package/rihal/commands/inbox.md +0 -12
- package/rihal/commands/init.md +0 -14
- package/rihal/commands/insert-phase.md +0 -11
- package/rihal/commands/install.md +0 -10
- package/rihal/commands/karpathy-audit.md +0 -18
- package/rihal/commands/lens-audit.md +0 -70
- package/rihal/commands/list-plans.md +0 -11
- package/rihal/commands/list-workspaces.md +0 -10
- package/rihal/commands/map-codebase.md +0 -14
- package/rihal/commands/memory-audit.md +0 -10
- package/rihal/commands/memory-distill.md +0 -11
- package/rihal/commands/memory-init.md +0 -12
- package/rihal/commands/memory-update.md +0 -12
- package/rihal/commands/milestone-summary.md +0 -11
- package/rihal/commands/new-milestone.md +0 -12
- package/rihal/commands/new-project-research.md +0 -18
- package/rihal/commands/new-project-roadmap.md +0 -18
- package/rihal/commands/new-project.md +0 -13
- package/rihal/commands/new-workspace.md +0 -12
- package/rihal/commands/next.md +0 -19
- package/rihal/commands/note.md +0 -12
- package/rihal/commands/notify-test.md +0 -10
- package/rihal/commands/pause-work.md +0 -8
- package/rihal/commands/phase.md +0 -11
- package/rihal/commands/plan-milestone-gaps.md +0 -18
- package/rihal/commands/plan-milestone.md +0 -18
- package/rihal/commands/plan.md +0 -19
- package/rihal/commands/plant-seed.md +0 -18
- package/rihal/commands/pr-branch.md +0 -18
- package/rihal/commands/prfaq.md +0 -15
- package/rihal/commands/profile-user.md +0 -8
- package/rihal/commands/progress.md +0 -18
- package/rihal/commands/quick.md +0 -14
- package/rihal/commands/remove-phase.md +0 -18
- package/rihal/commands/remove-workspace.md +0 -11
- package/rihal/commands/replay.md +0 -11
- package/rihal/commands/rerun.md +0 -11
- package/rihal/commands/research-phase.md +0 -18
- package/rihal/commands/resume-work.md +0 -8
- package/rihal/commands/retrospective.md +0 -18
- package/rihal/commands/review-edge-case-hunter.md +0 -18
- package/rihal/commands/review.md +0 -18
- package/rihal/commands/scaffold-milestone.md +0 -18
- package/rihal/commands/scaffold-project.md +0 -18
- package/rihal/commands/scaffold-skill.md +0 -18
- package/rihal/commands/scan.md +0 -14
- package/rihal/commands/secure-phase.md +0 -14
- package/rihal/commands/session-report.md +0 -10
- package/rihal/commands/settings.md +0 -8
- package/rihal/commands/ship.md +0 -30
- package/rihal/commands/show.md +0 -10
- package/rihal/commands/sprint-planning.md +0 -20
- package/rihal/commands/sprint-status.md +0 -21
- package/rihal/commands/stats.md +0 -10
- package/rihal/commands/status.md +0 -21
- package/rihal/commands/ui-phase.md +0 -8
- package/rihal/commands/ui-review.md +0 -8
- package/rihal/commands/undo.md +0 -14
- package/rihal/commands/update.md +0 -11
- package/rihal/commands/validate-phase.md +0 -18
- package/rihal/commands/validate-prd.md +0 -18
- package/rihal/commands/verify-phase.md +0 -18
- package/rihal/commands/verify-work.md +0 -19
- package/rihal/commands/why.md +0 -10
- package/rihal/commands/workstream.md +0 -11
- package/rihal/config/model-profiles.json +0 -226
- package/rihal/config/model-profiles.schema.json +0 -36
- package/rihal/config.yaml +0 -39
- package/rihal/digests/README.md +0 -50
- package/rihal/digests/fatima.md +0 -24
- package/rihal/digests/hussain-pm.md +0 -24
- package/rihal/digests/mariam.md +0 -24
- package/rihal/digests/sadiq.md +0 -24
- package/rihal/digests/waleed.md +0 -24
- package/rihal/modules/core.yaml +0 -101
- package/rihal/modules/discovery.yaml +0 -50
- package/rihal/modules/execution.yaml +0 -66
- package/rihal/references/REFERENCES_INDEX.md +0 -109
- package/rihal/references/agent-contracts.md +0 -48
- package/rihal/references/agent-shared-rules.md +0 -81
- package/rihal/references/assumptions-analyzer-playbook.md +0 -82
- package/rihal/references/auditor-shared-checklists.md +0 -91
- package/rihal/references/auto-init-guard.md +0 -117
- package/rihal/references/checkpoints-index.md +0 -53
- package/rihal/references/code-fixer-playbook.md +0 -71
- package/rihal/references/code-reviewer-playbook.md +0 -71
- package/rihal/references/codebase-mapping-process.md +0 -176
- package/rihal/references/command-redirect-format.md +0 -62
- package/rihal/references/commit-conventions.md +0 -125
- package/rihal/references/common-bug-patterns-index.md +0 -44
- package/rihal/references/context-budget.md +0 -104
- package/rihal/references/continuation-format.md +0 -248
- package/rihal/references/council-protocol.md +0 -91
- package/rihal/references/debugger-playbook.md +0 -127
- package/rihal/references/design-tokens.md +0 -98
- package/rihal/references/dispatch-banner.md +0 -157
- package/rihal/references/docs-auditor-playbook.md +0 -148
- package/rihal/references/execution-protocol.md +0 -155
- package/rihal/references/executor-playbook.md +0 -119
- package/rihal/references/gate-prompts.md +0 -212
- package/rihal/references/gates.md +0 -127
- package/rihal/references/git-integration.md +0 -159
- package/rihal/references/git-planning-commit.md +0 -185
- package/rihal/references/git-preflight.md +0 -117
- package/rihal/references/integration-verification-playbook.md +0 -392
- package/rihal/references/iterative-retrieval.md +0 -85
- package/rihal/references/karpathy-guidelines-full.md +0 -79
- package/rihal/references/karpathy-guidelines.md +0 -11
- package/rihal/references/model-profile-resolution.md +0 -44
- package/rihal/references/model-profiles.md +0 -90
- package/rihal/references/no-unauthorized-git-ops.md +0 -73
- package/rihal/references/nyquist-auditor-playbook.md +0 -157
- package/rihal/references/output-format.md +0 -398
- package/rihal/references/output-realism.md +0 -52
- package/rihal/references/persona-engineer-shared.md +0 -61
- package/rihal/references/phase-argument-parsing.md +0 -35
- package/rihal/references/phase-id-conventions.md +0 -101
- package/rihal/references/planner-playbook.md +0 -217
- package/rihal/references/remediation-planner-playbook.md +0 -75
- package/rihal/references/research-synthesis-playbook.md +0 -205
- package/rihal/references/researcher-shared.md +0 -87
- package/rihal/references/response-style.md +0 -81
- package/rihal/references/revision-loop.md +0 -38
- package/rihal/references/roadmapper-playbook.md +0 -82
- package/rihal/references/sprint-checker-playbook.md +0 -128
- package/rihal/references/state-schema.md +0 -366
- package/rihal/references/ui-brand.md +0 -254
- package/rihal/references/universal-anti-patterns.md +0 -59
- package/rihal/references/ux-designer-playbook.md +0 -74
- package/rihal/references/verb-dictionary.md +0 -186
- package/rihal/references/verification-patterns-index.md +0 -76
- package/rihal/references/verification-patterns.md +0 -612
- package/rihal/references/verifier-playbook.md +0 -104
- package/rihal/references/workstream-flag.md +0 -166
- package/rihal/skills/SKILLS_INDEX.md +0 -143
- package/rihal/skills/_shared/no-autonomous-bypass.md +0 -37
- package/rihal/skills/_shared/research-citation-rule.md +0 -39
- package/rihal/skills/_shared/state-sync-rule.md +0 -43
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +0 -46
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/workflow.md +0 -49
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +0 -45
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/workflow.md +0 -49
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +0 -48
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/workflow.md +0 -50
- package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +0 -45
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/index-template.md +0 -169
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/project-overview-template.md +0 -103
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/source-tree-template.md +0 -135
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflow.md +0 -27
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/deep-dive-workflow.md +0 -34
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/full-scan-workflow.md +0 -34
- package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +0 -145
- package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +0 -123
- package/rihal/skills/actions/1-analysis/rihal-product-brief/rihal-manifest.json +0 -17
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +0 -58
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-02-design-epics.md +0 -212
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-03-create-stories.md +0 -255
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-04-final-validation.md +0 -143
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +0 -66
- package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +0 -63
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/README.md +0 -30
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-03-sequencing.md +0 -65
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-05-kill-criteria.md +0 -59
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +0 -56
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-07-backlog.md +0 -44
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-08-write-roadmap.md +0 -58
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-09-state-sync.md +0 -62
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +0 -56
- package/rihal/skills/actions/2-plan/rihal-create-milestone/workflow.md +0 -93
- package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +0 -80
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/prd-purpose.md +0 -197
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/project-types.csv +0 -11
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02-discovery.md +0 -208
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02b-vision.md +0 -142
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02c-executive-summary.md +0 -158
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-03-success.md +0 -214
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-04-journeys.md +0 -201
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-05-domain.md +0 -194
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-06-innovation.md +0 -211
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-07-project-type.md +0 -222
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-08-scoping.md +0 -216
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-09-functional.md +0 -219
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-10-nonfunctional.md +0 -230
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-11-polish.md +0 -221
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-12-complete.md +0 -115
- package/rihal/skills/actions/2-plan/rihal-create-prd/workflow.md +0 -64
- package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +0 -59
- package/rihal/skills/actions/2-plan/rihal-create-story/workflow.md +0 -380
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +0 -47
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-02-discovery.md +0 -190
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-03-core-experience.md +0 -217
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-04-emotional-response.md +0 -220
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-05-inspiration.md +0 -235
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-06-design-system.md +0 -253
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-07-defining-experience.md +0 -255
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-08-visual-foundation.md +0 -225
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-09-design-directions.md +0 -225
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-10-user-journeys.md +0 -242
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-11-component-strategy.md +0 -249
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-12-ux-patterns.md +0 -238
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-13-responsive-accessibility.md +0 -265
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-14-complete.md +0 -171
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/workflow.md +0 -36
- package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +0 -45
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01-discovery.md +0 -242
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01b-legacy-conversion.md +0 -204
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-02-review.md +0 -245
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-03-edit.md +0 -250
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-04-complete.md +0 -165
- package/rihal/skills/actions/2-plan/rihal-edit-prd/workflow.md +0 -63
- package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +0 -96
- package/rihal/skills/actions/2-plan/rihal-frontend-design/references.md +0 -79
- package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +0 -45
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/prd-purpose.md +0 -197
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/project-types.csv +0 -11
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-01-discovery.md +0 -221
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02-format-detection.md +0 -188
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02b-parity-check.md +0 -206
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-03-density-validation.md +0 -171
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -261
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-13-report-complete.md +0 -229
- package/rihal/skills/actions/2-plan/rihal-validate-prd/workflow.md +0 -62
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +0 -46
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-06-final-assessment.md +0 -126
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/workflow.md +0 -49
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +0 -50
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-02-context.md +0 -224
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-03-starter.md +0 -329
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-04-decisions.md +0 -318
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-05-patterns.md +0 -359
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-06-structure.md +0 -379
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-07-validation.md +0 -359
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-08-complete.md +0 -76
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/workflow.md +0 -38
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +0 -47
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-02-generate.md +0 -321
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/workflow.md +0 -43
- package/rihal/skills/actions/4-implementation/rihal-browser-verify/SKILL.md +0 -73
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +0 -75
- package/rihal/skills/actions/4-implementation/rihal-ci/SKILL.md +0 -115
- package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +0 -59
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-02-review.md +0 -38
- package/rihal/skills/actions/4-implementation/rihal-code-review/workflow.md +0 -55
- package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +0 -46
- package/rihal/skills/actions/4-implementation/rihal-correct-course/workflow.md +0 -267
- package/rihal/skills/actions/4-implementation/rihal-debug/SKILL.md +0 -199
- package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +0 -80
- package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +0 -537
- package/rihal/skills/actions/4-implementation/rihal-git-flow/SKILL.md +0 -93
- package/rihal/skills/actions/4-implementation/rihal-harden/SKILL.md +0 -98
- package/rihal/skills/actions/4-implementation/rihal-incremental/SKILL.md +0 -53
- package/rihal/skills/actions/4-implementation/rihal-migrate/SKILL.md +0 -93
- package/rihal/skills/actions/4-implementation/rihal-perf/SKILL.md +0 -99
- package/rihal/skills/actions/4-implementation/rihal-prove-it/SKILL.md +0 -67
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +0 -47
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/checklist.md +0 -33
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/workflow.md +0 -136
- package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +0 -45
- package/rihal/skills/actions/4-implementation/rihal-retrospective/workflow.md +0 -1491
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +0 -91
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-03-clone.md +0 -50
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-04-post-setup.md +0 -44
- package/rihal/skills/actions/4-implementation/rihal-source-truth/SKILL.md +0 -79
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +0 -63
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/checklist.md +0 -43
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +0 -296
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +0 -44
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/workflow.md +0 -261
- package/rihal/skills/actions/4-implementation/rihal-trim/SKILL.md +0 -76
- package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +0 -150
- package/rihal/skills/agents/dalil-scout/SKILL.md +0 -135
- package/rihal/skills/agents/dalil-scout/references.md +0 -67
- package/rihal/skills/agents/fatima-qa/SKILL.md +0 -158
- package/rihal/skills/agents/fatima-qa/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/haitham-frontend/SKILL.md +0 -151
- package/rihal/skills/agents/hanzla-engineer/SKILL.md +0 -159
- package/rihal/skills/agents/hanzla-engineer/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/hussain-pm/SKILL.md +0 -167
- package/rihal/skills/agents/hussain-pm/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/hussain-sm/SKILL.md +0 -141
- package/rihal/skills/agents/hussain-sm/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/layla-designer/SKILL.md +0 -125
- package/rihal/skills/agents/layla-designer/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/majlis-council/SKILL.md +0 -116
- package/rihal/skills/agents/majlis-council/references.md +0 -90
- package/rihal/skills/agents/mariam-marketing/SKILL.md +0 -182
- package/rihal/skills/agents/nasser-eng-manager/SKILL.md +0 -156
- package/rihal/skills/agents/noor-writer/SKILL.md +0 -134
- package/rihal/skills/agents/noor-writer/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/raees-orchestrator/SKILL.md +0 -122
- package/rihal/skills/agents/raees-orchestrator/references.md +0 -47
- package/rihal/skills/agents/rihal-cross-platform-auditor/SKILL.md +0 -163
- package/rihal/skills/agents/rihal-dep-auditor/SKILL.md +0 -152
- package/rihal/skills/agents/rihal-deviation-analyzer/SKILL.md +0 -79
- package/rihal/skills/agents/rihal-i18n-auditor/SKILL.md +0 -153
- package/rihal/skills/agents/rihal-observability-auditor/SKILL.md +0 -157
- package/rihal/skills/agents/sadiq-analyst/SKILL.md +0 -163
- package/rihal/skills/agents/sadiq-analyst/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/waleed-architect/SKILL.md +0 -154
- package/rihal/skills/agents/waleed-architect/skill-manifest.yaml +0 -11
- package/rihal/skills/agents/yousef-backend/SKILL.md +0 -164
- package/rihal/skills/agents/zahra-branding/SKILL.md +0 -172
- package/rihal/skills/agents/zayd-ml/SKILL.md +0 -155
- package/rihal/skills/core/module-help.csv +0 -11
- package/rihal/skills/core/module.yaml +0 -25
- package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +0 -69
- package/rihal/skills/core/rihal-auth-audit/SKILL.md +0 -95
- package/rihal/skills/core/rihal-brainstorming/SKILL.md +0 -116
- package/rihal/skills/core/rihal-brainstorming/steps/step-03-technique-execution.md +0 -401
- package/rihal/skills/core/rihal-brainstorming/workflow.md +0 -53
- package/rihal/skills/core/rihal-client-gate/SKILL.md +0 -93
- package/rihal/skills/core/rihal-clone-website/SKILL.md +0 -87
- package/rihal/skills/core/rihal-deploy-unify/SKILL.md +0 -89
- package/rihal/skills/core/rihal-distillator/SKILL.md +0 -65
- package/rihal/skills/core/rihal-distillator/references.md +0 -118
- package/rihal/skills/core/rihal-distillator/resources/distillate-format-reference.md +0 -227
- package/rihal/skills/core/rihal-distillator/scripts/analyze_sources.py +0 -300
- package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +0 -127
- package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +0 -75
- package/rihal/skills/core/rihal-editorial-review-structure/references.md +0 -110
- package/rihal/skills/core/rihal-help/SKILL.md +0 -127
- package/rihal/skills/core/rihal-incident-record/SKILL.md +0 -163
- package/rihal/skills/core/rihal-index-docs/SKILL.md +0 -105
- package/rihal/skills/core/rihal-init/SKILL.md +0 -134
- package/rihal/skills/core/rihal-init/resources/core-module.yaml +0 -25
- package/rihal/skills/core/rihal-init/scripts/rihal_init.py +0 -593
- package/rihal/skills/core/rihal-init/scripts/tests/test_rihal_init.py +0 -329
- package/rihal/skills/core/rihal-memory-audit/SKILL.md +0 -107
- package/rihal/skills/core/rihal-memory-distill/SKILL.md +0 -89
- package/rihal/skills/core/rihal-memory-init/SKILL.md +0 -91
- package/rihal/skills/core/rihal-memory-update/SKILL.md +0 -87
- package/rihal/skills/core/rihal-mvp-graduate/SKILL.md +0 -118
- package/rihal/skills/core/rihal-ocr-consistency/SKILL.md +0 -108
- package/rihal/skills/core/rihal-party-mode/SKILL.md +0 -98
- package/rihal/skills/core/rihal-party-mode/steps/step-01-agent-loading.md +0 -138
- package/rihal/skills/core/rihal-party-mode/steps/step-02-discussion-orchestration.md +0 -187
- package/rihal/skills/core/rihal-party-mode/steps/step-03-graceful-exit.md +0 -167
- package/rihal/skills/core/rihal-party-mode/workflow.md +0 -190
- package/rihal/skills/core/rihal-rebrand/SKILL.md +0 -135
- package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +0 -74
- package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +0 -122
- package/rihal/skills/core/rihal-shard-doc/SKILL.md +0 -144
- package/rihal/skills/core/rihal-theme-system/SKILL.md +0 -115
- package/rihal/state.json +0 -21
- package/rihal/team.yaml +0 -610
- package/rihal/templates/RESEARCH.md +0 -84
- package/rihal/templates/UAT.md +0 -80
- package/rihal/templates/VALIDATION.md +0 -45
- package/rihal/templates/github/bug-template.md +0 -53
- package/rihal/templates/github/epic-template.md +0 -57
- package/rihal/templates/github/feature-template.md +0 -55
- package/rihal/templates/github/task-template.md +0 -52
- package/rihal/templates/memory/INDEX.md +0 -47
- package/rihal/templates/memory/distillates/project.distillate.md +0 -11
- package/rihal/templates/memory/distillates/stack.distillate.md +0 -11
- package/rihal/templates/memory/project/decisions.md +0 -32
- package/rihal/templates/memory/project/design-system.md +0 -128
- package/rihal/templates/memory/project/stack.md +0 -46
- package/rihal/templates/milestone.md +0 -149
- package/rihal/templates/projects/api-backend/PROJECT.md +0 -37
- package/rihal/templates/projects/api-backend/template.yaml +0 -17
- package/rihal/templates/projects/mobile-app/PROJECT.md +0 -37
- package/rihal/templates/projects/mobile-app/template.yaml +0 -17
- package/rihal/templates/projects/saas-b2b/PROJECT.md +0 -40
- package/rihal/templates/projects/saas-b2b/template.yaml +0 -18
- package/rihal/templates/settings-hooks.json +0 -75
- package/rihal/templates/sprint.md +0 -53
- package/rihal/templates/summary.md +0 -77
- package/rihal/templates/verification-report.md +0 -83
- package/rihal/workflows/add-phase.md +0 -183
- package/rihal/workflows/add-tests.md +0 -352
- package/rihal/workflows/add-todo.md +0 -187
- package/rihal/workflows/analyze-dependencies.md +0 -144
- package/rihal/workflows/audit-fix.md +0 -204
- package/rihal/workflows/audit-milestone.md +0 -188
- package/rihal/workflows/audit-plans.md +0 -255
- package/rihal/workflows/audit-uat.md +0 -109
- package/rihal/workflows/audit-worktrees.md +0 -163
- package/rihal/workflows/audit.md +0 -202
- package/rihal/workflows/autonomous-smart-discuss.md +0 -248
- package/rihal/workflows/autonomous.md +0 -931
- package/rihal/workflows/brainstorm.md +0 -203
- package/rihal/workflows/capture.md +0 -60
- package/rihal/workflows/chain.md +0 -188
- package/rihal/workflows/check-implementation-readiness.md +0 -193
- package/rihal/workflows/check-todos.md +0 -181
- package/rihal/workflows/checkpoint-preview.md +0 -7
- package/rihal/workflows/cleanup.md +0 -152
- package/rihal/workflows/code-review-fix.md +0 -534
- package/rihal/workflows/code-review.md +0 -621
- package/rihal/workflows/complete-milestone.md +0 -845
- package/rihal/workflows/correct-course.md +0 -196
- package/rihal/workflows/council.md +0 -582
- package/rihal/workflows/create-architecture.md +0 -31
- package/rihal/workflows/create-epics-and-stories.md +0 -379
- package/rihal/workflows/create-prd.md +0 -25
- package/rihal/workflows/create-story.md +0 -297
- package/rihal/workflows/dashboard.md +0 -133
- package/rihal/workflows/debug.md +0 -272
- package/rihal/workflows/decisions.md +0 -107
- package/rihal/workflows/dev-story.md +0 -437
- package/rihal/workflows/diagnose-issues.md +0 -87
- package/rihal/workflows/diff.md +0 -80
- package/rihal/workflows/discuss-phase-discuss-areas.md +0 -271
- package/rihal/workflows/discuss-phase-power.md +0 -325
- package/rihal/workflows/discuss-phase.md +0 -962
- package/rihal/workflows/discuss.md +0 -227
- package/rihal/workflows/do.md +0 -434
- package/rihal/workflows/docs-update.md +0 -264
- package/rihal/workflows/document-project.md +0 -186
- package/rihal/workflows/edit-prd.md +0 -31
- package/rihal/workflows/enable-hooks.md +0 -107
- package/rihal/workflows/execute-milestone.md +0 -139
- package/rihal/workflows/execute-regression-gates.md +0 -131
- package/rihal/workflows/execute-sprint.md +0 -603
- package/rihal/workflows/execute-verify-phase-goal.md +0 -163
- package/rihal/workflows/execute-waves.md +0 -457
- package/rihal/workflows/execute.md +0 -1051
- package/rihal/workflows/explore.md +0 -171
- package/rihal/workflows/export-to-github.md +0 -174
- package/rihal/workflows/feature-drift.md +0 -243
- package/rihal/workflows/forensics.md +0 -209
- package/rihal/workflows/from-template.md +0 -173
- package/rihal/workflows/health.md +0 -258
- package/rihal/workflows/help.md +0 -343
- package/rihal/workflows/import.md +0 -320
- package/rihal/workflows/inbox.md +0 -418
- package/rihal/workflows/init.md +0 -350
- package/rihal/workflows/insert-phase.md +0 -116
- package/rihal/workflows/install.md +0 -77
- package/rihal/workflows/karpathy-audit.md +0 -402
- package/rihal/workflows/lens-audit.md +0 -705
- package/rihal/workflows/list-plans.md +0 -146
- package/rihal/workflows/list-workspaces.md +0 -115
- package/rihal/workflows/map-codebase.md +0 -455
- package/rihal/workflows/memory-audit.md +0 -145
- package/rihal/workflows/memory-distill.md +0 -113
- package/rihal/workflows/memory-init.md +0 -106
- package/rihal/workflows/memory-update.md +0 -87
- package/rihal/workflows/milestone-summary.md +0 -206
- package/rihal/workflows/new-milestone.md +0 -639
- package/rihal/workflows/new-project-create-roadmap.md +0 -176
- package/rihal/workflows/new-project-define-requirements.md +0 -160
- package/rihal/workflows/new-project-research-decision.md +0 -247
- package/rihal/workflows/new-project-research.md +0 -314
- package/rihal/workflows/new-project-roadmap.md +0 -446
- package/rihal/workflows/new-project.md +0 -992
- package/rihal/workflows/new-workspace.md +0 -167
- package/rihal/workflows/next.md +0 -162
- package/rihal/workflows/note.md +0 -156
- package/rihal/workflows/notify-test.md +0 -113
- package/rihal/workflows/pause-work.md +0 -249
- package/rihal/workflows/phase.md +0 -89
- package/rihal/workflows/plan-milestone-gaps.md +0 -273
- package/rihal/workflows/plan-milestone.md +0 -105
- package/rihal/workflows/plan-prd-express.md +0 -108
- package/rihal/workflows/plan-research-validation.md +0 -313
- package/rihal/workflows/plan-spawn-planner.md +0 -257
- package/rihal/workflows/plan.md +0 -983
- package/rihal/workflows/plant-seed.md +0 -175
- package/rihal/workflows/pr-branch.md +0 -129
- package/rihal/workflows/prfaq.md +0 -7
- package/rihal/workflows/profile-user.md +0 -162
- package/rihal/workflows/progress.md +0 -46
- package/rihal/workflows/quick.md +0 -208
- package/rihal/workflows/remove-phase.md +0 -160
- package/rihal/workflows/remove-workspace.md +0 -164
- package/rihal/workflows/replay.md +0 -160
- package/rihal/workflows/rerun.md +0 -77
- package/rihal/workflows/research-phase.md +0 -108
- package/rihal/workflows/resume-work.md +0 -331
- package/rihal/workflows/retrospective.md +0 -31
- package/rihal/workflows/review-adversarial.md +0 -194
- package/rihal/workflows/review-edge-case-hunter.md +0 -214
- package/rihal/workflows/review.md +0 -287
- package/rihal/workflows/scaffold-milestone.md +0 -60
- package/rihal/workflows/scaffold-project.md +0 -31
- package/rihal/workflows/scaffold-skill.md +0 -137
- package/rihal/workflows/scan.md +0 -382
- package/rihal/workflows/secure-phase.md +0 -209
- package/rihal/workflows/session-report.md +0 -252
- package/rihal/workflows/settings.md +0 -184
- package/rihal/workflows/ship.md +0 -274
- package/rihal/workflows/show.md +0 -69
- package/rihal/workflows/sprint-planning.md +0 -198
- package/rihal/workflows/sprint-status.md +0 -124
- package/rihal/workflows/stats.md +0 -141
- package/rihal/workflows/status.md +0 -148
- package/rihal/workflows/ui-phase.md +0 -148
- package/rihal/workflows/ui-review.md +0 -134
- package/rihal/workflows/undo.md +0 -425
- package/rihal/workflows/update.md +0 -243
- package/rihal/workflows/validate-phase.md +0 -181
- package/rihal/workflows/validate-prd.md +0 -31
- package/rihal/workflows/verify-phase.md +0 -409
- package/rihal/workflows/verify-work.md +0 -731
- package/rihal/workflows/why.md +0 -130
- package/rihal/workflows/workstream.md +0 -209
- /package/{rihal → rcode}/agents/rules/debugger/hypothesis-templates.md +0 -0
- /package/{rihal → rcode}/agents/rules/planner/common-patterns.md +0 -0
- /package/{rihal → rcode}/agents/rules/planner/dependency-analysis.md +0 -0
- /package/{rihal → rcode}/agents/rules/planner/sprint-verification.md +0 -0
- /package/{rihal → rcode}/agents/rules/verifier/behavioral-spot-checks.md +0 -0
- /package/{rihal → rcode}/agents/rules/verifier/data-flow-trace.md +0 -0
- /package/{rihal → rcode}/bin/lib/code-references.cjs +0 -0
- /package/{rihal → rcode}/bin/lib/verify.cjs +0 -0
- /package/{rihal → rcode}/references/brain-methods.csv +0 -0
- /package/{rihal → rcode}/references/checklist-architect.md +0 -0
- /package/{rihal → rcode}/references/checklist-change.md +0 -0
- /package/{rihal → rcode}/references/checklist-pm.md +0 -0
- /package/{rihal → rcode}/references/checklist-po-master.md +0 -0
- /package/{rihal → rcode}/references/checklist-story-dod.md +0 -0
- /package/{rihal → rcode}/references/checklist-story-draft.md +0 -0
- /package/{rihal → rcode}/references/checkpoints.md +0 -0
- /package/{rihal → rcode}/references/codebase-grounding.md +0 -0
- /package/{rihal → rcode}/references/common-bug-patterns.md +0 -0
- /package/{rihal → rcode}/references/domain-probes.md +0 -0
- /package/{rihal → rcode}/references/elicitation-methods.csv +0 -0
- /package/{rihal → rcode}/references/project-types.yaml +0 -0
- /package/{rihal → rcode}/references/questioning.md +0 -0
- /package/{rihal → rcode}/references/tdd.md +0 -0
- /package/{rihal → rcode}/references/thinking-models-debug.md +0 -0
- /package/{rihal → rcode}/references/thinking-models-planning.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/checklist.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/documentation-requirements.csv +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/instructions.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/templates/deep-dive-template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/templates/project-scan-report-schema.json +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/workflows/deep-dive-instructions.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-document-project → rcode/skills/actions/1-analysis/rcode-document-project}/workflows/full-scan-instructions.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/agents/artifact-analyzer.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/agents/web-researcher.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/assets/prfaq-template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq/rihal-manifest.json → rcode/skills/actions/1-analysis/rcode-prfaq/rcode-manifest.json} +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/references/customer-faq.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/references/internal-faq.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/references/press-release.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-prfaq → rcode/skills/actions/1-analysis/rcode-prfaq}/references/verdict.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/agents/artifact-analyzer.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/agents/opportunity-reviewer.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/agents/skeptic-reviewer.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/agents/web-researcher.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/prompts/contextual-discovery.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/prompts/draft-and-review.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/prompts/finalize.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/prompts/guided-elicitation.md +0 -0
- /package/{rihal/skills/actions/1-analysis/rihal-product-brief → rcode/skills/actions/1-analysis/rcode-product-brief}/resources/brief-template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-02-domain-analysis.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-03-competitive-landscape.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-04-regulatory-focus.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-05-technical-trends.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/domain-steps/step-06-research-synthesis.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-domain-research → rcode/skills/actions/1-analysis/research/rcode-domain-research}/research.template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/research.template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-02-customer-behavior.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-03-customer-pain-points.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-04-customer-decisions.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-05-competitive-analysis.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-market-research → rcode/skills/actions/1-analysis/research/rcode-market-research}/steps/step-06-research-completion.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/research.template.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-02-technical-overview.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-03-integration-patterns.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-04-architectural-patterns.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-05-implementation-research.md +0 -0
- /package/{rihal/skills/actions/1-analysis/research/rihal-technical-research → rcode/skills/actions/1-analysis/research/rcode-technical-research}/technical-steps/step-06-research-synthesis.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-epics-and-stories → rcode/skills/actions/2-plan/rcode-create-epics-and-stories}/steps/step-01-validate-prerequisites.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-epics-and-stories → rcode/skills/actions/2-plan/rcode-create-epics-and-stories}/templates/epics-template.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-milestone → rcode/skills/actions/2-plan/rcode-create-milestone}/steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-milestone → rcode/skills/actions/2-plan/rcode-create-milestone}/steps/step-02-outcomes.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-milestone → rcode/skills/actions/2-plan/rcode-create-milestone}/steps/step-04-windows.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-prd → rcode/skills/actions/2-plan/rcode-create-prd}/data/domain-complexity.csv +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-prd → rcode/skills/actions/2-plan/rcode-create-prd}/steps-c/step-01-init.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-prd → rcode/skills/actions/2-plan/rcode-create-prd}/steps-c/step-01b-continue.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-prd → rcode/skills/actions/2-plan/rcode-create-prd}/templates/prd-template.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-story → rcode/skills/actions/2-plan/rcode-create-story}/checklist.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-story → rcode/skills/actions/2-plan/rcode-create-story}/discover-inputs.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-story → rcode/skills/actions/2-plan/rcode-create-story}/template.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-ux-design → rcode/skills/actions/2-plan/rcode-create-ux-design}/steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-ux-design → rcode/skills/actions/2-plan/rcode-create-ux-design}/steps/step-01b-continue.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-create-ux-design → rcode/skills/actions/2-plan/rcode-create-ux-design}/ux-design-template.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/data/domain-complexity.csv +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-04-brief-coverage-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-05-measurability-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-06-traceability-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-07-implementation-leakage-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-08-domain-compliance-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-09-project-type-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-10-smart-validation.md +0 -0
- /package/{rihal/skills/actions/2-plan/rihal-validate-prd → rcode/skills/actions/2-plan/rcode-validate-prd}/steps-v/step-v-12-completeness-validation.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/steps/step-01-document-discovery.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/steps/step-02-prd-analysis.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/steps/step-03-epic-coverage-validation.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/steps/step-04-ux-alignment.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/steps/step-05-epic-quality-review.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness → rcode/skills/actions/3-solutioning/rcode-check-implementation-readiness}/templates/readiness-report-template.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-create-architecture → rcode/skills/actions/3-solutioning/rcode-create-architecture}/architecture-decision-template.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-create-architecture → rcode/skills/actions/3-solutioning/rcode-create-architecture}/data/domain-complexity.csv +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-create-architecture → rcode/skills/actions/3-solutioning/rcode-create-architecture}/data/project-types.csv +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-create-architecture → rcode/skills/actions/3-solutioning/rcode-create-architecture}/steps/step-01-init.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-create-architecture → rcode/skills/actions/3-solutioning/rcode-create-architecture}/steps/step-01b-continue.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-generate-project-context → rcode/skills/actions/3-solutioning/rcode-generate-project-context}/project-context-template.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-generate-project-context → rcode/skills/actions/3-solutioning/rcode-generate-project-context}/steps/step-01-discover.md +0 -0
- /package/{rihal/skills/actions/3-solutioning/rihal-generate-project-context → rcode/skills/actions/3-solutioning/rcode-generate-project-context}/steps/step-03-complete.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/generate-trail.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/step-01-orientation.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/step-02-walkthrough.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/step-03-detail-pass.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/step-04-testing.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-checkpoint-preview → rcode/skills/actions/4-implementation/rcode-checkpoint-preview}/step-05-wrapup.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-code-review → rcode/skills/actions/4-implementation/rcode-code-review}/steps/step-01-gather-context.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-code-review → rcode/skills/actions/4-implementation/rcode-code-review}/steps/step-03-triage.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-code-review → rcode/skills/actions/4-implementation/rcode-code-review}/steps/step-04-present.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-correct-course → rcode/skills/actions/4-implementation/rcode-correct-course}/checklist.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-dev-story → rcode/skills/actions/4-implementation/rcode-dev-story}/checklist.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-scaffold-project → rcode/skills/actions/4-implementation/rcode-scaffold-project}/steps/step-01-target.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-scaffold-project → rcode/skills/actions/4-implementation/rcode-scaffold-project}/steps/step-02-safety.md +0 -0
- /package/{rihal/skills/actions/4-implementation/rihal-sprint-planning → rcode/skills/actions/4-implementation/rcode-sprint-planning}/sprint-status-template.yaml +0 -0
- /package/{rihal → rcode}/skills/agents/noor-writer/explain-concept.md +0 -0
- /package/{rihal → rcode}/skills/agents/noor-writer/mermaid-gen.md +0 -0
- /package/{rihal → rcode}/skills/agents/noor-writer/validate-doc.md +0 -0
- /package/{rihal → rcode}/skills/agents/noor-writer/write-document.md +0 -0
- /package/{rihal/skills/core/rihal-advanced-elicitation → rcode/skills/core/rcode-advanced-elicitation}/methods.csv +0 -0
- /package/{rihal/skills/core/rihal-advanced-elicitation → rcode/skills/core/rcode-advanced-elicitation}/references.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/brain-methods.csv +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-01-session-setup.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-01b-continue.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-02a-user-selected.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-02b-ai-recommended.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-02c-random-selection.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-02d-progressive-flow.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/steps/step-04-idea-organization.md +0 -0
- /package/{rihal/skills/core/rihal-brainstorming → rcode/skills/core/rcode-brainstorming}/template.md +0 -0
- /package/{rihal/skills/core/rihal-clone-website → rcode/skills/core/rcode-clone-website}/references.md +0 -0
- /package/{rihal/skills/core/rihal-distillator → rcode/skills/core/rcode-distillator}/agents/distillate-compressor.md +0 -0
- /package/{rihal/skills/core/rihal-distillator → rcode/skills/core/rcode-distillator}/agents/round-trip-reconstructor.md +0 -0
- /package/{rihal/skills/core/rihal-distillator → rcode/skills/core/rcode-distillator}/resources/compression-rules.md +0 -0
- /package/{rihal/skills/core/rihal-distillator → rcode/skills/core/rcode-distillator}/resources/splitting-strategy.md +0 -0
- /package/{rihal/skills/core/rihal-distillator → rcode/skills/core/rcode-distillator}/scripts/tests/test_analyze_sources.py +0 -0
- /package/{rihal → rcode}/templates/UI-SPEC.md +0 -0
- /package/{rihal → rcode}/templates/documentation-requirements.csv +0 -0
- /package/{rihal → rcode}/templates/memory/change-records/.gitkeep +0 -0
- /package/{rihal → rcode}/templates/memory/incidents/known-issues.md +0 -0
- /package/{rihal → rcode}/templates/memory/incidents/post-mortems/.gitkeep +0 -0
- /package/{rihal → rcode}/templates/memory/milestones/archive/.gitkeep +0 -0
- /package/{rihal → rcode}/templates/memory/milestones/current.md +0 -0
- /package/{rihal → rcode}/templates/memory/people/stakeholders.md +0 -0
- /package/{rihal → rcode}/templates/memory/people/team.md +0 -0
- /package/{rihal → rcode}/templates/memory/project/glossary.md +0 -0
- /package/{rihal → rcode}/templates/projects/api-backend/REQUIREMENTS.md +0 -0
- /package/{rihal → rcode}/templates/projects/api-backend/ROADMAP.md +0 -0
- /package/{rihal → rcode}/templates/projects/mobile-app/REQUIREMENTS.md +0 -0
- /package/{rihal → rcode}/templates/projects/mobile-app/ROADMAP.md +0 -0
- /package/{rihal → rcode}/templates/projects/saas-b2b/REQUIREMENTS.md +0 -0
- /package/{rihal → rcode}/templates/projects/saas-b2b/ROADMAP.md +0 -0
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Create executable phase prompts (SPRINT.md files) for a roadmap phase with integrated research and verification. Default flow: Research (if needed) -> Plan -> Verify -> Done. Orchestrates rcode-phase-researcher, rcode-planner, and rcode-sprint-checker agents with a revision loop (max 3 iterations).
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<output_format>
|
|
6
|
+
Open with banner:
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
10
|
+
rcode ► PLANNING PHASE {NN}
|
|
11
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
TaskCreate at start:
|
|
15
|
+
- TaskCreate: "Load phase scope and context"
|
|
16
|
+
- TaskCreate: "Research phase (if enabled)"
|
|
17
|
+
- TaskCreate: "Spawn rcode-planner → SPRINT.md"
|
|
18
|
+
- TaskCreate: "Run rcode-sprint-checker verification"
|
|
19
|
+
- TaskCreate: "Revise plan (up to 3 iterations)" — only if checker flags issues
|
|
20
|
+
- TaskCreate: "Commit SPRINT.md + update state"
|
|
21
|
+
|
|
22
|
+
Spawning indicators:
|
|
23
|
+
```
|
|
24
|
+
◆ Spawning rcode-phase-researcher...
|
|
25
|
+
✓ Research complete: RESEARCH.md ({N} lines)
|
|
26
|
+
|
|
27
|
+
◆ Spawning rcode-planner...
|
|
28
|
+
✓ Planner complete: SPRINT.md ({N} stories, {M} points)
|
|
29
|
+
|
|
30
|
+
◆ Spawning rcode-sprint-checker...
|
|
31
|
+
✓ Check complete: {PASS|PARTIAL|FAIL} — see CHECK.md
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Closure:
|
|
35
|
+
```
|
|
36
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
37
|
+
rcode ► PLAN READY ✓ ({N} stories, {M} points)
|
|
38
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
39
|
+
```
|
|
40
|
+
End with Next Up routing to /rcode-execute.
|
|
41
|
+
</output_format>
|
|
42
|
+
|
|
43
|
+
<required_reading>
|
|
44
|
+
@.rcode/references/auto-init-guard.md
|
|
45
|
+
@.rcode/references/output-format.md
|
|
46
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
47
|
+
|
|
48
|
+
<!-- ui-brand.md (254 lines): only load when phase goal/CONTEXT.md contains UI signals (frontend|ui|component|design|style|brand) -->
|
|
49
|
+
${PHASE_GOAL_HAS_UI ? '@.rcode/references/ui-brand.md' : ''}
|
|
50
|
+
@.rcode/references/revision-loop.md
|
|
51
|
+
@.rcode/references/gate-prompts.md
|
|
52
|
+
@.rcode/references/agent-contracts.md
|
|
53
|
+
@.rcode/references/gates.md
|
|
54
|
+
@.rcode/references/karpathy-guidelines.md
|
|
55
|
+
@.rcode/references/thinking-models-planning.md
|
|
56
|
+
</required_reading>
|
|
57
|
+
|
|
58
|
+
<available_agent_types>
|
|
59
|
+
Valid rcode subagent types (use exact names — do not fall back to 'general-purpose'):
|
|
60
|
+
- rcode-phase-researcher — Researches technical approaches for a phase
|
|
61
|
+
- rcode-planner — Creates detailed plans from phase scope
|
|
62
|
+
- rcode-sprint-checker — Reviews plan quality before execution
|
|
63
|
+
</available_agent_types>
|
|
64
|
+
|
|
65
|
+
<process>
|
|
66
|
+
|
|
67
|
+
## 1. Initialize
|
|
68
|
+
|
|
69
|
+
Load all context in one call (paths only to minimize orchestrator context):
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
INIT=$(node ".rcode/bin/rcode-tools.cjs" init sprint-plan "$PHASE" 2>/dev/null)
|
|
73
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
74
|
+
AGENT_SKILLS_RESEARCHER=$(node ".rcode/bin/rcode-tools.cjs" agent-skills rcode-phase-researcher 2>/dev/null || echo "")
|
|
75
|
+
AGENT_SKILLS_PLANNER=$(node ".rcode/bin/rcode-tools.cjs" agent-skills rcode-planner 2>/dev/null || echo "")
|
|
76
|
+
AGENT_SKILLS_CHECKER=$(node ".rcode/bin/rcode-tools.cjs" agent-skills rcode-sprint-checker 2>/dev/null || echo "")
|
|
77
|
+
CONTEXT_WINDOW=$(node ".rcode/bin/rcode-tools.cjs" config-get context_window 2>/dev/null)
|
|
78
|
+
CONTEXT_WINDOW=${CONTEXT_WINDOW:-200000} # config-get exits 0 with empty output when key absent; || fallback won't fire
|
|
79
|
+
|
|
80
|
+
# Detect UI signals in phase goal + CONTEXT.md to decide whether to load ui-brand.md (254 lines)
|
|
81
|
+
PHASE_GOAL_HAS_UI=$(grep -iEl "frontend|ui|component|design|style|brand" \
|
|
82
|
+
.planning/phases/*${PHASE_NUMBER}*/*-CONTEXT.md \
|
|
83
|
+
.planning/ROADMAP.md 2>/dev/null | head -1)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
If `INIT` is empty, or `INIT.ok` is false or absent (null/undefined — `init sprint-plan` may omit the key), print error and exit:
|
|
87
|
+
```
|
|
88
|
+
Error: rcode-tools init failed. Verify .rcode/ is installed and state.json is valid.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
When `CONTEXT_WINDOW >= 500000`, the planner prompt includes prior phase CONTEXT.md files so cross-phase decisions are consistent (e.g., "use library X for all data fetching" from Phase 2 is visible to Phase 5's planner).
|
|
92
|
+
|
|
93
|
+
Parse JSON for: `researcher_model`, `planner_model`, `checker_model`, `research_enabled`, `plan_checker_enabled`, `nyquist_validation_enabled`, `commit_docs`, `text_mode`, `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `phase_slug`, `padded_phase`, `has_research`, `has_context`, `has_reviews`, `has_plans`, `plan_count`, `phase_status`, `planning_exists`, `roadmap_exists`, `phase_req_ids`, `response_language`.
|
|
94
|
+
|
|
95
|
+
**If `response_language` is set:** Include `response_language: {value}` in all spawned subagent prompts so any user-facing output stays in the configured language.
|
|
96
|
+
|
|
97
|
+
**File paths (for <files_to_read> blocks):** `state_path`, `roadmap_path`, `requirements_path`, `context_path`, `research_path`, `verification_path`, `uat_path`, `reviews_path`. These are null if files don't exist.
|
|
98
|
+
|
|
99
|
+
**If `planning_exists` is false:** Error — run `/rcode-new-project` first.
|
|
100
|
+
|
|
101
|
+
## 2. Parse and Normalize Arguments
|
|
102
|
+
|
|
103
|
+
Extract from $ARGUMENTS: phase number (integer or decimal like `2.1`), flags (`--research`, `--skip-research`, `--gaps`, `--skip-verify`, `--from-stub`, `--prd <filepath>`, `--reviews`, `--text`).
|
|
104
|
+
|
|
105
|
+
Set `TEXT_MODE=true` if `--text` is present in $ARGUMENTS OR `text_mode` from init JSON is `true`. When `TEXT_MODE` is active, replace every `AskUserQuestion` call with a plain-text numbered list and ask the user to type their choice number. This is required for Claude Code remote sessions (`/rc` mode) where TUI menus don't work through the Claude App.
|
|
106
|
+
|
|
107
|
+
Extract `--prd <filepath>` from $ARGUMENTS. If present, set PRD_FILE to the filepath.
|
|
108
|
+
|
|
109
|
+
**Detect gaps mode:**
|
|
110
|
+
```bash
|
|
111
|
+
if [[ "$ARGUMENTS" =~ (^|[[:space:]])--gaps($|[[:space:]]) ]]; then
|
|
112
|
+
GAPS_MODE=true
|
|
113
|
+
else
|
|
114
|
+
GAPS_MODE=false
|
|
115
|
+
fi
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
When `GAPS_MODE=true`, the workflow switches to **gap-closure planning**: read the phase's VERIFICATION.md, extract verification gaps classified `gap_found` or `partial`, and produce a single new numbered plan file (`NNN-NN-SPRINT.md`) that closes them. Research, CONTEXT.md gating, and VALIDATION.md creation are skipped — gaps are grounded in already-shipped code, not new design work.
|
|
119
|
+
|
|
120
|
+
**Detect from-stub mode (closes #736):**
|
|
121
|
+
```bash
|
|
122
|
+
if [[ "$ARGUMENTS" =~ (^|[[:space:]])--from-stub($|[[:space:]]) ]]; then
|
|
123
|
+
FROM_STUB_MODE=true
|
|
124
|
+
else
|
|
125
|
+
FROM_STUB_MODE=false
|
|
126
|
+
fi
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
When `FROM_STUB_MODE=true`, the workflow reads an existing stub `SPRINT.md` (or any `*-SPRINT.md`) already present in the phase directory and treats it as the authoritative task list — the researcher and CONTEXT.md gating are skipped. The stub is passed to the planner as `existing_stub_content` so it can refine, expand, and add implementation detail without rewriting the structure. This is the correct flow when a user has partially sketched a plan by hand or a prior workflow run created a skeleton.
|
|
130
|
+
|
|
131
|
+
**From-stub resolution:**
|
|
132
|
+
```bash
|
|
133
|
+
if [[ "$FROM_STUB_MODE" == "true" ]]; then
|
|
134
|
+
STUB_FILE=$(ls "${PHASE_DIR}"/*-SPRINT.md 2>/dev/null | head -1)
|
|
135
|
+
if [[ -z "$STUB_FILE" ]]; then
|
|
136
|
+
echo "Error: --from-stub requires an existing SPRINT.md in the phase directory."
|
|
137
|
+
echo "Found: ${PHASE_DIR}"
|
|
138
|
+
echo " (create a stub manually then re-run with --from-stub)"
|
|
139
|
+
exit 1
|
|
140
|
+
fi
|
|
141
|
+
STUB_CONTENT=$(cat "$STUB_FILE")
|
|
142
|
+
echo "◆ From-stub mode: using $(basename $STUB_FILE) as planner input"
|
|
143
|
+
fi
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
When `FROM_STUB_MODE=true`: skip steps 4 (CONTEXT.md), 5 (Research), 5.5 (Validation strategy). Jump directly to step 8 (Spawn rcode-planner). Pass `STUB_CONTENT` and `STUB_FILE` to the planner prompt so it refines rather than replaces the stub.
|
|
147
|
+
|
|
148
|
+
**If no phase number:** Detect next unplanned phase from roadmap.
|
|
149
|
+
|
|
150
|
+
**If `phase_found` is false:** Validate phase exists in ROADMAP.md. If valid, create the directory using `phase_slug` and `padded_phase` from init:
|
|
151
|
+
```bash
|
|
152
|
+
mkdir -p ".planning/phases/${padded_phase}-${phase_slug}"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Existing artifacts from init:** `has_research`, `has_plans`, `plan_count`.
|
|
156
|
+
|
|
157
|
+
**TASKS.md ingestion (#385 chain).** If the phase directory contains a `TASKS.md` file (typically auto-extracted by `/rcode-add-phase` from a bulk `/rcode-quick` or `/rcode-do` route), read it now:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
TASKS_FILE=".planning/phases/${padded_phase}-${phase_slug}/TASKS.md"
|
|
161
|
+
HAS_TASKS=$([ -f "$TASKS_FILE" ] && echo true || echo false)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
When `HAS_TASKS=true`:
|
|
165
|
+
- Pass the TASKS.md content to the planner agent as authoritative phase scope. The planner uses it as the input list — each entry becomes a candidate sprint task in SPRINT.md.
|
|
166
|
+
- Surface this in the opening banner: *"Phase scope source: TASKS.md ({N} entries auto-extracted from bulk route on {date})"*.
|
|
167
|
+
- Do NOT re-prompt the user for scope when TASKS.md is present — they already provided the list once at the /rcode-quick or /rcode-do entry point. The whole point of the auto-route chain is that the user doesn't paste the same content multiple times.
|
|
168
|
+
|
|
169
|
+
## 2.5. Validate `--reviews` Prerequisite
|
|
170
|
+
|
|
171
|
+
**Skip if:** No `--reviews` flag.
|
|
172
|
+
|
|
173
|
+
**If `--reviews` AND `--gaps`:** Error — cannot combine `--reviews` with `--gaps`. These are conflicting modes.
|
|
174
|
+
|
|
175
|
+
**If `--reviews` AND `has_reviews` is false (no REVIEWS.md in phase dir):**
|
|
176
|
+
|
|
177
|
+
Error:
|
|
178
|
+
```
|
|
179
|
+
No REVIEWS.md found for Phase {N}. Run reviews first:
|
|
180
|
+
|
|
181
|
+
/rcode-review --phase {N}
|
|
182
|
+
|
|
183
|
+
Then re-run /rcode-plan {N} --reviews
|
|
184
|
+
```
|
|
185
|
+
Exit workflow.
|
|
186
|
+
|
|
187
|
+
## 3. Validate Phase
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
PHASE_INFO=$(node ".rcode/bin/rcode-tools.cjs" roadmap get-phase "${PHASE}")
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**If `found` is false:** Error with available phases. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@.rcode/workflows/plan-prd-express.md
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## 3.6. Handle `--gaps` Mode
|
|
200
|
+
|
|
201
|
+
**Skip unless:** `GAPS_MODE=true`.
|
|
202
|
+
|
|
203
|
+
**Purpose:** Read `NNN-VERIFICATION.md`, extract failing/partial gaps, count existing plan files, and prepare a `gap_list` payload to feed the planner. On completion, control flow continues at step 8 (skipping CONTEXT.md gating, research, and validation-strategy creation).
|
|
204
|
+
|
|
205
|
+
**Step 1: Locate VERIFICATION.md**
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
PHASE_DIR=$(node ".rcode/bin/rcode-tools.cjs" roadmap get-phase "${PHASE}" --pick dir 2>/dev/null || echo "")
|
|
209
|
+
# Fallback if --pick dir not supported. TODO(#118): expose roadmap --pick dir cleanly.
|
|
210
|
+
if [[ -z "$PHASE_DIR" ]]; then
|
|
211
|
+
PHASE_DIR=$(ls -d .planning/phases/${padded_phase}-* 2>/dev/null | head -1)
|
|
212
|
+
fi
|
|
213
|
+
|
|
214
|
+
VERIFICATION_FILE=$(ls "${PHASE_DIR}"/*-VERIFICATION.md 2>/dev/null | head -1)
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**If `VERIFICATION_FILE` is empty:**
|
|
218
|
+
```
|
|
219
|
+
Error: No VERIFICATION.md found for Phase {X}. Gap-closure planning requires the phase to have run through the verifier first.
|
|
220
|
+
|
|
221
|
+
Try:
|
|
222
|
+
/rcode-execute {X} ${RCODE_WS} # run or re-run execution + verification
|
|
223
|
+
```
|
|
224
|
+
Exit workflow.
|
|
225
|
+
|
|
226
|
+
**Step 2: Extract gaps from VERIFICATION.md**
|
|
227
|
+
|
|
228
|
+
Parse the file for gap entries with `status: gap_found` or `status: partial`. Inspect these sections:
|
|
229
|
+
- `## Automated Gap` (or `## Automated Gaps`)
|
|
230
|
+
- `## Human Verification Required`
|
|
231
|
+
- Any findings block that includes a `status:` field set to `gap_found` or `partial`
|
|
232
|
+
|
|
233
|
+
Collect into `GAP_LIST` (an ordered list where each entry has: id, title, expected, actual, status, source_section, severity if present).
|
|
234
|
+
|
|
235
|
+
If `GAP_LIST` is empty, display:
|
|
236
|
+
```
|
|
237
|
+
Phase {X} VERIFICATION.md contains no gap_found or partial items — nothing to close.
|
|
238
|
+
Report: {VERIFICATION_FILE}
|
|
239
|
+
```
|
|
240
|
+
Exit workflow.
|
|
241
|
+
|
|
242
|
+
**Step 3: Determine next plan number**
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
EXISTING_PLAN_COUNT=$(ls "${PHASE_DIR}"/*-SPRINT.md 2>/dev/null | wc -l | tr -d ' ')
|
|
246
|
+
# Issue #652 — no leading zeros in planning artifacts. Phase 8 not 08, plan 2 not 02.
|
|
247
|
+
NEXT_PLAN_NUMBER=$((EXISTING_PLAN_COUNT + 1))
|
|
248
|
+
PADDED_PHASE="${PHASE}"
|
|
249
|
+
GAP_PLAN_FILENAME="${PADDED_PHASE}-${NEXT_PLAN_NUMBER}-SPRINT.md"
|
|
250
|
+
GAP_PLAN_PATH="${PHASE_DIR}/${GAP_PLAN_FILENAME}"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
If `EXISTING_PLAN_COUNT == 0`, there is no prior execution to reference. Display a warning but proceed — the planner can still close verification gaps.
|
|
254
|
+
|
|
255
|
+
**Step 4: Gather prior plans for planner context**
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
EXISTING_PLAN_FILES=$(ls "${PHASE_DIR}"/*-SPRINT.md 2>/dev/null | tr '\n' ' ')
|
|
259
|
+
EXISTING_SUMMARY_FILES=$(ls "${PHASE_DIR}"/*-SUMMARY.md 2>/dev/null | tr '\n' ' ')
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
**Step 5: Display banner**
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
266
|
+
rcode ► GAP-CLOSURE PLANNING — Phase {X}
|
|
267
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
268
|
+
|
|
269
|
+
Verification report: {VERIFICATION_FILE}
|
|
270
|
+
Gaps to close: {count(GAP_LIST)}
|
|
271
|
+
Existing plans: {EXISTING_PLAN_COUNT}
|
|
272
|
+
New plan file: {GAP_PLAN_FILENAME}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**Step 6: Skip ahead**
|
|
276
|
+
|
|
277
|
+
Control flow jumps directly to step 8 (Spawn rcode-planner). Steps 4 (CONTEXT.md), 5 (Research), and 5.5 (Validation) are ALL skipped when `GAPS_MODE=true`.
|
|
278
|
+
|
|
279
|
+
Step 8 will consume these variables when filling the planner prompt:
|
|
280
|
+
- `GAP_LIST` — serialized list of gaps (id, title, expected, actual, status)
|
|
281
|
+
- `GAP_PLAN_PATH` — exact output path the planner must write
|
|
282
|
+
- `EXISTING_PLAN_FILES` / `EXISTING_SUMMARY_FILES` — prior phase context
|
|
283
|
+
- `VERIFICATION_FILE` — authoritative source-of-truth
|
|
284
|
+
|
|
285
|
+
After the planner returns, the existing plan-checker / revision loop (step 10 onward) runs unchanged — gap plans are verified just like normal plans.
|
|
286
|
+
|
|
287
|
+
## 4. Load CONTEXT.md
|
|
288
|
+
|
|
289
|
+
**Skip if:** PRD express path was used (CONTEXT.md already created in step 3.5) OR `GAPS_MODE=true` (gap closure is grounded in VERIFICATION.md, not CONTEXT.md).
|
|
290
|
+
|
|
291
|
+
Check `context_path` from init JSON.
|
|
292
|
+
|
|
293
|
+
If `context_path` is not null, display: `Using phase context from: ${context_path}`
|
|
294
|
+
|
|
295
|
+
**If `context_path` is null (no CONTEXT.md exists):**
|
|
296
|
+
|
|
297
|
+
Read discuss mode for context gate label:
|
|
298
|
+
```bash
|
|
299
|
+
DISCUSS_MODE=$(node ".rcode/bin/rcode-tools.cjs" config-get workflow.discuss_mode 2>/dev/null)
|
|
300
|
+
DISCUSS_MODE=${DISCUSS_MODE:-discuss} # config-get exits 0 with empty output when key absent
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
If `TEXT_MODE` is true, present as a plain-text numbered list:
|
|
304
|
+
```
|
|
305
|
+
No CONTEXT.md found for Phase {X}. Plans will use research and requirements only — your design preferences won't be included.
|
|
306
|
+
|
|
307
|
+
1. Continue without context — Plan using research + requirements only
|
|
308
|
+
[If DISCUSS_MODE is "assumptions":]
|
|
309
|
+
2. Gather context (assumptions mode) — Analyze codebase and surface assumptions before planning
|
|
310
|
+
[If DISCUSS_MODE is "discuss" or unset:]
|
|
311
|
+
2. Run discuss-phase first — Capture design decisions before planning
|
|
312
|
+
|
|
313
|
+
Enter number:
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
Otherwise use AskUserQuestion:
|
|
317
|
+
- header: "No context"
|
|
318
|
+
- question: "No CONTEXT.md found for Phase {X}. Plans will use research and requirements only — your design preferences won't be included. Continue or capture context first?"
|
|
319
|
+
- options:
|
|
320
|
+
- "Continue without context" — Plan using research + requirements only
|
|
321
|
+
If `DISCUSS_MODE` is `"assumptions"`:
|
|
322
|
+
- "Gather context (assumptions mode)" — Analyze codebase and surface assumptions before planning
|
|
323
|
+
If `DISCUSS_MODE` is `"discuss"` (or unset):
|
|
324
|
+
- "Run discuss-phase first" — Capture design decisions before planning
|
|
325
|
+
|
|
326
|
+
If "Continue without context": Proceed to step 5.
|
|
327
|
+
If "Run discuss-phase first":
|
|
328
|
+
**IMPORTANT:** Do NOT invoke discuss-phase as a nested Skill/Task call — AskUserQuestion
|
|
329
|
+
does not work correctly in nested subcontexts (#1009). Instead, display the command
|
|
330
|
+
and exit so the user runs it as a top-level command:
|
|
331
|
+
```
|
|
332
|
+
Run this command first, then re-run /rcode-plan {X} ${RCODE_WS}:
|
|
333
|
+
|
|
334
|
+
/rcode-discuss-phase {X} ${RCODE_WS}
|
|
335
|
+
```
|
|
336
|
+
**Exit the sprint-plan workflow. Do not continue.**
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
@.rcode/workflows/plan-research-validation.md
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## 6. Check Existing Plans
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
ls "${PHASE_DIR}"/*-SPRINT.md 2>/dev/null || true
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
**If exists AND `--reviews` flag:** Skip prompt — go straight to replanning (the purpose of `--reviews` is to replan with review feedback).
|
|
349
|
+
|
|
350
|
+
**If exists AND no `--reviews` flag:** Ask the user what they'd like to do. Tailor the message to context — do NOT say "as per the workflow" or expose implementation details. Examples:
|
|
351
|
+
|
|
352
|
+
- If `phase_status` is `complete` or `executed`:
|
|
353
|
+
> "Phase {N} ({name}) already shipped {plan_count} plans and is marked {status}. Do you want to review those plans, add more, or replan from scratch?"
|
|
354
|
+
|
|
355
|
+
- If `phase_status` is `in_progress` or `planned` (or null):
|
|
356
|
+
> "Phase {N} ({name}) already has {plan_count} plan(s). Want to add more, review what's there, or start fresh?"
|
|
357
|
+
|
|
358
|
+
Always offer exactly three numbered options:
|
|
359
|
+
1. Add more plans
|
|
360
|
+
2. View existing plans
|
|
361
|
+
3. Replan from scratch
|
|
362
|
+
|
|
363
|
+
Wait for the user's choice before proceeding. Do not auto-select.
|
|
364
|
+
|
|
365
|
+
**If user picks option 1 (Add more plans) — issue #650:**
|
|
366
|
+
|
|
367
|
+
This is **NOT** a license to hand-write a new SPRINT.md inline. Continue down the
|
|
368
|
+
normal pipeline exactly as if no plans existed yet:
|
|
369
|
+
|
|
370
|
+
1. Proceed to Step 7 (context-paths) and Step 7.5 (Nyquist verification) as normal.
|
|
371
|
+
2. Spawn `rcode-planner` via `@.rcode/workflows/plan-spawn-planner.md` (Step 8). The
|
|
372
|
+
planner subagent is mandatory — the orchestrator must NOT write SPRINT.md
|
|
373
|
+
directly via the `Write` tool. Pass the existing plan list to the planner so
|
|
374
|
+
it picks the next plan number and avoids re-covering shipped tasks.
|
|
375
|
+
3. After the planner returns, run sprint-checker (Step 10) the same as a
|
|
376
|
+
first-time plan. The "PLANNED ✓" banner is gated on a passing CHECK.md.
|
|
377
|
+
|
|
378
|
+
A run that emits a SPRINT.md without a corresponding planner Task() invocation
|
|
379
|
+
in the same turn is a malfunction — see issue #650. Stop and report instead of
|
|
380
|
+
shipping a hand-rolled plan.
|
|
381
|
+
|
|
382
|
+
**If user picks option 3 (Replan from scratch):**
|
|
383
|
+
|
|
384
|
+
Same as option 1, but pass the existing plans to the planner with a `replace:
|
|
385
|
+
true` directive. Existing PLAN.md files are renamed to `*-SUPERSEDED.md` (do
|
|
386
|
+
not delete) before the planner writes the new ones. Subagent invocation is
|
|
387
|
+
still mandatory.
|
|
388
|
+
|
|
389
|
+
**If user picks option 2 (View existing plans):**
|
|
390
|
+
|
|
391
|
+
Display a sprint summary table (sprint id → one-line goal).
|
|
392
|
+
|
|
393
|
+
Then run a **best-effort codebase overlap check** before showing the execute prompt — Closes #596.
|
|
394
|
+
|
|
395
|
+
**This check is always informational. It never blocks, never errors, never fails the workflow.** If any step below cannot complete for any reason, skip it silently and proceed straight to the execute prompt.
|
|
396
|
+
|
|
397
|
+
1. Read the SPRINT.md files for this phase (they are already on disk — no tool calls needed beyond `Read`).
|
|
398
|
+
2. From each sprint's `files_modified:` frontmatter list, note which paths already exist on disk vs. which are new.
|
|
399
|
+
3. Separately, look at the sprint *goals* and compare against modules/components the codebase already has. Use your knowledge from any files already read this session; do NOT spawn new reads just for this check.
|
|
400
|
+
4. Report what you found — one compact block:
|
|
401
|
+
|
|
402
|
+
```
|
|
403
|
+
Codebase overlap check (best-effort):
|
|
404
|
+
✓ N files already exist — plans will extend them
|
|
405
|
+
+ M files are new — will be created
|
|
406
|
+
⚠ Possible overlap: [file A] in the codebase may already cover [sprint X goal] — worth checking before executing
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
If nothing notable: one line — `No obvious conflicts detected.`
|
|
410
|
+
|
|
411
|
+
**Hard rules (dead-ends — nothing here can cause failure):**
|
|
412
|
+
- If a SPRINT.md can't be read → skip it, don't error
|
|
413
|
+
- If files_modified is empty or absent → skip the file check, move on
|
|
414
|
+
- If you're uncertain whether an overlap is real → don't mention it (false positives are noise)
|
|
415
|
+
- If the whole check produces nothing → omit the block entirely, go straight to execute prompt
|
|
416
|
+
- **Never ask a follow-up question about the overlap** — state it and move on
|
|
417
|
+
- **Never refuse to show the execute prompt** because of an overlap finding
|
|
418
|
+
|
|
419
|
+
Only after showing overlap results (or skipping them), show the execute prompt.
|
|
420
|
+
|
|
421
|
+
## 7. Use Context Paths from INIT
|
|
422
|
+
|
|
423
|
+
Extract from INIT JSON:
|
|
424
|
+
|
|
425
|
+
```bash
|
|
426
|
+
_rcode_field() { node -e "const o=JSON.parse(process.argv[1]); const v=o[process.argv[2]]; process.stdout.write(v==null?'':String(v))" "$1" "$2"; }
|
|
427
|
+
STATE_PATH=$(_rcode_field "$INIT" state_path)
|
|
428
|
+
ROADMAP_PATH=$(_rcode_field "$INIT" roadmap_path)
|
|
429
|
+
REQUIREMENTS_PATH=$(_rcode_field "$INIT" requirements_path)
|
|
430
|
+
RESEARCH_PATH=$(_rcode_field "$INIT" research_path)
|
|
431
|
+
VERIFICATION_PATH=$(_rcode_field "$INIT" verification_path)
|
|
432
|
+
UAT_PATH=$(_rcode_field "$INIT" uat_path)
|
|
433
|
+
CONTEXT_PATH=$(_rcode_field "$INIT" context_path)
|
|
434
|
+
REVIEWS_PATH=$(_rcode_field "$INIT" reviews_path)
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
## 7.5. Verify Nyquist Artifacts
|
|
438
|
+
|
|
439
|
+
Skip if `nyquist_validation_enabled` is false OR `research_enabled` is false.
|
|
440
|
+
|
|
441
|
+
Also skip if all of the following are true:
|
|
442
|
+
- `research_enabled` is false
|
|
443
|
+
- `has_research` is false
|
|
444
|
+
- no `--research` flag was provided
|
|
445
|
+
|
|
446
|
+
In that no-research path, Nyquist artifacts are **not required** for this run.
|
|
447
|
+
|
|
448
|
+
```bash
|
|
449
|
+
VALIDATION_EXISTS=$(ls "${PHASE_DIR}"/*-VALIDATION.md 2>/dev/null | head -1)
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
If missing and Nyquist is still enabled/applicable — ask user:
|
|
453
|
+
1. Re-run: `/rcode-plan {PHASE} --research ${RCODE_WS}`
|
|
454
|
+
2. Disable Nyquist with the exact command:
|
|
455
|
+
`node ".rcode/bin/rcode-tools.cjs" config-set workflow.nyquist_validation false`
|
|
456
|
+
3. Continue anyway (plans fail Dimension 8)
|
|
457
|
+
|
|
458
|
+
Proceed to Step 8 only if user selects 2 or 3.
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
@.rcode/workflows/plan-spawn-planner.md
|
|
462
|
+
|
|
463
|
+
## 8.5. File-Ownership & Conflict-Avoidance
|
|
464
|
+
|
|
465
|
+
After the planner returns SPRINT.md files, run these checks before advancing to step 9.
|
|
466
|
+
These rules were added after overnight parallel builds exposed silent merge-time data loss
|
|
467
|
+
(calorie-calculator-ai, 2026-05-26). The wave-overlap CLI check in step 12.5 catches
|
|
468
|
+
same-wave/same-file issues mechanically; this step catches plan-level ownership gaps earlier.
|
|
469
|
+
|
|
470
|
+
**Step 1 — Build the cross-sprint file manifest.**
|
|
471
|
+
|
|
472
|
+
Read each SPRINT.md produced this run and collect its `files_modified:` frontmatter list.
|
|
473
|
+
Produce a de-duplicated map: `file → [sprint_ids that touch it]`.
|
|
474
|
+
|
|
475
|
+
```bash
|
|
476
|
+
# Quick grep of frontmatter to build the manifest
|
|
477
|
+
grep -A 50 "^files_modified:" "${PHASE_DIR}"/*-SPRINT.md 2>/dev/null
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
**Step 2 — Flag collisions.**
|
|
481
|
+
|
|
482
|
+
For each file that appears in 2+ sprint lists:
|
|
483
|
+
|
|
484
|
+
| Type | Rule |
|
|
485
|
+
|------|------|
|
|
486
|
+
| Two sprints **create** the same file | Plan defect — merge tasks or sequence; only one sprint may create a file |
|
|
487
|
+
| Two same-wave sprints **modify** the same file | Later sprint MUST have `sequential: true` + `sequential_after:` in frontmatter |
|
|
488
|
+
| An aggregator file touched by multiple sprints | Each sprint's `<action>` must use append-only `Edit`, not `Write` |
|
|
489
|
+
|
|
490
|
+
Aggregator patterns (known high-collision targets):
|
|
491
|
+
- `**/index.ts`, `**/index.tsx` (barrel exports)
|
|
492
|
+
- `**/store/index.ts`, `**/store/index.js`
|
|
493
|
+
- `**/types/index.ts`, `**/types.ts`
|
|
494
|
+
- `main.py`, `app.py`, `router/__init__.py`, `**/__init__.py`
|
|
495
|
+
- `package.json` (scripts / deps blocks)
|
|
496
|
+
|
|
497
|
+
**Step 3 — Verify-command accuracy.**
|
|
498
|
+
|
|
499
|
+
Scan every `<verify><automated>` block for raw tool invocations (`tsc --noEmit`, `eslint .`,
|
|
500
|
+
`jest`, `vitest`). If found, check `package.json` scripts and replace with the `pnpm run <script>`
|
|
501
|
+
equivalent. Mismatch example from overnight build: plan wrote `tsc --noEmit` but the project's
|
|
502
|
+
script was named `type-check`.
|
|
503
|
+
|
|
504
|
+
**Step 4 — Report and gate.**
|
|
505
|
+
|
|
506
|
+
If any creation collision found → **BLOCK plan acceptance**. Edit the colliding sprint to remove
|
|
507
|
+
the duplicate creation task (have the second sprint import/extend from the first sprint's output).
|
|
508
|
+
|
|
509
|
+
If any modify-collision found in the same wave → edit the later sprint's frontmatter immediately:
|
|
510
|
+
```yaml
|
|
511
|
+
sequential: true
|
|
512
|
+
sequential_after: <earlier_sprint_id>
|
|
513
|
+
conflicting_files: [<shared_files...>]
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
Display a summary:
|
|
517
|
+
```
|
|
518
|
+
File-Ownership Check:
|
|
519
|
+
✓ N files with single owner
|
|
520
|
+
⚠ M aggregator files — append-only instructions verified
|
|
521
|
+
✗ K creation collisions (blocked — fixed inline)
|
|
522
|
+
~ J sequential flags added
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
If no issues: `File-Ownership Check: ✓ no collisions.`
|
|
526
|
+
|
|
527
|
+
**This check is informational for warnings and blocking for creation collisions.**
|
|
528
|
+
It never silently passes a plan where two sprints create the same file.
|
|
529
|
+
|
|
530
|
+
## 9. Handle Planner Return
|
|
531
|
+
|
|
532
|
+
- **`## PLANNING COMPLETE`:** Display plan count. If `--skip-verify` or `plan_checker_enabled` is false (from init): skip to step 13. Otherwise: step 10.
|
|
533
|
+
- **`## PHASE SPLIT RECOMMENDED`:** The planner determined the phase is too complex to implement all user decisions without simplifying them. Handle in step 9b.
|
|
534
|
+
- **`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation (step 12)
|
|
535
|
+
- **`## PLANNING INCONCLUSIVE`:** Show attempts, offer: Add context / Retry / Manual
|
|
536
|
+
|
|
537
|
+
**Sprint count guard (token cost protection — closes #584):**
|
|
538
|
+
|
|
539
|
+
After planner returns `## PLANNING COMPLETE`, immediately count sprint files:
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
MAX_SPRINTS=$($TOOL config-get workflow.max_sprints_per_phase 2>/dev/null)
|
|
543
|
+
MAX_SPRINTS=${MAX_SPRINTS:-4} # config-get exits 0 with empty output when key absent
|
|
544
|
+
SPRINT_COUNT=$(find "${PHASE_DIR}" -maxdepth 1 -name "*-SPRINT.md" | wc -l | tr -d ' ')
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
If `SPRINT_COUNT > MAX_SPRINTS`:
|
|
548
|
+
|
|
549
|
+
```
|
|
550
|
+
⚠ Phase {N}: Planner created {SPRINT_COUNT} sprint files (limit: {MAX_SPRINTS}).
|
|
551
|
+
This phase is too large — the sprint-checker will be expensive and revision
|
|
552
|
+
loops will multiply the cost.
|
|
553
|
+
|
|
554
|
+
Recommended: split this phase into two using /rcode-plan --split {N}
|
|
555
|
+
|
|
556
|
+
Options:
|
|
557
|
+
1. Split phase now (recommended)
|
|
558
|
+
2. Continue anyway (accept higher token cost)
|
|
559
|
+
3. Re-plan with explicit 4-sprint limit
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
In `mode: yolo` / autonomous: auto-select option 3 (re-plan with limit). Do not halt or ask.
|
|
563
|
+
|
|
564
|
+
Re-plan prompt appended: `"IMPORTANT: Create at most {MAX_SPRINTS} SPRINT.md files. Merge smaller tasks into the nearest related sprint instead of creating new ones."`
|
|
565
|
+
|
|
566
|
+
## 9b. Handle Phase Split Recommendation
|
|
567
|
+
|
|
568
|
+
When the planner returns `## PHASE SPLIT RECOMMENDED`, it means the phase has too many decisions to implement at full fidelity within the plan budget. The planner proposes groupings.
|
|
569
|
+
|
|
570
|
+
**Extract from planner return:**
|
|
571
|
+
- Proposed sub-phases (e.g., "17a: processing core (D-01 to D-19)", "17b: billing + config UX (D-20 to D-27)")
|
|
572
|
+
- Which D-XX decisions go in each sub-phase
|
|
573
|
+
- Why the split is necessary (decision count, complexity estimate)
|
|
574
|
+
|
|
575
|
+
**Present to user:**
|
|
576
|
+
```
|
|
577
|
+
## Phase {X} is too complex for full-fidelity implementation
|
|
578
|
+
|
|
579
|
+
The planner found {N} decisions that cannot all be implemented without
|
|
580
|
+
simplifying some. Instead of reducing your decisions, we recommend splitting:
|
|
581
|
+
|
|
582
|
+
**Option 1: Split into sub-phases**
|
|
583
|
+
- Phase {X}a: {name} — {D-XX to D-YY} ({N} decisions)
|
|
584
|
+
- Phase {X}b: {name} — {D-XX to D-YY} ({M} decisions)
|
|
585
|
+
|
|
586
|
+
**Option 2: Proceed anyway** (planner will attempt all, quality may degrade)
|
|
587
|
+
|
|
588
|
+
**Option 3: Prioritize** — you choose which decisions to implement now,
|
|
589
|
+
rest become a follow-up phase
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
Use AskUserQuestion with these 3 options.
|
|
593
|
+
|
|
594
|
+
**If "Split":** Use `/rcode-insert-phase` to create the sub-phases, then replan each.
|
|
595
|
+
**If "Proceed":** Return to planner with instruction to attempt all decisions at full fidelity, accepting more plans/tasks.
|
|
596
|
+
**If "Prioritize":** Use AskUserQuestion (multiSelect) to let user pick which D-XX are "now" vs "later". Create CONTEXT.md for each sub-phase with the selected decisions.
|
|
597
|
+
|
|
598
|
+
## 10. Spawn rcode-sprint-checker Agent
|
|
599
|
+
|
|
600
|
+
Display banner:
|
|
601
|
+
```
|
|
602
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
603
|
+
rcode ► VERIFYING PLANS
|
|
604
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
605
|
+
|
|
606
|
+
◆ Spawning plan checker...
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
Checker prompt:
|
|
610
|
+
|
|
611
|
+
```markdown
|
|
612
|
+
<verification_context>
|
|
613
|
+
**Phase:** {phase_number}
|
|
614
|
+
**Phase Goal:** {goal from ROADMAP}
|
|
615
|
+
|
|
616
|
+
<files_to_read>
|
|
617
|
+
- {PHASE_DIR}/*-SPRINT.md (Plans to verify)
|
|
618
|
+
- {roadmap_path} (Roadmap)
|
|
619
|
+
- {requirements_path} (Requirements)
|
|
620
|
+
- {context_path} (USER DECISIONS from /rcode-discuss-phase)
|
|
621
|
+
- {research_path} (Technical Research — includes Validation Architecture)
|
|
622
|
+
</files_to_read>
|
|
623
|
+
|
|
624
|
+
${AGENT_SKILLS_CHECKER}
|
|
625
|
+
|
|
626
|
+
**Phase requirement IDs (MUST ALL be covered):** {phase_req_ids}
|
|
627
|
+
|
|
628
|
+
**Project instructions:** Read ./CLAUDE.md if exists — verify plans honor project guidelines
|
|
629
|
+
**Project skills:** Check .claude/skills/ or .agents/skills/ directory (if either exists) — verify plans account for project skill rules
|
|
630
|
+
</verification_context>
|
|
631
|
+
|
|
632
|
+
<expected_output>
|
|
633
|
+
- ## VERIFICATION PASSED — all checks pass
|
|
634
|
+
- ## ISSUES FOUND — structured issue list
|
|
635
|
+
</expected_output>
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
```
|
|
639
|
+
Task(
|
|
640
|
+
prompt=checker_prompt,
|
|
641
|
+
subagent_type="rcode-sprint-checker",
|
|
642
|
+
model="{checker_model}",
|
|
643
|
+
description="Verify Phase {phase} plans"
|
|
644
|
+
)
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
## 11. Handle Checker Return
|
|
648
|
+
|
|
649
|
+
- **`## VERIFICATION PASSED`:** Display confirmation, proceed to step 13.
|
|
650
|
+
- **`## ISSUES FOUND`:** Display issues, check iteration count, proceed to step 12.
|
|
651
|
+
|
|
652
|
+
**Thinking partner for architectural tradeoffs (conditional):**
|
|
653
|
+
If `features.thinking_partner` is enabled, scan the checker's issues for architectural tradeoff keywords
|
|
654
|
+
("architecture", "approach", "strategy", "pattern", "vs", "alternative"). If found:
|
|
655
|
+
|
|
656
|
+
```
|
|
657
|
+
The sprint-checker flagged an architectural decision point:
|
|
658
|
+
{issue description}
|
|
659
|
+
|
|
660
|
+
Brief analysis:
|
|
661
|
+
- Option A: {approach_from_plan} — {pros/cons}
|
|
662
|
+
- Option B: {alternative_approach} — {pros/cons}
|
|
663
|
+
- Recommendation: {choice} aligned with {phase_goal}
|
|
664
|
+
|
|
665
|
+
Apply this to the revision? [Yes] / [No, I'll decide]
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
If yes: include the recommendation in the revision prompt. If no: proceed to revision loop as normal.
|
|
669
|
+
If thinking_partner disabled: skip this block entirely.
|
|
670
|
+
|
|
671
|
+
## 12. Revision Loop (Max 3 Iterations, 1 in autonomous/yolo mode)
|
|
672
|
+
|
|
673
|
+
**Mode-based iteration cap (token cost protection — closes #585):**
|
|
674
|
+
|
|
675
|
+
```bash
|
|
676
|
+
MAX_ITERATIONS=$($TOOL config-get workflow.max_checker_iterations 2>/dev/null || echo "")
|
|
677
|
+
if [ -z "$MAX_ITERATIONS" ]; then
|
|
678
|
+
# Default: 1 in yolo/autonomous, 3 in guided
|
|
679
|
+
[ "$MODE" = "yolo" ] || [ -n "$AUTONOMOUS" ] && MAX_ITERATIONS=1 || MAX_ITERATIONS=3
|
|
680
|
+
fi
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
Track `iteration_count` (starts at 1 after initial plan + check).
|
|
684
|
+
Track `prev_issue_count` (initialized to `Infinity` before the loop begins).
|
|
685
|
+
Track `stall_reentry_count` (starts at 0; incremented each time "Adjust approach" re-enters step 8).
|
|
686
|
+
|
|
687
|
+
**If iteration_count < MAX_ITERATIONS:**
|
|
688
|
+
|
|
689
|
+
**Sprint-checker malfunction guard (BLOCKER-class — added in v3.1.0 after #440):**
|
|
690
|
+
|
|
691
|
+
Before parsing issues, verify the checker actually invoked tools. The checker MUST exhibit at least one of these evidence markers in its return:
|
|
692
|
+
|
|
693
|
+
- A YAML `issues:` block (even an empty one — `issues: []`)
|
|
694
|
+
- A YAML `verified_files:` block listing files it read
|
|
695
|
+
- At least one `path:` field in any block (e.g. `path: src/components/Foo.tsx:42`)
|
|
696
|
+
- A summary line of the form `Verified N of M files` or `Checked N symbols`
|
|
697
|
+
|
|
698
|
+
If NONE of these evidence markers are present, the checker malfunctioned (returned narrative without invoking tools — see #440). BLOCK execution:
|
|
699
|
+
|
|
700
|
+
```
|
|
701
|
+
Display: "Sprint-checker returned without evidence of tool use — likely
|
|
702
|
+
malfunctioned (cf. issue #440). Refusing to advance the plan
|
|
703
|
+
on unverified output. Re-run /rcode-plan or inspect the agent."
|
|
704
|
+
Halt the workflow with a non-zero exit signal.
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
Do NOT treat empty / narrative-only checker output as "plan approved". An empty checker output is a malfunction, not a pass.
|
|
708
|
+
|
|
709
|
+
Parse issue count from checker return: count BLOCKER + WARNING entries in the YAML issues block (structured output from rcode-sprint-checker). If the checker's return contains a populated YAML issues block with `issues: []` (i.e., the plan was approved with no issues AFTER actual checking), treat `issue_count` as 0 and skip the stall check — the plan passed. Proceed to step 13.
|
|
710
|
+
|
|
711
|
+
Display: `Revision iteration {N}/3 -- {blocker_count} blockers, {warning_count} warnings`
|
|
712
|
+
|
|
713
|
+
**Stall detection:** If `issue_count >= prev_issue_count`:
|
|
714
|
+
Display: `Revision loop stalled — issue count not decreasing ({issue_count} issues remain after {N} iterations)`
|
|
715
|
+
|
|
716
|
+
**If `stall_reentry_count < 2`:**
|
|
717
|
+
Ask user:
|
|
718
|
+
Question: "Issues remain after {N} revision attempts with no progress. Proceed with current output?"
|
|
719
|
+
Options: "Proceed anyway" | "Adjust approach"
|
|
720
|
+
If "Proceed anyway": accept current plans and continue to step 13.
|
|
721
|
+
If "Adjust approach": increment `stall_reentry_count`, open freeform discussion, then re-enter step 8 (full replanning). Note: re-entry resets `iteration_count` and `prev_issue_count` but `stall_reentry_count` persists across re-entries and is capped at 2.
|
|
722
|
+
|
|
723
|
+
**If `stall_reentry_count >= 2`:**
|
|
724
|
+
Display: `Stall persists after 2 re-planning attempts. The following issues could not be resolved automatically:`
|
|
725
|
+
List the remaining issues from the checker.
|
|
726
|
+
Suggest: "Consider resolving these issues manually or running `/rcode-debug` to investigate root causes."
|
|
727
|
+
Options: "Proceed anyway" | "Abandon"
|
|
728
|
+
If "Proceed anyway": accept current plans and continue to step 13.
|
|
729
|
+
If "Abandon": stop workflow.
|
|
730
|
+
|
|
731
|
+
Set `prev_issue_count = issue_count`.
|
|
732
|
+
|
|
733
|
+
Revision prompt:
|
|
734
|
+
|
|
735
|
+
```markdown
|
|
736
|
+
<revision_context>
|
|
737
|
+
**Phase:** {phase_number}
|
|
738
|
+
**Mode:** revision
|
|
739
|
+
|
|
740
|
+
<files_to_read>
|
|
741
|
+
- {PHASE_DIR}/*-SPRINT.md (Existing plans)
|
|
742
|
+
- {context_path} (USER DECISIONS from /rcode-discuss-phase)
|
|
743
|
+
</files_to_read>
|
|
744
|
+
|
|
745
|
+
${AGENT_SKILLS_PLANNER}
|
|
746
|
+
|
|
747
|
+
**Checker issues:** {structured_issues_from_checker}
|
|
748
|
+
</revision_context>
|
|
749
|
+
|
|
750
|
+
<instructions>
|
|
751
|
+
Make targeted updates to address checker issues.
|
|
752
|
+
Do NOT replan from scratch unless issues are fundamental.
|
|
753
|
+
Return what changed.
|
|
754
|
+
</instructions>
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
```
|
|
758
|
+
Task(
|
|
759
|
+
prompt=revision_prompt,
|
|
760
|
+
subagent_type="rcode-planner",
|
|
761
|
+
model="{planner_model}",
|
|
762
|
+
description="Revise Phase {phase} plans"
|
|
763
|
+
)
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
After planner returns -> spawn checker again (step 10), increment iteration_count.
|
|
767
|
+
|
|
768
|
+
**If iteration_count >= 3:**
|
|
769
|
+
|
|
770
|
+
Display: `Max iterations reached. {N} issues remain:` + issue list
|
|
771
|
+
|
|
772
|
+
Offer: 1) Force proceed, 2) Provide guidance and retry, 3) Abandon
|
|
773
|
+
|
|
774
|
+
## 12.5. Wave Parallelism File-Overlap Check (added in v3.1.0 after #442)
|
|
775
|
+
|
|
776
|
+
Before declaring plans ready, validate the wave-parallelism rule the planner declares: **same wave + overlapping `files_modified` = sequential, not parallel**. If two plans share `depends_on` (same wave) and both list the same file in `files_modified`, the planner should have marked the later one `sequential: true`. Catch the cases where it didn't.
|
|
777
|
+
|
|
778
|
+
```bash
|
|
779
|
+
# For every pair of plans (A, B) with the same depends_on:
|
|
780
|
+
# if files_modified(A) ∩ files_modified(B) is non-empty:
|
|
781
|
+
# - the later plan (by sprint id) MUST declare sequential: true
|
|
782
|
+
# - and must list the conflicting files in its frontmatter
|
|
783
|
+
|
|
784
|
+
node ".rcode/bin/rcode-tools.cjs" plan check-wave-overlaps "${PHASE_NUMBER}"
|
|
785
|
+
```
|
|
786
|
+
|
|
787
|
+
The CLI helper returns a JSON report:
|
|
788
|
+
|
|
789
|
+
```json
|
|
790
|
+
{
|
|
791
|
+
"conflicts": [
|
|
792
|
+
{
|
|
793
|
+
"wave": 2,
|
|
794
|
+
"plan_a": "96.2",
|
|
795
|
+
"plan_b": "96.3",
|
|
796
|
+
"shared_files": ["src/components/LeadDetailPanel.tsx", "src/styles/inbox.css"],
|
|
797
|
+
"plan_b_sequential": false
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
**If `conflicts` is non-empty:**
|
|
804
|
+
|
|
805
|
+
1. For each conflict, edit the later plan's SPRINT.md frontmatter to add:
|
|
806
|
+
```yaml
|
|
807
|
+
sequential: true
|
|
808
|
+
sequential_after: <plan_a id>
|
|
809
|
+
conflicting_files: [<shared_files...>]
|
|
810
|
+
```
|
|
811
|
+
2. Recompute waves: the formerly-parallel plan now depends on the earlier one, so its wave is `max(waves of dependencies) + 1`.
|
|
812
|
+
3. Re-run the checker to confirm the updated frontmatter.
|
|
813
|
+
4. Display: `Wave parallelism: {N} conflict(s) auto-corrected to sequential.`
|
|
814
|
+
|
|
815
|
+
**If `conflicts` is empty:** Display `Wave parallelism: ✓ no file-overlap conflicts.` and proceed.
|
|
816
|
+
|
|
817
|
+
This closes the gap from #442 — the rule was stated in `rcode-planner.md` but not enforced. Now it's enforced automatically.
|
|
818
|
+
|
|
819
|
+
## 13. Requirements Coverage Gate
|
|
820
|
+
|
|
821
|
+
After plans pass the checker (or checker is skipped), verify that all phase requirements are covered by at least one plan.
|
|
822
|
+
|
|
823
|
+
**Skip if:** `phase_req_ids` is null or TBD (no requirements mapped to this phase).
|
|
824
|
+
|
|
825
|
+
**Step 1: Extract requirement IDs claimed by plans**
|
|
826
|
+
```bash
|
|
827
|
+
# Collect all requirement IDs from plan frontmatter
|
|
828
|
+
PLAN_REQS=$(grep -h "requirements_addressed\|requirements:" ${PHASE_DIR}/*-SPRINT.md 2>/dev/null | tr -d '[]' | tr ',' '\n' | sed 's/^[[:space:]]*//' | sort -u)
|
|
829
|
+
```
|
|
830
|
+
|
|
831
|
+
**Step 2: Compare against phase requirements from ROADMAP**
|
|
832
|
+
|
|
833
|
+
For each REQ-ID in `phase_req_ids`:
|
|
834
|
+
- If REQ-ID appears in `PLAN_REQS` → covered ✓
|
|
835
|
+
- If REQ-ID does NOT appear in any plan → uncovered ✗
|
|
836
|
+
|
|
837
|
+
**Step 3: Check CONTEXT.md features against plan objectives**
|
|
838
|
+
|
|
839
|
+
Read CONTEXT.md `<decisions>` section. Extract feature/capability names. Check each against plan `<objective>` blocks. Features not mentioned in any plan objective → potentially dropped.
|
|
840
|
+
|
|
841
|
+
**Step 4: Report**
|
|
842
|
+
|
|
843
|
+
If all requirements covered and no dropped features:
|
|
844
|
+
```
|
|
845
|
+
✓ Requirements coverage: {N}/{N} REQ-IDs covered by plans
|
|
846
|
+
```
|
|
847
|
+
→ Proceed to step 14.
|
|
848
|
+
|
|
849
|
+
If gaps found:
|
|
850
|
+
```
|
|
851
|
+
## ⚠ Requirements Coverage Gap
|
|
852
|
+
|
|
853
|
+
{M} of {N} phase requirements are not assigned to any plan:
|
|
854
|
+
|
|
855
|
+
| REQ-ID | Description | Plans |
|
|
856
|
+
|--------|-------------|-------|
|
|
857
|
+
| {id} | {from REQUIREMENTS.md} | None |
|
|
858
|
+
|
|
859
|
+
{K} CONTEXT.md features not found in plan objectives:
|
|
860
|
+
- {feature_name} — described in CONTEXT.md but no plan covers it
|
|
861
|
+
|
|
862
|
+
Options:
|
|
863
|
+
1. Re-plan to include missing requirements (recommended)
|
|
864
|
+
2. Move uncovered requirements to next phase
|
|
865
|
+
3. Proceed anyway — accept coverage gaps
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
If `TEXT_MODE` is true, present as a plain-text numbered list (options already shown in the block above). Otherwise use AskUserQuestion to present the options.
|
|
869
|
+
|
|
870
|
+
## 13b. Record Planning Completion in STATE.md
|
|
871
|
+
|
|
872
|
+
After plans pass all gates, record that planning is complete so STATE.md reflects the new phase status:
|
|
873
|
+
|
|
874
|
+
```bash
|
|
875
|
+
node ".rcode/bin/rcode-tools.cjs" state planned-phase --phase "${PHASE_NUMBER}" --name "${PHASE_NAME}" --plans "${PLAN_COUNT}"
|
|
876
|
+
```
|
|
877
|
+
|
|
878
|
+
This updates STATUS to "Ready to execute", sets the correct plan count, and timestamps Last Activity.
|
|
879
|
+
|
|
880
|
+
## 14. Present Final Status
|
|
881
|
+
|
|
882
|
+
Route to `<offer_next>` OR `auto_advance` depending on flags/config.
|
|
883
|
+
|
|
884
|
+
## 15. Auto-Advance Check
|
|
885
|
+
|
|
886
|
+
Check for auto-advance trigger:
|
|
887
|
+
|
|
888
|
+
1. Parse `--auto` and `--chain` flags from $ARGUMENTS
|
|
889
|
+
2. **Sync chain flag with intent** — if user invoked manually (no `--auto` and no `--chain`), clear the ephemeral chain flag from any previous interrupted `--auto` chain. This does NOT touch `workflow.auto_advance` (the user's persistent settings preference):
|
|
890
|
+
```bash
|
|
891
|
+
if [[ ! "$ARGUMENTS" =~ --auto ]] && [[ ! "$ARGUMENTS" =~ --chain ]]; then
|
|
892
|
+
node ".rcode/bin/rcode-tools.cjs" config-set workflow._auto_chain_active false 2>/dev/null
|
|
893
|
+
fi
|
|
894
|
+
```
|
|
895
|
+
3. Read both the chain flag and user preference:
|
|
896
|
+
```bash
|
|
897
|
+
AUTO_CHAIN=$(node ".rcode/bin/rcode-tools.cjs" config-get workflow._auto_chain_active 2>/dev/null || echo "false")
|
|
898
|
+
AUTO_CFG=$(node ".rcode/bin/rcode-tools.cjs" config-get workflow.auto_advance 2>/dev/null || echo "false")
|
|
899
|
+
```
|
|
900
|
+
|
|
901
|
+
**If `--auto` or `--chain` flag present AND `AUTO_CHAIN` is not true:** Persist chain flag to config (handles direct invocation without prior discuss-phase):
|
|
902
|
+
```bash
|
|
903
|
+
if ([[ "$ARGUMENTS" =~ --auto ]] || [[ "$ARGUMENTS" =~ --chain ]]) && [[ "$AUTO_CHAIN" != "true" ]]; then
|
|
904
|
+
node ".rcode/bin/rcode-tools.cjs" config-set workflow._auto_chain_active true
|
|
905
|
+
fi
|
|
906
|
+
```
|
|
907
|
+
|
|
908
|
+
**If `--auto` or `--chain` flag present OR `AUTO_CHAIN` is true OR `AUTO_CFG` is true:**
|
|
909
|
+
|
|
910
|
+
Display banner:
|
|
911
|
+
```
|
|
912
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
913
|
+
rcode ► AUTO-ADVANCING TO EXECUTE
|
|
914
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
915
|
+
|
|
916
|
+
Plans ready. Launching execute-phase...
|
|
917
|
+
```
|
|
918
|
+
|
|
919
|
+
Launch execute-phase using the Skill tool to avoid nested Task sessions (which cause runtime freezes due to deep agent nesting):
|
|
920
|
+
```
|
|
921
|
+
Skill(skill="rcode-execute", args="${PHASE} --auto --no-transition ${RCODE_WS}")
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
The `--no-transition` flag tells execute-phase to return status after verification instead of chaining further. This keeps the auto-advance chain flat — each phase runs at the same nesting level rather than spawning deeper Task agents.
|
|
925
|
+
|
|
926
|
+
**Handle execute-phase return:**
|
|
927
|
+
- **PHASE COMPLETE** → Display final summary:
|
|
928
|
+
```
|
|
929
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
930
|
+
rcode ► PHASE ${PHASE} COMPLETE ✓
|
|
931
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
932
|
+
|
|
933
|
+
Auto-advance pipeline finished.
|
|
934
|
+
|
|
935
|
+
Next: /rcode-discuss-phase ${NEXT_PHASE} --auto ${RCODE_WS}
|
|
936
|
+
```
|
|
937
|
+
- **GAPS FOUND / VERIFICATION FAILED** → Display result, stop chain:
|
|
938
|
+
```
|
|
939
|
+
Auto-advance stopped: Execution needs review.
|
|
940
|
+
|
|
941
|
+
Review the output above and continue manually:
|
|
942
|
+
/rcode-execute ${PHASE} ${RCODE_WS}
|
|
943
|
+
```
|
|
944
|
+
|
|
945
|
+
**If neither `--auto` nor config enabled:**
|
|
946
|
+
Route to `<offer_next>` (existing behavior).
|
|
947
|
+
|
|
948
|
+
</process>
|
|
949
|
+
|
|
950
|
+
<banner_emission_gate>
|
|
951
|
+
Issue #655 — the success banner is gated on real verification, not vibes.
|
|
952
|
+
Before emitting `PLANNED ✓`, confirm one of these is true:
|
|
953
|
+
|
|
954
|
+
1. A passing CHECK.md exists at `${PHASE_DIR}/*-CHECK.md` from rcode-sprint-checker
|
|
955
|
+
in this run AND its overall verdict is `pass` (or `pass-with-cautions`).
|
|
956
|
+
2. The user has explicitly said "skip verification" / "override" this run AND that
|
|
957
|
+
override is recorded in the offer-next output's `Verification:` field as
|
|
958
|
+
`Passed with override`.
|
|
959
|
+
3. `plan_checker_enabled` is false in config — recorded as `Verification: Skipped
|
|
960
|
+
(config-disabled)`.
|
|
961
|
+
|
|
962
|
+
If none of the three holds (sprint-checker was never spawned, or it returned a
|
|
963
|
+
fail verdict, or its CHECK.md is missing) — DO NOT emit `PLANNED ✓`. Emit:
|
|
964
|
+
|
|
965
|
+
```
|
|
966
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
967
|
+
rcode ► PHASE {X} PLANNED ⚠ (gates skipped)
|
|
968
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
969
|
+
|
|
970
|
+
Plans were written but rcode-sprint-checker did not return a passing
|
|
971
|
+
CHECK.md. Run /rcode-plan {X} --reviews to gate the plans before
|
|
972
|
+
executing, or pass --skip-verify if you accept the risk.
|
|
973
|
+
```
|
|
974
|
+
|
|
975
|
+
The same rule applies to `VERIFIED ✓` (after /rcode-verify-phase) and
|
|
976
|
+
`DONE ✓` (after /rcode-execute) — the success-tick is reserved for
|
|
977
|
+
gate-passed states.
|
|
978
|
+
</banner_emission_gate>
|
|
979
|
+
|
|
980
|
+
<offer_next>
|
|
981
|
+
Output this markdown directly (not as a code block):
|
|
982
|
+
|
|
983
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
984
|
+
rcode ► PHASE {X} PLANNED ✓
|
|
985
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
986
|
+
|
|
987
|
+
**Phase {X}: {Name}** — {N} plan(s) in {M} wave(s)
|
|
988
|
+
|
|
989
|
+
| Wave | Plans | What it builds |
|
|
990
|
+
|------|-------|----------------|
|
|
991
|
+
| 1 | 01, 02 | [objectives] |
|
|
992
|
+
| 2 | 03 | [objective] |
|
|
993
|
+
|
|
994
|
+
Research: {Completed | Used existing | Skipped}
|
|
995
|
+
Verification: {Passed | Passed with override | Skipped}
|
|
996
|
+
|
|
997
|
+
───────────────────────────────────────────────────────────────
|
|
998
|
+
|
|
999
|
+
## ▶ Next Up
|
|
1000
|
+
|
|
1001
|
+
**Execute Phase {X}** — run all {N} plans
|
|
1002
|
+
|
|
1003
|
+
/clear then:
|
|
1004
|
+
|
|
1005
|
+
/rcode-execute {X} ${RCODE_WS}
|
|
1006
|
+
|
|
1007
|
+
───────────────────────────────────────────────────────────────
|
|
1008
|
+
|
|
1009
|
+
**Also available:**
|
|
1010
|
+
- cat .planning/phases/{phase-dir}/*-SPRINT.md — review plans
|
|
1011
|
+
- /rcode-plan {X} --research — re-research first
|
|
1012
|
+
- /rcode-review --phase {X} --all — peer review plans with external AIs
|
|
1013
|
+
- /rcode-plan {X} --reviews — replan incorporating review feedback
|
|
1014
|
+
|
|
1015
|
+
───────────────────────────────────────────────────────────────
|
|
1016
|
+
</offer_next>
|
|
1017
|
+
|
|
1018
|
+
<windows_troubleshooting>
|
|
1019
|
+
**Windows users:** If sprint-plan freezes during agent spawning (common on Windows due to
|
|
1020
|
+
stdio deadlocks with MCP servers — see Claude Code issue anthropics/claude-code#28126):
|
|
1021
|
+
|
|
1022
|
+
1. **Force-kill:** Close the terminal (Ctrl+C may not work)
|
|
1023
|
+
2. **Clean up orphaned processes:**
|
|
1024
|
+
```powershell
|
|
1025
|
+
# Kill orphaned node processes from stale MCP servers
|
|
1026
|
+
Get-Process node -ErrorAction SilentlyContinue | Where-Object {$_.StartTime -lt (Get-Date).AddHours(-1)} | Stop-Process -Force
|
|
1027
|
+
```
|
|
1028
|
+
3. **Clean up stale task directories:**
|
|
1029
|
+
```powershell
|
|
1030
|
+
# Remove stale subagent task dirs (Claude Code never cleans these on crash)
|
|
1031
|
+
Remove-Item -Recurse -Force "$env:USERPROFILE\.claude\tasks\*" -ErrorAction SilentlyContinue
|
|
1032
|
+
```
|
|
1033
|
+
4. **Reduce MCP server count:** Temporarily disable non-essential MCP servers in settings.json
|
|
1034
|
+
5. **Retry:** Restart Claude Code and run `/rcode-plan` again
|
|
1035
|
+
|
|
1036
|
+
If freezes persist, try `--skip-research` to reduce the agent chain from 3 to 2 agents:
|
|
1037
|
+
```
|
|
1038
|
+
/rcode-plan N --skip-research
|
|
1039
|
+
```
|
|
1040
|
+
</windows_troubleshooting>
|
|
1041
|
+
|
|
1042
|
+
<success_criteria>
|
|
1043
|
+
- [ ] .planning/ directory validated
|
|
1044
|
+
- [ ] Phase validated against roadmap
|
|
1045
|
+
- [ ] Phase directory created if needed
|
|
1046
|
+
- [ ] CONTEXT.md loaded early (step 4) and passed to ALL agents
|
|
1047
|
+
- [ ] Research completed (unless --skip-research or --gaps or exists)
|
|
1048
|
+
- [ ] rcode-phase-researcher spawned with CONTEXT.md
|
|
1049
|
+
- [ ] Existing plans checked
|
|
1050
|
+
- [ ] rcode-planner spawned with CONTEXT.md + RESEARCH.md
|
|
1051
|
+
- [ ] Plans created (PLANNING COMPLETE or CHECKPOINT handled)
|
|
1052
|
+
- [ ] rcode-sprint-checker spawned with CONTEXT.md
|
|
1053
|
+
- [ ] Verification passed OR user override OR max iterations with user decision
|
|
1054
|
+
- [ ] User sees status between agent spawns
|
|
1055
|
+
- [ ] User knows next steps
|
|
1056
|
+
</success_criteria>
|
|
1057
|
+
|
|
1058
|
+
## Next Up
|
|
1059
|
+
|
|
1060
|
+
- `/rcode-execute` — execute the SPRINT.md plans the planner produced
|
|
1061
|
+
- `/rcode-discuss-phase` — revisit decisions if the sprint-checker flagged grey areas
|
|
1062
|
+
- `/rcode-research-phase` — run deeper research if RESEARCH.md was skipped
|