drt-method 1.0.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 +45 -0
- package/GETTING-STARTED.md +269 -0
- package/README.md +233 -0
- package/drt-method-1.0.0.tgz +0 -0
- package/drt-modules.yaml +1 -0
- package/package.json +51 -0
- package/scripts/install-from-github.ps1 +22 -0
- package/scripts/install-from-github.sh +17 -0
- package/src/core-skills/drt-advanced-elicitation/SKILL.md +142 -0
- package/src/core-skills/drt-advanced-elicitation/methods.csv +72 -0
- package/src/core-skills/drt-brainstorming/SKILL.md +80 -0
- package/src/core-skills/drt-brainstorming/assets/brain-icons.json +166 -0
- package/src/core-skills/drt-brainstorming/assets/brain-methods.csv +109 -0
- package/src/core-skills/drt-brainstorming/assets/brain-selector.html +326 -0
- package/src/core-skills/drt-brainstorming/customize.toml +84 -0
- package/src/core-skills/drt-brainstorming/references/converge.md +24 -0
- package/src/core-skills/drt-brainstorming/references/finalize.md +26 -0
- package/src/core-skills/drt-brainstorming/references/headless.md +54 -0
- package/src/core-skills/drt-brainstorming/references/in-chat-techniques.md +18 -0
- package/src/core-skills/drt-brainstorming/references/mode-autonomous.md +10 -0
- package/src/core-skills/drt-brainstorming/references/mode-facilitator.md +11 -0
- package/src/core-skills/drt-brainstorming/references/mode-partner.md +16 -0
- package/src/core-skills/drt-brainstorming/references/resume.md +5 -0
- package/src/core-skills/drt-brainstorming/scripts/brain.py +740 -0
- package/src/core-skills/drt-customize/SKILL.md +111 -0
- package/src/core-skills/drt-customize/scripts/list_customizable_skills.py +231 -0
- package/src/core-skills/drt-editorial-review-prose/SKILL.md +86 -0
- package/src/core-skills/drt-editorial-review-structure/SKILL.md +179 -0
- package/src/core-skills/drt-forge-idea/SKILL.md +107 -0
- package/src/core-skills/drt-forge-idea/customize.toml +42 -0
- package/src/core-skills/drt-forge-idea/scripts/resolve_personas.py +270 -0
- package/src/core-skills/drt-help/SKILL.md +75 -0
- package/src/core-skills/drt-index-docs/SKILL.md +66 -0
- package/src/core-skills/drt-party-mode/SKILL.md +60 -0
- package/src/core-skills/drt-party-mode/customize.toml +211 -0
- package/src/core-skills/drt-party-mode/references/create-party.md +70 -0
- package/src/core-skills/drt-party-mode/references/mode-agent-team.md +13 -0
- package/src/core-skills/drt-party-mode/references/mode-auto.md +13 -0
- package/src/core-skills/drt-party-mode/references/mode-subagent.md +31 -0
- package/src/core-skills/drt-party-mode/references/party-memory.md +51 -0
- package/src/core-skills/drt-party-mode/scripts/resolve_party.py +272 -0
- package/src/core-skills/drt-review-adversarial-general/SKILL.md +37 -0
- package/src/core-skills/drt-review-edge-case-hunter/SKILL.md +73 -0
- package/src/core-skills/drt-review-edge-case-hunter/references/deletion-check.md +14 -0
- package/src/core-skills/drt-review-verification-gap/SKILL.md +106 -0
- package/src/core-skills/drt-shard-doc/SKILL.md +105 -0
- package/src/core-skills/drt-spec/SKILL.md +160 -0
- package/src/core-skills/drt-spec/assets/headless-schemas.md +33 -0
- package/src/core-skills/drt-spec/assets/spec-template.md +49 -0
- package/src/core-skills/drt-spec/assets/stories-schema.md +44 -0
- package/src/core-skills/drt-spec/customize.toml +53 -0
- package/src/core-skills/module-help.csv +14 -0
- package/src/core-skills/module.yaml +33 -0
- package/src/drt-skills/1-analysis/drt-agent-analyst/SKILL.md +76 -0
- package/src/drt-skills/1-analysis/drt-agent-analyst/customize.toml +90 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/SKILL.md +76 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/customize.toml +81 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/explain-concept.md +20 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/mermaid-gen.md +20 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/validate-doc.md +19 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/write-document.md +20 -0
- package/src/drt-skills/1-analysis/drt-document-project/SKILL.md +62 -0
- package/src/drt-skills/1-analysis/drt-document-project/checklist.md +245 -0
- package/src/drt-skills/1-analysis/drt-document-project/customize.toml +41 -0
- package/src/drt-skills/1-analysis/drt-document-project/documentation-requirements.csv +12 -0
- package/src/drt-skills/1-analysis/drt-document-project/instructions.md +128 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/deep-dive-template.md +345 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/index-template.md +169 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/project-overview-template.md +103 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/project-scan-report-schema.json +160 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/source-tree-template.md +135 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-instructions.md +300 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-workflow.md +34 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-instructions.md +1111 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-workflow.md +34 -0
- package/src/drt-skills/1-analysis/drt-prfaq/SKILL.md +135 -0
- package/src/drt-skills/1-analysis/drt-prfaq/agents/artifact-analyzer.md +60 -0
- package/src/drt-skills/1-analysis/drt-prfaq/agents/web-researcher.md +49 -0
- package/src/drt-skills/1-analysis/drt-prfaq/assets/prfaq-template.md +62 -0
- package/src/drt-skills/1-analysis/drt-prfaq/bmad-manifest.json +16 -0
- package/src/drt-skills/1-analysis/drt-prfaq/customize.toml +41 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/customer-faq.md +55 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/internal-faq.md +51 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/press-release.md +60 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/verdict.md +83 -0
- package/src/drt-skills/1-analysis/drt-product-brief/SKILL.md +91 -0
- package/src/drt-skills/1-analysis/drt-product-brief/assets/brief-template.md +41 -0
- package/src/drt-skills/1-analysis/drt-product-brief/customize.toml +99 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-01-init.md +137 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-05-technical-trends.md +234 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-06-research-synthesis.md +450 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-01-init.md +184 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-02-customer-behavior.md +239 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-03-customer-pain-points.md +251 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-04-customer-decisions.md +261 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-05-competitive-analysis.md +173 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-06-research-completion.md +484 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-01-init.md +137 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-02-technical-overview.md +239 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-05-implementation-research.md +233 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-06-research-synthesis.md +493 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-pm/SKILL.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-pm/customize.toml +75 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/SKILL.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/customize.toml +60 -0
- package/src/drt-skills/2-plan-workflows/drt-create-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-create-prd/customize.toml +41 -0
- package/src/drt-skills/2-plan-workflows/drt-edit-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-edit-prd/customize.toml +42 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/SKILL.md +92 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/headless-schemas.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-template.md +165 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-validation-checklist.md +135 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/validation-report-template.html +325 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/customize.toml +147 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/references/headless.md +39 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/references/validate.md +97 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/SKILL.md +90 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/color-themes.md +9 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-directions.md +9 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-editorial.md +158 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-mobile.md +93 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-shadcn.md +109 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/excalidraw-wireframe.md +19 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-mobile.md +112 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-shadcn.md +133 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/headless-schemas.md +84 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/key-screens.md +29 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/validation-report-template.html +319 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/customize.toml +100 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/creative-tools.md +19 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/design-md-spec.md +50 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/headless.md +37 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/validate.md +115 -0
- package/src/drt-skills/2-plan-workflows/drt-validate-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-validate-prd/customize.toml +42 -0
- package/src/drt-skills/3-solutioning/drt-agent-architect/SKILL.md +76 -0
- package/src/drt-skills/3-solutioning/drt-agent-architect/customize.toml +65 -0
- package/src/drt-skills/3-solutioning/drt-architecture/SKILL.md +85 -0
- package/src/drt-skills/3-solutioning/drt-architecture/assets/spine-template.md +79 -0
- package/src/drt-skills/3-solutioning/drt-architecture/customize.toml +100 -0
- package/src/drt-skills/3-solutioning/drt-architecture/references/headless.md +26 -0
- package/src/drt-skills/3-solutioning/drt-architecture/references/reviewer-gate.md +13 -0
- package/src/drt-skills/3-solutioning/drt-architecture/scripts/lint_spine.py +257 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/SKILL.md +91 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-06-final-assessment.md +132 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/src/drt-skills/3-solutioning/drt-create-architecture/SKILL.md +30 -0
- package/src/drt-skills/3-solutioning/drt-create-architecture/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/SKILL.md +93 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-01-validate-prerequisites.md +263 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-02-design-epics.md +242 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-04-final-validation.md +143 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/templates/epics-template.md +61 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/SKILL.md +81 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/project-context-template.md +21 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-01-discover.md +186 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-02-generate.md +321 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-03-complete.md +284 -0
- package/src/drt-skills/4-implementation/drt-agent-dev/SKILL.md +76 -0
- package/src/drt-skills/4-implementation/drt-agent-dev/customize.toml +95 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/SKILL.md +68 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/generate-trail.md +38 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-01-orientation.md +105 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-04-testing.md +74 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-05-wrapup.md +30 -0
- package/src/drt-skills/4-implementation/drt-code-review/SKILL.md +90 -0
- package/src/drt-skills/4-implementation/drt-code-review/customize.toml +93 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-01-gather-context.md +84 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-02-review.md +32 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-03-triage.md +50 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-04-present.md +132 -0
- package/src/drt-skills/4-implementation/drt-correct-course/SKILL.md +301 -0
- package/src/drt-skills/4-implementation/drt-correct-course/checklist.md +288 -0
- package/src/drt-skills/4-implementation/drt-correct-course/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-create-story/SKILL.md +432 -0
- package/src/drt-skills/4-implementation/drt-create-story/checklist.md +357 -0
- package/src/drt-skills/4-implementation/drt-create-story/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-create-story/discover-inputs.md +88 -0
- package/src/drt-skills/4-implementation/drt-create-story/template.md +49 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/SKILL.md +123 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/compile-epic-context.md +62 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/customize.toml +108 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/spec-template.md +98 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-01-clarify-and-route.md +84 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-02-plan.md +31 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-03-implement.md +42 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-04-review.md +95 -0
- package/src/drt-skills/4-implementation/drt-dev-story/SKILL.md +500 -0
- package/src/drt-skills/4-implementation/drt-dev-story/checklist.md +80 -0
- package/src/drt-skills/4-implementation/drt-dev-story/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-implement-task/SKILL.md +101 -0
- package/src/drt-skills/4-implementation/drt-implement-task/assets/task-spec-template.md +60 -0
- package/src/drt-skills/4-implementation/drt-implement-task/customize.toml +17 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-01-gather-intent.md +42 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-02-plan-and-approve.md +43 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-03-confirm-dependencies.md +38 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-04-implement.md +42 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-05-qc-test.md +31 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-06-quality-review.md +30 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-07-fix-findings.md +33 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-08-complete.md +35 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/SKILL.md +176 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/checklist.md +33 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/SKILL.md +13 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/compile-epic-context.md +62 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/customize.toml +83 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/render.js +206 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/spec-template.md +89 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-01-clarify-and-route.md +103 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-02-plan.md +47 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-03-implement.md +45 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-04-review.md +55 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-05-present.md +78 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-oneshot.md +78 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/sync-sprint-status.md +19 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/workflow.md +85 -0
- package/src/drt-skills/4-implementation/drt-retrospective/SKILL.md +1527 -0
- package/src/drt-skills/4-implementation/drt-retrospective/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/SKILL.md +319 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/checklist.md +34 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/sprint-status-template.yaml +69 -0
- package/src/drt-skills/4-implementation/drt-sprint-status/SKILL.md +311 -0
- package/src/drt-skills/4-implementation/drt-sprint-status/customize.toml +41 -0
- package/src/drt-skills/module-help.csv +32 -0
- package/src/drt-skills/module.yaml +95 -0
- package/src/scripts/lib/load-toml.js +43 -0
- package/src/scripts/lib/merge-utils.js +89 -0
- package/src/scripts/memlog.js +184 -0
- package/src/scripts/package.json +7 -0
- package/src/scripts/resolve-config.js +56 -0
- package/src/scripts/resolve-customization.js +77 -0
- package/tools/installer/cli-utils.js +53 -0
- package/tools/installer/commands/install.js +149 -0
- package/tools/installer/commands/status.js +65 -0
- package/tools/installer/commands/uninstall.js +167 -0
- package/tools/installer/core/config.js +73 -0
- package/tools/installer/core/existing-install.js +121 -0
- package/tools/installer/core/install-paths.js +132 -0
- package/tools/installer/core/installer.js +1762 -0
- package/tools/installer/core/legacy-warnings.js +151 -0
- package/tools/installer/core/manifest-generator.js +859 -0
- package/tools/installer/core/manifest.js +433 -0
- package/tools/installer/core/uv-check.js +97 -0
- package/tools/installer/core/wsl-node-check.js +109 -0
- package/tools/installer/drt-cli.js +104 -0
- package/tools/installer/file-ops.js +204 -0
- package/tools/installer/fs-native.js +116 -0
- package/tools/installer/ide/_config-driven.js +972 -0
- package/tools/installer/ide/manager.js +324 -0
- package/tools/installer/ide/platform-codes.js +80 -0
- package/tools/installer/ide/platform-codes.yaml +343 -0
- package/tools/installer/ide/shared/installed-skills.js +50 -0
- package/tools/installer/ide/shared/path-utils.js +217 -0
- package/tools/installer/ide/shared/skill-manifest.js +57 -0
- package/tools/installer/install-messages.yaml +29 -0
- package/tools/installer/list-options.js +210 -0
- package/tools/installer/message-loader.js +83 -0
- package/tools/installer/modules/channel-plan.js +203 -0
- package/tools/installer/modules/channel-resolver.js +241 -0
- package/tools/installer/modules/custom-module-manager.js +918 -0
- package/tools/installer/modules/external-manager.js +667 -0
- package/tools/installer/modules/module-help-schema.js +13 -0
- package/tools/installer/modules/official-modules.js +2257 -0
- package/tools/installer/modules/plugin-resolver.js +398 -0
- package/tools/installer/modules/version-resolver.js +336 -0
- package/tools/installer/project-root.js +224 -0
- package/tools/installer/prompts.js +852 -0
- package/tools/installer/set-overrides.js +330 -0
- package/tools/installer/ui.js +2090 -0
- package/tools/installer/yaml-format.js +245 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
diff_output: '' # set at runtime
|
|
3
|
+
spec_file: '' # set at runtime (path or empty)
|
|
4
|
+
review_mode: '' # set at runtime: "full" or "no-spec"
|
|
5
|
+
story_key: '' # set at runtime when discovered from sprint status
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Step 1: Gather Context
|
|
9
|
+
|
|
10
|
+
## RULES
|
|
11
|
+
|
|
12
|
+
- YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
13
|
+
- The prompt that triggered this workflow IS the intent — not a hint.
|
|
14
|
+
- Do not modify any files. This step is read-only.
|
|
15
|
+
|
|
16
|
+
## INSTRUCTIONS
|
|
17
|
+
|
|
18
|
+
1. **Find the review target.** The conversation context before this skill was triggered IS your starting point — not a blank slate. Check in this order — stop as soon as the review target is identified:
|
|
19
|
+
|
|
20
|
+
**Tier 1 — Explicit argument.**
|
|
21
|
+
Did the user pass a PR, commit SHA, branch, spec file, or diff source this message?
|
|
22
|
+
- PR reference → resolve to branch/commit via `gh pr view`. If resolution fails, ask for a SHA or branch.
|
|
23
|
+
- Commit or branch → use directly.
|
|
24
|
+
- Spec file → set `{spec_file}` to the provided path. Check its frontmatter for `baseline_commit`. If found, use as diff baseline. If not found, continue the cascade (a spec alone does not identify a diff source).
|
|
25
|
+
- Also scan the argument for diff-mode keywords that narrow the scope:
|
|
26
|
+
- "staged" / "staged changes" → Staged changes only
|
|
27
|
+
- "uncommitted" / "working tree" / "all changes" → Uncommitted changes (staged + unstaged)
|
|
28
|
+
- "branch diff" / "vs main" / "against main" / "compared to <branch>" → Branch diff (extract base branch if mentioned)
|
|
29
|
+
- "commit range" / "last N commits" / "<from-sha>..<to-sha>" → Specific commit range
|
|
30
|
+
- "this diff" / "provided diff" / "paste" → User-provided diff (do not match bare "diff" — it appears in other modes)
|
|
31
|
+
- When multiple keywords match, prefer the most specific (e.g., "branch diff" over bare "diff").
|
|
32
|
+
|
|
33
|
+
**Tier 2 — Recent conversation.**
|
|
34
|
+
Do the last few messages reveal what the user wants to be reviewed? Look for spec paths, commit refs, branches, PRs, or descriptions of a change. Apply the same diff-mode keyword scan and routing as Tier 1.
|
|
35
|
+
|
|
36
|
+
**Tier 3 — Sprint tracking.**
|
|
37
|
+
Look for a sprint status file (`*sprint-status*`) in `{implementation_artifacts}` or `{planning_artifacts}`. If found, scan for stories with status `review`:
|
|
38
|
+
- **Exactly one `review` story:** Set `{story_key}` to the story's key (e.g., `1-2-user-auth`). Suggest it: "I found story <story-id> in `review` status. Would you like to review its changes? [Y] Yes / [N] No, let me choose". If confirmed, use the story context to determine the diff source (branch name derived from story slug, or uncommitted changes). If declined, clear `{story_key}` and fall through.
|
|
39
|
+
- **Multiple `review` stories:** Present them as numbered options alongside a manual choice option. Wait for user selection. If a story is selected, set `{story_key}` and use its context to determine the diff source. If manual choice is selected, clear `{story_key}` and fall through.
|
|
40
|
+
- **None:** Fall through.
|
|
41
|
+
|
|
42
|
+
**Tier 4 — Current git state.**
|
|
43
|
+
If version control is unavailable, skip to Tier 5. Otherwise, check the current branch and HEAD. If the branch is not `main` (or the default branch), confirm: "I see HEAD is `<short-sha>` on `<branch>` — do you want to review this branch's changes?" If confirmed, treat as a branch diff against `main`. If declined, fall through.
|
|
44
|
+
|
|
45
|
+
**Tier 5 — Ask.**
|
|
46
|
+
Fall through to instruction 2.
|
|
47
|
+
|
|
48
|
+
Never ask extra questions beyond what the cascade prescribes. If a tier above already identified the target, skip the remaining tiers and proceed to instruction 3 (construct diff).
|
|
49
|
+
|
|
50
|
+
2. HALT. Ask the user: **What do you want to review?** Present these options:
|
|
51
|
+
- **Uncommitted changes** (staged + unstaged)
|
|
52
|
+
- **Staged changes only**
|
|
53
|
+
- **Branch diff** vs a base branch (ask which base branch)
|
|
54
|
+
- **Specific commit range** (ask for the range)
|
|
55
|
+
- **Provided diff or file list** (user pastes or provides a path)
|
|
56
|
+
|
|
57
|
+
3. Construct `{diff_output}` from the chosen source.
|
|
58
|
+
- For **staged changes only**: run `git diff --cached`.
|
|
59
|
+
- For **uncommitted changes** (staged + unstaged): run `git diff HEAD`.
|
|
60
|
+
- For **branch diff**: verify the base branch exists before running `git diff`. If it does not exist, HALT and ask the user for a valid branch.
|
|
61
|
+
- For **commit range**: verify the range resolves. If it does not, HALT and ask the user for a valid range.
|
|
62
|
+
- For **provided diff**: validate the content is non-empty and parseable as a unified diff. If it is not parseable, HALT and ask the user to provide a valid diff.
|
|
63
|
+
- For **file list**: validate each path exists in the working tree. Construct `{diff_output}` by running `git diff HEAD -- <path1> <path2> ...`. If any paths are untracked (new files not yet staged), use `git diff --no-index /dev/null <path>` to include them. If the diff is empty (files have no uncommitted changes and are not untracked), ask the user whether to review the full file contents or to specify a different baseline.
|
|
64
|
+
- After constructing `{diff_output}`, verify it is non-empty regardless of source type. If empty, HALT and tell the user there is nothing to review.
|
|
65
|
+
|
|
66
|
+
4. **Set the spec context.**
|
|
67
|
+
- If `{spec_file}` is already set (from Tier 1 or Tier 2): verify the file exists and is readable, then set `{review_mode}` = `"full"`.
|
|
68
|
+
- Otherwise, ask the user: **Is there a spec or story file that provides context for these changes?**
|
|
69
|
+
- If yes: set `{spec_file}` to the path provided, verify the file exists and is readable, then set `{review_mode}` = `"full"`.
|
|
70
|
+
- If no: set `{review_mode}` = `"no-spec"`.
|
|
71
|
+
|
|
72
|
+
5. If `{review_mode}` = `"full"` and the file at `{spec_file}` has a `context` field in its frontmatter listing additional docs, load each referenced document. Warn the user about any docs that cannot be found.
|
|
73
|
+
|
|
74
|
+
6. Sanity check: if `{diff_output}` exceeds approximately 3000 lines, warn the user and offer to chunk the review by file group.
|
|
75
|
+
- If the user opts to chunk: agree on the first group, narrow `{diff_output}` accordingly, and list the remaining groups for the user to note for follow-up runs.
|
|
76
|
+
- If the user declines: proceed as-is with the full diff.
|
|
77
|
+
|
|
78
|
+
### CHECKPOINT
|
|
79
|
+
|
|
80
|
+
Present a summary before proceeding: diff stats (files changed, lines added/removed), `{review_mode}`, and loaded spec/context docs (if any). HALT and wait for user confirmation to proceed.
|
|
81
|
+
|
|
82
|
+
## NEXT
|
|
83
|
+
|
|
84
|
+
Read fully and follow `./step-02-review.md`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
failed_layers: '' # set at runtime: comma-separated list of layers that failed or returned empty
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Step 2: Review
|
|
6
|
+
|
|
7
|
+
## RULES
|
|
8
|
+
|
|
9
|
+
- YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
10
|
+
- All review subagents must run at the same model capability as the current session.
|
|
11
|
+
- Run subagents synchronously: launch them together, then wait for all results before continuing.
|
|
12
|
+
|
|
13
|
+
## INSTRUCTIONS
|
|
14
|
+
|
|
15
|
+
1. The review layers are `{workflow.review_layers}`, resolved during activation.
|
|
16
|
+
|
|
17
|
+
2. For each layer in `{workflow.review_layers}`:
|
|
18
|
+
- `instruction` empty or missing → drop the layer silently (an override disabled it).
|
|
19
|
+
- `when` condition present and not satisfied by the current context (`{review_mode}`, `{spec_file}`) → drop the layer and tell the user, e.g. "Acceptance Auditor skipped — no spec file provided."
|
|
20
|
+
- otherwise → the layer is active.
|
|
21
|
+
|
|
22
|
+
If no layer is active, HALT with status `blocked` and blocking condition `no active review layers`.
|
|
23
|
+
|
|
24
|
+
3. Execute all active layers in parallel wherever their execution methods allow: substitute the runtime placeholders (`{diff_output}`, `{spec_file}`) into each layer's `instruction`, then follow it verbatim. If a layer's instruction requires subagents and subagents are not available, generate prompt files in `{implementation_artifacts}` for each such layer and HALT. Ask the user to run each in a separate session (ideally a different LLM) and paste back the findings. When findings are pasted, treat them as those layers' findings and resume from this point.
|
|
25
|
+
|
|
26
|
+
4. **Layer failure handling**: If any layer fails, times out, or returns empty results, append the layer's `name` to `{failed_layers}` (comma-separated) and proceed with findings from the remaining layers.
|
|
27
|
+
|
|
28
|
+
5. Collect all findings from the completed layers, keeping track of each finding's originating layer `id`.
|
|
29
|
+
|
|
30
|
+
## NEXT
|
|
31
|
+
|
|
32
|
+
Read fully and follow `./step-03-triage.md`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
# Step 3: Triage
|
|
5
|
+
|
|
6
|
+
## RULES
|
|
7
|
+
|
|
8
|
+
- YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
9
|
+
|
|
10
|
+
## INSTRUCTIONS
|
|
11
|
+
|
|
12
|
+
1. **Normalize** findings from all layers into a unified list where each finding has:
|
|
13
|
+
- `id` -- sequential integer
|
|
14
|
+
- `source` -- the `id` of the layer that produced the finding (e.g., `blind-hunter`), or merged sources joined with `+` (e.g., `blind-hunter+edge-case-hunter`)
|
|
15
|
+
- `title` -- one-line summary
|
|
16
|
+
- `detail` -- full description
|
|
17
|
+
- `location` -- file and line reference (if available)
|
|
18
|
+
|
|
19
|
+
2. **Deduplicate.** Deduplicate only findings with the same claim and same required action. If two or more findings meet both conditions, merge them into one:
|
|
20
|
+
- Use the most specific finding as the base (prefer findings with a precise location over prose-only findings).
|
|
21
|
+
- Append any unique detail, reasoning, or location references from the other finding(s) into the surviving `detail` field.
|
|
22
|
+
- Set `source` to the merged sources (e.g., `blind-hunter+edge-case-hunter`).
|
|
23
|
+
|
|
24
|
+
3. Then evaluate each remaining finding independently. Do not reject a finding because a related finding was rejected.
|
|
25
|
+
|
|
26
|
+
4. **Read the code before rating.** Before assigning severity, open the source at each finding's location and read enough surrounding code to judge reachability -- call sites, guards, and validation that live outside the diff hunk. Do not rate from the diff hunk alone. Severity reflects the real consequence at a real call site, not the worst theoretical reading.
|
|
27
|
+
|
|
28
|
+
5. **Assign severity** to each finding by consequence for the artifact's main consumer (software user, document reader, etc).
|
|
29
|
+
Disregard any severity assigned by a reviewing subagent. Review subagents operate under by-design information asymmetry and do not have enough context to set final severity for this workflow.
|
|
30
|
+
- `low` -- none or cosmetic
|
|
31
|
+
- `medium` -- tolerable
|
|
32
|
+
- `high` -- intolerable
|
|
33
|
+
|
|
34
|
+
6. **Route** each finding into exactly one triage bucket:
|
|
35
|
+
- **decision_needed** -- There is an ambiguous choice that requires human input. The code cannot be correctly patched without knowing the user's intent. Only possible if `{review_mode}` = `"full"`.
|
|
36
|
+
- **patch** -- Code issue that is fixable without human input. The correct fix is unambiguous.
|
|
37
|
+
- **defer** -- Pre-existing issue not caused by the current change. Real but not actionable now.
|
|
38
|
+
- **dismiss** -- Noise, false positive, or handled elsewhere.
|
|
39
|
+
|
|
40
|
+
If `{review_mode}` = `"no-spec"` and a finding would otherwise be `decision_needed`, reclassify it as `patch` (if the fix is unambiguous) or `defer` (if not).
|
|
41
|
+
|
|
42
|
+
7. **Drop** all `dismiss` findings. Record the dismiss count for the summary.
|
|
43
|
+
|
|
44
|
+
8. If `{failed_layers}` is non-empty, report which layers failed before announcing results. If zero findings remain after dropping dismissed AND `{failed_layers}` is non-empty, warn the user that the review may be incomplete rather than announcing a clean review.
|
|
45
|
+
|
|
46
|
+
9. If zero findings remain after triage (all rejected or none raised): state "✅ Clean review — all layers passed." (Step 3 already warned if any review layers failed via `{failed_layers}`.)
|
|
47
|
+
|
|
48
|
+
## NEXT
|
|
49
|
+
|
|
50
|
+
Read fully and follow `./step-04-present.md`
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
deferred_work_file: '{implementation_artifacts}/deferred-work.md'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Step 4: Present and Act
|
|
6
|
+
|
|
7
|
+
## RULES
|
|
8
|
+
|
|
9
|
+
- YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
10
|
+
- When `{spec_file}` is set, always write findings to the story file before offering action choices.
|
|
11
|
+
- `decision-needed` findings must be resolved before handling `patch` findings.
|
|
12
|
+
|
|
13
|
+
## INSTRUCTIONS
|
|
14
|
+
|
|
15
|
+
### 1. Clean review shortcut
|
|
16
|
+
|
|
17
|
+
If zero findings remain after triage (all dismissed or none raised): state that and proceed to section 6 (Sprint Status Update).
|
|
18
|
+
|
|
19
|
+
### 2. Write findings to the story file
|
|
20
|
+
|
|
21
|
+
If `{spec_file}` exists and contains a Tasks/Subtasks section, append a `### Review Findings` subsection. Write all findings in this order:
|
|
22
|
+
|
|
23
|
+
1. **`decision-needed`** findings (unchecked):
|
|
24
|
+
`- [ ] [Review][Decision] <Title> — <Detail>`
|
|
25
|
+
|
|
26
|
+
2. **`patch`** findings (unchecked):
|
|
27
|
+
`- [ ] [Review][Patch] <Title> [<file>:<line>]`
|
|
28
|
+
|
|
29
|
+
3. **`defer`** findings (checked off, marked deferred):
|
|
30
|
+
`- [x] [Review][Defer] <Title> [<file>:<line>] — deferred, pre-existing`
|
|
31
|
+
|
|
32
|
+
Also append each `defer` finding to `{deferred_work_file}` under a heading `## Deferred from: code review ({date})`. If `{spec_file}` is set, include its basename in the heading (e.g., `code review of story-3.3 (2026-03-18)`). One bullet per finding with description.
|
|
33
|
+
|
|
34
|
+
### 3. Present summary
|
|
35
|
+
|
|
36
|
+
Announce what was written:
|
|
37
|
+
|
|
38
|
+
> **Code review complete.** <D> `decision-needed`, <P> `patch`, <W> `defer`, <R> dismissed as noise.
|
|
39
|
+
|
|
40
|
+
If `{spec_file}` is set, add: `Findings written to the review findings section in {spec_file}.`
|
|
41
|
+
Otherwise add: `Findings are listed above. No story file was provided, so nothing was persisted.`
|
|
42
|
+
|
|
43
|
+
### 4. Resolve decision-needed findings
|
|
44
|
+
|
|
45
|
+
If `decision_needed` findings exist, present each one with its detail and the options available. The user must decide — the correct fix is ambiguous without their input. Walk through each finding (or batch related ones) and get the user's call. Once resolved, each becomes a `patch`, `defer`, or is dismissed.
|
|
46
|
+
|
|
47
|
+
If the user chooses to defer, ask: Quick one-line reason for deferring this item? (helps future reviews): — then append that reason to both the story file bullet and the `{deferred_work_file}` entry.
|
|
48
|
+
|
|
49
|
+
**HALT** — I am waiting for your numbered choice. Reply with only the number. Do not proceed until you select an option.
|
|
50
|
+
|
|
51
|
+
### 5. Handle `patch` findings
|
|
52
|
+
|
|
53
|
+
If `patch` findings exist (including any resolved from step 4), HALT. Ask the user:
|
|
54
|
+
|
|
55
|
+
If `{spec_file}` is set, present all three options:
|
|
56
|
+
|
|
57
|
+
> **How would you like to handle the `<P>` `patch` findings?**
|
|
58
|
+
> 1. **Apply every patch** — fix all of them now, no per-finding confirmation. Defer and decision-needed items are not touched.
|
|
59
|
+
> 2. **Leave as action items** — they are already in the story file
|
|
60
|
+
> 3. **Walk through each patch** — show details for each before deciding
|
|
61
|
+
|
|
62
|
+
If `{spec_file}` is **not** set, present only options 1 and 2 (omit "Leave as action items" — findings were not written to a file):
|
|
63
|
+
|
|
64
|
+
> **How would you like to handle the `<P>` `patch` findings?**
|
|
65
|
+
> 1. **Apply every patch** — fix all of them now, no per-finding confirmation. Defer and decision-needed items are not touched.
|
|
66
|
+
> 2. **Walk through each patch** — show details for each before deciding
|
|
67
|
+
|
|
68
|
+
**HALT** — I am waiting for your numbered choice. Reply with only the number. Do not proceed until you select an option.
|
|
69
|
+
|
|
70
|
+
- **Apply every patch**: Apply every patch finding without per-finding confirmation. Do not modify defer or decision-needed items. After all patches are applied, present a summary of changes made. If `{spec_file}` is set, check off the patch items in the story file (leave defer items as-is).
|
|
71
|
+
- **Leave as action items** (only when `{spec_file}` is set): Done — findings are already written to the story.
|
|
72
|
+
- **Walk through each patch**: Present each finding with full detail, diff context, and suggested fix. After walkthrough, re-offer the applicable options above.
|
|
73
|
+
|
|
74
|
+
**HALT** — I am waiting for your numbered choice. Do not proceed until you select an option.
|
|
75
|
+
|
|
76
|
+
**✅ Code review actions complete**
|
|
77
|
+
|
|
78
|
+
- Decision-needed resolved: <D>
|
|
79
|
+
- Patches handled: <P>
|
|
80
|
+
- Deferred: <W>
|
|
81
|
+
- Dismissed: <R>
|
|
82
|
+
|
|
83
|
+
### 6. Update story status and sync sprint tracking
|
|
84
|
+
|
|
85
|
+
Skip this section if `{spec_file}` is not set.
|
|
86
|
+
|
|
87
|
+
#### Determine new status based on review outcome
|
|
88
|
+
|
|
89
|
+
- If all `decision-needed` and `patch` findings were resolved (fixed or dismissed) AND no unresolved `high`/`medium` findings remain: set `{new_status}` = `done`. Update the story file Status section to `done`.
|
|
90
|
+
- If `patch` findings were left as action items, or unresolved issues remain: set `{new_status}` = `in-progress`. Update the story file Status section to `in-progress`.
|
|
91
|
+
|
|
92
|
+
Save the story file.
|
|
93
|
+
|
|
94
|
+
#### Sync sprint-status.yaml
|
|
95
|
+
|
|
96
|
+
If `{story_key}` is not set, skip this subsection and note that sprint status was not synced because no story key was available.
|
|
97
|
+
|
|
98
|
+
If `{sprint_status}` file exists:
|
|
99
|
+
|
|
100
|
+
1. Load the FULL `{sprint_status}` file.
|
|
101
|
+
2. Find the `development_status` entry matching `{story_key}`.
|
|
102
|
+
3. If found: update `development_status[{story_key}]` to `{new_status}`. Update `last_updated` to current date. Save the file, preserving ALL comments and structure including STATUS DEFINITIONS.
|
|
103
|
+
4. If `{story_key}` not found in sprint status: warn the user that the story file was updated but sprint-status sync failed.
|
|
104
|
+
|
|
105
|
+
If `{sprint_status}` file does not exist, note that story status was updated in the story file only.
|
|
106
|
+
|
|
107
|
+
#### Completion summary
|
|
108
|
+
|
|
109
|
+
> **Review Complete!**
|
|
110
|
+
>
|
|
111
|
+
> **Story Status:** `{new_status}`
|
|
112
|
+
> **Issues Fixed:** <fixed_count>
|
|
113
|
+
> **Action Items Created:** <action_count>
|
|
114
|
+
> **Deferred:** <W>
|
|
115
|
+
> **Dismissed:** <R>
|
|
116
|
+
|
|
117
|
+
### 7. Next steps
|
|
118
|
+
|
|
119
|
+
Present the user with follow-up options:
|
|
120
|
+
|
|
121
|
+
> **What would you like to do next?**
|
|
122
|
+
> 1. **Start the next story** — run `dev-story` to pick up the next `ready-for-dev` story
|
|
123
|
+
> 2. **Re-run code review** — address findings and review again
|
|
124
|
+
> 3. **Done** — end the workflow
|
|
125
|
+
|
|
126
|
+
**HALT** — I am waiting for your choice. Do not proceed until the user selects an option.
|
|
127
|
+
|
|
128
|
+
## On Complete
|
|
129
|
+
|
|
130
|
+
Run: `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow.on_complete`
|
|
131
|
+
|
|
132
|
+
If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting.
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drt-correct-course
|
|
3
|
+
description: 'Manage significant changes during sprint execution. Use when the user says "correct course" or "propose sprint change"'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Correct Course - Sprint Change Management Workflow
|
|
7
|
+
|
|
8
|
+
**Goal:** Manage significant changes during sprint execution by analyzing impact across all project artifacts and producing a structured Sprint Change Proposal.
|
|
9
|
+
|
|
10
|
+
**Your Role:** You are a Developer navigating change management. Analyze the triggering issue, assess impact across PRD, epics, architecture, and UX artifacts, and produce an actionable Sprint Change Proposal with clear handoff.
|
|
11
|
+
|
|
12
|
+
## Conventions
|
|
13
|
+
|
|
14
|
+
- Bare paths (e.g. `checklist.md`) resolve from the skill root.
|
|
15
|
+
- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
|
|
16
|
+
- `{project-root}`-prefixed paths resolve from the project working directory.
|
|
17
|
+
- `{skill-name}` resolves to the skill directory's basename.
|
|
18
|
+
|
|
19
|
+
## On Activation
|
|
20
|
+
|
|
21
|
+
### Step 1: Resolve the Workflow Block
|
|
22
|
+
|
|
23
|
+
Run: `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow`
|
|
24
|
+
|
|
25
|
+
**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
|
|
26
|
+
|
|
27
|
+
1. `{skill-root}/customize.toml` — defaults
|
|
28
|
+
2. `{project-root}/_drt/custom/{skill-name}.toml` — team overrides
|
|
29
|
+
3. `{project-root}/_drt/custom/{skill-name}.user.toml` — personal overrides
|
|
30
|
+
|
|
31
|
+
Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
|
|
32
|
+
|
|
33
|
+
### Step 2: Execute Prepend Steps
|
|
34
|
+
|
|
35
|
+
Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
|
|
36
|
+
|
|
37
|
+
### Step 3: Load Persistent Facts
|
|
38
|
+
|
|
39
|
+
Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.
|
|
40
|
+
|
|
41
|
+
### Step 4: Load Config
|
|
42
|
+
|
|
43
|
+
Load config from `{project-root}/_drt/drt/config.yaml` and resolve:
|
|
44
|
+
|
|
45
|
+
- `project_name`, `user_name`
|
|
46
|
+
- `communication_language`, `document_output_language`
|
|
47
|
+
- `user_skill_level`
|
|
48
|
+
- `implementation_artifacts`
|
|
49
|
+
- `planning_artifacts`
|
|
50
|
+
- `project_knowledge`
|
|
51
|
+
- `date` as system-generated current datetime
|
|
52
|
+
- YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
53
|
+
- Language MUST be tailored to `{user_skill_level}`
|
|
54
|
+
- Generate all documents in `{document_output_language}`
|
|
55
|
+
- DOCUMENT OUTPUT: Updated epics, stories, or PRD sections. Clear, actionable changes. User skill level (`{user_skill_level}`) affects conversation style ONLY, not document updates.
|
|
56
|
+
|
|
57
|
+
### Step 5: Greet the User
|
|
58
|
+
|
|
59
|
+
Greet `{user_name}`, speaking in `{communication_language}`.
|
|
60
|
+
|
|
61
|
+
### Step 6: Execute Append Steps
|
|
62
|
+
|
|
63
|
+
Execute each entry in `{workflow.activation_steps_append}` in order.
|
|
64
|
+
|
|
65
|
+
Activation is complete. If `activation_steps_prepend` or `activation_steps_append` were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
|
|
66
|
+
|
|
67
|
+
## Paths
|
|
68
|
+
|
|
69
|
+
- `default_output_file` = `{planning_artifacts}/sprint-change-proposal-{date}.md`
|
|
70
|
+
|
|
71
|
+
## Input Files
|
|
72
|
+
|
|
73
|
+
| Input | Path | Load Strategy |
|
|
74
|
+
|-------|------|---------------|
|
|
75
|
+
| PRD | `{planning_artifacts}/*prd*.md` (whole) or `{planning_artifacts}/*prd*/*.md` (sharded) | FULL_LOAD |
|
|
76
|
+
| Epics | `{planning_artifacts}/*epic*.md` (whole) or `{planning_artifacts}/*epic*/*.md` (sharded) | FULL_LOAD |
|
|
77
|
+
| Architecture | `{planning_artifacts}/*architecture*.md` (whole) or `{planning_artifacts}/*architecture*/*.md` (sharded) | FULL_LOAD |
|
|
78
|
+
| UX Design | `{planning_artifacts}/*ux*.md` (whole) or `{planning_artifacts}/*ux*/*.md` (sharded) | FULL_LOAD |
|
|
79
|
+
| Spec | `{planning_artifacts}/*spec-*.md` (whole) | FULL_LOAD |
|
|
80
|
+
| Document Project | `{project_knowledge}/index.md` (sharded) | INDEX_GUIDED |
|
|
81
|
+
|
|
82
|
+
## Execution
|
|
83
|
+
|
|
84
|
+
### Document Discovery - Loading Project Artifacts
|
|
85
|
+
|
|
86
|
+
**Strategy**: Course correction needs broad project context to assess change impact accurately. Load all available planning artifacts.
|
|
87
|
+
|
|
88
|
+
**Discovery Process for FULL_LOAD documents (PRD, Epics, Architecture, UX Design, Spec):**
|
|
89
|
+
|
|
90
|
+
1. **Search for whole document first** - Look for files matching the whole-document pattern (e.g., `*prd*.md`, `*epic*.md`, `*architecture*.md`, `*ux*.md`, `*spec-*.md`)
|
|
91
|
+
2. **Check for sharded version** - If whole document not found, look for a directory with `index.md` (e.g., `prd/index.md`, `epics/index.md`)
|
|
92
|
+
3. **If sharded version found**:
|
|
93
|
+
- Read `index.md` to understand the document structure
|
|
94
|
+
- Read ALL section files listed in the index
|
|
95
|
+
- Process the combined content as a single document
|
|
96
|
+
4. **Priority**: If both whole and sharded versions exist, use the whole document
|
|
97
|
+
|
|
98
|
+
**Discovery Process for INDEX_GUIDED documents (Document Project):**
|
|
99
|
+
|
|
100
|
+
1. **Search for index file** - Look for `{project_knowledge}/index.md`
|
|
101
|
+
2. **If found**: Read the index to understand available documentation sections
|
|
102
|
+
3. **Selectively load sections** based on relevance to the change being analyzed — do NOT load everything, only sections that relate to the impacted areas
|
|
103
|
+
4. **This document is optional** — skip if `{project_knowledge}` does not exist (greenfield projects)
|
|
104
|
+
|
|
105
|
+
**Fuzzy matching**: Be flexible with document names — users may use variations like `prd.md`, `bmm-prd.md`, `product-requirements.md`, etc.
|
|
106
|
+
|
|
107
|
+
**Missing documents**: Not all documents may exist. PRD and Epics are essential; Architecture, UX Design, Spec, and Document Project are loaded if available. HALT if PRD or Epics cannot be found.
|
|
108
|
+
|
|
109
|
+
<workflow>
|
|
110
|
+
|
|
111
|
+
<step n="1" goal="Initialize Change Navigation">
|
|
112
|
+
<action>Confirm change trigger and gather user description of the issue</action>
|
|
113
|
+
<action>Ask: "What specific issue or change has been identified that requires navigation?"</action>
|
|
114
|
+
<action>Verify access to project documents:</action>
|
|
115
|
+
- PRD (Product Requirements Document) — required
|
|
116
|
+
- Current Epics and Stories — required
|
|
117
|
+
- Architecture documentation — optional, load if available
|
|
118
|
+
- UI/UX specifications — optional, load if available
|
|
119
|
+
<action>Ask user for mode preference:</action>
|
|
120
|
+
- **Incremental** (recommended): Refine each edit collaboratively
|
|
121
|
+
- **Batch**: Present all changes at once for review
|
|
122
|
+
<action>Store mode selection for use throughout workflow</action>
|
|
123
|
+
|
|
124
|
+
<action if="change trigger is unclear">HALT: "Cannot navigate change without clear understanding of the triggering issue. Please provide specific details about what needs to change and why."</action>
|
|
125
|
+
|
|
126
|
+
<action if="PRD or Epics are unavailable">HALT: "Need access to PRD and Epics to assess change impact. Please ensure these documents are accessible. Architecture and UI/UX will be used if available."</action>
|
|
127
|
+
</step>
|
|
128
|
+
|
|
129
|
+
<step n="2" goal="Execute Change Analysis Checklist">
|
|
130
|
+
<action>Read fully and follow the systematic analysis from: checklist.md</action>
|
|
131
|
+
<action>Work through each checklist section interactively with the user</action>
|
|
132
|
+
<action>Record status for each checklist item:</action>
|
|
133
|
+
- [x] Done - Item completed successfully
|
|
134
|
+
- [N/A] Skip - Item not applicable to this change
|
|
135
|
+
- [!] Action-needed - Item requires attention or follow-up
|
|
136
|
+
<action>Maintain running notes of findings and impacts discovered</action>
|
|
137
|
+
<action>Present checklist progress after each major section</action>
|
|
138
|
+
|
|
139
|
+
<action if="checklist cannot be completed">Identify blocking issues and work with user to resolve before continuing</action>
|
|
140
|
+
</step>
|
|
141
|
+
|
|
142
|
+
<step n="3" goal="Draft Specific Change Proposals">
|
|
143
|
+
<action>Based on checklist findings, create explicit edit proposals for each identified artifact</action>
|
|
144
|
+
|
|
145
|
+
<action>For Story changes:</action>
|
|
146
|
+
|
|
147
|
+
- Show old → new text format
|
|
148
|
+
- Include story ID and section being modified
|
|
149
|
+
- Provide rationale for each change
|
|
150
|
+
- Example format:
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
Story: [STORY-123] User Authentication
|
|
154
|
+
Section: Acceptance Criteria
|
|
155
|
+
|
|
156
|
+
OLD:
|
|
157
|
+
- User can log in with email/password
|
|
158
|
+
|
|
159
|
+
NEW:
|
|
160
|
+
- User can log in with email/password
|
|
161
|
+
- User can enable 2FA via authenticator app
|
|
162
|
+
|
|
163
|
+
Rationale: Security requirement identified during implementation
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
<action>For PRD modifications:</action>
|
|
167
|
+
|
|
168
|
+
- Specify exact sections to update
|
|
169
|
+
- Show current content and proposed changes
|
|
170
|
+
- Explain impact on MVP scope and requirements
|
|
171
|
+
|
|
172
|
+
<action>For Architecture changes:</action>
|
|
173
|
+
|
|
174
|
+
- Identify affected components, patterns, or technology choices
|
|
175
|
+
- Describe diagram updates needed
|
|
176
|
+
- Note any ripple effects on other components
|
|
177
|
+
|
|
178
|
+
<action>For UI/UX specification updates:</action>
|
|
179
|
+
|
|
180
|
+
- Reference specific screens or components
|
|
181
|
+
- Show wireframe or flow changes needed
|
|
182
|
+
- Connect changes to user experience impact
|
|
183
|
+
|
|
184
|
+
<check if="mode is Incremental">
|
|
185
|
+
<action>Present each edit proposal individually</action>
|
|
186
|
+
<ask>Review and refine this change? Options: Approve [a], Edit [e], Skip [s]</ask>
|
|
187
|
+
<action>Iterate on each proposal based on user feedback</action>
|
|
188
|
+
</check>
|
|
189
|
+
|
|
190
|
+
<action if="mode is Batch">Collect all edit proposals and present together at end of step</action>
|
|
191
|
+
|
|
192
|
+
</step>
|
|
193
|
+
|
|
194
|
+
<step n="4" goal="Generate Sprint Change Proposal">
|
|
195
|
+
<action>Compile comprehensive Sprint Change Proposal document with following sections:</action>
|
|
196
|
+
|
|
197
|
+
<action>Section 1: Issue Summary</action>
|
|
198
|
+
|
|
199
|
+
- Clear problem statement describing what triggered the change
|
|
200
|
+
- Context about when/how the issue was discovered
|
|
201
|
+
- Evidence or examples demonstrating the issue
|
|
202
|
+
|
|
203
|
+
<action>Section 2: Impact Analysis</action>
|
|
204
|
+
|
|
205
|
+
- Epic Impact: Which epics are affected and how
|
|
206
|
+
- Story Impact: Current and future stories requiring changes
|
|
207
|
+
- Artifact Conflicts: PRD, Architecture, UI/UX documents needing updates
|
|
208
|
+
- Technical Impact: Code, infrastructure, or deployment implications
|
|
209
|
+
|
|
210
|
+
<action>Section 3: Recommended Approach</action>
|
|
211
|
+
|
|
212
|
+
- Present chosen path forward from checklist evaluation:
|
|
213
|
+
- Direct Adjustment: Modify/add stories within existing plan
|
|
214
|
+
- Potential Rollback: Revert completed work to simplify resolution
|
|
215
|
+
- MVP Review: Reduce scope or modify goals
|
|
216
|
+
- Provide clear rationale for recommendation
|
|
217
|
+
- Include effort estimate, risk assessment, and timeline impact
|
|
218
|
+
|
|
219
|
+
<action>Section 4: Detailed Change Proposals</action>
|
|
220
|
+
|
|
221
|
+
- Include all refined edit proposals from Step 3
|
|
222
|
+
- Group by artifact type (Stories, PRD, Architecture, UI/UX)
|
|
223
|
+
- Ensure each change includes before/after and justification
|
|
224
|
+
|
|
225
|
+
<action>Section 5: Implementation Handoff</action>
|
|
226
|
+
|
|
227
|
+
- Categorize change scope:
|
|
228
|
+
- Minor: Direct implementation by Developer agent
|
|
229
|
+
- Moderate: Backlog reorganization needed (PO/DEV)
|
|
230
|
+
- Major: Fundamental replan required (PM/Architect)
|
|
231
|
+
- Specify handoff recipients and their responsibilities
|
|
232
|
+
- Define success criteria for implementation
|
|
233
|
+
|
|
234
|
+
<action>Present complete Sprint Change Proposal to user</action>
|
|
235
|
+
<action>Write Sprint Change Proposal document to {default_output_file}</action>
|
|
236
|
+
<ask>Review complete proposal. Continue [c] or Edit [e]?</ask>
|
|
237
|
+
</step>
|
|
238
|
+
|
|
239
|
+
<step n="5" goal="Finalize and Route for Implementation">
|
|
240
|
+
<action>Get explicit user approval for complete proposal</action>
|
|
241
|
+
<ask>Do you approve this Sprint Change Proposal for implementation? (yes/no/revise)</ask>
|
|
242
|
+
|
|
243
|
+
<check if="no or revise">
|
|
244
|
+
<action>Gather specific feedback on what needs adjustment</action>
|
|
245
|
+
<action>Return to appropriate step to address concerns</action>
|
|
246
|
+
<goto step="3">If changes needed to edit proposals</goto>
|
|
247
|
+
<goto step="4">If changes needed to overall proposal structure</goto>
|
|
248
|
+
|
|
249
|
+
</check>
|
|
250
|
+
|
|
251
|
+
<check if="yes the proposal is approved by the user">
|
|
252
|
+
<action>Finalize Sprint Change Proposal document</action>
|
|
253
|
+
<action>Determine change scope classification:</action>
|
|
254
|
+
|
|
255
|
+
- **Minor**: Can be implemented directly by Developer agent
|
|
256
|
+
- **Moderate**: Requires backlog reorganization and PO/DEV coordination
|
|
257
|
+
- **Major**: Needs fundamental replan with PM/Architect involvement
|
|
258
|
+
|
|
259
|
+
<action>Provide appropriate handoff based on scope:</action>
|
|
260
|
+
|
|
261
|
+
</check>
|
|
262
|
+
|
|
263
|
+
<check if="Minor scope">
|
|
264
|
+
<action>Route to: Developer agent for direct implementation</action>
|
|
265
|
+
<action>Deliverables: Finalized edit proposals and implementation tasks</action>
|
|
266
|
+
</check>
|
|
267
|
+
|
|
268
|
+
<check if="Moderate scope">
|
|
269
|
+
<action>Route to: Product Owner / Developer agents</action>
|
|
270
|
+
<action>Deliverables: Sprint Change Proposal + backlog reorganization plan</action>
|
|
271
|
+
</check>
|
|
272
|
+
|
|
273
|
+
<check if="Major scope">
|
|
274
|
+
<action>Route to: Product Manager / Solution Architect</action>
|
|
275
|
+
<action>Deliverables: Complete Sprint Change Proposal + escalation notice</action>
|
|
276
|
+
|
|
277
|
+
<action>Confirm handoff completion and next steps with user</action>
|
|
278
|
+
<action>Document handoff in workflow execution log</action>
|
|
279
|
+
</check>
|
|
280
|
+
|
|
281
|
+
</step>
|
|
282
|
+
|
|
283
|
+
<step n="6" goal="Workflow Completion">
|
|
284
|
+
<action>Summarize workflow execution:</action>
|
|
285
|
+
- Issue addressed: {{change_trigger}}
|
|
286
|
+
- Change scope: {{scope_classification}}
|
|
287
|
+
- Artifacts modified: {{list_of_artifacts}}
|
|
288
|
+
- Routed to: {{handoff_recipients}}
|
|
289
|
+
|
|
290
|
+
<action>Confirm all deliverables produced:</action>
|
|
291
|
+
|
|
292
|
+
- Sprint Change Proposal document
|
|
293
|
+
- Specific edit proposals with before/after
|
|
294
|
+
- Implementation handoff plan
|
|
295
|
+
|
|
296
|
+
<action>Report workflow completion to user with personalized message: "Correct Course workflow complete, {user_name}!"</action>
|
|
297
|
+
<action>Remind user of success criteria and next steps for Developer agent</action>
|
|
298
|
+
<action>Run: `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow.on_complete` — if the resolved value is non-empty, follow it as the final terminal instruction before exiting.</action>
|
|
299
|
+
</step>
|
|
300
|
+
|
|
301
|
+
</workflow>
|