mustflow 1.18.16 → 1.30.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 (303) hide show
  1. package/README.md +16 -6
  2. package/dist/cli/commands/adapters.js +90 -0
  3. package/dist/cli/commands/classify.js +3 -4
  4. package/dist/cli/commands/contract-lint.js +26 -6
  5. package/dist/cli/commands/dashboard.js +103 -4
  6. package/dist/cli/commands/explain-verify.js +213 -0
  7. package/dist/cli/commands/explain.js +48 -4
  8. package/dist/cli/commands/handoff.js +136 -0
  9. package/dist/cli/commands/run.js +97 -136
  10. package/dist/cli/commands/update.js +91 -61
  11. package/dist/cli/commands/verify.js +230 -137
  12. package/dist/cli/i18n/en.js +65 -4
  13. package/dist/cli/i18n/es.js +65 -4
  14. package/dist/cli/i18n/fr.js +65 -4
  15. package/dist/cli/i18n/hi.js +65 -4
  16. package/dist/cli/i18n/ko.js +65 -4
  17. package/dist/cli/i18n/zh.js +65 -4
  18. package/dist/cli/index.js +11 -0
  19. package/dist/cli/lib/command-registry.js +10 -0
  20. package/dist/cli/lib/dashboard-export.js +775 -0
  21. package/dist/cli/lib/local-index.js +22 -6
  22. package/dist/cli/lib/run-plan.js +222 -0
  23. package/dist/cli/lib/templates.js +18 -3
  24. package/dist/cli/lib/update-diff-preview.js +163 -0
  25. package/dist/cli/lib/validation.js +22 -0
  26. package/dist/core/adapter-compatibility.js +235 -0
  27. package/dist/core/change-classification.js +9 -0
  28. package/dist/core/change-verification.js +10 -3
  29. package/dist/core/check-issues.js +4 -0
  30. package/dist/core/command-contract-validation.js +14 -0
  31. package/dist/core/command-cwd.js +18 -6
  32. package/dist/core/command-env.js +91 -0
  33. package/dist/core/contract-lint.js +165 -3
  34. package/dist/core/contract-models.js +172 -0
  35. package/dist/core/dashboard-verification.js +2 -0
  36. package/dist/core/doc-review-triage.js +1 -0
  37. package/dist/core/handoff-record.js +376 -0
  38. package/dist/core/public-json-contracts.js +16 -0
  39. package/dist/core/run-receipt.js +46 -7
  40. package/dist/core/run-write-drift.js +180 -0
  41. package/dist/core/secret-redaction.js +39 -0
  42. package/dist/core/source-anchors.js +3 -5
  43. package/dist/core/verification-decision-graph.js +223 -0
  44. package/package.json +3 -1
  45. package/schemas/README.md +11 -4
  46. package/schemas/adapter-compatibility-report.schema.json +184 -0
  47. package/schemas/change-verification-report.schema.json +133 -1
  48. package/schemas/commands.schema.json +8 -1
  49. package/schemas/contract-lint-report.schema.json +48 -0
  50. package/schemas/explain-report.schema.json +265 -2
  51. package/schemas/handoff-validation-report.schema.json +68 -0
  52. package/schemas/run-receipt.schema.json +74 -1
  53. package/templates/default/common/.mustflow/config/commands.toml +2 -0
  54. package/templates/default/i18n.toml +78 -234
  55. package/templates/default/locales/en/.mustflow/skills/INDEX.md +7 -3
  56. package/templates/default/locales/en/.mustflow/skills/architecture-deepening-review/SKILL.md +154 -0
  57. package/templates/default/locales/en/.mustflow/skills/behavior-preserving-refactor/SKILL.md +8 -3
  58. package/templates/default/locales/en/.mustflow/skills/code-review/SKILL.md +9 -4
  59. package/templates/default/locales/en/.mustflow/skills/date-number-audit/SKILL.md +19 -4
  60. package/templates/default/locales/en/.mustflow/skills/diff-risk-review/SKILL.md +4 -2
  61. package/templates/default/locales/en/.mustflow/skills/external-skill-intake/SKILL.md +141 -0
  62. package/templates/default/locales/en/.mustflow/skills/release-notes-authoring/SKILL.md +143 -0
  63. package/templates/default/locales/en/.mustflow/skills/repro-first-debug/SKILL.md +22 -8
  64. package/templates/default/locales/en/.mustflow/skills/skill-authoring/SKILL.md +3 -3
  65. package/templates/default/locales/en/.mustflow/skills/source-freshness-check/SKILL.md +22 -9
  66. package/templates/default/locales/en/.mustflow/skills/ui-quality-gate/SKILL.md +21 -13
  67. package/templates/default/locales/en/.mustflow/skills/vertical-slice-tdd/SKILL.md +167 -0
  68. package/templates/default/manifest.toml +16 -1
  69. package/templates/default/locales/es/.mustflow/skills/INDEX.md +0 -75
  70. package/templates/default/locales/es/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
  71. package/templates/default/locales/es/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
  72. package/templates/default/locales/es/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
  73. package/templates/default/locales/es/.mustflow/skills/code-review/SKILL.md +0 -115
  74. package/templates/default/locales/es/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
  75. package/templates/default/locales/es/.mustflow/skills/command-pattern/SKILL.md +0 -247
  76. package/templates/default/locales/es/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
  77. package/templates/default/locales/es/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
  78. package/templates/default/locales/es/.mustflow/skills/database-change-safety/SKILL.md +0 -155
  79. package/templates/default/locales/es/.mustflow/skills/date-number-audit/SKILL.md +0 -116
  80. package/templates/default/locales/es/.mustflow/skills/dependency-injection/SKILL.md +0 -161
  81. package/templates/default/locales/es/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
  82. package/templates/default/locales/es/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
  83. package/templates/default/locales/es/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
  84. package/templates/default/locales/es/.mustflow/skills/docs-update/SKILL.md +0 -97
  85. package/templates/default/locales/es/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
  86. package/templates/default/locales/es/.mustflow/skills/facade-pattern/SKILL.md +0 -210
  87. package/templates/default/locales/es/.mustflow/skills/failure-triage/SKILL.md +0 -97
  88. package/templates/default/locales/es/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
  89. package/templates/default/locales/es/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
  90. package/templates/default/locales/es/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
  91. package/templates/default/locales/es/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
  92. package/templates/default/locales/es/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
  93. package/templates/default/locales/es/.mustflow/skills/pattern-scout/SKILL.md +0 -110
  94. package/templates/default/locales/es/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
  95. package/templates/default/locales/es/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
  96. package/templates/default/locales/es/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
  97. package/templates/default/locales/es/.mustflow/skills/readme-authoring/SKILL.md +0 -115
  98. package/templates/default/locales/es/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
  99. package/templates/default/locales/es/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
  100. package/templates/default/locales/es/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
  101. package/templates/default/locales/es/.mustflow/skills/result-option/SKILL.md +0 -186
  102. package/templates/default/locales/es/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
  103. package/templates/default/locales/es/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
  104. package/templates/default/locales/es/.mustflow/skills/skill-authoring/SKILL.md +0 -110
  105. package/templates/default/locales/es/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
  106. package/templates/default/locales/es/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
  107. package/templates/default/locales/es/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
  108. package/templates/default/locales/es/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
  109. package/templates/default/locales/es/.mustflow/skills/test-design-guard/SKILL.md +0 -162
  110. package/templates/default/locales/es/.mustflow/skills/test-maintenance/SKILL.md +0 -122
  111. package/templates/default/locales/es/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
  112. package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
  113. package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
  114. package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
  115. package/templates/default/locales/es/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
  116. package/templates/default/locales/fr/.mustflow/skills/INDEX.md +0 -75
  117. package/templates/default/locales/fr/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
  118. package/templates/default/locales/fr/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
  119. package/templates/default/locales/fr/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
  120. package/templates/default/locales/fr/.mustflow/skills/code-review/SKILL.md +0 -115
  121. package/templates/default/locales/fr/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
  122. package/templates/default/locales/fr/.mustflow/skills/command-pattern/SKILL.md +0 -247
  123. package/templates/default/locales/fr/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
  124. package/templates/default/locales/fr/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
  125. package/templates/default/locales/fr/.mustflow/skills/database-change-safety/SKILL.md +0 -155
  126. package/templates/default/locales/fr/.mustflow/skills/date-number-audit/SKILL.md +0 -116
  127. package/templates/default/locales/fr/.mustflow/skills/dependency-injection/SKILL.md +0 -161
  128. package/templates/default/locales/fr/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
  129. package/templates/default/locales/fr/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
  130. package/templates/default/locales/fr/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
  131. package/templates/default/locales/fr/.mustflow/skills/docs-update/SKILL.md +0 -97
  132. package/templates/default/locales/fr/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
  133. package/templates/default/locales/fr/.mustflow/skills/facade-pattern/SKILL.md +0 -210
  134. package/templates/default/locales/fr/.mustflow/skills/failure-triage/SKILL.md +0 -97
  135. package/templates/default/locales/fr/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
  136. package/templates/default/locales/fr/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
  137. package/templates/default/locales/fr/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
  138. package/templates/default/locales/fr/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
  139. package/templates/default/locales/fr/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
  140. package/templates/default/locales/fr/.mustflow/skills/pattern-scout/SKILL.md +0 -110
  141. package/templates/default/locales/fr/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
  142. package/templates/default/locales/fr/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
  143. package/templates/default/locales/fr/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
  144. package/templates/default/locales/fr/.mustflow/skills/readme-authoring/SKILL.md +0 -115
  145. package/templates/default/locales/fr/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
  146. package/templates/default/locales/fr/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
  147. package/templates/default/locales/fr/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
  148. package/templates/default/locales/fr/.mustflow/skills/result-option/SKILL.md +0 -186
  149. package/templates/default/locales/fr/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
  150. package/templates/default/locales/fr/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
  151. package/templates/default/locales/fr/.mustflow/skills/skill-authoring/SKILL.md +0 -110
  152. package/templates/default/locales/fr/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
  153. package/templates/default/locales/fr/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
  154. package/templates/default/locales/fr/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
  155. package/templates/default/locales/fr/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
  156. package/templates/default/locales/fr/.mustflow/skills/test-design-guard/SKILL.md +0 -162
  157. package/templates/default/locales/fr/.mustflow/skills/test-maintenance/SKILL.md +0 -122
  158. package/templates/default/locales/fr/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
  159. package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
  160. package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
  161. package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
  162. package/templates/default/locales/fr/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
  163. package/templates/default/locales/hi/.mustflow/skills/INDEX.md +0 -75
  164. package/templates/default/locales/hi/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
  165. package/templates/default/locales/hi/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
  166. package/templates/default/locales/hi/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
  167. package/templates/default/locales/hi/.mustflow/skills/code-review/SKILL.md +0 -115
  168. package/templates/default/locales/hi/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
  169. package/templates/default/locales/hi/.mustflow/skills/command-pattern/SKILL.md +0 -247
  170. package/templates/default/locales/hi/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
  171. package/templates/default/locales/hi/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
  172. package/templates/default/locales/hi/.mustflow/skills/database-change-safety/SKILL.md +0 -155
  173. package/templates/default/locales/hi/.mustflow/skills/date-number-audit/SKILL.md +0 -116
  174. package/templates/default/locales/hi/.mustflow/skills/dependency-injection/SKILL.md +0 -161
  175. package/templates/default/locales/hi/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
  176. package/templates/default/locales/hi/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
  177. package/templates/default/locales/hi/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
  178. package/templates/default/locales/hi/.mustflow/skills/docs-update/SKILL.md +0 -97
  179. package/templates/default/locales/hi/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
  180. package/templates/default/locales/hi/.mustflow/skills/facade-pattern/SKILL.md +0 -210
  181. package/templates/default/locales/hi/.mustflow/skills/failure-triage/SKILL.md +0 -97
  182. package/templates/default/locales/hi/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
  183. package/templates/default/locales/hi/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
  184. package/templates/default/locales/hi/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
  185. package/templates/default/locales/hi/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
  186. package/templates/default/locales/hi/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
  187. package/templates/default/locales/hi/.mustflow/skills/pattern-scout/SKILL.md +0 -110
  188. package/templates/default/locales/hi/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
  189. package/templates/default/locales/hi/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
  190. package/templates/default/locales/hi/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
  191. package/templates/default/locales/hi/.mustflow/skills/readme-authoring/SKILL.md +0 -115
  192. package/templates/default/locales/hi/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
  193. package/templates/default/locales/hi/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
  194. package/templates/default/locales/hi/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
  195. package/templates/default/locales/hi/.mustflow/skills/result-option/SKILL.md +0 -186
  196. package/templates/default/locales/hi/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
  197. package/templates/default/locales/hi/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
  198. package/templates/default/locales/hi/.mustflow/skills/skill-authoring/SKILL.md +0 -110
  199. package/templates/default/locales/hi/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
  200. package/templates/default/locales/hi/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
  201. package/templates/default/locales/hi/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
  202. package/templates/default/locales/hi/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
  203. package/templates/default/locales/hi/.mustflow/skills/test-design-guard/SKILL.md +0 -162
  204. package/templates/default/locales/hi/.mustflow/skills/test-maintenance/SKILL.md +0 -122
  205. package/templates/default/locales/hi/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
  206. package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
  207. package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
  208. package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
  209. package/templates/default/locales/hi/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
  210. package/templates/default/locales/ko/.mustflow/skills/INDEX.md +0 -80
  211. package/templates/default/locales/ko/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
  212. package/templates/default/locales/ko/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
  213. package/templates/default/locales/ko/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
  214. package/templates/default/locales/ko/.mustflow/skills/code-review/SKILL.md +0 -118
  215. package/templates/default/locales/ko/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
  216. package/templates/default/locales/ko/.mustflow/skills/command-pattern/SKILL.md +0 -247
  217. package/templates/default/locales/ko/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
  218. package/templates/default/locales/ko/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
  219. package/templates/default/locales/ko/.mustflow/skills/database-change-safety/SKILL.md +0 -155
  220. package/templates/default/locales/ko/.mustflow/skills/date-number-audit/SKILL.md +0 -116
  221. package/templates/default/locales/ko/.mustflow/skills/dependency-injection/SKILL.md +0 -161
  222. package/templates/default/locales/ko/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
  223. package/templates/default/locales/ko/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
  224. package/templates/default/locales/ko/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
  225. package/templates/default/locales/ko/.mustflow/skills/docs-update/SKILL.md +0 -107
  226. package/templates/default/locales/ko/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
  227. package/templates/default/locales/ko/.mustflow/skills/facade-pattern/SKILL.md +0 -210
  228. package/templates/default/locales/ko/.mustflow/skills/failure-triage/SKILL.md +0 -119
  229. package/templates/default/locales/ko/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
  230. package/templates/default/locales/ko/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
  231. package/templates/default/locales/ko/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
  232. package/templates/default/locales/ko/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -259
  233. package/templates/default/locales/ko/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
  234. package/templates/default/locales/ko/.mustflow/skills/pattern-scout/SKILL.md +0 -110
  235. package/templates/default/locales/ko/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
  236. package/templates/default/locales/ko/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
  237. package/templates/default/locales/ko/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
  238. package/templates/default/locales/ko/.mustflow/skills/readme-authoring/SKILL.md +0 -115
  239. package/templates/default/locales/ko/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
  240. package/templates/default/locales/ko/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
  241. package/templates/default/locales/ko/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
  242. package/templates/default/locales/ko/.mustflow/skills/result-option/SKILL.md +0 -186
  243. package/templates/default/locales/ko/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
  244. package/templates/default/locales/ko/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
  245. package/templates/default/locales/ko/.mustflow/skills/skill-authoring/SKILL.md +0 -110
  246. package/templates/default/locales/ko/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
  247. package/templates/default/locales/ko/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
  248. package/templates/default/locales/ko/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
  249. package/templates/default/locales/ko/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
  250. package/templates/default/locales/ko/.mustflow/skills/test-design-guard/SKILL.md +0 -162
  251. package/templates/default/locales/ko/.mustflow/skills/test-maintenance/SKILL.md +0 -130
  252. package/templates/default/locales/ko/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
  253. package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
  254. package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
  255. package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
  256. package/templates/default/locales/ko/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
  257. package/templates/default/locales/zh/.mustflow/skills/INDEX.md +0 -74
  258. package/templates/default/locales/zh/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
  259. package/templates/default/locales/zh/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
  260. package/templates/default/locales/zh/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
  261. package/templates/default/locales/zh/.mustflow/skills/code-review/SKILL.md +0 -115
  262. package/templates/default/locales/zh/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
  263. package/templates/default/locales/zh/.mustflow/skills/command-pattern/SKILL.md +0 -247
  264. package/templates/default/locales/zh/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
  265. package/templates/default/locales/zh/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
  266. package/templates/default/locales/zh/.mustflow/skills/database-change-safety/SKILL.md +0 -155
  267. package/templates/default/locales/zh/.mustflow/skills/date-number-audit/SKILL.md +0 -116
  268. package/templates/default/locales/zh/.mustflow/skills/dependency-injection/SKILL.md +0 -161
  269. package/templates/default/locales/zh/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
  270. package/templates/default/locales/zh/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
  271. package/templates/default/locales/zh/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
  272. package/templates/default/locales/zh/.mustflow/skills/docs-update/SKILL.md +0 -97
  273. package/templates/default/locales/zh/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
  274. package/templates/default/locales/zh/.mustflow/skills/facade-pattern/SKILL.md +0 -210
  275. package/templates/default/locales/zh/.mustflow/skills/failure-triage/SKILL.md +0 -96
  276. package/templates/default/locales/zh/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
  277. package/templates/default/locales/zh/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
  278. package/templates/default/locales/zh/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
  279. package/templates/default/locales/zh/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
  280. package/templates/default/locales/zh/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
  281. package/templates/default/locales/zh/.mustflow/skills/pattern-scout/SKILL.md +0 -110
  282. package/templates/default/locales/zh/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
  283. package/templates/default/locales/zh/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
  284. package/templates/default/locales/zh/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
  285. package/templates/default/locales/zh/.mustflow/skills/readme-authoring/SKILL.md +0 -115
  286. package/templates/default/locales/zh/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
  287. package/templates/default/locales/zh/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
  288. package/templates/default/locales/zh/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
  289. package/templates/default/locales/zh/.mustflow/skills/result-option/SKILL.md +0 -186
  290. package/templates/default/locales/zh/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
  291. package/templates/default/locales/zh/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
  292. package/templates/default/locales/zh/.mustflow/skills/skill-authoring/SKILL.md +0 -110
  293. package/templates/default/locales/zh/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
  294. package/templates/default/locales/zh/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
  295. package/templates/default/locales/zh/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
  296. package/templates/default/locales/zh/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
  297. package/templates/default/locales/zh/.mustflow/skills/test-design-guard/SKILL.md +0 -162
  298. package/templates/default/locales/zh/.mustflow/skills/test-maintenance/SKILL.md +0 -122
  299. package/templates/default/locales/zh/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
  300. package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
  301. package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
  302. package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
  303. package/templates/default/locales/zh/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
