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.
Files changed (299) hide show
  1. package/AGENTS.md +45 -0
  2. package/GETTING-STARTED.md +269 -0
  3. package/README.md +233 -0
  4. package/drt-method-1.0.0.tgz +0 -0
  5. package/drt-modules.yaml +1 -0
  6. package/package.json +51 -0
  7. package/scripts/install-from-github.ps1 +22 -0
  8. package/scripts/install-from-github.sh +17 -0
  9. package/src/core-skills/drt-advanced-elicitation/SKILL.md +142 -0
  10. package/src/core-skills/drt-advanced-elicitation/methods.csv +72 -0
  11. package/src/core-skills/drt-brainstorming/SKILL.md +80 -0
  12. package/src/core-skills/drt-brainstorming/assets/brain-icons.json +166 -0
  13. package/src/core-skills/drt-brainstorming/assets/brain-methods.csv +109 -0
  14. package/src/core-skills/drt-brainstorming/assets/brain-selector.html +326 -0
  15. package/src/core-skills/drt-brainstorming/customize.toml +84 -0
  16. package/src/core-skills/drt-brainstorming/references/converge.md +24 -0
  17. package/src/core-skills/drt-brainstorming/references/finalize.md +26 -0
  18. package/src/core-skills/drt-brainstorming/references/headless.md +54 -0
  19. package/src/core-skills/drt-brainstorming/references/in-chat-techniques.md +18 -0
  20. package/src/core-skills/drt-brainstorming/references/mode-autonomous.md +10 -0
  21. package/src/core-skills/drt-brainstorming/references/mode-facilitator.md +11 -0
  22. package/src/core-skills/drt-brainstorming/references/mode-partner.md +16 -0
  23. package/src/core-skills/drt-brainstorming/references/resume.md +5 -0
  24. package/src/core-skills/drt-brainstorming/scripts/brain.py +740 -0
  25. package/src/core-skills/drt-customize/SKILL.md +111 -0
  26. package/src/core-skills/drt-customize/scripts/list_customizable_skills.py +231 -0
  27. package/src/core-skills/drt-editorial-review-prose/SKILL.md +86 -0
  28. package/src/core-skills/drt-editorial-review-structure/SKILL.md +179 -0
  29. package/src/core-skills/drt-forge-idea/SKILL.md +107 -0
  30. package/src/core-skills/drt-forge-idea/customize.toml +42 -0
  31. package/src/core-skills/drt-forge-idea/scripts/resolve_personas.py +270 -0
  32. package/src/core-skills/drt-help/SKILL.md +75 -0
  33. package/src/core-skills/drt-index-docs/SKILL.md +66 -0
  34. package/src/core-skills/drt-party-mode/SKILL.md +60 -0
  35. package/src/core-skills/drt-party-mode/customize.toml +211 -0
  36. package/src/core-skills/drt-party-mode/references/create-party.md +70 -0
  37. package/src/core-skills/drt-party-mode/references/mode-agent-team.md +13 -0
  38. package/src/core-skills/drt-party-mode/references/mode-auto.md +13 -0
  39. package/src/core-skills/drt-party-mode/references/mode-subagent.md +31 -0
  40. package/src/core-skills/drt-party-mode/references/party-memory.md +51 -0
  41. package/src/core-skills/drt-party-mode/scripts/resolve_party.py +272 -0
  42. package/src/core-skills/drt-review-adversarial-general/SKILL.md +37 -0
  43. package/src/core-skills/drt-review-edge-case-hunter/SKILL.md +73 -0
  44. package/src/core-skills/drt-review-edge-case-hunter/references/deletion-check.md +14 -0
  45. package/src/core-skills/drt-review-verification-gap/SKILL.md +106 -0
  46. package/src/core-skills/drt-shard-doc/SKILL.md +105 -0
  47. package/src/core-skills/drt-spec/SKILL.md +160 -0
  48. package/src/core-skills/drt-spec/assets/headless-schemas.md +33 -0
  49. package/src/core-skills/drt-spec/assets/spec-template.md +49 -0
  50. package/src/core-skills/drt-spec/assets/stories-schema.md +44 -0
  51. package/src/core-skills/drt-spec/customize.toml +53 -0
  52. package/src/core-skills/module-help.csv +14 -0
  53. package/src/core-skills/module.yaml +33 -0
  54. package/src/drt-skills/1-analysis/drt-agent-analyst/SKILL.md +76 -0
  55. package/src/drt-skills/1-analysis/drt-agent-analyst/customize.toml +90 -0
  56. package/src/drt-skills/1-analysis/drt-agent-tech-writer/SKILL.md +76 -0
  57. package/src/drt-skills/1-analysis/drt-agent-tech-writer/customize.toml +81 -0
  58. package/src/drt-skills/1-analysis/drt-agent-tech-writer/explain-concept.md +20 -0
  59. package/src/drt-skills/1-analysis/drt-agent-tech-writer/mermaid-gen.md +20 -0
  60. package/src/drt-skills/1-analysis/drt-agent-tech-writer/validate-doc.md +19 -0
  61. package/src/drt-skills/1-analysis/drt-agent-tech-writer/write-document.md +20 -0
  62. package/src/drt-skills/1-analysis/drt-document-project/SKILL.md +62 -0
  63. package/src/drt-skills/1-analysis/drt-document-project/checklist.md +245 -0
  64. package/src/drt-skills/1-analysis/drt-document-project/customize.toml +41 -0
  65. package/src/drt-skills/1-analysis/drt-document-project/documentation-requirements.csv +12 -0
  66. package/src/drt-skills/1-analysis/drt-document-project/instructions.md +128 -0
  67. package/src/drt-skills/1-analysis/drt-document-project/templates/deep-dive-template.md +345 -0
  68. package/src/drt-skills/1-analysis/drt-document-project/templates/index-template.md +169 -0
  69. package/src/drt-skills/1-analysis/drt-document-project/templates/project-overview-template.md +103 -0
  70. package/src/drt-skills/1-analysis/drt-document-project/templates/project-scan-report-schema.json +160 -0
  71. package/src/drt-skills/1-analysis/drt-document-project/templates/source-tree-template.md +135 -0
  72. package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-instructions.md +300 -0
  73. package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-workflow.md +34 -0
  74. package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-instructions.md +1111 -0
  75. package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-workflow.md +34 -0
  76. package/src/drt-skills/1-analysis/drt-prfaq/SKILL.md +135 -0
  77. package/src/drt-skills/1-analysis/drt-prfaq/agents/artifact-analyzer.md +60 -0
  78. package/src/drt-skills/1-analysis/drt-prfaq/agents/web-researcher.md +49 -0
  79. package/src/drt-skills/1-analysis/drt-prfaq/assets/prfaq-template.md +62 -0
  80. package/src/drt-skills/1-analysis/drt-prfaq/bmad-manifest.json +16 -0
  81. package/src/drt-skills/1-analysis/drt-prfaq/customize.toml +41 -0
  82. package/src/drt-skills/1-analysis/drt-prfaq/references/customer-faq.md +55 -0
  83. package/src/drt-skills/1-analysis/drt-prfaq/references/internal-faq.md +51 -0
  84. package/src/drt-skills/1-analysis/drt-prfaq/references/press-release.md +60 -0
  85. package/src/drt-skills/1-analysis/drt-prfaq/references/verdict.md +83 -0
  86. package/src/drt-skills/1-analysis/drt-product-brief/SKILL.md +91 -0
  87. package/src/drt-skills/1-analysis/drt-product-brief/assets/brief-template.md +41 -0
  88. package/src/drt-skills/1-analysis/drt-product-brief/customize.toml +99 -0
  89. package/src/drt-skills/1-analysis/research/drt-domain-research/SKILL.md +96 -0
  90. package/src/drt-skills/1-analysis/research/drt-domain-research/customize.toml +41 -0
  91. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-01-init.md +137 -0
  92. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
  93. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
  94. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
  95. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-05-technical-trends.md +234 -0
  96. package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-06-research-synthesis.md +450 -0
  97. package/src/drt-skills/1-analysis/research/drt-domain-research/research.template.md +29 -0
  98. package/src/drt-skills/1-analysis/research/drt-market-research/SKILL.md +96 -0
  99. package/src/drt-skills/1-analysis/research/drt-market-research/customize.toml +41 -0
  100. package/src/drt-skills/1-analysis/research/drt-market-research/research.template.md +29 -0
  101. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-01-init.md +184 -0
  102. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-02-customer-behavior.md +239 -0
  103. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-03-customer-pain-points.md +251 -0
  104. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-04-customer-decisions.md +261 -0
  105. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-05-competitive-analysis.md +173 -0
  106. package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-06-research-completion.md +484 -0
  107. package/src/drt-skills/1-analysis/research/drt-technical-research/SKILL.md +96 -0
  108. package/src/drt-skills/1-analysis/research/drt-technical-research/customize.toml +41 -0
  109. package/src/drt-skills/1-analysis/research/drt-technical-research/research.template.md +29 -0
  110. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-01-init.md +137 -0
  111. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-02-technical-overview.md +239 -0
  112. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
  113. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
  114. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-05-implementation-research.md +233 -0
  115. package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-06-research-synthesis.md +493 -0
  116. package/src/drt-skills/2-plan-workflows/drt-agent-pm/SKILL.md +76 -0
  117. package/src/drt-skills/2-plan-workflows/drt-agent-pm/customize.toml +75 -0
  118. package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/SKILL.md +76 -0
  119. package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/customize.toml +60 -0
  120. package/src/drt-skills/2-plan-workflows/drt-create-prd/SKILL.md +30 -0
  121. package/src/drt-skills/2-plan-workflows/drt-create-prd/customize.toml +41 -0
  122. package/src/drt-skills/2-plan-workflows/drt-edit-prd/SKILL.md +30 -0
  123. package/src/drt-skills/2-plan-workflows/drt-edit-prd/customize.toml +42 -0
  124. package/src/drt-skills/2-plan-workflows/drt-prd/SKILL.md +92 -0
  125. package/src/drt-skills/2-plan-workflows/drt-prd/assets/headless-schemas.md +76 -0
  126. package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-template.md +165 -0
  127. package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-validation-checklist.md +135 -0
  128. package/src/drt-skills/2-plan-workflows/drt-prd/assets/validation-report-template.html +325 -0
  129. package/src/drt-skills/2-plan-workflows/drt-prd/customize.toml +147 -0
  130. package/src/drt-skills/2-plan-workflows/drt-prd/references/headless.md +39 -0
  131. package/src/drt-skills/2-plan-workflows/drt-prd/references/validate.md +97 -0
  132. package/src/drt-skills/2-plan-workflows/drt-ux/SKILL.md +90 -0
  133. package/src/drt-skills/2-plan-workflows/drt-ux/assets/color-themes.md +9 -0
  134. package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-directions.md +9 -0
  135. package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-editorial.md +158 -0
  136. package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-mobile.md +93 -0
  137. package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-shadcn.md +109 -0
  138. package/src/drt-skills/2-plan-workflows/drt-ux/assets/excalidraw-wireframe.md +19 -0
  139. package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-mobile.md +112 -0
  140. package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-shadcn.md +133 -0
  141. package/src/drt-skills/2-plan-workflows/drt-ux/assets/headless-schemas.md +84 -0
  142. package/src/drt-skills/2-plan-workflows/drt-ux/assets/key-screens.md +29 -0
  143. package/src/drt-skills/2-plan-workflows/drt-ux/assets/validation-report-template.html +319 -0
  144. package/src/drt-skills/2-plan-workflows/drt-ux/customize.toml +100 -0
  145. package/src/drt-skills/2-plan-workflows/drt-ux/references/creative-tools.md +19 -0
  146. package/src/drt-skills/2-plan-workflows/drt-ux/references/design-md-spec.md +50 -0
  147. package/src/drt-skills/2-plan-workflows/drt-ux/references/headless.md +37 -0
  148. package/src/drt-skills/2-plan-workflows/drt-ux/references/validate.md +115 -0
  149. package/src/drt-skills/2-plan-workflows/drt-validate-prd/SKILL.md +30 -0
  150. package/src/drt-skills/2-plan-workflows/drt-validate-prd/customize.toml +42 -0
  151. package/src/drt-skills/3-solutioning/drt-agent-architect/SKILL.md +76 -0
  152. package/src/drt-skills/3-solutioning/drt-agent-architect/customize.toml +65 -0
  153. package/src/drt-skills/3-solutioning/drt-architecture/SKILL.md +85 -0
  154. package/src/drt-skills/3-solutioning/drt-architecture/assets/spine-template.md +79 -0
  155. package/src/drt-skills/3-solutioning/drt-architecture/customize.toml +100 -0
  156. package/src/drt-skills/3-solutioning/drt-architecture/references/headless.md +26 -0
  157. package/src/drt-skills/3-solutioning/drt-architecture/references/reviewer-gate.md +13 -0
  158. package/src/drt-skills/3-solutioning/drt-architecture/scripts/lint_spine.py +257 -0
  159. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/SKILL.md +91 -0
  160. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/customize.toml +41 -0
  161. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
  162. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
  163. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
  164. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
  165. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
  166. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-06-final-assessment.md +132 -0
  167. package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/templates/readiness-report-template.md +4 -0
  168. package/src/drt-skills/3-solutioning/drt-create-architecture/SKILL.md +30 -0
  169. package/src/drt-skills/3-solutioning/drt-create-architecture/customize.toml +41 -0
  170. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/SKILL.md +93 -0
  171. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/customize.toml +41 -0
  172. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-01-validate-prerequisites.md +263 -0
  173. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-02-design-epics.md +242 -0
  174. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
  175. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-04-final-validation.md +143 -0
  176. package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/templates/epics-template.md +61 -0
  177. package/src/drt-skills/3-solutioning/drt-generate-project-context/SKILL.md +81 -0
  178. package/src/drt-skills/3-solutioning/drt-generate-project-context/customize.toml +41 -0
  179. package/src/drt-skills/3-solutioning/drt-generate-project-context/project-context-template.md +21 -0
  180. package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-01-discover.md +186 -0
  181. package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-02-generate.md +321 -0
  182. package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-03-complete.md +284 -0
  183. package/src/drt-skills/4-implementation/drt-agent-dev/SKILL.md +76 -0
  184. package/src/drt-skills/4-implementation/drt-agent-dev/customize.toml +95 -0
  185. package/src/drt-skills/4-implementation/drt-checkpoint-preview/SKILL.md +68 -0
  186. package/src/drt-skills/4-implementation/drt-checkpoint-preview/customize.toml +41 -0
  187. package/src/drt-skills/4-implementation/drt-checkpoint-preview/generate-trail.md +38 -0
  188. package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-01-orientation.md +105 -0
  189. package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-02-walkthrough.md +89 -0
  190. package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-03-detail-pass.md +106 -0
  191. package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-04-testing.md +74 -0
  192. package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-05-wrapup.md +30 -0
  193. package/src/drt-skills/4-implementation/drt-code-review/SKILL.md +90 -0
  194. package/src/drt-skills/4-implementation/drt-code-review/customize.toml +93 -0
  195. package/src/drt-skills/4-implementation/drt-code-review/steps/step-01-gather-context.md +84 -0
  196. package/src/drt-skills/4-implementation/drt-code-review/steps/step-02-review.md +32 -0
  197. package/src/drt-skills/4-implementation/drt-code-review/steps/step-03-triage.md +50 -0
  198. package/src/drt-skills/4-implementation/drt-code-review/steps/step-04-present.md +132 -0
  199. package/src/drt-skills/4-implementation/drt-correct-course/SKILL.md +301 -0
  200. package/src/drt-skills/4-implementation/drt-correct-course/checklist.md +288 -0
  201. package/src/drt-skills/4-implementation/drt-correct-course/customize.toml +41 -0
  202. package/src/drt-skills/4-implementation/drt-create-story/SKILL.md +432 -0
  203. package/src/drt-skills/4-implementation/drt-create-story/checklist.md +357 -0
  204. package/src/drt-skills/4-implementation/drt-create-story/customize.toml +41 -0
  205. package/src/drt-skills/4-implementation/drt-create-story/discover-inputs.md +88 -0
  206. package/src/drt-skills/4-implementation/drt-create-story/template.md +49 -0
  207. package/src/drt-skills/4-implementation/drt-dev-auto/SKILL.md +123 -0
  208. package/src/drt-skills/4-implementation/drt-dev-auto/compile-epic-context.md +62 -0
  209. package/src/drt-skills/4-implementation/drt-dev-auto/customize.toml +108 -0
  210. package/src/drt-skills/4-implementation/drt-dev-auto/spec-template.md +98 -0
  211. package/src/drt-skills/4-implementation/drt-dev-auto/step-01-clarify-and-route.md +84 -0
  212. package/src/drt-skills/4-implementation/drt-dev-auto/step-02-plan.md +31 -0
  213. package/src/drt-skills/4-implementation/drt-dev-auto/step-03-implement.md +42 -0
  214. package/src/drt-skills/4-implementation/drt-dev-auto/step-04-review.md +95 -0
  215. package/src/drt-skills/4-implementation/drt-dev-story/SKILL.md +500 -0
  216. package/src/drt-skills/4-implementation/drt-dev-story/checklist.md +80 -0
  217. package/src/drt-skills/4-implementation/drt-dev-story/customize.toml +41 -0
  218. package/src/drt-skills/4-implementation/drt-implement-task/SKILL.md +101 -0
  219. package/src/drt-skills/4-implementation/drt-implement-task/assets/task-spec-template.md +60 -0
  220. package/src/drt-skills/4-implementation/drt-implement-task/customize.toml +17 -0
  221. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-01-gather-intent.md +42 -0
  222. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-02-plan-and-approve.md +43 -0
  223. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-03-confirm-dependencies.md +38 -0
  224. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-04-implement.md +42 -0
  225. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-05-qc-test.md +31 -0
  226. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-06-quality-review.md +30 -0
  227. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-07-fix-findings.md +33 -0
  228. package/src/drt-skills/4-implementation/drt-implement-task/steps/step-08-complete.md +35 -0
  229. package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/SKILL.md +176 -0
  230. package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/checklist.md +33 -0
  231. package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/customize.toml +41 -0
  232. package/src/drt-skills/4-implementation/drt-quick-dev/SKILL.md +13 -0
  233. package/src/drt-skills/4-implementation/drt-quick-dev/compile-epic-context.md +62 -0
  234. package/src/drt-skills/4-implementation/drt-quick-dev/customize.toml +83 -0
  235. package/src/drt-skills/4-implementation/drt-quick-dev/render.js +206 -0
  236. package/src/drt-skills/4-implementation/drt-quick-dev/spec-template.md +89 -0
  237. package/src/drt-skills/4-implementation/drt-quick-dev/step-01-clarify-and-route.md +103 -0
  238. package/src/drt-skills/4-implementation/drt-quick-dev/step-02-plan.md +47 -0
  239. package/src/drt-skills/4-implementation/drt-quick-dev/step-03-implement.md +45 -0
  240. package/src/drt-skills/4-implementation/drt-quick-dev/step-04-review.md +55 -0
  241. package/src/drt-skills/4-implementation/drt-quick-dev/step-05-present.md +78 -0
  242. package/src/drt-skills/4-implementation/drt-quick-dev/step-oneshot.md +78 -0
  243. package/src/drt-skills/4-implementation/drt-quick-dev/sync-sprint-status.md +19 -0
  244. package/src/drt-skills/4-implementation/drt-quick-dev/workflow.md +85 -0
  245. package/src/drt-skills/4-implementation/drt-retrospective/SKILL.md +1527 -0
  246. package/src/drt-skills/4-implementation/drt-retrospective/customize.toml +41 -0
  247. package/src/drt-skills/4-implementation/drt-sprint-planning/SKILL.md +319 -0
  248. package/src/drt-skills/4-implementation/drt-sprint-planning/checklist.md +34 -0
  249. package/src/drt-skills/4-implementation/drt-sprint-planning/customize.toml +41 -0
  250. package/src/drt-skills/4-implementation/drt-sprint-planning/sprint-status-template.yaml +69 -0
  251. package/src/drt-skills/4-implementation/drt-sprint-status/SKILL.md +311 -0
  252. package/src/drt-skills/4-implementation/drt-sprint-status/customize.toml +41 -0
  253. package/src/drt-skills/module-help.csv +32 -0
  254. package/src/drt-skills/module.yaml +95 -0
  255. package/src/scripts/lib/load-toml.js +43 -0
  256. package/src/scripts/lib/merge-utils.js +89 -0
  257. package/src/scripts/memlog.js +184 -0
  258. package/src/scripts/package.json +7 -0
  259. package/src/scripts/resolve-config.js +56 -0
  260. package/src/scripts/resolve-customization.js +77 -0
  261. package/tools/installer/cli-utils.js +53 -0
  262. package/tools/installer/commands/install.js +149 -0
  263. package/tools/installer/commands/status.js +65 -0
  264. package/tools/installer/commands/uninstall.js +167 -0
  265. package/tools/installer/core/config.js +73 -0
  266. package/tools/installer/core/existing-install.js +121 -0
  267. package/tools/installer/core/install-paths.js +132 -0
  268. package/tools/installer/core/installer.js +1762 -0
  269. package/tools/installer/core/legacy-warnings.js +151 -0
  270. package/tools/installer/core/manifest-generator.js +859 -0
  271. package/tools/installer/core/manifest.js +433 -0
  272. package/tools/installer/core/uv-check.js +97 -0
  273. package/tools/installer/core/wsl-node-check.js +109 -0
  274. package/tools/installer/drt-cli.js +104 -0
  275. package/tools/installer/file-ops.js +204 -0
  276. package/tools/installer/fs-native.js +116 -0
  277. package/tools/installer/ide/_config-driven.js +972 -0
  278. package/tools/installer/ide/manager.js +324 -0
  279. package/tools/installer/ide/platform-codes.js +80 -0
  280. package/tools/installer/ide/platform-codes.yaml +343 -0
  281. package/tools/installer/ide/shared/installed-skills.js +50 -0
  282. package/tools/installer/ide/shared/path-utils.js +217 -0
  283. package/tools/installer/ide/shared/skill-manifest.js +57 -0
  284. package/tools/installer/install-messages.yaml +29 -0
  285. package/tools/installer/list-options.js +210 -0
  286. package/tools/installer/message-loader.js +83 -0
  287. package/tools/installer/modules/channel-plan.js +203 -0
  288. package/tools/installer/modules/channel-resolver.js +241 -0
  289. package/tools/installer/modules/custom-module-manager.js +918 -0
  290. package/tools/installer/modules/external-manager.js +667 -0
  291. package/tools/installer/modules/module-help-schema.js +13 -0
  292. package/tools/installer/modules/official-modules.js +2257 -0
  293. package/tools/installer/modules/plugin-resolver.js +398 -0
  294. package/tools/installer/modules/version-resolver.js +336 -0
  295. package/tools/installer/project-root.js +224 -0
  296. package/tools/installer/prompts.js +852 -0
  297. package/tools/installer/set-overrides.js +330 -0
  298. package/tools/installer/ui.js +2090 -0
  299. package/tools/installer/yaml-format.js +245 -0
