universal-dev-standards 5.0.0-rc.8 → 5.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 (355) hide show
  1. package/bin/uds.js +5 -3
  2. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +178 -0
  3. package/bundled/ai/standards/agent-dispatch.ai.yaml +69 -0
  4. package/bundled/ai/standards/ai-command-behavior.ai.yaml +45 -0
  5. package/bundled/ai/standards/api-design-standards.ai.yaml +192 -0
  6. package/bundled/ai/standards/branch-completion.ai.yaml +82 -0
  7. package/bundled/ai/standards/change-batching-standards.ai.yaml +195 -0
  8. package/bundled/ai/standards/database-standards.ai.yaml +220 -0
  9. package/bundled/ai/standards/error-codes.ai.yaml +37 -2
  10. package/bundled/ai/standards/git-worktree.ai.yaml +77 -0
  11. package/bundled/ai/standards/logging.ai.yaml +21 -2
  12. package/bundled/ai/standards/model-selection.ai.yaml +81 -0
  13. package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +184 -0
  14. package/bundled/ai/standards/systematic-debugging.ai.yaml +73 -0
  15. package/bundled/ai/standards/verification-evidence.ai.yaml +84 -0
  16. package/bundled/ai/standards/workflow-enforcement.ai.yaml +253 -0
  17. package/bundled/core/acceptance-criteria-traceability.md +293 -0
  18. package/bundled/core/agent-dispatch.md +149 -0
  19. package/bundled/core/ai-command-behavior.md +239 -0
  20. package/bundled/core/api-design-standards.md +938 -0
  21. package/bundled/core/branch-completion.md +158 -0
  22. package/bundled/core/change-batching-standards.md +257 -0
  23. package/bundled/core/checkin-standards.md +43 -6
  24. package/bundled/core/database-standards.md +828 -0
  25. package/bundled/core/error-code-standards.md +228 -2
  26. package/bundled/core/forward-derivation-standards.md +54 -2
  27. package/bundled/core/git-worktree.md +131 -0
  28. package/bundled/core/model-selection.md +153 -0
  29. package/bundled/core/pipeline-integration-standards.md +230 -0
  30. package/bundled/core/systematic-debugging.md +156 -0
  31. package/bundled/core/testing-standards.md +49 -39
  32. package/bundled/core/verification-evidence.md +172 -0
  33. package/bundled/core/workflow-enforcement.md +132 -0
  34. package/bundled/locales/zh-CN/CLAUDE.md +2 -2
  35. package/bundled/locales/zh-CN/README.md +4 -4
  36. package/bundled/locales/zh-CN/SECURITY.md +92 -0
  37. package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +301 -0
  38. package/bundled/locales/zh-CN/core/acceptance-test-driven-development.md +47 -0
  39. package/bundled/locales/zh-CN/core/accessibility-standards.md +124 -0
  40. package/bundled/locales/zh-CN/core/agent-dispatch.md +113 -0
  41. package/bundled/locales/zh-CN/core/ai-agreement-standards.md +103 -0
  42. package/bundled/locales/zh-CN/core/ai-command-behavior.md +247 -0
  43. package/bundled/locales/zh-CN/core/api-design-standards.md +946 -0
  44. package/bundled/locales/zh-CN/core/behavior-driven-development.md +48 -0
  45. package/bundled/locales/zh-CN/core/branch-completion.md +112 -0
  46. package/bundled/locales/zh-CN/core/change-batching-standards.md +265 -0
  47. package/bundled/locales/zh-CN/core/checkin-standards.md +43 -5
  48. package/bundled/locales/zh-CN/core/context-aware-loading.md +106 -0
  49. package/bundled/locales/zh-CN/core/database-standards.md +836 -0
  50. package/bundled/locales/zh-CN/core/deployment-standards.md +80 -0
  51. package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
  52. package/bundled/locales/zh-CN/core/forward-derivation-standards.md +493 -0
  53. package/bundled/locales/zh-CN/core/git-worktree.md +101 -0
  54. package/bundled/locales/zh-CN/core/model-selection.md +112 -0
  55. package/bundled/locales/zh-CN/core/performance-standards.md +104 -0
  56. package/bundled/locales/zh-CN/core/pipeline-integration-standards.md +238 -0
  57. package/bundled/locales/zh-CN/core/project-context-memory.md +124 -0
  58. package/bundled/locales/zh-CN/core/requirement-engineering.md +49 -0
  59. package/bundled/locales/zh-CN/core/security-standards.md +100 -0
  60. package/bundled/locales/zh-CN/core/systematic-debugging.md +106 -0
  61. package/bundled/locales/zh-CN/core/test-governance.md +116 -0
  62. package/bundled/locales/zh-CN/core/testing-standards.md +392 -156
  63. package/bundled/locales/zh-CN/core/verification-evidence.md +118 -0
  64. package/bundled/locales/zh-CN/core/virtual-organization-standards.md +104 -0
  65. package/bundled/locales/zh-CN/core/workflow-enforcement.md +132 -0
  66. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +27 -1
  67. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +9 -1
  68. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +37 -9
  69. package/bundled/locales/zh-CN/docs/USER-MANUAL.md +652 -0
  70. package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +1 -1
  71. package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +29 -4
  72. package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +143 -72
  73. package/bundled/locales/zh-CN/skills/ac-coverage-assistant/SKILL.md +126 -0
  74. package/bundled/locales/zh-CN/skills/api-design-assistant/SKILL.md +100 -0
  75. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +119 -0
  76. package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +82 -0
  77. package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +97 -0
  78. package/bundled/locales/zh-CN/skills/commands/api-design.md +94 -0
  79. package/bundled/locales/zh-CN/skills/commands/atdd.md +163 -0
  80. package/bundled/locales/zh-CN/skills/commands/audit.md +77 -0
  81. package/bundled/locales/zh-CN/skills/commands/bdd.md +1 -1
  82. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +87 -0
  83. package/bundled/locales/zh-CN/skills/commands/changelog.md +63 -0
  84. package/bundled/locales/zh-CN/skills/commands/check.md +219 -0
  85. package/bundled/locales/zh-CN/skills/commands/checkin.md +61 -0
  86. package/bundled/locales/zh-CN/skills/commands/ci-cd.md +77 -0
  87. package/bundled/locales/zh-CN/skills/commands/commit.md +81 -0
  88. package/bundled/locales/zh-CN/skills/commands/config.md +207 -0
  89. package/bundled/locales/zh-CN/skills/commands/coverage.md +74 -0
  90. package/bundled/locales/zh-CN/skills/commands/database.md +78 -0
  91. package/bundled/locales/zh-CN/skills/commands/derive-all.md +58 -0
  92. package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +54 -0
  93. package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +53 -0
  94. package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +54 -0
  95. package/bundled/locales/zh-CN/skills/commands/derive.md +78 -0
  96. package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +119 -0
  97. package/bundled/locales/zh-CN/skills/commands/discover.md +86 -0
  98. package/bundled/locales/zh-CN/skills/commands/docgen.md +67 -0
  99. package/bundled/locales/zh-CN/skills/commands/docs.md +65 -0
  100. package/bundled/locales/zh-CN/skills/commands/durable.md +87 -0
  101. package/bundled/locales/zh-CN/skills/commands/guide.md +52 -0
  102. package/bundled/locales/zh-CN/skills/commands/incident.md +92 -0
  103. package/bundled/locales/zh-CN/skills/commands/init.md +272 -0
  104. package/bundled/locales/zh-CN/skills/commands/methodology.md +1 -1
  105. package/bundled/locales/zh-CN/skills/commands/metrics.md +73 -0
  106. package/bundled/locales/zh-CN/skills/commands/migrate.md +92 -0
  107. package/bundled/locales/zh-CN/skills/commands/pr.md +80 -0
  108. package/bundled/locales/zh-CN/skills/commands/refactor.md +1 -1
  109. package/bundled/locales/zh-CN/skills/commands/release.md +62 -0
  110. package/bundled/locales/zh-CN/skills/commands/requirement.md +54 -0
  111. package/bundled/locales/zh-CN/skills/commands/reverse-bdd.md +47 -0
  112. package/bundled/locales/zh-CN/skills/commands/reverse-sdd.md +51 -0
  113. package/bundled/locales/zh-CN/skills/commands/reverse-tdd.md +51 -0
  114. package/bundled/locales/zh-CN/skills/commands/reverse.md +63 -0
  115. package/bundled/locales/zh-CN/skills/commands/review.md +50 -0
  116. package/bundled/locales/zh-CN/skills/commands/scan.md +76 -0
  117. package/bundled/locales/zh-CN/skills/commands/sdd-retro.md +40 -0
  118. package/bundled/locales/zh-CN/skills/commands/sdd.md +379 -0
  119. package/bundled/locales/zh-CN/skills/commands/security.md +75 -0
  120. package/bundled/locales/zh-CN/skills/commands/tdd.md +111 -0
  121. package/bundled/locales/zh-CN/skills/commands/update.md +337 -0
  122. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -2
  123. package/bundled/locales/zh-CN/skills/database-assistant/SKILL.md +97 -0
  124. package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +145 -0
  125. package/bundled/locales/zh-CN/skills/durable-execution-assistant/SKILL.md +84 -0
  126. package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +107 -0
  127. package/bundled/locales/zh-CN/skills/metrics-dashboard-assistant/SKILL.md +67 -0
  128. package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +77 -0
  129. package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +90 -0
  130. package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +79 -0
  131. package/bundled/locales/zh-CN/skills/security-scan-assistant/SKILL.md +72 -0
  132. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +73 -10
  133. package/bundled/locales/zh-CN/skills/spec-driven-dev/guide.md +267 -122
  134. package/bundled/locales/zh-TW/CLAUDE.md +2 -2
  135. package/bundled/locales/zh-TW/README.md +4 -4
  136. package/bundled/locales/zh-TW/SECURITY.md +92 -0
  137. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +301 -0
  138. package/bundled/locales/zh-TW/core/acceptance-test-driven-development.md +47 -0
  139. package/bundled/locales/zh-TW/core/accessibility-standards.md +84 -0
  140. package/bundled/locales/zh-TW/core/agent-dispatch.md +89 -0
  141. package/bundled/locales/zh-TW/core/ai-agreement-standards.md +87 -0
  142. package/bundled/locales/zh-TW/core/ai-command-behavior.md +247 -0
  143. package/bundled/locales/zh-TW/core/api-design-standards.md +946 -0
  144. package/bundled/locales/zh-TW/core/behavior-driven-development.md +63 -0
  145. package/bundled/locales/zh-TW/core/branch-completion.md +76 -0
  146. package/bundled/locales/zh-TW/core/change-batching-standards.md +265 -0
  147. package/bundled/locales/zh-TW/core/checkin-standards.md +39 -5
  148. package/bundled/locales/zh-TW/core/context-aware-loading.md +86 -0
  149. package/bundled/locales/zh-TW/core/database-standards.md +836 -0
  150. package/bundled/locales/zh-TW/core/deployment-standards.md +66 -0
  151. package/bundled/locales/zh-TW/core/error-code-standards.md +230 -4
  152. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +62 -2
  153. package/bundled/locales/zh-TW/core/git-worktree.md +104 -0
  154. package/bundled/locales/zh-TW/core/model-selection.md +83 -0
  155. package/bundled/locales/zh-TW/core/performance-standards.md +84 -0
  156. package/bundled/locales/zh-TW/core/pipeline-integration-standards.md +238 -0
  157. package/bundled/locales/zh-TW/core/project-context-memory.md +79 -0
  158. package/bundled/locales/zh-TW/core/requirement-engineering.md +79 -0
  159. package/bundled/locales/zh-TW/core/security-standards.md +74 -0
  160. package/bundled/locales/zh-TW/core/systematic-debugging.md +95 -0
  161. package/bundled/locales/zh-TW/core/test-governance.md +88 -0
  162. package/bundled/locales/zh-TW/core/testing-standards.md +309 -86
  163. package/bundled/locales/zh-TW/core/verification-evidence.md +94 -0
  164. package/bundled/locales/zh-TW/core/virtual-organization-standards.md +88 -0
  165. package/bundled/locales/zh-TW/core/workflow-enforcement.md +132 -0
  166. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +27 -1
  167. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +9 -1
  168. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +37 -9
  169. package/bundled/locales/zh-TW/docs/USER-MANUAL.md +652 -0
  170. package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +1 -1
  171. package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +29 -4
  172. package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +142 -71
  173. package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +127 -0
  174. package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +1 -4
  175. package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -4
  176. package/bundled/locales/zh-TW/skills/api-design-assistant/SKILL.md +97 -0
  177. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +1 -4
  178. package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +1 -4
  179. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +1 -4
  180. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +1 -4
  181. package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +1 -4
  182. package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +1 -4
  183. package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +79 -0
  184. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -4
  185. package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +95 -0
  186. package/bundled/locales/zh-TW/skills/commands/api-design.md +92 -0
  187. package/bundled/locales/zh-TW/skills/commands/atdd.md +167 -0
  188. package/bundled/locales/zh-TW/skills/commands/audit.md +75 -0
  189. package/bundled/locales/zh-TW/skills/commands/bdd.md +1 -1
  190. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -0
  191. package/bundled/locales/zh-TW/skills/commands/changelog.md +67 -0
  192. package/bundled/locales/zh-TW/skills/commands/check.md +223 -0
  193. package/bundled/locales/zh-TW/skills/commands/checkin.md +65 -0
  194. package/bundled/locales/zh-TW/skills/commands/ci-cd.md +75 -0
  195. package/bundled/locales/zh-TW/skills/commands/commit.md +85 -0
  196. package/bundled/locales/zh-TW/skills/commands/config.md +211 -0
  197. package/bundled/locales/zh-TW/skills/commands/coverage.md +78 -0
  198. package/bundled/locales/zh-TW/skills/commands/database.md +76 -0
  199. package/bundled/locales/zh-TW/skills/commands/derive-all.md +62 -0
  200. package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +58 -0
  201. package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +54 -0
  202. package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +55 -0
  203. package/bundled/locales/zh-TW/skills/commands/derive.md +79 -0
  204. package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +120 -0
  205. package/bundled/locales/zh-TW/skills/commands/discover.md +87 -0
  206. package/bundled/locales/zh-TW/skills/commands/docgen.md +68 -0
  207. package/bundled/locales/zh-TW/skills/commands/docs.md +66 -0
  208. package/bundled/locales/zh-TW/skills/commands/durable.md +85 -0
  209. package/bundled/locales/zh-TW/skills/commands/guide.md +51 -0
  210. package/bundled/locales/zh-TW/skills/commands/incident.md +90 -0
  211. package/bundled/locales/zh-TW/skills/commands/init.md +273 -0
  212. package/bundled/locales/zh-TW/skills/commands/methodology.md +1 -1
  213. package/bundled/locales/zh-TW/skills/commands/metrics.md +71 -0
  214. package/bundled/locales/zh-TW/skills/commands/migrate.md +90 -0
  215. package/bundled/locales/zh-TW/skills/commands/pr.md +78 -0
  216. package/bundled/locales/zh-TW/skills/commands/refactor.md +1 -1
  217. package/bundled/locales/zh-TW/skills/commands/release.md +63 -0
  218. package/bundled/locales/zh-TW/skills/commands/requirement.md +61 -0
  219. package/bundled/locales/zh-TW/skills/commands/reverse-bdd.md +54 -0
  220. package/bundled/locales/zh-TW/skills/commands/reverse-sdd.md +58 -0
  221. package/bundled/locales/zh-TW/skills/commands/reverse-tdd.md +58 -0
  222. package/bundled/locales/zh-TW/skills/commands/reverse.md +70 -0
  223. package/bundled/locales/zh-TW/skills/commands/review.md +57 -0
  224. package/bundled/locales/zh-TW/skills/commands/scan.md +74 -0
  225. package/bundled/locales/zh-TW/skills/commands/sdd-retro.md +47 -0
  226. package/bundled/locales/zh-TW/skills/commands/sdd.md +362 -0
  227. package/bundled/locales/zh-TW/skills/commands/security.md +73 -0
  228. package/bundled/locales/zh-TW/skills/commands/tdd.md +115 -0
  229. package/bundled/locales/zh-TW/skills/commands/update.md +326 -0
  230. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -6
  231. package/bundled/locales/zh-TW/skills/database-assistant/SKILL.md +94 -0
  232. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +140 -0
  233. package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -4
  234. package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +1 -4
  235. package/bundled/locales/zh-TW/skills/durable-execution-assistant/SKILL.md +81 -0
  236. package/bundled/locales/zh-TW/skills/error-code-guide/SKILL.md +1 -4
  237. package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +1 -4
  238. package/bundled/locales/zh-TW/skills/git-workflow-guide/SKILL.md +1 -4
  239. package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +104 -0
  240. package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +1 -4
  241. package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +1 -4
  242. package/bundled/locales/zh-TW/skills/metrics-dashboard-assistant/SKILL.md +64 -0
  243. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +74 -0
  244. package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +87 -0
  245. package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -4
  246. package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +1 -4
  247. package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +1 -4
  248. package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +1 -4
  249. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -4
  250. package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +76 -0
  251. package/bundled/locales/zh-TW/skills/security-scan-assistant/SKILL.md +69 -0
  252. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +74 -14
  253. package/bundled/locales/zh-TW/skills/spec-driven-dev/guide.md +243 -98
  254. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +1 -4
  255. package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +1 -4
  256. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +1 -5
  257. package/bundled/skills/README.md +11 -0
  258. package/bundled/skills/ac-coverage-assistant/SKILL.md +127 -0
  259. package/bundled/skills/ai-collaboration-standards/SKILL.md +10 -0
  260. package/bundled/skills/ai-friendly-architecture/SKILL.md +10 -0
  261. package/bundled/skills/ai-instruction-standards/SKILL.md +10 -0
  262. package/bundled/skills/api-design-assistant/SKILL.md +119 -0
  263. package/bundled/skills/atdd-assistant/SKILL.md +7 -0
  264. package/bundled/skills/bdd-assistant/SKILL.md +7 -0
  265. package/bundled/skills/brainstorm-assistant/SKILL.md +7 -0
  266. package/bundled/skills/checkin-assistant/SKILL.md +7 -0
  267. package/bundled/skills/ci-cd-assistant/SKILL.md +97 -0
  268. package/bundled/skills/code-review-assistant/SKILL.md +7 -0
  269. package/bundled/skills/commands/README.md +70 -0
  270. package/bundled/skills/commands/ac-coverage.md +135 -0
  271. package/bundled/skills/commands/api-design.md +86 -0
  272. package/bundled/skills/commands/atdd.md +69 -0
  273. package/bundled/skills/commands/audit.md +69 -0
  274. package/bundled/skills/commands/bdd.md +101 -0
  275. package/bundled/skills/commands/brainstorm.md +45 -0
  276. package/bundled/skills/commands/changelog.md +34 -0
  277. package/bundled/skills/commands/check.md +52 -1
  278. package/bundled/skills/commands/checkin.md +46 -0
  279. package/bundled/skills/commands/ci-cd.md +69 -0
  280. package/bundled/skills/commands/commit.md +79 -0
  281. package/bundled/skills/commands/config.md +48 -0
  282. package/bundled/skills/commands/coverage.md +53 -0
  283. package/bundled/skills/commands/database.md +70 -0
  284. package/bundled/skills/commands/derive-all.md +40 -0
  285. package/bundled/skills/commands/derive-atdd.md +33 -0
  286. package/bundled/skills/commands/derive-bdd.md +39 -0
  287. package/bundled/skills/commands/derive-tdd.md +40 -0
  288. package/bundled/skills/commands/derive.md +47 -0
  289. package/bundled/skills/commands/dev-workflow.md +104 -7
  290. package/bundled/skills/commands/discover.md +39 -0
  291. package/bundled/skills/commands/docgen.md +35 -0
  292. package/bundled/skills/commands/docs.md +40 -0
  293. package/bundled/skills/commands/durable.md +79 -0
  294. package/bundled/skills/commands/incident.md +84 -0
  295. package/bundled/skills/commands/init.md +55 -0
  296. package/bundled/skills/commands/methodology.md +72 -0
  297. package/bundled/skills/commands/metrics.md +65 -0
  298. package/bundled/skills/commands/migrate.md +84 -0
  299. package/bundled/skills/commands/pr.md +72 -0
  300. package/bundled/skills/commands/refactor.md +51 -0
  301. package/bundled/skills/commands/release.md +60 -0
  302. package/bundled/skills/commands/requirement.md +38 -0
  303. package/bundled/skills/commands/reverse-bdd.md +34 -0
  304. package/bundled/skills/commands/reverse-sdd.md +42 -0
  305. package/bundled/skills/commands/reverse-tdd.md +40 -0
  306. package/bundled/skills/commands/reverse.md +41 -0
  307. package/bundled/skills/commands/review.md +39 -0
  308. package/bundled/skills/commands/scan.md +68 -0
  309. package/bundled/skills/commands/sdd-retro.md +48 -0
  310. package/bundled/skills/commands/sdd.md +220 -0
  311. package/bundled/skills/commands/security.md +67 -0
  312. package/bundled/skills/commands/tdd.md +101 -0
  313. package/bundled/skills/commands/update.md +61 -0
  314. package/bundled/skills/commit-standards/SKILL.md +8 -2
  315. package/bundled/skills/database-assistant/SKILL.md +118 -0
  316. package/bundled/skills/dev-workflow-guide/SKILL.md +53 -7
  317. package/bundled/skills/dev-workflow-guide/workflow-phases.md +24 -0
  318. package/bundled/skills/durable-execution-assistant/SKILL.md +116 -0
  319. package/bundled/skills/forward-derivation/SKILL.md +7 -0
  320. package/bundled/skills/incident-response-assistant/SKILL.md +132 -0
  321. package/bundled/skills/methodology-system/SKILL.md +24 -2
  322. package/bundled/skills/metrics-dashboard-assistant/SKILL.md +109 -0
  323. package/bundled/skills/migration-assistant/SKILL.md +119 -0
  324. package/bundled/skills/pr-automation-assistant/SKILL.md +114 -0
  325. package/bundled/skills/project-discovery/SKILL.md +7 -0
  326. package/bundled/skills/refactoring-assistant/SKILL.md +7 -0
  327. package/bundled/skills/release-standards/SKILL.md +7 -0
  328. package/bundled/skills/requirement-assistant/SKILL.md +7 -0
  329. package/bundled/skills/reverse-engineer/SKILL.md +7 -0
  330. package/bundled/skills/security-assistant/SKILL.md +105 -0
  331. package/bundled/skills/security-scan-assistant/SKILL.md +96 -0
  332. package/bundled/skills/spec-driven-dev/SKILL.md +84 -4
  333. package/bundled/skills/spec-driven-dev/guide.md +156 -22
  334. package/bundled/skills/tdd-assistant/SKILL.md +7 -0
  335. package/bundled/skills/test-coverage-assistant/SKILL.md +11 -0
  336. package/bundled/skills/testing-guide/SKILL.md +23 -0
  337. package/package.json +1 -1
  338. package/src/commands/check.js +154 -8
  339. package/src/commands/config.js +231 -104
  340. package/src/commands/init.js +23 -3
  341. package/src/commands/update.js +250 -25
  342. package/src/config/ai-agent-paths.js +16 -0
  343. package/src/config/workflow-definitions.js +184 -0
  344. package/src/core/constants.js +6 -0
  345. package/src/flows/init-flow.js +23 -6
  346. package/src/i18n/messages.js +51 -3
  347. package/src/installers/integration-installer.js +67 -2
  348. package/src/installers/manifest-installer.js +1 -0
  349. package/src/installers/standards-installer.js +3 -2
  350. package/src/prompts/init.js +50 -3
  351. package/src/reconciler/manifest-migrator.js +2 -2
  352. package/src/reconciler/plan-executor.js +11 -0
  353. package/src/utils/integration-generator.js +327 -14
  354. package/src/utils/workflow-gate.js +292 -0
  355. package/standards-registry.json +160 -5