@@ -1,116 +0,0 @@
1
- ---
2
- mustflow_doc: skill.contract-sync-check
3
- locale: ko
4
- canonical: false
5
- revision: 1
6
- lifecycle: mustflow-owned
7
- authority: procedure
8
- name: contract-sync-check
9
- description: 코드, 스키마, 템플릿, 테스트, 문서 사이에 맞춰져야 하는 선언된 계약에 변경이 영향을 줄 때 적용합니다.
10
- metadata:
11
- mustflow_schema: "1"
12
- mustflow_kind: procedure
13
- pack_id: mustflow.core
14
- skill_id: mustflow.core.contract-sync-check
15
- command_intents:
16
- - changes_status
17
- - changes_diff_summary
18
- - docs_validate_fast
19
- - test_release
20
- - mustflow_check
21
- ---
22
-
23
- # 계약 동기화 확인
24
-
25
- <!-- mustflow-section: purpose -->
26
- ## 목적
27
-
28
- 선언된 동작, 기계가 읽는 계약, 설치 템플릿, 테스트, 공개 문서가 변경 뒤 서로 어긋나지 않게 합니다.
29
-
30
- <!-- mustflow-section: use-when -->
31
- ## 사용할 때
32
-
33
- - 명령, 옵션, JSON 출력, 스키마, 템플릿 파일, 매니페스트, 잠금 항목, 선호값, 공개 문서가 바뀝니다.
34
- - mustflow가 소유한 파일을 추가, 삭제, 이름 변경, 재분류합니다.
35
- - 테스트가 패키지, 템플릿, 스키마, 명령, 대시보드, 문서 동작을 기대값으로 고정합니다.
36
- - 사용자가 문서, 설정, 설치 템플릿 동작도 함께 바꿔야 하는지 묻습니다.
37
-
38
- <!-- mustflow-section: do-not-use-when -->
39
- ## 사용하지 않을 때
40
-
41
- - 선언된 계약이나 공개 표면이 없는 내부 구현 리팩터링입니다.
42
- - 변경 파일이 더 좁은 스킬로 이미 덮이고, 그 절차가 영향을 받는 계약을 모두 확인합니다.
43
- - 사용자가 공개 또는 설치 표면을 갱신하지 않는 로컬 실험을 명시적으로 요청했습니다.
44
-
45
- <!-- mustflow-section: required-inputs -->
46
- ## 필요한 입력
47
-
48
- - 변경 파일 목록과 의도한 동작 변경.
49
- - 코드, 스키마, 설정, 템플릿 메타데이터, 문서 같은 기본 계약 출처.
50
- - 알려진 파생 표면: 테스트, README, 문서 사이트, 지역화 템플릿, 매니페스트, 잠금 파일, JSON 스키마.
51
- - 관련 명령 의도 계약 항목.
52
-
53
- <!-- mustflow-section: preconditions -->
54
- ## 전제 조건
55
-
56
- - 작업이 사용할 때 조건에 맞고 사용하지 않을 때 조건에는 해당하지 않습니다.
57
- - 필요한 입력이 있거나, 부족한 입력을 추측하지 않고 보고할 수 있습니다.
58
- - 현재 범위의 상위 지시와 `.mustflow/config/commands.toml`을 확인했습니다.
59
-
60
- <!-- mustflow-section: allowed-edits -->
61
- ## 허용되는 수정
62
-
63
- - 계약을 일관되게 유지하는 데 필요한 표면만 갱신합니다.
64
- - 변경된 계약이나 패키징 표면을 고정할 때만 테스트를 추가하거나 조정합니다.
65
- - 정확한 문구를 자신 있게 지역화할 수 없으면 번역이나 문장 중심 문서를 검수 대상으로 표시합니다.
66
- - 명령 권한을 넓히거나, 새 계약 파일을 지어내거나, 탐색 메모를 구속력 있는 정책으로 바꾸지 않습니다.
67
-
68
- <!-- mustflow-section: procedure -->
69
- ## 절차
70
-
71
- 1. 변경되는 계약의 이름을 붙이고 기준 출처를 확인합니다.
72
- 2. 그 계약에 맞춰야 하는 표면을 나열합니다. 예: 소스 코드, 스키마, 명령 메타데이터, 템플릿, 매니페스트, 잠금 파일, 테스트, README, 문서 사이트, 지역화 사본.
73
- 3. 변경 파일 목록을 그 표면 목록과 비교하고 빠진 필수 표면을 추가합니다.
74
- 4. 파생 파일은 기준 출처와 기계적으로 맞춥니다. 일부 표면을 의도적으로 갱신하지 않았다면 이유를 기록합니다.
75
- 5. 명령 의도 이름, 스키마 식별자, 앞부분 메타데이터 리비전, 템플릿 항목, 버전 문자열, 문서 예시가 일치해야 하는 곳에서 정확히 일치하는지 확인합니다.
76
- 6. 계약과 건드린 패키징 또는 문서 표면을 덮는 가장 좁은 구성된 검증을 사용합니다.
77
- 7. 최종 보고에서 동기화한 표면과 건너뛰거나 미룬 표면을 구분합니다.
78
-
79
- <!-- mustflow-section: postconditions -->
80
- ## 완료 조건
81
-
82
- - 계약 기준 출처와 필요한 모든 파생 표면이 일치합니다.
83
- - 의도적으로 오래 두거나 미루거나 검수가 필요한 표면을 명시합니다.
84
- - 최종 보고에는 계약 정합성 검증에 사용한 명령 의도가 포함됩니다.
85
-
86
- <!-- mustflow-section: verification -->
87
- ## 검증
88
-
89
- 사용 가능한 구성된 일회성 명령 의도를 사용합니다.
90
-
91
- - `changes_status`
92
- - `changes_diff_summary`
93
- - `docs_validate_fast`
94
- - `test_release`
95
- - `mustflow_check`
96
-
97
- 계약이 실행 동작에 영향을 주면 더 좁은 구성된 테스트나 빌드 의도도 실행합니다.
98
-
99
- <!-- mustflow-section: failure-handling -->
100
- ## 실패 처리
101
-
102
- - 검증에서 불일치가 나오면 새 동작을 더하기 전에 첫 계약 불일치부터 고칩니다.
103
- - 기준 출처가 불분명하면 조용히 하나를 고르지 말고 경쟁하는 출처를 보고합니다.
104
- - 필요한 표면이 현재 작업에서 검증하기에 너무 넓으면 건너뛴 표면과 위험을 보고합니다.
105
- - 지역화 표면을 자신 있게 갱신할 수 없으면 출처 메타데이터를 정확히 유지하고 번역을 검수 대상으로 표시합니다.
106
-
107
- <!-- mustflow-section: output-format -->
108
- ## 출력 형식
109
-
110
- - 변경된 계약
111
- - 사용한 기준 출처
112
- - 동기화한 표면
113
- - 미루었거나 검수가 필요한 표면
114
- - 실행한 명령 의도
115
- - 건너뛴 검증과 이유
116
- - 남은 불일치 위험
@@ -1,155 +0,0 @@
1
- ---
2
- mustflow_doc: skill.database-change-safety
3
- locale: ko
4
- canonical: false
5
- revision: 1
6
- lifecycle: mustflow-owned
7
- authority: procedure
8
- name: database-change-safety
9
- description: Apply this skill when database schema, queries, transactions, ORM models, repositories, stores, indexes, cache-backed read models, retention, pagination, concurrency, idempotency, audit logs, or persistence boundaries are introduced, changed, reviewed, or reported.
10
- metadata:
11
- mustflow_schema: "1"
12
- mustflow_kind: procedure
13
- pack_id: mustflow.core
14
- skill_id: mustflow.core.database-change-safety
15
- command_intents:
16
- - changes_status
17
- - changes_diff_summary
18
- - test_related
19
- - test
20
- - lint
21
- - build
22
- - docs_validate_fast
23
- - test_release
24
- - mustflow_check
25
- ---
26
-
27
- # Database Change Safety
28
-
29
- <!-- mustflow-section: purpose -->
30
- ## Purpose
31
-
32
- Keep database-backed behavior explicit, scoped, recoverable where possible, and verifiable without treating database rows, ORM models, generated caches, or read models as domain truth.
33
-
34
- Use the smallest persistence boundary that proves the risk. Do not introduce repositories, services, transactions, migrations, outbox machinery, or read models when a direct scoped query or fixture update is enough.
35
-
36
- <!-- mustflow-section: use-when -->
37
- ## Use When
38
-
39
- - A schema, migration, table, collection, ORM model, query, repository, store, transaction, index, cache, read model, audit log, or retention rule is introduced or changed.
40
- - Code reads from or writes to a database, browser storage, cache, local SQLite file, external database, or generated data store.
41
- - A task changes authorization, tenant scoping, pagination, sorting, soft delete, status filters, idempotency, duplicate handling, retry, or concurrency behavior around persisted data.
42
- - Documentation, tests, or final reports claim that a database change is safe, fast, indexed, migrated, reversible, idempotent, or verified.
43
-
44
- <!-- mustflow-section: do-not-use-when -->
45
- ## Do Not Use When
46
-
47
- - The change is pure in-memory logic with no persisted, cached, indexed, or generated state.
48
- - The task only changes external protocol mapping and no database-backed state; use `adapter-boundary`.
49
- - The task only changes file or template migration behavior and no database or persistence surface; use `migration-safety-check`.
50
- - The change only documents general database advice without touching or claiming project behavior.
51
-
52
- <!-- mustflow-section: required-inputs -->
53
- ## Required Inputs
54
-
55
- - Database role: source of truth, rebuildable cache, read model, runtime state, analytics store, external provider, or browser storage.
56
- - Data owner and affected tables, collections, stores, indexes, caches, generated files, or read models.
57
- - Read and write paths, query or ORM behavior, authorization scope, tenant or user scope, and retention expectations.
58
- - Transaction boundary, idempotency, retry, duplicate-delivery, concurrency, migration, rollback, or rebuild expectations.
59
- - Local database, ORM, repository, fixture, migration, cache, and test patterns.
60
- - Relevant command-intent contract entries for tests, builds, docs, release checks, and mustflow validation.
61
-
62
- <!-- mustflow-section: preconditions -->
63
- ## Preconditions
64
-
65
- - The task matches the Use When conditions and does not match the Do Not Use When exclusions.
66
- - Required inputs are available, or missing inputs can be reported without guessing.
67
- - Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
68
- - If database clients, ORM types, rows, browser storage, cache values, or provider data cross into core logic, also use `adapter-boundary`.
69
- - If hidden construction or global lookup creates the database dependency, also use `dependency-injection`.
70
- - If schema, data, cache, or generated state changes must move from an old state to a new state, also use `migration-safety-check`.
71
- - If personal data, authentication, authorization, retention, logs, telemetry, or secret-like values are involved, also use `security-privacy-review`.
72
- - If index, query-time, startup, package-size, search, count, or read-model performance claims are involved, also use `performance-budget-check`.
73
-
74
- <!-- mustflow-section: allowed-edits -->
75
- ## Allowed Edits
76
-
77
- - Update schema, query, repository, store, transaction, index, cache, read-model, fixture, test, documentation, and directly synchronized template surfaces tied to the task.
78
- - Add or tighten constraints, scoping, pagination, ordering, idempotency keys, concurrency guards, retention checks, and redaction behavior when the changed surface justifies it.
79
- - Mark rollback, migration, performance, privacy, or concurrency gaps as unverified when they cannot be proven.
80
- - Do not expose database rows, ORM models, query builders, or provider clients as domain objects.
81
- - Do not treat generated caches or read models as source of truth.
82
- - Do not add broad repository methods that accept arbitrary filters unless authorization, tenant scope, and caller ownership are explicit.
83
- - Do not call external APIs inside a database transaction unless a local rule explicitly accepts the coupling and a recovery path exists.
84
- - Do not store raw logs, secrets, hidden reasoning, full transcripts, unnecessary provider payloads, or unbounded personal data in local state or caches.
85
-
86
- <!-- mustflow-section: procedure -->
87
- ## Procedure
88
-
89
- 1. Classify the database role.
90
- - Source of truth: owns current business state.
91
- - Rebuildable cache: can be deleted and regenerated from files, provider data, or another source.
92
- - Read model: derived for lookup, search, reporting, or dashboard use.
93
- - Runtime state: coordinates in-flight work, locks, sessions, jobs, or retries.
94
- - Analytics store, external provider, or browser storage: owned outside the core domain boundary.
95
- 2. Identify the data owner and derived surfaces. Name which table, file, provider, event log, configuration, or generated artifact owns each value.
96
- 3. Check schema shape: primary keys, foreign keys, unique constraints, nullable fields, defaults, check constraints, status values, timestamps, soft delete fields, tenant scope, audit fields, and retention rules.
97
- 4. Check query semantics: authorization scope, tenant or user scope, role or visibility filters, deleted or archived rows, draft or unpublished rows, effective dates, null handling, stale-data behavior, and error or absence handling.
98
- 5. Check pagination and ordering. Lists need deterministic ordering; cursor pagination needs a stable tie breaker such as a unique id in addition to a timestamp.
99
- 6. Check transaction boundaries. Keep database writes and external side effects separate by default; use explicit states, an outbox, an action ledger, or reconciliation when both must be coordinated.
100
- 7. Check idempotency, retries, duplicate delivery, and concurrency. Look for webhook duplicates, job retries, import reruns, payment callbacks, optimistic locks, compare-and-swap updates, unique-constraint races, and double state transitions.
101
- 8. Check indexes and workload cost. Match indexes to `WHERE`, `JOIN`, `ORDER BY`, and `GROUP BY` behavior, but account for write cost. Look for N+1 queries, expensive counts, full scans, materialized read-model needs, and search-index boundaries.
102
- 9. Check privacy and retention. Prefer omission or bounded metadata over storing raw payloads. Do not persist secrets, hidden reasoning, full transcripts, unbounded logs, or personal data without a clear product rule and retention path.
103
- 10. Check migration, rollback, and rebuild paths. If a migration claim exists, prove idempotency and recovery with `migration-safety-check` or report the gap. If the store is a cache, name the rebuild source and stale-index detection.
104
- 11. Check tests and fixtures. Reuse or add repository/store tests, migration fixtures, query fixtures, adapter fixtures, permission regressions, idempotency or concurrency regressions, and cache rebuild checks as justified by the risk.
105
- 12. Verify and report. Separate proven behavior from unverified rollback, migration, privacy, performance, live-data, or concurrency risks.
106
-
107
- <!-- mustflow-section: postconditions -->
108
- ## Postconditions
109
-
110
- - The database role and source of truth are explicit.
111
- - Database rows, ORM models, generated caches, and read models do not leak into domain truth unless the local architecture intentionally owns that boundary.
112
- - Queries preserve authorization, tenant or user scope, deterministic ordering, expected absence behavior, and retention rules.
113
- - Transaction, external side effect, idempotency, duplicate, retry, and concurrency decisions are intentional and reported.
114
- - Index, query-cost, migration, rollback, rebuild, privacy, and verification claims are tied to evidence or marked as unverified.
115
-
116
- <!-- mustflow-section: verification -->
117
- ## Verification
118
-
119
- Use configured oneshot command intents when available:
120
-
121
- - `changes_status`
122
- - `changes_diff_summary`
123
- - `test_related`
124
- - `test`
125
- - `lint`
126
- - `build`
127
- - `docs_validate_fast`
128
- - `test_release`
129
- - `mustflow_check`
130
-
131
- Prefer the narrowest configured test, build, docs, release, or mustflow intent that proves the changed persistence surface. Do not infer raw database, migration, package, or benchmark commands.
132
-
133
- <!-- mustflow-section: failure-handling -->
134
- ## Failure Handling
135
-
136
- - If the source of truth is unclear, stop changing persistence behavior and report the competing owners.
137
- - If authorization, tenant scope, soft delete, or retention behavior cannot be confirmed, fail closed or report the missing project rule.
138
- - If rollback, migration idempotency, rebuild, or stale-cache detection cannot be proven, avoid claiming safety and name the remaining recovery risk.
139
- - If a performance claim lacks a configured measurement path, report it as unmeasured instead of inventing a budget.
140
- - If sensitive data appears in queries, fixtures, logs, generated state, package contents, or final output, route that surface through `security-privacy-review` before continuing.
141
- - If the safest fix would require live data access, destructive migration, dependency installation, or unavailable credentials, stop at that boundary and report the skipped check.
142
-
143
- <!-- mustflow-section: output-format -->
144
- ## Output Format
145
-
146
- - Database role and owner
147
- - Affected read and write paths
148
- - Schema, constraint, and query semantics reviewed
149
- - Authorization, tenant scope, retention, and privacy checks
150
- - Transaction, idempotency, retry, and concurrency decisions
151
- - Index, pagination, and performance notes
152
- - Migration, rollback, dry-run, rebuild, or compatibility status
153
- - Tests, fixtures, or verification command intents run
154
- - Skipped checks and reasons
155
- - Remaining database risk
@@ -1,116 +0,0 @@
1
- ---
2
- mustflow_doc: skill.date-number-audit
3
- locale: ko
4
- canonical: false
5
- revision: 1
6
- lifecycle: mustflow-owned
7
- authority: procedure
8
- name: date-number-audit
9
- description: 날짜, 버전, 개수, 기간, 한도, 지표, 벤치마크, 가격, 비율 또는 다른 숫자 사실을 만들거나 수정하거나 보고할 때 적용합니다.
10
- metadata:
11
- mustflow_schema: "1"
12
- mustflow_kind: procedure
13
- pack_id: mustflow.core
14
- skill_id: mustflow.core.date-number-audit
15
- command_intents:
16
- - changes_status
17
- - changes_diff_summary
18
- - docs_validate_fast
19
- - test_release
20
- - mustflow_check
21
- ---
22
-
23
- # 날짜와 숫자 검수
24
-
25
- <!-- mustflow-section: purpose -->
26
- ## 목적
27
-
28
- 코드, 문서, 테스트, 최종 보고가 날짜와 숫자 사실을 지어내거나 오래된 값을 복사하거나 서로 맞지 않게 두지 않도록 합니다.
29
-
30
- <!-- mustflow-section: use-when -->
31
- ## 사용할 때
32
-
33
- - 날짜, 마감일, 릴리스 버전, 개수, 기간, 제한 시간, 한도, 할당량, 크기, 비율, 가격, 벤치마크, 점수, 테스트 커버리지 값, 생성 파일 총계를 추가, 수정, 제거, 보고합니다.
34
- - 문서가 명령, 파일, 페이지, 템플릿, 언어, 테스트, 검사, 지원 항목의 개수를 요약합니다.
35
- - 최종 보고나 사용자에게 보이는 문구가 코드, 템플릿, 패키지, 문서, 생성 출력 변경 뒤에 달라질 수 있는 숫자에 의존합니다.
36
- - 실패한 검사가 오래된 리비전, 맞지 않는 버전, 잘못된 개수, 지난 날짜, 일관되지 않은 숫자 기준을 가리킵니다.
37
-
38
- <!-- mustflow-section: do-not-use-when -->
39
- ## 사용하지 않을 때
40
-
41
- - 숫자가 공개 의미나 파일 간 의미가 없는 지역 변수, 반복문 인덱스, 열거형 값, 테스트 fixture입니다.
42
- - 작업이 기존 숫자 문구를 그대로 보존할 뿐 그 값에 의존하지 않습니다.
43
- - 릴리스 버전, 의존성 실재 확인, 산출물 무결성, 출처 최신성에 관한 더 좁은 스킬이 맞습니다.
44
-
45
- <!-- mustflow-section: required-inputs -->
46
- ## 필요한 입력
47
-
48
- - 날짜 또는 숫자 사실과 그것을 말하거나, 파생하거나, 검증하는 모든 표면.
49
- - 패키지 메타데이터, 템플릿 메타데이터, 스키마, 코드 상수, 생성 출력, 테스트 단언, 현재 명령 결과 같은 값의 기준 출처.
50
- - 값이 근사치, 표본, 로컬 전용, 시간에 민감한 정보일 때 허용되는 정밀도와 표현.
51
- - 문서, 패키징, 빌드, mustflow 검증에 관한 명령 의도 계약 항목.
52
-
53
- <!-- mustflow-section: preconditions -->
54
- ## 전제 조건
55
-
56
- - 작업이 사용할 때 조건에 맞고 사용하지 않을 때 조건에는 해당하지 않습니다.
57
- - 필요한 입력이 있거나, 부족한 입력을 추측하지 않고 보고할 수 있습니다.
58
- - 현재 범위의 상위 지시와 `.mustflow/config/commands.toml`을 확인했습니다.
59
-
60
- <!-- mustflow-section: allowed-edits -->
61
- ## 허용되는 수정
62
-
63
- - 날짜와 숫자 사실을 원본 파일, 생성 메타데이터, 테스트, 문서, 최종 보고 사이에서 맞춥니다.
64
- - 정확한 숫자가 안정적이지 않다면 범위를 둔 표현이나 출처가 드러나는 표현으로 바꿉니다.
65
- - 문서를 채워 보이게 하려고 숫자를 지어내지 않습니다.
66
- - 작업과 기준 출처가 뒷받침하지 않으면 동작 기준값, 제한 시간, 한도, 릴리스 버전을 바꾸지 않습니다.
67
-
68
- <!-- mustflow-section: procedure -->
69
- ## 절차
70
-
71
- 1. 작업이 만들거나 수정하거나 보고하는 날짜와 숫자 사실을 나열합니다.
72
- 2. 의존 표면을 바꾸기 전에 각 값의 기준 출처를 확인합니다.
73
- 3. 관련 코드, 템플릿, 문서, 스키마, 테스트, 생성 메타데이터에서 같은 값을 중복해서 말하는 곳을 찾습니다.
74
- 4. 기준 출처에 맞춰 의존 표면을 갱신하거나, 정확한 검증이 불가능하면 근사치, 로컬 값, 표본, 미검증 값으로 표시합니다.
75
- 5. 버전 번호, 템플릿 리비전, 스키마 리비전, 언어별 원문 리비전, 패키지 단언, 공개 예시를 함께 맞춥니다.
76
- 6. 불확실성이 실제로 있고 도움이 될 때만 "약", "현재", "이 확인 시점 기준", "최신 생성 출력 기준" 같은 표현을 씁니다.
77
- 7. 값과 의존 표면이 여전히 일치함을 증명하는 가장 좁은 구성된 검증을 실행합니다.
78
-
79
- <!-- mustflow-section: postconditions -->
80
- ## 완료 조건
81
-
82
- - 공개되거나 파일 간에 의미가 있는 모든 날짜와 숫자 사실에는 이름 붙인 기준 출처나 명시한 불확실성 설명이 있습니다.
83
- - 숫자를 단언하는 테스트와 메타데이터가 변경된 기준 출처와 맞습니다.
84
- - 최종 보고는 의도적으로 근사치나 미검증 상태로 둔 값을 밝힙니다.
85
-
86
- <!-- mustflow-section: verification -->
87
- ## 검증
88
-
89
- 사용 가능한 구성된 일회성 명령 의도를 사용합니다.
90
-
91
- - `changes_status`
92
- - `changes_diff_summary`
93
- - `docs_validate_fast`
94
- - `test_release`
95
- - `mustflow_check`
96
-
97
- 변경된 숫자 표면을 더 잘 증명하는 좁은 테스트, 빌드, 문서 의도가 있으면 그 의도를 사용합니다.
98
-
99
- <!-- mustflow-section: failure-handling -->
100
- ## 실패 처리
101
-
102
- - 두 출처가 다르면 추측하지 않습니다. 더 높은 권위의 출처를 확인하거나 충돌을 보고합니다.
103
- - 값이 시간, 네트워크 상태, 패키지 저장소 상태, 생성 출력, 외부 데이터에 의존하지만 새로 확인하지 않았다면 그 경계를 밝힙니다.
104
- - 정확한 숫자가 필요 없고 최신으로 유지하기 비싸다면 깨지기 쉬운 정밀도를 피하도록 문장을 바꿉니다.
105
- - 숫자 변경이 동작에 영향을 준다면 계속하기 전에 관련 코드, 테스트, 릴리스, 의존성 스킬을 적용합니다.
106
-
107
- <!-- mustflow-section: output-format -->
108
- ## 출력 형식
109
-
110
- - 검수한 날짜 또는 숫자 사실
111
- - 각 값의 기준 출처
112
- - 맞춘 표면
113
- - 바꾼 정확한 값 또는 근사 표현으로 바꾼 값
114
- - 실행한 명령 의도
115
- - 건너뛴 검사와 이유
116
- - 남은 날짜 또는 숫자 위험
@@ -1,161 +0,0 @@
1
- ---
2
- mustflow_doc: skill.dependency-injection
3
- locale: ko
4
- canonical: false
5
- revision: 3
6
- lifecycle: mustflow-owned
7
- authority: procedure
8
- name: dependency-injection
9
- description: Apply this skill when core or application logic creates, imports, resolves, or hides external dependencies such as databases, APIs, SDKs, filesystems, clocks, random generators, identifiers, loggers, configuration, framework request objects, AI clients, queues, or payment/email providers.
10
- metadata:
11
- mustflow_schema: "1"
12
- mustflow_kind: procedure
13
- pack_id: mustflow.core
14
- skill_id: mustflow.core.dependency-injection
15
- command_intents:
16
- - changes_status
17
- - changes_diff_summary
18
- - test_related
19
- - test
20
- - lint
21
- - build
22
- - docs_validate_fast
23
- - test_release
24
- - mustflow_check
25
- ---
26
-
27
- # Dependency Injection
28
-
29
- <!-- mustflow-section: purpose -->
30
- ## Purpose
31
-
32
- Keep business logic from creating, finding, or importing the tools it needs. External-world objects belong at assembly boundaries; core logic receives narrow ports, explicit values, or request context from the outside.
33
-
34
- Dependency injection is not an abstraction quota. Use it to keep replaceable infrastructure, hidden global state, and side effects from leaking into domain and use-case code.
35
-
36
- <!-- mustflow-section: use-when -->
37
- ## Use When
38
-
39
- - Core, domain, application, service, or use-case code directly constructs a database client, external SDK, queue, file storage, logger, clock, random generator, identifier generator, AI model client, email sender, payment gateway, HTTP client, or framework object.
40
- - Code reads `process.env`, current time, random values, UUIDs, files, local storage, global containers, or global loggers away from the assembly boundary.
41
- - A refactor aims to make behavior easier to test without real databases, network calls, API keys, filesystem writes, current time, or random identifiers.
42
- - New ports, adapters, provider modules, transaction runners, or composition roots are being introduced.
43
- - A function's signature hides required collaborators or accepts broad technical objects instead of the narrow capability it actually needs.
44
- - An optional collaborator should be wired as a real implementation or a safe null, no-op, disabled, identity, empty, deny-all, or failing implementation at the assembly boundary.
45
-
46
- <!-- mustflow-section: do-not-use-when -->
47
- ## Do Not Use When
48
-
49
- - The code is a pure function, value object, entity constructor, small data formatter, or internal helper with no external dependency.
50
- - The task is a disposable one-off script that is not imported, tested, repeated, used in production, or connected to external services.
51
- - A framework's dependency injection mechanism is already confined to the application boundary and does not leak into domain code.
52
- - The only change needed is to confirm a package or tool exists; use `dependency-reality-check`.
53
-
54
- <!-- mustflow-section: required-inputs -->
55
- ## Required Inputs
56
-
57
- - The target code area and the direct dependency, global state, or hidden collaborator being introduced or removed.
58
- - The intended business capability and which layer owns the rule: domain, application, infrastructure, adapter, route, worker, or assembly root.
59
- - Existing local patterns for ports, adapters, fakes, transaction runners, clocks, configuration loading, and test setup.
60
- - Current changed files and command-intent contract entries relevant to tests, builds, docs, release metadata, and mustflow validation.
61
-
62
- <!-- mustflow-section: preconditions -->
63
- ## Preconditions
64
-
65
- - The task matches the Use When conditions and does not match the Do Not Use When exclusions.
66
- - Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
67
- - If the local structure is unfamiliar, use `pattern-scout` or `codebase-orientation` before introducing new folders or naming conventions.
68
-
69
- <!-- mustflow-section: allowed-edits -->
70
- ## Allowed Edits
71
-
72
- - Define narrow consumer-owned ports where core logic needs external behavior.
73
- - Move concrete client creation, environment reads, lifecycle setup, and disposal to assembly boundaries.
74
- - Add infrastructure adapters that implement the ports and translate external rows, responses, errors, and identifiers into internal types.
75
- - Add local fakes, fixed clocks, fixed identifiers, and contract tests when needed to preserve behavior.
76
- - Wire optional collaborators with `null-object-pattern` when absence is explicit, safe, and should not leak nullable checks into business logic.
77
- - Do not add a service locator, global container access, broad application dependency bag, framework decorator in domain code, or speculative interface for every class.
78
- - When the dependency also crosses an external protocol, provider, database, webhook, queue, file, cache, AI model, or framework boundary, use `adapter-boundary` for the translation and failure-handling rules.
79
-
80
- <!-- mustflow-section: procedure -->
81
- ## Procedure
82
-
83
- 1. Classify the code under change:
84
- - Core logic: domain rules, use cases, state transitions, policy checks, calculations, and business decisions.
85
- - Edge logic: routes, controllers, workers, command handlers, adapters, repositories, SDK wrappers, and assembly roots.
86
- 2. Find direct external dependencies before editing. Look for concrete SDK construction, database clients, HTTP clients, file APIs, environment reads, current-time calls, random or UUID generation, global loggers, global containers, framework request or response objects, and external error types.
87
- 3. Decide whether dependency injection is warranted. Inject only collaborators that cross a boundary, are hard to test, may change implementation, or represent hidden global state. Do not wrap pure helpers, value objects, or stable internal data structures just to add ceremony.
88
- 4. Define ports from the consumer's need, not from the provider's API.
89
- - Prefer `PaymentGateway`, `UserRepository`, `EmailSender`, `ImageStorage`, or `TextGenerator`.
90
- - Avoid provider-shaped ports such as `StripeService`, `PrismaUserStore`, `ResendMailer`, `S3ImageStorage`, or `OpenAITextGenerator` at the core boundary.
91
- 5. Choose the injection style:
92
- - Use constructor injection or a dependency object for classes with stable collaborators.
93
- - Use function-closure injection for small use cases or function-oriented modules.
94
- - Use method parameters for per-call data such as actor, tenant, locale, request id, pagination, filters, or command input.
95
- - Use factories only when runtime values decide the implementation, lifecycle, or resource handle.
96
- 6. Keep construction at the assembly boundary. Create concrete clients, load and validate configuration, register containers, open connections, and wire adapters in files such as bootstrap, server setup, worker setup, route setup, module registration, or test setup.
97
- - If a dependency is optional and disabled by explicit configuration, choose the real collaborator or the safe neutral implementation here, not inside business logic.
98
- - If a dependency is required, validate configuration here and fail early instead of injecting a null object.
99
- 7. Treat time, random values, identifiers, configuration, logging, transactions, and framework objects as dependencies.
100
- - For domain decisions, prefer an already captured instant or time context over passing a clock that can be queried inside the domain.
101
- - Pass fixed implementations in tests so time, identifiers, and random choices are reproducible.
102
- 8. Keep adapters responsible for translation. Repositories and provider adapters should convert database rows, external responses, external errors, and provider identifiers before returning to core logic.
103
- 9. If the injected collaborator is an external boundary, apply `adapter-boundary` before finalizing the port and adapter. Dependency injection decides how core logic receives the collaborator; adapter boundaries decide how external protocols, data, errors, timeouts, retries, idempotency, security, and observability are translated.
104
- 10. Keep transaction ownership explicit. Inject a transaction runner when a use case needs atomic persistence across multiple repositories. Do not hide transaction boundaries inside repositories when the use case owns the unit of work, and do not call external APIs inside a database transaction.
105
- 11. Reject hidden dependency patterns:
106
- - no property injection for required collaborators
107
- - no service locator or `container.resolve` in core logic
108
- - no process-wide mutable singleton holding request state
109
- - no broad `AppDeps` object when a use case needs only a few collaborators
110
- - no circular service dependencies unless a smaller use case, shared policy, or event boundary has been considered first
111
- 12. Keep tests honest. Unit tests for core logic should use fakes or fixed collaborators and should not require a real database, real network, real API key, real email, real payment, real filesystem side effect, current time, or random UUID. Test real adapters separately with integration or contract coverage.
112
- 13. Verify with the narrowest configured command intents that cover the changed code, tests, template files, docs, and release metadata.
113
-
114
- <!-- mustflow-section: postconditions -->
115
- ## Postconditions
116
-
117
- - Core logic declares its collaborators through constructor parameters, function parameters, or narrow context objects.
118
- - Concrete external implementation creation is easy to find at assembly boundaries.
119
- - Core logic does not import provider SDKs, database clients, framework request or response objects, global containers, or external provider error types.
120
- - Tests can replace external collaborators, time, identifiers, and random values without live infrastructure.
121
- - Adapter boundaries translate external data and failures before they reach core logic.
122
-
123
- <!-- mustflow-section: verification -->
124
- ## Verification
125
-
126
- Use configured oneshot command intents when available:
127
-
128
- - `changes_status`
129
- - `changes_diff_summary`
130
- - `test_related`
131
- - `test`
132
- - `lint`
133
- - `build`
134
- - `docs_validate_fast`
135
- - `test_release`
136
- - `mustflow_check`
137
-
138
- Prefer the narrowest configured test or build intent that proves the affected boundary. Use documentation and release checks when templates, skill routes, public docs, package metadata, or installed-file surfaces change.
139
-
140
- <!-- mustflow-section: failure-handling -->
141
- ## Failure Handling
142
-
143
- - If extracting a port would duplicate an existing local interface, reuse or narrow the existing local pattern instead of creating a parallel abstraction.
144
- - If a class needs many collaborators, stop before adding a giant dependency object and look for mixed responsibilities, smaller use cases, or adapter boundaries.
145
- - If a framework forces decorators or container registration, keep that integration in the application boundary and do not let it shape domain types.
146
- - If a direct dependency cannot be removed in one safe step, first wrap it at the smallest local boundary and report the remaining leakage.
147
- - If tests still need real infrastructure after the refactor, report which dependency is still not injectable and why.
148
-
149
- <!-- mustflow-section: output-format -->
150
- ## Output Format
151
-
152
- - Dependency boundary reviewed
153
- - Direct external dependencies found
154
- - Injection style selected
155
- - Ports and adapters added or reused
156
- - Assembly boundary used
157
- - External data or error translation handled
158
- - Tests, fakes, or fixed collaborators added or reused
159
- - Command intents run
160
- - Skipped checks and reasons
161
- - Remaining dependency leakage or lifecycle risk