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,343 @@
1
+ # DRT Platform Codes Configuration
2
+ #
3
+ # Each platform entry has:
4
+ # name: Display name shown to users
5
+ # preferred: Whether shown as a recommended option on install
6
+ # suspended: (optional) Message explaining why install is blocked
7
+ # installer:
8
+ # target_dir: Directory where skill directories are installed (project/workspace)
9
+ # global_target_dir: (optional) User-home directory for global install
10
+ # ancestor_conflict_check: (optional) Refuse install when ancestor dir has DRT files
11
+ #
12
+ # Multiple platforms may share the same target_dir or global_target_dir — many tools
13
+ # read from the shared `.agents/skills/` and `~/.agents/skills/` cross-tool standard.
14
+ # Paths verified against each tool's primary docs as of 2026-04-25.
15
+
16
+ platforms:
17
+ adal:
18
+ name: "AdaL"
19
+ preferred: false
20
+ installer:
21
+ target_dir: .adal/skills
22
+ global_target_dir: ~/.adal/skills
23
+
24
+ amp:
25
+ name: "Sourcegraph Amp"
26
+ preferred: false
27
+ installer:
28
+ target_dir: .agents/skills
29
+ global_target_dir: ~/.config/agents/skills
30
+
31
+ antigravity:
32
+ name: "Google Antigravity"
33
+ preferred: false
34
+ installer:
35
+ target_dir: .agent/skills
36
+ global_target_dir: ~/.gemini/antigravity/skills
37
+
38
+ antigravity-cli:
39
+ name: "Antigravity CLI (AGY)"
40
+ preferred: false
41
+ installer:
42
+ target_dir: .agents/skills
43
+ global_target_dir: ~/.gemini/antigravity-cli/skills
44
+
45
+ auggie:
46
+ name: "Auggie"
47
+ preferred: false
48
+ installer:
49
+ target_dir: .agents/skills
50
+ global_target_dir: ~/.agents/skills
51
+
52
+ bob:
53
+ name: "IBM Bob"
54
+ preferred: false
55
+ installer:
56
+ target_dir: .bob/skills
57
+ global_target_dir: ~/.bob/skills
58
+
59
+ claude-code:
60
+ name: "Claude Code"
61
+ preferred: true
62
+ installer:
63
+ target_dir: .claude/skills
64
+ global_target_dir: ~/.claude/skills
65
+
66
+ cline:
67
+ name: "Cline"
68
+ preferred: false
69
+ installer:
70
+ target_dir: .cline/skills
71
+ global_target_dir: ~/.cline/skills
72
+
73
+ codex:
74
+ name: "Codex"
75
+ preferred: true
76
+ installer:
77
+ target_dir: .agents/skills
78
+ global_target_dir: ~/.codex/skills
79
+
80
+ codewhale:
81
+ name: "CodeWhale"
82
+ preferred: false
83
+ installer:
84
+ target_dir: .codewhale/skills
85
+ global_target_dir: ~/.codewhale/skills
86
+
87
+ codebuddy:
88
+ name: "CodeBuddy"
89
+ preferred: false
90
+ installer:
91
+ target_dir: .codebuddy/skills
92
+ global_target_dir: ~/.codebuddy/skills
93
+
94
+ command-code:
95
+ name: "Command Code"
96
+ preferred: false
97
+ installer:
98
+ target_dir: .agents/skills
99
+ global_target_dir: ~/.agents/skills
100
+
101
+ cortex:
102
+ name: "Snowflake Cortex Code"
103
+ preferred: false
104
+ installer:
105
+ target_dir: .cortex/skills
106
+ global_target_dir: ~/.snowflake/cortex/skills
107
+
108
+ crush:
109
+ name: "Crush"
110
+ preferred: false
111
+ installer:
112
+ target_dir: .agents/skills
113
+ global_target_dir: ~/.config/agents/skills
114
+
115
+ cursor:
116
+ name: "Cursor"
117
+ preferred: true
118
+ installer:
119
+ target_dir: .agents/skills
120
+ global_target_dir: ~/.agents/skills
121
+
122
+ droid:
123
+ name: "Factory Droid"
124
+ preferred: false
125
+ installer:
126
+ target_dir: .factory/skills
127
+ global_target_dir: ~/.factory/skills
128
+
129
+ firebender:
130
+ name: "Firebender"
131
+ preferred: false
132
+ installer:
133
+ target_dir: .firebender/skills
134
+ global_target_dir: ~/.agents/skills
135
+
136
+ gemini:
137
+ name: "Gemini CLI"
138
+ preferred: false
139
+ installer:
140
+ target_dir: .agents/skills
141
+ global_target_dir: ~/.agents/skills
142
+
143
+ github-copilot:
144
+ name: "GitHub Copilot"
145
+ preferred: true
146
+ installer:
147
+ target_dir: .agents/skills
148
+ global_target_dir: ~/.agents/skills
149
+ commands_target_dir: .github/agents
150
+ commands_extension: .agent.md
151
+ commands_body_template: "LOAD the FULL {project-root}/{target_dir}/{canonicalId}/SKILL.md, READ its entire contents and follow its directions exactly!"
152
+ # The Custom Agents picker should only show persona agents (not
153
+ # workflows/tools). Detected by reading each skill's source
154
+ # `customize.toml` and checking for an `[agent]` section — that's
155
+ # the actual configuration source of truth: every DRT persona is
156
+ # configured under `[agent]`, every workflow under `[workflow]`,
157
+ # every standalone skill has no customize.toml. This signal is
158
+ # naming-independent, so personas like `drt-tea` (which doesn't
159
+ # follow the `-agent-` convention) are still included, and
160
+ # meta-skills like `drt-agent-builder` (which contains `-agent-`
161
+ # but is a skill-builder workflow, not a persona) are correctly
162
+ # excluded.
163
+ commands_filter: agents-only
164
+
165
+ goose:
166
+ name: "Block Goose"
167
+ preferred: false
168
+ installer:
169
+ target_dir: .agents/skills
170
+ global_target_dir: ~/.config/agents/skills
171
+
172
+ hermes:
173
+ name: "Hermes Agent"
174
+ preferred: false
175
+ installer:
176
+ target_dir: .agents/skills
177
+ global_target_dir: ~/.hermes/skills
178
+
179
+ iflow:
180
+ name: "iFlow"
181
+ preferred: false
182
+ installer:
183
+ target_dir: .iflow/skills
184
+ global_target_dir: ~/.iflow/skills
185
+
186
+ junie:
187
+ name: "Junie"
188
+ preferred: false
189
+ installer:
190
+ target_dir: .junie/skills
191
+ global_target_dir: ~/.junie/skills
192
+
193
+ kilo:
194
+ name: "KiloCoder"
195
+ preferred: false
196
+ installer:
197
+ target_dir: .agents/skills
198
+ global_target_dir: ~/.kilocode/skills
199
+
200
+ kimi-code:
201
+ name: "Kimi Code"
202
+ preferred: false
203
+ installer:
204
+ target_dir: .agents/skills
205
+ global_target_dir: ~/.agents/skills
206
+
207
+ kiro:
208
+ name: "Kiro"
209
+ preferred: false
210
+ installer:
211
+ target_dir: .kiro/skills
212
+ global_target_dir: ~/.kiro/skills
213
+
214
+ kode:
215
+ name: "Kode"
216
+ preferred: false
217
+ installer:
218
+ target_dir: .kode/skills
219
+ global_target_dir: ~/.kode/skills
220
+
221
+ mistral-vibe:
222
+ name: "Mistral Vibe"
223
+ preferred: false
224
+ installer:
225
+ target_dir: .agents/skills
226
+ global_target_dir: ~/.vibe/skills
227
+
228
+ mux:
229
+ name: "Mux"
230
+ preferred: false
231
+ installer:
232
+ target_dir: .agents/skills
233
+ global_target_dir: ~/.agents/skills
234
+
235
+ neovate:
236
+ name: "Neovate"
237
+ preferred: false
238
+ installer:
239
+ target_dir: .neovate/skills
240
+ global_target_dir: ~/.neovate/skills
241
+
242
+ ona:
243
+ name: "Ona"
244
+ preferred: false
245
+ installer:
246
+ target_dir: .ona/skills
247
+
248
+ openclaw:
249
+ name: "OpenClaw"
250
+ preferred: false
251
+ installer:
252
+ target_dir: .agents/skills
253
+ global_target_dir: ~/.agents/skills
254
+
255
+ opencode:
256
+ name: "OpenCode"
257
+ preferred: false
258
+ installer:
259
+ target_dir: .agents/skills
260
+ global_target_dir: ~/.agents/skills
261
+ commands_target_dir: .opencode/commands
262
+
263
+ openhands:
264
+ name: "OpenHands"
265
+ preferred: false
266
+ installer:
267
+ target_dir: .agents/skills
268
+ global_target_dir: ~/.agents/skills
269
+
270
+ pi:
271
+ name: "Pi"
272
+ preferred: false
273
+ installer:
274
+ target_dir: .agents/skills
275
+ global_target_dir: ~/.agents/skills
276
+
277
+ pochi:
278
+ name: "Pochi"
279
+ preferred: false
280
+ installer:
281
+ target_dir: .agents/skills
282
+ global_target_dir: ~/.agents/skills
283
+
284
+ qoder:
285
+ name: "Qoder"
286
+ preferred: false
287
+ installer:
288
+ target_dir: .qoder/skills
289
+ global_target_dir: ~/.qoder/skills
290
+
291
+ qwen:
292
+ name: "QwenCoder"
293
+ preferred: false
294
+ installer:
295
+ target_dir: .qwen/skills
296
+ global_target_dir: ~/.qwen/skills
297
+
298
+ replit:
299
+ name: "Replit Agent"
300
+ preferred: false
301
+ installer:
302
+ target_dir: .agents/skills
303
+
304
+ roo:
305
+ name: "Roo Code"
306
+ preferred: false
307
+ installer:
308
+ target_dir: .agents/skills
309
+ global_target_dir: ~/.agents/skills
310
+
311
+ rovo-dev:
312
+ name: "Rovo Dev"
313
+ preferred: false
314
+ installer:
315
+ target_dir: .agents/skills
316
+ global_target_dir: ~/.agents/skills
317
+
318
+ trae:
319
+ name: "Trae"
320
+ preferred: false
321
+ installer:
322
+ target_dir: .trae/skills
323
+
324
+ warp:
325
+ name: "Warp"
326
+ preferred: false
327
+ installer:
328
+ target_dir: .agents/skills
329
+ global_target_dir: ~/.agents/skills
330
+
331
+ windsurf:
332
+ name: "Windsurf"
333
+ preferred: false
334
+ installer:
335
+ target_dir: .agents/skills
336
+ global_target_dir: ~/.agents/skills
337
+
338
+ zencoder:
339
+ name: "Zencoder"
340
+ preferred: false
341
+ installer:
342
+ target_dir: .zencoder/skills
343
+ global_target_dir: ~/.zencoder/skills
@@ -0,0 +1,50 @@
1
+ const path = require('node:path');
2
+ const fs = require('../../fs-native');
3
+ const csv = require('csv-parse/sync');
4
+
5
+ /**
6
+ * Read the global skill-manifest.csv and return the set of canonicalIds.
7
+ * These define which directory entries in a target_dir are DRT-owned, regardless
8
+ * of whether they happen to start with "drt-" (custom modules can ship skills
9
+ * with any prefix, e.g. "fred-cool-skill").
10
+ *
11
+ * @param {string} drtDir - Path to the _drt install directory
12
+ * @returns {Promise<Set<string>>} Set of canonicalIds, or empty set if manifest missing
13
+ */
14
+ async function getInstalledCanonicalIds(drtDir) {
15
+ const ids = new Set();
16
+ if (!drtDir) return ids;
17
+
18
+ const csvPath = path.join(drtDir, '_config', 'skill-manifest.csv');
19
+ if (!(await fs.pathExists(csvPath))) return ids;
20
+
21
+ try {
22
+ const content = await fs.readFile(csvPath, 'utf8');
23
+ const records = csv.parse(content, { columns: true, skip_empty_lines: true });
24
+ for (const record of records) {
25
+ if (record.canonicalId) ids.add(record.canonicalId);
26
+ }
27
+ } catch {
28
+ // Unreadable/invalid manifest — treat as no info
29
+ }
30
+
31
+ return ids;
32
+ }
33
+
34
+ /**
35
+ * Test whether a directory entry is DRT-owned.
36
+ * Prefers the manifest's canonicalIds; falls back to the legacy "drt" prefix
37
+ * when no manifest is available (early install, ancestor lookup with no drt dir).
38
+ *
39
+ * @param {string} entry - Directory entry name
40
+ * @param {Set<string>|null} canonicalIds - From getInstalledCanonicalIds, or null
41
+ * @returns {boolean}
42
+ */
43
+ function isDrtOwnedEntry(entry, canonicalIds) {
44
+ if (!entry || typeof entry !== 'string') return false;
45
+ if (entry.toLowerCase().startsWith('drt-os-')) return false;
46
+ if (canonicalIds && canonicalIds.size > 0) return canonicalIds.has(entry);
47
+ return entry.toLowerCase().startsWith('drt');
48
+ }
49
+
50
+ module.exports = { getInstalledCanonicalIds, isDrtOwnedEntry };
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Path transformation utilities for IDE installer standardization
3
+ *
4
+ * Provides utilities to convert hierarchical paths to flat naming conventions.
5
+ *
6
+ * DASH-BASED NAMING (new standard):
7
+ * - Agents: drt-agent-module-name.md (with drt-agent- prefix)
8
+ * - Workflows/Tasks/Tools: drt-module-name.md
9
+ *
10
+ * Example outputs:
11
+ * - cis/agents/storymaster.md → drt-agent-cis-storymaster.md
12
+ * - bmm/workflows/plan-project.md → drt-plan-project.md
13
+ * - bmm/tasks/create-story.md → drt-create-story.md
14
+ * - core/agents/brainstorming.md → drt-agent-brainstorming.md (core agents skip module name)
15
+ * - standalone/agents/fred.md → drt-agent-standalone-fred.md
16
+ */
17
+
18
+ const AGENT_SEGMENT = 'agents';
19
+
20
+ const DRT_FOLDER_NAME = '_drt';
21
+
22
+ /**
23
+ * Convert hierarchical path to flat dash-separated name (NEW STANDARD)
24
+ * Converts: 'drt', 'agents', 'pm' → 'drt-agent-pm.md'
25
+ * Converts: 'drt', 'workflows', 'correct-course' → 'drt-correct-course.md'
26
+ * Converts: 'core', 'agents', 'brainstorming' → 'drt-agent-brainstorming.md' (core agents skip module name)
27
+ * Converts: 'standalone', 'agents', 'fred' → 'drt-agent-standalone-fred.md'
28
+ *
29
+ * @param {string} module - Module name (e.g., 'drt', 'core', 'standalone')
30
+ * @param {string} type - Artifact type ('agents', 'workflows', 'tasks', 'tools')
31
+ * @param {string} name - Artifact name (e.g., 'pm', 'brainstorming')
32
+ * @returns {string} Flat filename like 'drt-agent-pm.md' or 'drt-correct-course.md'
33
+ */
34
+ function toDashName(module, type, name) {
35
+ const isAgent = type === AGENT_SEGMENT;
36
+
37
+ if (module === 'core' || module === 'drt') {
38
+ return isAgent ? `drt-agent-${name}.md` : `drt-${name}.md`;
39
+ }
40
+ // For standalone module, include 'standalone' in the name
41
+ if (module === 'standalone') {
42
+ return isAgent ? `drt-agent-standalone-${name}.md` : `drt-standalone-${name}.md`;
43
+ }
44
+
45
+ // Module artifacts: drt-module-name.md or drt-agent-module-name.md
46
+ // eslint-disable-next-line unicorn/prefer-string-replace-all -- regex replace is intentional here
47
+ const dashName = name.replace(/\//g, '-'); // Flatten nested paths
48
+ return isAgent ? `drt-agent-${module}-${dashName}.md` : `drt-${module}-${dashName}.md`;
49
+ }
50
+
51
+ /**
52
+ * Convert relative path to flat dash-separated name
53
+ * Converts: 'bmm/agents/pm.md' → 'drt-agent-pm.md'
54
+ * Converts: 'bmm/agents/tech-writer/tech-writer.md' → 'drt-agent-tech-writer.md' (uses folder name)
55
+ * Converts: 'bmm/workflows/correct-course.md' → 'drt-correct-course.md'
56
+ * Converts: 'core/agents/brainstorming.md' → 'drt-agent-brainstorming.md' (core agents skip module name)
57
+ *
58
+ * @param {string} relativePath - Path like 'bmm/agents/pm.md'
59
+ * @returns {string} Flat filename like 'drt-agent-pm.md' or 'drt-brainstorming.md'
60
+ */
61
+ function toDashPath(relativePath) {
62
+ if (!relativePath || typeof relativePath !== 'string') {
63
+ // Return a safe default for invalid input
64
+ return 'drt-unknown.md';
65
+ }
66
+
67
+ // Strip common file extensions to avoid double extensions in generated filenames
68
+ // e.g., 'create-story.xml' → 'create-story', 'workflow.md' → 'workflow'
69
+ const withoutExt = relativePath.replace(/\.(md|yaml|yml|json|xml|toml)$/i, '');
70
+ const parts = withoutExt.split(/[/\\]/);
71
+
72
+ const module = parts[0];
73
+ const type = parts[1];
74
+ let name;
75
+
76
+ // For agents, if nested in a folder (more than 3 parts), use the folder name only
77
+ // e.g., 'bmm/agents/tech-writer/tech-writer' → 'tech-writer' (not 'tech-writer-tech-writer')
78
+ if (type === 'agents' && parts.length > 3) {
79
+ // Use the folder name (parts[2]) as the name, ignore the file name
80
+ name = parts[2];
81
+ } else {
82
+ // For non-nested or non-agents, join all parts after type
83
+ name = parts.slice(2).join('-');
84
+ }
85
+
86
+ return toDashName(module, type, name);
87
+ }
88
+
89
+ /**
90
+ * Create custom agent dash name
91
+ * Creates: 'drt-custom-agent-fred-commit-poet.md'
92
+ *
93
+ * @param {string} agentName - Custom agent name
94
+ * @returns {string} Flat filename like 'drt-custom-agent-fred-commit-poet.md'
95
+ */
96
+ function customAgentDashName(agentName) {
97
+ return `drt-custom-agent-${agentName}.md`;
98
+ }
99
+
100
+ /**
101
+ * Check if a filename uses dash format
102
+ * @param {string} filename - Filename to check
103
+ * @returns {boolean} True if filename uses dash format
104
+ */
105
+ function isDashFormat(filename) {
106
+ return filename.startsWith('drt-') && filename.includes('-');
107
+ }
108
+
109
+ /**
110
+ * Extract parts from a dash-formatted filename
111
+ * Parses: 'drt-agent-pm.md' → { prefix: 'drt', module: 'drt', type: 'agents', name: 'pm' }
112
+ * Parses: 'drt-correct-course.md' → { prefix: 'drt', module: 'drt', type: 'workflows', name: 'correct-course' }
113
+ * Parses: 'drt-agent-brainstorming.md' → { prefix: 'drt', module: 'core', type: 'agents', name: 'brainstorming' } (core agents)
114
+ * Parses: 'drt-brainstorming.md' → { prefix: 'drt', module: 'core', type: 'workflows', name: 'brainstorming' } (core workflows)
115
+ * Parses: 'drt-agent-standalone-fred.md' → { prefix: 'drt', module: 'standalone', type: 'agents', name: 'fred' }
116
+ * Parses: 'drt-standalone-foo.md' → { prefix: 'drt', module: 'standalone', type: 'workflows', name: 'foo' }
117
+ *
118
+ * @param {string} filename - Dash-formatted filename
119
+ * @returns {Object|null} Parsed parts or null if invalid format
120
+ */
121
+ function parseDashName(filename) {
122
+ const withoutExt = filename.replace('.md', '');
123
+ const parts = withoutExt.split('-');
124
+
125
+ if (parts.length < 2 || parts[0] !== 'drt') {
126
+ return null;
127
+ }
128
+
129
+ // Check if this is an agent file (has 'agent' as second part)
130
+ const isAgent = parts[1] === 'agent';
131
+
132
+ if (isAgent) {
133
+ // This is an agent file
134
+ // Format: drt-agent-name (core) or drt-agent-standalone-name or drt-agent-module-name
135
+ if (parts.length >= 4 && parts[2] === 'standalone') {
136
+ // Standalone agent: drt-agent-standalone-name
137
+ return {
138
+ prefix: parts[0],
139
+ module: 'standalone',
140
+ type: 'agents',
141
+ name: parts.slice(3).join('-'),
142
+ };
143
+ }
144
+ if (parts.length === 3) {
145
+ // Core agent: drt-agent-name
146
+ return {
147
+ prefix: parts[0],
148
+ module: 'core',
149
+ type: 'agents',
150
+ name: parts[2],
151
+ };
152
+ } else {
153
+ // Module agent: drt-agent-module-name
154
+ return {
155
+ prefix: parts[0],
156
+ module: parts[2],
157
+ type: 'agents',
158
+ name: parts.slice(3).join('-'),
159
+ };
160
+ }
161
+ }
162
+
163
+ // Not an agent file - must be a workflow/tool/task
164
+ // If only 2 parts (drt-name), it's a core workflow/tool/task
165
+ if (parts.length === 2) {
166
+ return {
167
+ prefix: parts[0],
168
+ module: 'core',
169
+ type: 'workflows', // Default to workflows for non-agent core items
170
+ name: parts[1],
171
+ };
172
+ }
173
+
174
+ // Check for standalone non-agent: drt-standalone-name
175
+ if (parts[1] === 'standalone') {
176
+ return {
177
+ prefix: parts[0],
178
+ module: 'standalone',
179
+ type: 'workflows', // Default to workflows for non-agent standalone items
180
+ name: parts.slice(2).join('-'),
181
+ };
182
+ }
183
+
184
+ // Otherwise, it's a module workflow/tool/task (drt-module-name)
185
+ return {
186
+ prefix: parts[0],
187
+ module: parts[1],
188
+ type: 'workflows', // Default to workflows for non-agent module items
189
+ name: parts.slice(2).join('-'),
190
+ };
191
+ }
192
+
193
+ /**
194
+ * Resolve the skill name for an artifact.
195
+ * Prefers canonicalId from a drt-skill-manifest.yaml sidecar when available,
196
+ * falling back to the path-derived name from toDashPath().
197
+ *
198
+ * @param {Object} artifact - Artifact object (must have relativePath; may have canonicalId)
199
+ * @returns {string} Filename like 'drt-create-prd.md' or 'drt-agent-pm.md'
200
+ */
201
+ function resolveSkillName(artifact) {
202
+ if (artifact.canonicalId) {
203
+ return `${artifact.canonicalId}.md`;
204
+ }
205
+ return toDashPath(artifact.relativePath);
206
+ }
207
+
208
+ module.exports = {
209
+ toDashName,
210
+ toDashPath,
211
+ resolveSkillName,
212
+ customAgentDashName,
213
+ isDashFormat,
214
+ parseDashName,
215
+ AGENT_SEGMENT,
216
+ DRT_FOLDER_NAME,
217
+ };
@@ -0,0 +1,57 @@
1
+ const path = require('node:path');
2
+ const fs = require('../../fs-native');
3
+ const yaml = require('yaml');
4
+
5
+ /**
6
+ * Load drt-skill-manifest.yaml from a directory.
7
+ * Single-entry manifests (canonicalId at top level) apply to all files in the directory.
8
+ * Multi-entry manifests are keyed by source filename.
9
+ * @param {string} dirPath - Directory to check for drt-skill-manifest.yaml
10
+ * @returns {Object|null} Parsed manifest or null
11
+ */
12
+ async function loadSkillManifest(dirPath) {
13
+ const manifestPath = path.join(dirPath, 'drt-skill-manifest.yaml');
14
+ try {
15
+ if (!(await fs.pathExists(manifestPath))) return null;
16
+ const content = await fs.readFile(manifestPath, 'utf8');
17
+ const parsed = yaml.parse(content);
18
+ if (!parsed || typeof parsed !== 'object') return null;
19
+ if (parsed.canonicalId || parsed.type) return { __single: parsed };
20
+ return parsed;
21
+ } catch (error) {
22
+ console.warn(`Warning: Failed to parse drt-skill-manifest.yaml in ${dirPath}: ${error.message}`);
23
+ return null;
24
+ }
25
+ }
26
+
27
+ /**
28
+ * Get the canonicalId for a specific file from a loaded skill manifest.
29
+ * @param {Object|null} manifest - Loaded manifest (from loadSkillManifest)
30
+ * @param {string} filename - Source filename to look up (e.g., 'pm.md', 'help.md')
31
+ * @returns {string} canonicalId or empty string
32
+ */
33
+ function getCanonicalId(manifest, filename) {
34
+ if (!manifest) return '';
35
+ // Single-entry manifest applies to all files in the directory
36
+ if (manifest.__single) return manifest.__single.canonicalId || '';
37
+ // Multi-entry: look up by filename directly
38
+ if (manifest[filename]) return manifest[filename].canonicalId || '';
39
+ return '';
40
+ }
41
+
42
+ /**
43
+ * Get the artifact type for a specific file from a loaded skill manifest.
44
+ * @param {Object|null} manifest - Loaded manifest (from loadSkillManifest)
45
+ * @param {string} filename - Source filename to look up
46
+ * @returns {string|null} type or null
47
+ */
48
+ function getArtifactType(manifest, filename) {
49
+ if (!manifest) return null;
50
+ // Single-entry manifest applies to all files in the directory
51
+ if (manifest.__single) return manifest.__single.type || null;
52
+ // Multi-entry: look up by filename directly
53
+ if (manifest[filename]) return manifest[filename].type || null;
54
+ return null;
55
+ }
56
+
57
+ module.exports = { loadSkillManifest, getCanonicalId, getArtifactType };
@@ -0,0 +1,29 @@
1
+ # DRT Installer Messages
2
+ # These messages are displayed during installation
3
+ # Edit this file to change what users see during the install process
4
+
5
+ # Display at the START of installation (after logo, before prompts)
6
+ startMessage: |
7
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8
+
9
+ DRT Method is ready to guide your project from idea to delivery.
10
+ Install official and community modules during setup to customize your experience.
11
+
12
+ 🌟 100% free. 100% open source. Always.
13
+ No paywalls. No gated content. Knowledge shared, not sold.
14
+
15
+ 🐍 HEADS UP: uv (https://docs.astral.sh/uv/) is becoming the de facto standard
16
+ for running the Python scripts DRT workflows rely on (`uv run <script>`).
17
+ If it's not set up yet, ask your AI agent to "install and set up uv for me".
18
+
19
+ 🌐 CONNECT:
20
+ Website: https://github.com/drt-method/DRT-METHOD
21
+ Docs: https://github.com/drt-method/DRT-METHOD/tree/main
22
+
23
+ ⭐ SUPPORT THE PROJECT:
24
+ Star us: https://github.com/drt-method/DRT-METHOD/
25
+
26
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
27
+
28
+ # No end message - install summary and next steps are rendered by the installer
29
+ endMessage: ""