@@ -0,0 +1,48 @@
1
+ ---
2
+ source: ../../../core/behavior-driven-development.md
3
+ source_version: 1.1.0
4
+ translation_version: 1.1.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/behavior-driven-development.md) | 简体中文
10
+
11
+ # 行为驱动开发(BDD)标准
12
+
13
+ **版本**: 1.1.0
14
+ **最后更新**: 2026-01-25
15
+ **适用范围**: 所有采用行为驱动开发的项目
16
+ **范围**: universal
17
+ **行业标准**: 无(Dan North 实践,2006)
18
+
19
+ ---
20
+
21
+ ## 摘要
22
+
23
+ 行为驱动开发(BDD)是由 Dan North 于 2006 年创建的传统开发方法论,旨在弥合业务与技术团队之间的沟通鸿沟。软件行为通过协作使用 **Given-When-Then** 场景来规范,采用 Gherkin 语法 — 一种利益相关者可以阅读和验证的自然语言格式。
24
+
25
+ BDD 构成双循环 TDD(GOOS 模式)的**外循环**,BDD 场景驱动功能级别行为,而 TDD 处理单元级别实现。该方法论遵循发现-公式化-自动化工作流,通过 Three Amigos 协作(业务 + 开发 + 测试)确保共同理解。
26
+
27
+ ---
28
+
29
+ **完整指南: [BDD Guide](../../../methodologies/guides/bdd-guide.md)**
30
+
31
+ ---
32
+
33
+ ## 快速参考
34
+
35
+ | 方面 | 说明 |
36
+ |------|------|
37
+ | **核心工作流** | 发现 → 公式化 → 自动化 |
38
+ | **语言** | Gherkin(Given-When-Then) |
39
+ | **测试层级** | 功能/场景测试 |
40
+ | **参与者** | 开发者 + BA + QA(Three Amigos) |
41
+ | **工具** | Cucumber、Behave、SpecFlow |
42
+
43
+ ## 相关标准
44
+
45
+ - [测试驱动开发](../../../core/test-driven-development.md)
46
+ - [验收测试驱动开发](acceptance-test-driven-development.md)
47
+ - [规格驱动开发](../../../core/spec-driven-development.md)
48
+ - [测试标准](testing-standards.md)
@@ -0,0 +1,112 @@
1
+ ---
2
+ source: ../../../core/branch-completion.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/branch-completion.md) | 简体中文
10
+
11
+ # 分支完成工作流程
12
+
13
+ **版本**: 1.0.0
14
+ **最后更新**: 2026-03-20
15
+ **适用范围**: 所有使用 Git 分支工作流的项目
16
+ **范围**: universal
17
+ **灵感来源**: [Superpowers](https://github.com/obra/superpowers) — finishing-a-development-branch (MIT)
18
+
19
+ ---
20
+
21
+ ## 目的
22
+
23
+ 定义分支完成的标准化工作流,包含前置检查、四个完成选项与安全丢弃流程。防止过早合并、遗忘分支与意外数据丢失。
24
+
25
+ ---
26
+
27
+ ## 术语表
28
+
29
+ | 术语 | 定义 |
30
+ |------|------|
31
+ | 分支完成 | 完成功能/修复分支上工作的过程 |
32
+ | 前置条件 | 分支被视为完成前必须满足的条件 |
33
+ | 丢弃确认 | 删除工作前需要明确输入的安全机制 |
34
+
35
+ ---
36
+
37
+ ## 核心原则 — 测试优先于讨论
38
+
39
+ > **所有测试必须通过,才能考虑任何完成选项。**
40
+
41
+ ---
42
+
43
+ ## 前置条件
44
+
45
+ 分支完成前,以下所有检查必须通过:
46
+
47
+ | 检查项 | 命令(示例) | 必需 |
48
+ |--------|-------------|------|
49
+ | 所有测试通过 | `pnpm test` | 是 |
50
+ | Lint 通过 | `pnpm lint` | 是 |
51
+ | 类型检查通过 | `pnpm tsc --noEmit` | 是 |
52
+ | 无未提交变更 | `git status --porcelain` | 是 |
53
+
54
+ 如果任何前置条件失败,分支**尚未准备好完成**。先修复问题。
55
+
56
+ ---
57
+
58
+ ## 四个完成选项
59
+
60
+ ### 选项 1:本地合并
61
+
62
+ 在本地机器上将分支合并到目标分支。
63
+
64
+ ```bash
65
+ git checkout main
66
+ git merge feature/my-feature
67
+ git branch -d feature/my-feature
68
+ ```
69
+
70
+ ### 选项 2:创建 Pull Request
71
+
72
+ 推送分支并创建 PR 进行代码审查。
73
+
74
+ ```bash
75
+ git push -u origin feature/my-feature
76
+ gh pr create --title "功能描述" --body "变更说明"
77
+ ```
78
+
79
+ ### 选项 3:Squash 合并
80
+
81
+ 将所有提交压缩为单一提交后合并。
82
+
83
+ ```bash
84
+ git checkout main
85
+ git merge --squash feature/my-feature
86
+ git commit -m "feat: 功能描述"
87
+ git branch -d feature/my-feature
88
+ ```
89
+
90
+ ### 选项 4:丢弃分支
91
+
92
+ 安全丢弃不再需要的分支。
93
+
94
+ ⚠️ **丢弃确认**:必须明确输入确认才能删除。
95
+
96
+ ```bash
97
+ git branch -D feature/my-feature # 本地删除
98
+ git push origin --delete feature/my-feature # 远程删除
99
+ ```
100
+
101
+ ---
102
+
103
+ ## 相关标准
104
+
105
+ - [Git Worktree 隔离](git-worktree.md)
106
+ - [代理派遣与并行协调](agent-dispatch.md)
107
+
108
+ ---
109
+
110
+ ## 许可证
111
+
112
+ 本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
@@ -0,0 +1,265 @@
1
+ ---
2
+ source: ../../../core/change-batching-standards.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-23
6
+ status: current
7
+ ---
8
+
9
+ # 变更批次标准
10
+
11
+ > **语言**: [English](../../../core/change-batching-standards.md) | 简体中文
12
+
13
+ **适用范围**: 所有使用自动化开发流程的软件项目
14
+ **Scope**: universal
15
+
16
+ ---
17
+
18
+ ## 概述
19
+
20
+ 变更批次标准定义了待处理变更应如何累积、评估并合并为原子性提交。本标准填补了个别变更与提交之间的空白,提供在何时以及如何将多个相关变更批次整合为有机一体的规则。
21
+
22
+ ## 参考资料
23
+
24
+ | 标准/来源 | 内容 |
25
+ |------------|------|
26
+ | SWEBOK v4.0 第 6 章 | 软件配置管理 |
27
+ | ISO/IEC 12207 | 配置管理流程 |
28
+ | Continuous Delivery(Jez Humble) | 小批次原则 |
29
+ | Lean Software Development | 批次大小最优化 |
30
+
31
+ ---
32
+
33
+ ## 待处理变更状态机
34
+
35
+ ### 状态定义
36
+
37
+ ```
38
+ ┌─────────┐ threshold met ┌─────────┐ merge success ┌─────────┐
39
+ │ PENDING │───────────────────▶│ READY │────────────────────▶│ MERGED │
40
+ │ 等待中 │ │ 就绪 │ │ 已合并 │
41
+ └─────────┘ └─────────┘ └─────────┘
42
+ ▲ │ │
43
+ │ reset │ merge failure │
44
+ │ ▼ ▼
45
+ │ ┌─────────┐ ┌──────────┐
46
+ └────────────────────────│ FAILED │ │ ARCHIVED │
47
+ │ 失败 │ │ 已归档 │
48
+ └─────────┘ └──────────┘
49
+ ```
50
+
51
+ ### 状态转换
52
+
53
+ | 来源 | 目标 | 触发条件 | 动作 |
54
+ |------|------|----------|------|
55
+ | PENDING | PENDING | 新增变更 | 递增计数器,重新评估门槛 |
56
+ | PENDING | READY | 达到门槛 | 准备合并批次,执行合并前验证 |
57
+ | READY | MERGED | 合并成功 | 创建提交、清除批次、归档 |
58
+ | READY | FAILED | 合并失败 | 记录失败,保留变更 |
59
+ | FAILED | PENDING | 重置 | 重新排入变更,清除失败状态 |
60
+ | MERGED | ARCHIVED | 提交后 | 记录批次元数据以供审计 |
61
+
62
+ ---
63
+
64
+ ## 门槛策略
65
+
66
+ ### 门槛类型
67
+
68
+ | 策略 | 参数 | 默认值 | 说明 |
69
+ |------|------|--------|------|
70
+ | **计数** | `maxChanges` | 5 | 累积 N 个个别变更后合并 |
71
+ | **分数** | `maxScore` | 10 | 累积变更分数 ≥ M 时合并 |
72
+ | **时间** | `maxAge` | 30m | 最旧的待处理变更超过 TTL 时合并 |
73
+ | **手动** | — | — | 仅在用户明确要求时合并 |
74
+
75
+ ### 变更评分
76
+
77
+ 每项变更依复杂度指派分数:
78
+
79
+ | 变更类型 | 分数 | 范例 |
80
+ |----------|------|------|
81
+ | 微小 | 1 | 错字修正、空白、注释更新 |
82
+ | 次要 | 2 | 单一函数变更、变量重新命名 |
83
+ | 标准 | 3 | 新增函数、修改逻辑流程 |
84
+ | 复杂 | 5 | 多文件变更、API 修改 |
85
+ | 关键 | 8 | Schema 变更、破坏性变更 |
86
+
87
+ ### 门槛配置
88
+
89
+ ```json
90
+ {
91
+ "batching": {
92
+ "strategy": "count",
93
+ "maxChanges": 5,
94
+ "maxScore": 10,
95
+ "maxAge": "30m",
96
+ "fallbackStrategy": "time"
97
+ }
98
+ }
99
+ ```
100
+
101
+ ### 复合门槛
102
+
103
+ 多个门槛可以 OR 逻辑组合(第一个达到的门槛触发合并):
104
+
105
+ ```
106
+ Merge when: changes ≥ 5 OR score ≥ 10 OR age ≥ 30m
107
+ ```
108
+
109
+ ---
110
+
111
+ ## 合并规则
112
+
113
+ ### 优先顺序
114
+
115
+ 1. **相同规格亲和性**:引用相同 SPEC-ID 的变更优先合并
116
+ 2. **相同文件分组**:对相同文件的变更合并在一起
117
+ 3. **依赖顺序**:有依赖关系的变更依依赖顺序合并
118
+ 4. **时间顺序**:在相同优先级内,依创建顺序合并
119
+
120
+ ### 冲突解决
121
+
122
+ | 冲突类型 | 解决策略 | 备用方案 |
123
+ |----------|----------|----------|
124
+ | 同一文件同一行 | 最新变更优先 | 手动解决 |
125
+ | 重叠函数 | 尽可能进行语义合并 | 手动解决 |
126
+ | 依赖冲突 | 先解决依赖关系 | 拒绝批次,拆分 |
127
+
128
+ ### 合并前验证
129
+
130
+ 合并批次前,需验证:
131
+
132
+ | 检查项目 | 必要性 | 说明 |
133
+ |----------|--------|------|
134
+ | 所有测试通过 | 是 | 对合并后状态执行测试套件 |
135
+ | 无 lint 错误 | 是 | 对合并后的文件执行 linter |
136
+ | 无冲突 | 是 | 确认干净合并,无冲突 |
137
+ | 维持 AC 覆盖率 | 建议 | AC 覆盖率不降低 |
138
+
139
+ ---
140
+
141
+ ## 原子性保证
142
+
143
+ ### 全有或全无原则
144
+
145
+ 批次合并必须是原子性的:
146
+
147
+ - **成功**:批次中的所有变更一起提交
148
+ - **失败**:批次中的任何变更都不提交;所有变更回到 PENDING 状态
149
+
150
+ ### 原子性规则
151
+
152
+ | 规则 | 说明 |
153
+ |------|------|
154
+ | **单一提交** | 每个合并批次恰好产生一个提交 |
155
+ | **不允许部分合并** | 如果批次中任一变更验证失败,整个批次被拒绝 |
156
+ | **支持回溯** | 失败的合并必须将所有变更还原至 PENDING 状态 |
157
+ | **隔离性** | 批次合并不得影响批次以外的变更 |
158
+
159
+ ---
160
+
161
+ ## 回溯机制
162
+
163
+ ### 失败处理
164
+
165
+ 当批次合并失败时:
166
+
167
+ 1. **记录失败**:记录批次中包含哪些变更以及什么失败
168
+ 2. **保留变更**:所有变更回到 PENDING 状态
169
+ 3. **诊断**:识别失败的变更
170
+ 4. **选项**:
171
+ - 修正失败的变更并重试
172
+ - 移除失败的变更并合并其余部分
173
+ - 将批次拆分为较小的群组
174
+
175
+ ### 回溯触发条件
176
+
177
+ | 触发条件 | 动作 | 自动执行? |
178
+ |----------|------|-----------|
179
+ | 测试失败 | 拒绝整个批次 | 是 |
180
+ | lint 错误 | 拒绝整个批次 | 是 |
181
+ | 合并冲突 | 拒绝并通知 | 是 |
182
+ | 构建失败 | 拒绝整个批次 | 是 |
183
+ | 手动拒绝 | 回到 PENDING | 否 |
184
+
185
+ ---
186
+
187
+ ## 批次提交消息格式
188
+
189
+ 批次提交应使用结构化消息格式:
190
+
191
+ ```
192
+ <type>(<scope>): <summary of batch>
193
+
194
+ Changes included:
195
+ - <change 1 description>
196
+ - <change 2 description>
197
+ - <change 3 description>
198
+
199
+ Spec: SPEC-XXX (if applicable)
200
+ Batch: N changes, score M
201
+ ```
202
+
203
+ ### 范例
204
+
205
+ ```
206
+ feat(auth): implement login validation and error handling
207
+
208
+ Changes included:
209
+ - Add email format validation
210
+ - Add password strength check
211
+ - Add error message display
212
+ - Add rate limiting for failed attempts
213
+
214
+ Spec: SPEC-001
215
+ Batch: 4 changes, score 11
216
+ ```
217
+
218
+ ---
219
+
220
+ ## 反模式
221
+
222
+ | 反模式 | 影响 | 正确做法 |
223
+ |--------|------|----------|
224
+ | 无限累积 | 庞大且难以审查的提交 | 设定合理门槛 |
225
+ | 混合不相关的变更 | 难以审查,难以回溯 | 依规格或功能分组 |
226
+ | 部分提交 | 损坏的中间状态 | 强制原子性 |
227
+ | 忽略失败 | 损坏的代码进入代码库 | 合并前始终进行验证 |
228
+ | 无回溯计划 | 失败时丢失变更 | 失败时保留变更 |
229
+
230
+ ---
231
+
232
+ ## 最佳实践
233
+
234
+ ### 应该做的
235
+
236
+ - ✅ 为自动批次设定明确的门槛
237
+ - ✅ 依规格或功能分组变更
238
+ - ✅ 提交前验证整个批次
239
+ - ✅ 使用原子性提交(全有或全无)
240
+ - ✅ 失败时保留变更
241
+ - ✅ 记录批次决策以供审计
242
+
243
+ ### 不应该做的
244
+
245
+ - ❌ 无限期累积变更
246
+ - ❌ 在一个批次中混合不相关的变更
247
+ - ❌ 提交部分批次
248
+ - ❌ 忽略验证失败
249
+ - ❌ 合并失败时丢失变更
250
+
251
+ ---
252
+
253
+ ## 相关标准
254
+
255
+ - [签入标准](checkin-standards.md) — 提交的品质闸门
256
+ - [Pipeline 整合标准](pipeline-integration-standards.md) — Pipeline 自动化
257
+ - [提交消息指南](commit-message-guide.md) — 提交消息格式
258
+
259
+ ---
260
+
261
+ ## 版本历史
262
+
263
+ | 版本 | 日期 | 变更 |
264
+ |------|------|------|
265
+ | 1.0.0 | 2026-03-18 | 初始版本 — 状态机、门槛策略、原子性保证 |
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  source: ../../../core/checkin-standards.md
3
- source_version: 1.4.0
4
- translation_version: 1.4.0
5
- last_synced: 2026-01-16
3
+ source_version: 1.5.0
4
+ translation_version: 1.5.0
5
+ last_synced: 2026-03-18
6
6
  status: current
7
7
  ---
8
8
 
@@ -10,8 +10,8 @@ status: current
10
10
 
11
11
  > **语言**: [English](../../../core/checkin-standards.md) | 繁体中文
12
12
 
13
- **版本**: 1.4.0
14
- **最后更新**: 2026-01-16
13
+ **版本**: 1.5.0
14
+ **最后更新**: 2026-03-18
15
15
  **适用范围**: 所有使用版本控制的软体专案
16
16
 
17
17
  ---
@@ -83,6 +83,11 @@ pip install -r requirements.txt && python -m py_compile src/**/*.py
83
83
  - Coverage percentage not decreased
84
84
  - Critical paths are tested
85
85
 
86
+ - [ ] **AC 覆盖率已验证**(如使用规格驱动工作流)
87
+ - 所有验收条件有对应测试(参见[验收条件追溯标准](acceptance-criteria-traceability.md))
88
+ - AC 覆盖率达到专案阈值(预设:签入时 80%)
89
+ - 已覆盖的 AC 未退化为未覆盖
90
+
86
91
  **专案特定测试指令**:
87
92
  ```bash
88
93
  # Example: .NET project
@@ -403,6 +408,7 @@ git status
403
408
  | 变更累积 | 档案 ≥5 个 或 行数 ≥200 行 | 建议 |
404
409
  | 连续跳过 | 连续跳过签入 3 次 | 警告 |
405
410
  | 工作完成 | 结束前有未 commit 变更 | 强烈建议 |
411
+ | 批次阈值 | 待处理变更达到配置阈值 | 建议 |
406
412
 
407
413
  ### 提醒行为
408
414
 
@@ -448,6 +454,33 @@ git status
448
454
  ```
449
455
  3. **工作结束前** → If uncommitted changes exist, strongly recommend check-in
450
456
 
457
+ ### 批次阈值触发
458
+
459
+ 当使用自动化 Pipeline 与变更批次处理时(参见[变更批次合并标准](change-batching-standards.md)):
460
+
461
+ - **计数阈值**:累积变更数量 ≥ 配置的 `maxChanges` 时触发
462
+ - **分数阈值**:累计变更分数 ≥ 配置的 `maxScore` 时触发
463
+ - **时间阈值**:最旧的待处理变更超过配置的 `maxAge` 时触发
464
+ - **行为**:批次阈值触发签入建议,而非自动提交(除非启用 `autoCheckin`)
465
+
466
+ ### 自动签入
467
+
468
+ 当 Pipeline 配置中启用 `autoCheckin` 时(参见 [Pipeline 整合标准](pipeline-integration-standards.md)):
469
+
470
+ | 前提条件 | 必须 | 说明 |
471
+ |---------|------|------|
472
+ | 所有测试通过 | 是 | 完整测试套件通过,包括新测试 |
473
+ | Lint 通过 | 是 | 变更档案无 lint 错误 |
474
+ | AC 覆盖率达标 | 是 | AC 覆盖率达到专案阈值 |
475
+ | 无冲突 | 是 | 与目标分支可干净合并 |
476
+ | 批次已验证 | 是(如启用批次) | 批次中所有变更已一并验证 |
477
+
478
+ **安全规则**:
479
+ - 自动签入**不得**推送到受保护的分支
480
+ - 自动签入**必须**创建正式的 commit 讯息(非「auto-commit」)
481
+ - 自动签入**必须**可稽核(记录 who/what/when)
482
+ - 用户可随时以手动 commit 覆盖
483
+
451
484
  ---
452
485
 
453
486
  ## 特殊情境处理
@@ -958,6 +991,7 @@ git commit -m "feat(module-c): add export to CSV feature"
958
991
 
959
992
  | 版本 | 日期 | 变更 |
960
993
  |---------|------|---------|
994
+ | 1.5.0 | 2026-03-18 | 新增:AC 覆盖率验证、批次阈值触发、自动签入规则 |
961
995
  | 1.4.0 | 2026-01-16 | 新增:Bug 修复测试评估章节与决策矩阵 |
962
996
  | 1.3.0 | 2026-01-05 | 新增:SWEBOK v4.0 第 6 章(软体配置管理)至参考资料 |
963
997
  | 1.2.5 | 2025-12-16 | Clarified: CHANGELOG update is for user-facing changes only, added to [Unreleased] section |
@@ -976,6 +1010,10 @@ git commit -m "feat(module-c): add export to CSV feature"
976
1010
  - [测试标准](testing-standards.md)(或使用 `/testing-guide` 技能)
977
1011
  - [Commit 讯息规范](commit-message-guide.md)
978
1012
  - [程序码审查清单](code-review-checklist.md)
1013
+ - [部署标准](deployment-standards.md) - 品质关卡与部署就绪性
1014
+ - [验收条件追溯标准](acceptance-criteria-traceability.md) - AC 覆盖率验证
1015
+ - [变更批次合并标准](change-batching-standards.md) - 批次阈值触发
1016
+ - [Pipeline 整合标准](pipeline-integration-standards.md) - 自动签入
979
1017
 
980
1018
  ---
981
1019
 
@@ -0,0 +1,106 @@
1
+ ---
2
+ source: ../../../core/context-aware-loading.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/context-aware-loading.md) | 简体中文
10
+
11
+ # 情境感知标准加载
12
+
13
+ **版本**: 1.0.0
14
+ **最后更新**: 2026-03-16
15
+ **适用范围**: 所有使用 AI 优化标准(.ai.yaml)的项目
16
+ **范围**: universal
17
+
18
+ ---
19
+
20
+ ## 目的
21
+
22
+ 本标准定义 AI 工具根据当前任务情境选择性加载开发标准的协议。AI 工具不会一次性加载所有标准,而是始终加载核心集合,并按需激活其他标准,从而减少 token 使用并提高聚焦度。
23
+
24
+ ---
25
+
26
+ ## 快速参考
27
+
28
+ | 概念 | 描述 |
29
+ |------|------|
30
+ | **域** | 一组命名的相关标准(如 `testing`、`quality`) |
31
+ | **始终加载** | 无论任务如何,每个会话都加载的标准 |
32
+ | **按需加载** | 仅在任务情境匹配其域触发器时加载的标准 |
33
+ | **清单域** | 域→标准映射的唯一真实来源(`manifest.json`) |
34
+
35
+ ---
36
+
37
+ ## 1. 域分类
38
+
39
+ ### 1.1 始终加载的标准
40
+
41
+ 这些标准对每次 AI 交互都是基础性的,必须始终加载:
42
+
43
+ | 标准 | 原因 |
44
+ |------|------|
45
+ | `anti-hallucination` | 在每项任务中防止捏造 |
46
+ | `commit-message` | 每个会话都可能产生提交 |
47
+ | `checkin-standards` | 品质关卡适用于所有变更 |
48
+ | `project-context-memory` | 项目决策必须始终被尊重 |
49
+ | `developer-memory` | 过去的见解应始终可用 |
50
+
51
+ ### 1.2 按需加载域
52
+
53
+ | 域 | 标准 | 激活触发器 |
54
+ |----|------|-----------|
55
+ | `testing` | testing, unit-testing, integration-testing, tdd, bdd, atdd | 撰写测试、测试文件编辑、"测试覆盖率"讨论 |
56
+ | `specification` | spec-driven-development, forward-derivation, reverse-engineering | `/sdd`、`/spec` 命令、规格文件编辑 |
57
+ | `quality` | code-review, refactoring, security, performance, accessibility | `/review` 命令、PR 审查、"重构"讨论 |
58
+ | `documentation` | documentation-structure, documentation-writing, changelog | 撰写文档、README/CHANGELOG 编辑 |
59
+ | `workflow` | git-workflow, github-flow, squash-merge, versioning, deployment | 分支操作、发布准备、合并 |
60
+ | `architecture` | ai-friendly-architecture, project-structure, error-codes, logging | 架构决策、项目设置 |
61
+
62
+ ---
63
+
64
+ ## 2. 激活协议
65
+
66
+ ### 2.1 加载决策流程
67
+
68
+ ```
69
+ 用户请求到达
70
+
71
+
72
+ 始终加载标准已就绪? ──否──► 加载始终加载标准
73
+
74
+
75
+
76
+ 分析任务关键字与文件路径
77
+
78
+
79
+ 匹配到按需域? ──否──► 仅使用始终加载标准
80
+
81
+
82
+
83
+ 加载匹配域的标准
84
+ ```
85
+
86
+ ### 2.2 触发器匹配规则
87
+
88
+ | 触发器类型 | 示例 | 匹配域 |
89
+ |-----------|------|--------|
90
+ | 命令名称 | `/tdd`、`/bdd` | `testing` |
91
+ | 文件路径 | `tests/**`、`*.test.ts` | `testing` |
92
+ | 关键字 | "重构"、"安全" | `quality` |
93
+ | 工作流阶段 | "发布准备" | `workflow` |
94
+
95
+ ---
96
+
97
+ ## 相关标准
98
+
99
+ - [项目情境记忆](project-context-memory.md)
100
+ - [AI 指令标准](../../../core/ai-instruction-standards.md)
101
+
102
+ ---
103
+
104
+ ## 许可证
105
+
106
+ 本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。