@@ -0,0 +1,432 @@
1
+ ---
2
+ name: drt-create-story
3
+ description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
4
+ ---
5
+
6
+ # Create Story Workflow
7
+
8
+ **Goal:** Create a comprehensive story file that gives the dev agent everything needed for flawless implementation.
9
+
10
+ **Your Role:** Story context engine that prevents LLM developer mistakes, omissions, or disasters.
11
+ - Communicate all responses in {communication_language} and generate all documents in {document_output_language}
12
+ - Your purpose is NOT to copy from epics - it's to create a comprehensive, optimized story file that gives the DEV agent EVERYTHING needed for flawless implementation
13
+ - COMMON LLM MISTAKES TO PREVENT: reinventing wheels, wrong libraries, wrong file locations, breaking regressions, ignoring UX, vague implementations, lying about completion, not learning from past work
14
+ - EXHAUSTIVE ANALYSIS REQUIRED: You must thoroughly analyze ALL artifacts to extract critical context - do NOT be lazy or skim! This is the most important function in the entire development process!
15
+ - UTILIZE SUBPROCESSES AND SUBAGENTS: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different artifacts simultaneously and thoroughly
16
+ - SAVE QUESTIONS: If you think of questions or clarifications during analysis, save them for the end after the complete story is written
17
+ - ZERO USER INTERVENTION: Process should be fully automated except for initial epic/story selection or missing documents
18
+
19
+ Subagents, when the capability is available, are an important part of this workflow. Use them as directed by the workflow steps.
20
+ If you need an explicit user instruction to run them, ask once now for the whole workflow run.
21
+
22
+ ## Conventions
23
+
24
+ - Bare paths (e.g. `discover-inputs.md`) resolve from the skill root.
25
+ - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
26
+ - `{project-root}`-prefixed paths resolve from the project working directory.
27
+ - `{skill-name}` resolves to the skill directory's basename.
28
+
29
+ ## On Activation
30
+
31
+ ### Step 1: Resolve the Workflow Block
32
+
33
+ Run: `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow`
34
+
35
+ **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:
36
+
37
+ 1. `{skill-root}/customize.toml` — defaults
38
+ 2. `{project-root}/_drt/custom/{skill-name}.toml` — team overrides
39
+ 3. `{project-root}/_drt/custom/{skill-name}.user.toml` — personal overrides
40
+
41
+ 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.
42
+
43
+ ### Step 2: Execute Prepend Steps
44
+
45
+ Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
46
+
47
+ ### Step 3: Load Persistent Facts
48
+
49
+ 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.
50
+
51
+ ### Step 4: Load Config
52
+
53
+ Load config from `{project-root}/_drt/drt/config.yaml` and resolve:
54
+
55
+ - `project_name`, `user_name`
56
+ - `communication_language`, `document_output_language`
57
+ - `user_skill_level`
58
+ - `planning_artifacts`, `implementation_artifacts`
59
+ - `date` as system-generated current datetime
60
+
61
+ ### Step 5: Greet the User
62
+
63
+ Greet `{user_name}`, speaking in `{communication_language}`.
64
+
65
+ ### Step 6: Execute Append Steps
66
+
67
+ Execute each entry in `{workflow.activation_steps_append}` in order.
68
+
69
+ 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.
70
+
71
+ ## Paths
72
+
73
+ - `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
74
+ - `epics_file` = `{planning_artifacts}/epics.md`
75
+ - `prd_file` = `{planning_artifacts}/prd.md`
76
+ - `architecture_file` = `{planning_artifacts}/architecture.md`
77
+ - `ux_file` = `{planning_artifacts}/*ux*.md`
78
+ - `story_title` = "" (will be elicited if not derivable)
79
+ - `default_output_file` = `{implementation_artifacts}/{{story_key}}.md`
80
+
81
+ ## Input Files
82
+
83
+ | Input | Description | Path Pattern(s) | Load Strategy |
84
+ |-------|-------------|------------------|---------------|
85
+ | prd | PRD (fallback - epics file should have most content) | whole: `{planning_artifacts}/*prd*.md`, sharded: `{planning_artifacts}/*prd*/*.md` | SELECTIVE_LOAD |
86
+ | architecture | Architecture (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*architecture*.md`, sharded: `{planning_artifacts}/*architecture*/*.md` | SELECTIVE_LOAD |
87
+ | ux | UX design (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*ux*.md`, sharded: `{planning_artifacts}/*ux*/*.md` | SELECTIVE_LOAD |
88
+ | epics | Enhanced epics+stories file with BDD and source hints | whole: `{planning_artifacts}/*epic*.md`, sharded: `{planning_artifacts}/*epic*/*.md` | SELECTIVE_LOAD |
89
+
90
+ ## Execution
91
+
92
+ <workflow>
93
+
94
+ <step n="1" goal="Determine target story">
95
+ <check if="{{story_path}} is provided by user or user provided the epic and story number such as 2-4 or 1.6 or epic 1 story 5">
96
+ <action>Parse user-provided story path: extract epic_num, story_num, story_title from format like "1-2-user-auth"</action>
97
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
98
+ <action>GOTO step 2a</action>
99
+ </check>
100
+
101
+ <action>Check if {{sprint_status}} file exists for auto discover</action>
102
+ <check if="sprint status file does NOT exist">
103
+ <output>🚫 No sprint status file found and no story specified</output>
104
+ <output>
105
+ **Required Options:**
106
+ 1. Run `sprint-planning` to initialize sprint tracking (recommended)
107
+ 2. Provide specific epic-story number to create (e.g., "1-2-user-auth")
108
+ 3. Provide path to story documents if sprint status doesn't exist yet
109
+ </output>
110
+ <ask>Choose option [1], provide epic-story number, path to story docs, or [q] to quit:</ask>
111
+
112
+ <check if="user chooses 'q'">
113
+ <action>HALT - No work needed</action>
114
+ </check>
115
+
116
+ <check if="user chooses '1'">
117
+ <output>Run sprint-planning workflow first to create sprint-status.yaml</output>
118
+ <action>HALT - User needs to run sprint-planning</action>
119
+ </check>
120
+
121
+ <check if="user provides epic-story number">
122
+ <action>Parse user input: extract epic_num, story_num, story_title</action>
123
+ <action>Set {{epic_num}}, {{story_num}}, {{story_key}} from user input</action>
124
+ <action>GOTO step 2a</action>
125
+ </check>
126
+
127
+ <check if="user provides story docs path">
128
+ <action>Use user-provided path for story documents</action>
129
+ <action>GOTO step 2a</action>
130
+ </check>
131
+ </check>
132
+
133
+ <!-- Auto-discover from sprint status only if no user input -->
134
+ <check if="no user input provided">
135
+ <critical>MUST read COMPLETE {sprint_status} file from start to end to preserve order</critical>
136
+ <action>Load the FULL file: {{sprint_status}}</action>
137
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
138
+ <action>Parse the development_status section completely</action>
139
+
140
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
141
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
142
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
143
+ - Status value equals "backlog"
144
+ </action>
145
+
146
+ <check if="no backlog story found">
147
+ <output>📋 No backlog stories found in sprint-status.yaml
148
+
149
+ All stories are either already created, in progress, or done.
150
+
151
+ **Options:**
152
+ 1. Run sprint-planning to refresh story tracking
153
+ 2. Load PM agent and run correct-course to add more stories
154
+ 3. Check if current sprint is complete and run retrospective
155
+ </output>
156
+ <action>HALT</action>
157
+ </check>
158
+
159
+ <action>Extract from found story key (e.g., "1-2-user-authentication"):
160
+ - epic_num: first number before dash (e.g., "1")
161
+ - story_num: second number after first dash (e.g., "2")
162
+ - story_title: remainder after second dash (e.g., "user-authentication")
163
+ </action>
164
+ <action>Set {{story_id}} = "{{epic_num}}.{{story_num}}"</action>
165
+ <action>Store story_key for later use (e.g., "1-2-user-authentication")</action>
166
+
167
+ <!-- Mark epic as in-progress if this is first story -->
168
+ <action>Check if this is the first story in epic {{epic_num}} by looking for {{epic_num}}-1-* pattern</action>
169
+ <check if="this is first story in epic {{epic_num}}">
170
+ <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
171
+ <action>If epic status is "backlog" → update to "in-progress"</action>
172
+ <action>If epic status is "contexted" (legacy status) → update to "in-progress" (backward compatibility)</action>
173
+ <action>If epic status is "in-progress" → no change needed</action>
174
+ <check if="epic status is 'done'">
175
+ <output>🚫 ERROR: Cannot create story in completed epic</output>
176
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
177
+ <output>If you need to add more work, either:</output>
178
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
179
+ <output>2. Create a new epic for additional work</output>
180
+ <action>HALT - Cannot proceed</action>
181
+ </check>
182
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
183
+ <output>🚫 ERROR: Invalid epic status '{{epic_status}}'</output>
184
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
185
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
186
+ <action>HALT - Cannot proceed</action>
187
+ </check>
188
+ <output>📊 Epic {{epic_num}} status updated to in-progress</output>
189
+ </check>
190
+
191
+ <action>GOTO step 2a</action>
192
+ </check>
193
+ <action>Load the FULL file: {{sprint_status}}</action>
194
+ <action>Read ALL lines from beginning to end - do not skip any content</action>
195
+ <action>Parse the development_status section completely</action>
196
+
197
+ <action>Find the FIRST story (by reading in order from top to bottom) where:
198
+ - Key matches pattern: number-number-name (e.g., "1-2-user-auth")
199
+ - NOT an epic key (epic-X) or retrospective (epic-X-retrospective)
200
+ - Status value equals "backlog"
201
+ </action>
202
+
203
+ <check if="no backlog story found">
204
+ <output>No backlog stories found in sprint-status.yaml
205
+
206
+ All stories are either already created, in progress, or done.
207
+
208
+ **Options:**
209
+ 1. Run sprint-planning to refresh story tracking
210
+ 2. Load PM agent and run correct-course to add more stories
211
+ 3. Check if current sprint is complete and run retrospective
212
+ </output>
213
+ <action>HALT</action>
214
+ </check>
215
+
216
+ <action>Extract from found story key (e.g., "1-2-user-authentication"):
217
+ - epic_num: first number before dash (e.g., "1")
218
+ - story_num: second number after first dash (e.g., "2")
219
+ - story_title: remainder after second dash (e.g., "user-authentication")
220
+ </action>
221
+ <action>Set {{story_id}} = "{{epic_num}}.{{story_num}}"</action>
222
+ <action>Store story_key for later use (e.g., "1-2-user-authentication")</action>
223
+
224
+ <!-- Mark epic as in-progress if this is first story -->
225
+ <action>Check if this is the first story in epic {{epic_num}} by looking for {{epic_num}}-1-* pattern</action>
226
+ <check if="this is first story in epic {{epic_num}}">
227
+ <action>Load {{sprint_status}} and check epic-{{epic_num}} status</action>
228
+ <action>If epic status is "backlog" → update to "in-progress"</action>
229
+ <action>If epic status is "contexted" (legacy status) → update to "in-progress" (backward compatibility)</action>
230
+ <action>If epic status is "in-progress" → no change needed</action>
231
+ <check if="epic status is 'done'">
232
+ <output>ERROR: Cannot create story in completed epic</output>
233
+ <output>Epic {{epic_num}} is marked as 'done'. All stories are complete.</output>
234
+ <output>If you need to add more work, either:</output>
235
+ <output>1. Manually change epic status back to 'in-progress' in sprint-status.yaml</output>
236
+ <output>2. Create a new epic for additional work</output>
237
+ <action>HALT - Cannot proceed</action>
238
+ </check>
239
+ <check if="epic status is not one of: backlog, contexted, in-progress, done">
240
+ <output>ERROR: Invalid epic status '{{epic_status}}'</output>
241
+ <output>Epic {{epic_num}} has invalid status. Expected: backlog, in-progress, or done</output>
242
+ <output>Please fix sprint-status.yaml manually or run sprint-planning to regenerate</output>
243
+ <action>HALT - Cannot proceed</action>
244
+ </check>
245
+ <output>Epic {{epic_num}} status updated to in-progress</output>
246
+ </check>
247
+
248
+ <action>GOTO step 2a</action>
249
+ </step>
250
+
251
+ <step n="2" goal="Load and analyze core artifacts">
252
+ <critical>🔬 EXHAUSTIVE ARTIFACT ANALYSIS - This is where you prevent future developer mistakes!</critical>
253
+
254
+ <!-- Load all available content through discovery protocol -->
255
+ <action>Read fully and follow `./discover-inputs.md` to load all input files</action>
256
+ <note>Available content: {epics_content}, {prd_content}, {architecture_content}, {ux_content}, plus the project-context facts loaded during activation via `persistent_facts`.</note>
257
+
258
+ <!-- Analyze epics file for story foundation -->
259
+ <action>From {epics_content}, extract Epic {{epic_num}} complete context:</action> **EPIC ANALYSIS:** - Epic
260
+ objectives and business value - ALL stories in this epic for cross-story context - Our specific story's requirements, user story
261
+ statement, acceptance criteria - Technical requirements and constraints - Dependencies on other stories/epics - Source hints pointing to
262
+ original documents <!-- Extract specific story requirements -->
263
+ <action>Extract our story ({{epic_num}}-{{story_num}}) details:</action> **STORY FOUNDATION:** - User story statement
264
+ (As a, I want, so that) - Detailed acceptance criteria (already BDD formatted) - Technical requirements specific to this story -
265
+ Business context and value - Success criteria <!-- Previous story analysis for context continuity -->
266
+ <check if="story_num > 1">
267
+ <action>Find {{previous_story_num}}: scan {implementation_artifacts} for the story file in epic {{epic_num}} with the highest story number less than {{story_num}}</action>
268
+ <action>Load previous story file: {implementation_artifacts}/{{epic_num}}-{{previous_story_num}}-*.md</action> **PREVIOUS STORY INTELLIGENCE:** -
269
+ Dev notes and learnings from previous story - Review feedback and corrections needed - Files that were created/modified and their
270
+ patterns - Testing approaches that worked/didn't work - Problems encountered and solutions found - Code patterns established <action>Extract
271
+ all learnings that could impact current story implementation</action>
272
+ </check>
273
+
274
+ <!-- Git intelligence for previous work patterns -->
275
+ <check
276
+ if="previous story exists AND git repository detected">
277
+ <action>Get last 5 commit titles to understand recent work patterns</action>
278
+ <action>Analyze 1-5 most recent commits for relevance to current story:
279
+ - Files created/modified
280
+ - Code patterns and conventions used
281
+ - Library dependencies added/changed
282
+ - Architecture decisions implemented
283
+ - Testing approaches used
284
+ </action>
285
+ <action>Extract actionable insights for current story implementation</action>
286
+ </check>
287
+ </step>
288
+
289
+ <step n="3" goal="Architecture analysis for developer guardrails">
290
+ <critical>🏗️ ARCHITECTURE INTELLIGENCE - Extract everything the developer MUST follow!</critical> **ARCHITECTURE DOCUMENT ANALYSIS:** <action>Systematically
291
+ analyze architecture content for story-relevant requirements:</action>
292
+
293
+ <!-- Load architecture - single file or sharded -->
294
+ <check if="architecture file is single file">
295
+ <action>Load complete {architecture_content}</action>
296
+ </check>
297
+ <check if="architecture is sharded to folder">
298
+ <action>Load architecture index and scan all architecture files</action>
299
+ </check> **CRITICAL ARCHITECTURE EXTRACTION:** <action>For
300
+ each architecture section, determine if relevant to this story:</action> - **Technical Stack:** Languages, frameworks, libraries with
301
+ versions - **Code Structure:** Folder organization, naming conventions, file patterns - **API Patterns:** Service structure, endpoint
302
+ patterns, data contracts - **Database Schemas:** Tables, relationships, constraints relevant to story - **Security Requirements:**
303
+ Authentication patterns, authorization rules - **Performance Requirements:** Caching strategies, optimization patterns - **Testing
304
+ Standards:** Testing frameworks, coverage expectations, test patterns - **Deployment Patterns:** Environment configurations, build
305
+ processes - **Integration Patterns:** External service integrations, data flows <action>Extract any story-specific requirements that the
306
+ developer MUST follow</action>
307
+ <action>Identify any architectural decisions that override previous patterns</action>
308
+
309
+ <!-- Read existing code being modified — non-negotiable -->
310
+ <critical>📂 READ FILES BEING MODIFIED — skipping this is the primary cause of implementation failures and review cycles</critical>
311
+ <action>From the architecture directory structure, identify every file marked UPDATE (not NEW) that this story will touch</action>
312
+ <action>Read each relevant UPDATE file completely. For each one, document in dev notes:
313
+ - Current state: what it does today (state machine, API calls, data shapes, existing behaviors)
314
+ - What this story changes: the specific sections or behaviors being modified
315
+ - What must be preserved: existing interactions and behaviors the story must not break
316
+ </action>
317
+ <critical>A story implementation must leave the system working end-to-end — not just satisfy its stated ACs.
318
+ If a behavior is required for the feature to work correctly in the existing system, it is a requirement
319
+ whether or not it is explicitly written in the story. The dev agent owns this.</critical>
320
+ </step>
321
+
322
+ <step n="4" goal="Web research for latest technical specifics">
323
+ <critical>🌐 ENSURE LATEST TECH KNOWLEDGE - Prevent outdated implementations!</critical> **WEB INTELLIGENCE:** <action>Identify specific
324
+ technical areas that require latest version knowledge:</action>
325
+
326
+ <!-- Check for libraries/frameworks mentioned in architecture -->
327
+ <action>From architecture analysis, identify specific libraries, APIs, or
328
+ frameworks</action>
329
+ <action>For each critical technology, research latest stable version and key changes:
330
+ - Latest API documentation and breaking changes
331
+ - Security vulnerabilities or updates
332
+ - Performance improvements or deprecations
333
+ - Best practices for current version
334
+ </action>
335
+ **EXTERNAL CONTEXT INCLUSION:** <action>Include in story any critical latest information the developer needs:
336
+ - Specific library versions and why chosen
337
+ - API endpoints with parameters and authentication
338
+ - Recent security patches or considerations
339
+ - Performance optimization techniques
340
+ - Migration considerations if upgrading
341
+ </action>
342
+ </step>
343
+
344
+ <step n="5" goal="Create comprehensive story file">
345
+ <critical>📝 CREATE ULTIMATE STORY FILE - The developer's master implementation guide!</critical>
346
+
347
+ <action>Initialize from template.md:
348
+ {default_output_file}</action>
349
+ <template-output file="{default_output_file}">story_header</template-output>
350
+
351
+ <!-- Story foundation from epics analysis -->
352
+ <template-output
353
+ file="{default_output_file}">story_requirements</template-output>
354
+
355
+ <!-- Developer context section - MOST IMPORTANT PART -->
356
+ <template-output file="{default_output_file}">
357
+ developer_context_section</template-output> **DEV AGENT GUARDRAILS:** <template-output file="{default_output_file}">
358
+ technical_requirements</template-output>
359
+ <template-output file="{default_output_file}">architecture_compliance</template-output>
360
+ <template-output
361
+ file="{default_output_file}">library_framework_requirements</template-output>
362
+ <template-output file="{default_output_file}">
363
+ file_structure_requirements</template-output>
364
+ <template-output file="{default_output_file}">testing_requirements</template-output>
365
+
366
+ <!-- Previous story intelligence -->
367
+ <check
368
+ if="previous story learnings available">
369
+ <template-output file="{default_output_file}">previous_story_intelligence</template-output>
370
+ </check>
371
+
372
+ <!-- Git intelligence -->
373
+ <check
374
+ if="git analysis completed">
375
+ <template-output file="{default_output_file}">git_intelligence_summary</template-output>
376
+ </check>
377
+
378
+ <!-- Latest technical specifics -->
379
+ <check if="web research completed">
380
+ <template-output file="{default_output_file}">latest_tech_information</template-output>
381
+ </check>
382
+
383
+ <!-- Project context reference -->
384
+ <template-output
385
+ file="{default_output_file}">project_context_reference</template-output>
386
+
387
+ <!-- Final status update -->
388
+ <template-output file="{default_output_file}">
389
+ story_completion_status</template-output>
390
+
391
+ <!-- CRITICAL: Set status to ready-for-dev -->
392
+ <action>Set story Status to: "ready-for-dev"</action>
393
+ <action>Add completion note: "Ultimate
394
+ context engine analysis completed - comprehensive developer guide created"</action>
395
+ </step>
396
+
397
+ <step n="6" goal="Update sprint status and finalize">
398
+ <action>Validate the newly created story file {default_output_file} against `./checklist.md` and apply any required fixes before finalizing</action>
399
+ <action>Save story document unconditionally</action>
400
+
401
+ <!-- Update sprint status -->
402
+ <check if="sprint status file exists">
403
+ <action>Update {{sprint_status}}</action>
404
+ <action>Load the FULL file and read all development_status entries</action>
405
+ <action>Find development_status key matching {{story_key}}</action>
406
+ <action>Verify current status is "backlog" (expected previous state)</action>
407
+ <action>Update development_status[{{story_key}}] = "ready-for-dev"</action>
408
+ <action>Update last_updated field to current date</action>
409
+ <action>Save file, preserving ALL comments and structure including STATUS DEFINITIONS</action>
410
+ </check>
411
+
412
+ <action>Report completion</action>
413
+ <output>**🎯 ULTIMATE DRT Method STORY CONTEXT CREATED, {user_name}!**
414
+
415
+ **Story Details:**
416
+ - Story ID: {{story_id}}
417
+ - Story Key: {{story_key}}
418
+ - File: {{story_file}}
419
+ - Status: ready-for-dev
420
+
421
+ **Next Steps:**
422
+ 1. Review the comprehensive story in {{story_file}}
423
+ 2. Run dev agents `dev-story` for optimized implementation
424
+ 3. Run `code-review` when complete (auto-marks done)
425
+ 4. Optional: If Test Architect module installed, run `/drt:tea:automate` after `dev-story` to generate guardrail tests
426
+
427
+ **The developer now has everything needed for flawless implementation!**
428
+ </output>
429
+ <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>
430
+ </step>
431
+
432
+ </workflow>