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,652 @@
1
+ ---
2
+ source: docs/USER-MANUAL.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ status: current
6
+ ---
7
+
8
+ # 使用者手冊
9
+
10
+ **Version**: 1.0.0
11
+ **Last Updated**: 2026-03-24
12
+
13
+ > **Language**: [English](../../../docs/USER-MANUAL.md) | 繁體中文 | [简体中文](../../zh-CN/docs/USER-MANUAL.md)
14
+
15
+ 本手冊引導軟體開發者從安裝到日常高效使用 Universal Development Standards (UDS)。
16
+
17
+ ---
18
+
19
+ ## 目錄
20
+
21
+ - [什麼是 UDS?](#什麼是-uds)
22
+ - [為什麼要用 UDS?](#為什麼要用-uds)
23
+ - [架構](#架構)
24
+ - [安裝](#安裝)
25
+ - [安裝後驗證](#安裝後驗證)
26
+ - [你的第一個指令:/discover](#你的第一個指令discover)
27
+ - [日常開發流程地圖](#日常開發流程地圖)
28
+ - [工作流程 A:規格驅動開發 (SDD)](#工作流程-a規格驅動開發-sdd)
29
+ - [工作流程 B:TDD 紅綠重構](#工作流程-btdd-紅綠重構)
30
+ - [選擇正確的工作流程](#選擇正確的工作流程)
31
+ - [Legacy Code 策略](#legacy-code-策略)
32
+ - [品質指令](#品質指令)
33
+ - [所有 Slash Commands 參考](#所有-slash-commands-參考)
34
+ - [漸進式導入策略](#漸進式導入策略)
35
+ - [UDS 的一天](#uds-的一天)
36
+ - [支援的 AI 工具](#支援的-ai-工具)
37
+ - [常見問題](#常見問題)
38
+ - [下一步與資源](#下一步與資源)
39
+
40
+ ---
41
+
42
+ ## 什麼是 UDS?
43
+
44
+ Universal Development Standards 是一套為 AI 時代設計的**語言無關、框架無關**開發標準框架。它提供一組統一的標準、技能和指令,適用於任何技術棧。
45
+
46
+ | 類別 | 數量 | 說明 |
47
+ |------|------|------|
48
+ | **Core Standards** | 48 | 通用開發準則(Markdown) |
49
+ | **AI Skills** | 40 | 互動式技能(YAML) |
50
+ | **Slash Commands** | 45 | 日常開發快速操作指令 |
51
+ | **CLI Commands** | 6 | 命令列工具 |
52
+
53
+ **三大特性:**
54
+
55
+ 1. **語言無關** — JavaScript、Python、Go、Rust、Java 等任何語言都適用
56
+ 2. **框架無關** — React、Vue、Spring、Django 等任何框架都適用
57
+ 3. **AI 原生** — 專為 AI 輔助開發工作流程設計
58
+
59
+ ---
60
+
61
+ ## 為什麼要用 UDS?
62
+
63
+ | 問題 | UDS 解決方案 |
64
+ |------|-------------|
65
+ | 團隊 commit message 格式不一致 | 透過 `/commit` 標準化 Conventional Commits |
66
+ | Code review 漏看關鍵問題 | 透過 `/review` 執行 8 維度系統性審查 |
67
+ | AI 工具給出不一致的建議 | 統一標準讓 AI 工具讀取並遵循 |
68
+ | 新人加入團隊需要數週上手 | 清晰的標準和引導式工作流程 |
69
+ | 測試覆蓋率期望不明確 | 測試金字塔定義明確比例(70/20/7/3) |
70
+ | 開發流程不清楚 | 兩套方法論系統(SDD 和雙迴圈 TDD) |
71
+
72
+ ### 設計哲學
73
+
74
+ **「碰一點,保護一點」** — 你不需要一次導入全部 48 個標準。UDS 專為漸進式導入設計:
75
+
76
+ - 先只用 `/commit` — 零成本,立即見效
77
+ - 接著加入 `/review` — 在合併前捕捉問題
78
+ - 團隊適應後,逐步引入 `/tdd` 和 `/sdd`
79
+
80
+ > **Boy Scout Rule**:讓程式碼比你找到它時更好。每次碰到程式碼,順手加一點保護(測試、文件)。
81
+
82
+ ---
83
+
84
+ ## 架構
85
+
86
+ UDS 採用**雙層執行模型**:
87
+
88
+ ```
89
+ AI Agent / 開發者
90
+ |
91
+ ┌─────┴─────┐
92
+ | |
93
+ Skills Layer Standards Layer
94
+ (.ai.yaml) (.md)
95
+ | |
96
+ 省 Token 完整理論
97
+ 互動式精靈 工具配置
98
+ 日常開發用 深度參考用
99
+ ```
100
+
101
+ | 面向 | Skills(執行層) | Standards(知識層) |
102
+ |------|-----------------|-------------------|
103
+ | 格式 | YAML 最佳化 | 完整 Markdown |
104
+ | 用途 | 高速互動查詢 | 深度理解與根據 |
105
+ | Token 用量 | 最少(AI 友善) | 詳盡(參考用) |
106
+ | 使用時機 | 日常開發任務 | 學習概念、深度審查 |
107
+
108
+ 實務上,AI 工具會自動載入 Skills 層。只有當你想了解某條規則的「為什麼」時,才需要閱讀 Standards 層。
109
+
110
+ ---
111
+
112
+ ## 安裝
113
+
114
+ ### 方法一:全域安裝(推薦)
115
+
116
+ ```bash
117
+ npm install -g universal-dev-standards
118
+ cd your-project
119
+ uds init
120
+ ```
121
+
122
+ ### 方法二:免安裝
123
+
124
+ ```bash
125
+ npx universal-dev-standards init
126
+ ```
127
+
128
+ ### `uds init` 做了什麼
129
+
130
+ 互動式初始化會:
131
+
132
+ 1. **偵測**你的專案類型(Node.js、Python 等)
133
+ 2. **詢問**你使用的 AI 工具(Claude Code、Cursor 等)
134
+ 3. **安裝**標準到 `.standards/` 目錄
135
+ 4. **配置**你的 AI 工具設定檔(CLAUDE.md、.cursorrules 等)
136
+
137
+ ---
138
+
139
+ ## 安裝後驗證
140
+
141
+ 執行 `uds init` 後,你的專案會多出這些檔案:
142
+
143
+ ```
144
+ your-project/
145
+ ├── .standards/ # 48 個 AI 標準(.ai.yaml 檔案)
146
+ │ ├── testing.ai.yaml
147
+ │ ├── commit-message.ai.yaml
148
+ │ ├── code-review.ai.yaml
149
+ │ └── ...
150
+ ├── CLAUDE.md # Claude Code 配置(若選擇)
151
+ ├── .cursorrules # Cursor 配置(若選擇)
152
+ └── ...你原有的檔案完全不動
153
+ ```
154
+
155
+ **驗證安裝:**
156
+
157
+ ```bash
158
+ uds check # 檢查採用狀態和檔案完整性
159
+ uds skills # 列出已安裝技能
160
+ ```
161
+
162
+ ---
163
+
164
+ ## 你的第一個指令:/discover
165
+
166
+ 在修改既有程式碼庫之前,先用 `/discover` 評估健康度:
167
+
168
+ ```bash
169
+ /discover # 全專案健康度評估
170
+ /discover auth # 聚焦認證模組評估
171
+ /discover payments # 評估新增支付功能的風險
172
+ ```
173
+
174
+ ### 輸出範例
175
+
176
+ ```
177
+ Project Health Report
178
+ =====================
179
+ Overall Score: 7.2 / 10
180
+
181
+ | 維度 | 分數 | 狀態 | 關鍵發現 |
182
+ |-----------------|-------|---------|------------------------|
183
+ | Architecture | 8/10 | Good | 模組邊界清晰 |
184
+ | Dependencies | 6/10 | Warning | 5 個過時, 1 個嚴重 |
185
+ | Test Coverage | 7/10 | Fair | 72% 行覆蓋率 |
186
+ | Security | 8/10 | Good | 無嚴重漏洞 |
187
+ | Technical Debt | 6/10 | Warning | 23 個 TODO, 3 個熱點 |
188
+
189
+ Verdict: CONDITIONAL
190
+ Recommendations:
191
+ 1. [HIGH] 更新 lodash 以修復 CVE-2024-XXXX
192
+ 2. [MED] 為 src/payments/ 新增測試(0% 覆蓋率)
193
+ 3. [LOW] 清理 src/utils/ 中的 TODO 積壓
194
+ ```
195
+
196
+ ### 評估維度
197
+
198
+ | 維度 | 檢查項目 |
199
+ |------|---------|
200
+ | **Architecture** | 模組結構、相依圖、進入點 |
201
+ | **Dependencies** | 過時套件、已知漏洞、授權風險 |
202
+ | **Test Coverage** | 現有測試套件、覆蓋率缺口、測試品質 |
203
+ | **Security** | npm audit 發現、硬編碼密鑰、暴露端點 |
204
+ | **Technical Debt** | TODO 標記、程式碼重複、複雜度熱點 |
205
+
206
+ ---
207
+
208
+ ## 日常開發流程地圖
209
+
210
+ 用這個決策樹選擇正確的工作流程:
211
+
212
+ ```
213
+ 第一次接觸這個 Codebase?
214
+
215
+ ├─ 是 → /discover(先評估)
216
+
217
+ └─ 否(已熟悉)
218
+
219
+ ├─ 全新功能?
220
+ │ └─ 是 → SDD 流程:/sdd → /derive-all → 實作
221
+
222
+ ├─ Bug 修復?
223
+ │ └─ 是 → 寫失敗測試 → 修復 → /commit
224
+
225
+ ├─ 修改既有程式碼?
226
+ │ ├─ 有測試? → 直接 /tdd 循環
227
+ │ └─ 沒測試? → 先寫 characterization test
228
+
229
+ └─ 純重構?
230
+ └─ 確保測試覆蓋 → 重構 → 測試通過
231
+ ```
232
+
233
+ > **關鍵原則**:選對工作流程,而非記住所有指令。
234
+
235
+ ---
236
+
237
+ ## 工作流程 A:規格驅動開發 (SDD)
238
+
239
+ SDD 針對**新功能**和 **AI 輔助開發**進行優化。核心理念:**規格先行,程式碼隨後**。
240
+
241
+ ### 五大階段
242
+
243
+ ```
244
+ Phase 1 Phase 2 Phase 3 推演 Phase 4 Phase 5
245
+ 建立規格 → 審查規格 → 核准規格 → 生成測試 → 實作 → 驗證
246
+ /sdd /sdd review /sdd approve /derive-all /sdd implement /sdd verify
247
+ ```
248
+
249
+ | 階段 | 指令 | 輸入 | 輸出 |
250
+ |------|------|------|------|
251
+ | 1. 建立 | `/sdd user-auth` | 需求描述 | `SPEC-001.md` |
252
+ | 2. 審查 | `/sdd review` | SPEC 檔案 | 審查意見 |
253
+ | 3. 核准 | `/sdd approve` | SPEC 檔案 | 狀態更新 |
254
+ | 推演 | `/derive-all` | SPEC 檔案 | `.feature` + `.test.ts` |
255
+ | 4. 實作 | `/sdd implement` | SPEC 檔案 | 進度追蹤 |
256
+ | 5. 驗證 | `/sdd verify` | SPEC 檔案 | 驗證報告 |
257
+
258
+ ### 範例:新增雙因素認證
259
+
260
+ **步驟 1 — 建立規格:**
261
+
262
+ ```bash
263
+ /sdd two-factor-authentication
264
+ ```
265
+
266
+ AI 會引導你定義:
267
+ - **使用者故事**:身為使用者,我希望啟用 2FA 以提高帳戶安全性
268
+ - **驗收條件(AC)**:
269
+ - AC-1: 使用者可以生成 TOTP 密鑰
270
+ - AC-2: 使用者可以掃描 QR Code
271
+ - AC-3: 系統驗證 6 位數 OTP
272
+ - AC-4: 提供備份代碼
273
+
274
+ 輸出:`docs/specs/SPEC-001.md`
275
+
276
+ **步驟 2 — 從核准的規格推演測試:**
277
+
278
+ ```bash
279
+ /derive-all docs/specs/SPEC-001.md
280
+ ```
281
+
282
+ 自動產生:
283
+
284
+ **BDD 場景(.feature):**
285
+ ```gherkin
286
+ @SPEC-001 @AC-1
287
+ Scenario: 使用者生成 TOTP 密鑰
288
+ Given 使用者已登入
289
+ When 使用者啟用雙因素認證
290
+ Then 系統應產生 TOTP 密鑰
291
+ And 顯示 QR Code 供掃描
292
+ ```
293
+
294
+ **TDD 測試骨架(.test.ts):**
295
+ ```typescript
296
+ describe('SPEC-001: 雙因素認證', () => {
297
+ describe('AC-1: 生成 TOTP 密鑰', () => {
298
+ it('should generate valid TOTP secret when user enables 2FA', () => {
299
+ // Arrange - [TODO]
300
+ // Act - [TODO]
301
+ // Assert - [TODO]
302
+ });
303
+ });
304
+ });
305
+ ```
306
+
307
+ > 每個驗收條件 1:1 對應一組測試 — 規格就是測試的藍圖。
308
+
309
+ ---
310
+
311
+ ## 工作流程 B:TDD 紅綠重構
312
+
313
+ TDD 最適合 **Bug 修復**、**小功能**和**修改既有程式碼**。
314
+
315
+ ### 三大階段
316
+
317
+ ```
318
+ ┌──────────────────────────────────┐
319
+ │ │
320
+ │ RED GREEN REFACTOR│
321
+ │ /tdd red /tdd green /tdd refactor
322
+ │ │ │ │ │
323
+ │ v v v │
324
+ │ 寫失敗測試 最少程式碼 改善品質 │
325
+ │ │ │ │ │
326
+ │ └───────────┴───────────┘ │
327
+ │ 重複循環 │
328
+ └──────────────────────────────────┘
329
+ ```
330
+
331
+ | 階段 | 指令 | 規則 |
332
+ |------|------|------|
333
+ | RED | `/tdd red` | 只寫測試,不寫實作。測試必須失敗。 |
334
+ | GREEN | `/tdd green` | 寫最少程式碼讓測試通過。不多不少。 |
335
+ | REFACTOR | `/tdd refactor` | 改善程式碼品質。測試必須持續通過。 |
336
+
337
+ ### 範例:實作 `isValidEmail()`
338
+
339
+ **步驟 1:`/tdd red` — 寫失敗測試**
340
+
341
+ ```javascript
342
+ // tests/email.test.js
343
+ test('should return true for valid email', () => {
344
+ expect(isValidEmail('user@example.com')).toBe(true);
345
+ });
346
+
347
+ test('should return false for invalid email', () => {
348
+ expect(isValidEmail('not-an-email')).toBe(false);
349
+ });
350
+ ```
351
+
352
+ **步驟 2:`/tdd green` — 最少實作**
353
+
354
+ ```javascript
355
+ function isValidEmail(email) {
356
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
357
+ }
358
+ ```
359
+
360
+ **步驟 3:`/tdd refactor` — 改善品質**
361
+
362
+ ```javascript
363
+ const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
364
+
365
+ function isValidEmail(email) {
366
+ return typeof email === 'string' && EMAIL_REGEX.test(email);
367
+ }
368
+ ```
369
+
370
+ ---
371
+
372
+ ## 選擇正確的工作流程
373
+
374
+ | 情境 | 推薦工作流程 |
375
+ |------|-------------|
376
+ | 全新專案 + AI 輔助 | `/sdd` → `/derive-all` → 實作 |
377
+ | 全新功能(明確需求) | `/sdd` → `/derive-all` → 實作 |
378
+ | Legacy 系統修改 | `/bdd` → `/tdd` 循環 |
379
+ | 快速原型 | 直接 `/tdd` |
380
+ | 複雜商業邏輯 | `/bdd discovery` → `/tdd` |
381
+ | Bug 修復 | 寫失敗測試 → 修復 → `/commit` |
382
+ | 模糊構想,需要探索 | `/brainstorm` → `/requirement` → `/sdd` |
383
+ | 多方利害關係人需對齊 | `/atdd` → `/sdd` 或 `/bdd` |
384
+
385
+ > **簡單記法**:新東西用 SDD,改舊的用 TDD,不確定就先 `/discover`。
386
+
387
+ ---
388
+
389
+ ## Legacy Code 策略
390
+
391
+ ### 三步安全修改法
392
+
393
+ ```
394
+ Step 1: 寫 Characterization Test(記錄現有行為)
395
+
396
+ Step 2: /tdd 循環加入新行為
397
+
398
+ Step 3: 逐步重構
399
+ ```
400
+
401
+ ### 什麼是 Characterization Test?
402
+
403
+ 一種記錄程式碼*目前行為*的測試 — 不管對錯。它是你在修改前的安全網。
404
+
405
+ ```javascript
406
+ // 記錄目前行為,即使是 bug
407
+ test('characterization: login validates email format', () => {
408
+ const result = login('invalid-email', 'password');
409
+ // 觀察:目前程式碼接受無效 email(這是 bug)
410
+ expect(result.success).toBe(true); // 記錄現狀
411
+ });
412
+ ```
413
+
414
+ ### 反向工程指令
415
+
416
+ 用於較大規模的 Legacy Code 理解:
417
+
418
+ ```bash
419
+ /reverse spec # 將既有程式碼反向工程為規格
420
+ /reverse-bdd # 轉換為 BDD 場景
421
+ /reverse-tdd # 分析 BDD-TDD 覆蓋差距
422
+ ```
423
+
424
+ > **關鍵原則**:先保護再修改。不要在沒有測試的情況下改 Legacy Code。
425
+
426
+ ---
427
+
428
+ ## 品質指令
429
+
430
+ ### `/commit` — 標準化提交
431
+
432
+ 完成程式碼後,用 `/commit` 產生格式規範的 commit message:
433
+
434
+ ```bash
435
+ /commit # 自動分析 staged changes
436
+ /commit 修正登入驗證邏輯 # 附上描述
437
+ ```
438
+
439
+ **產生格式:**
440
+
441
+ ```
442
+ feat(auth): 新增雙因素認證支援
443
+
444
+ 實作 TOTP 密鑰生成、QR Code 顯示和 OTP 驗證。
445
+ 使用者可在帳戶設定中啟用 2FA,並取得備份代碼。
446
+
447
+ Refs: SPEC-001
448
+ ```
449
+
450
+ **Commit 類型:**
451
+
452
+ | Type | 用途 | 範例 |
453
+ |------|------|------|
454
+ | `feat` | 新功能 | `feat(auth): 新增 2FA` |
455
+ | `fix` | 修 Bug | `fix(login): 修正密碼驗證` |
456
+ | `refactor` | 重構 | `refactor(utils): 抽取共用函式` |
457
+ | `docs` | 文件 | `docs(api): 更新 API 文件` |
458
+ | `test` | 測試 | `test(auth): 新增登入測試` |
459
+ | `chore` | 維護 | `chore(deps): 更新相依套件` |
460
+
461
+ ### `/review` — 程式碼審查
462
+
463
+ 提交前,用 `/review` 進行系統性審查:
464
+
465
+ ```bash
466
+ /review # 審查當前分支所有變更
467
+ /review src/auth.js # 審查特定檔案
468
+ /review feature/login # 審查特定分支
469
+ ```
470
+
471
+ **8 個審查維度:**
472
+
473
+ | # | 維度 | 檢查重點 |
474
+ |---|------|---------|
475
+ | 1 | Functionality | 功能是否正確? |
476
+ | 2 | Design | 架構是否合理? |
477
+ | 3 | Quality | 程式碼是否乾淨? |
478
+ | 4 | Readability | 是否容易理解? |
479
+ | 5 | Tests | 測試覆蓋是否足夠? |
480
+ | 6 | Security | 有無安全漏洞? |
481
+ | 7 | Performance | 是否有效率? |
482
+ | 8 | Error Handling | 錯誤處理是否完善? |
483
+
484
+ **評論前綴系統:**
485
+
486
+ | 前綴 | 意義 | 動作 |
487
+ |------|------|------|
488
+ | **BLOCKING** | 必須修復才能合併 | 必要 |
489
+ | **IMPORTANT** | 應該修復 | 建議 |
490
+ | **SUGGESTION** | 可以更好 | 可選 |
491
+ | **QUESTION** | 需要釐清 | 討論 |
492
+
493
+ ### `/checkin` — 提交前品質閘門
494
+
495
+ 提交前執行 `/checkin` 驗證所有品質閘門通過(測試、linting、標準合規)。
496
+
497
+ ---
498
+
499
+ ## 所有 Slash Commands 參考
500
+
501
+ | 家族 | 指令 | 用途 |
502
+ |------|------|------|
503
+ | **探索** | `/discover`, `/dev-workflow` | 評估專案、引導工作流程 |
504
+ | **規格** | `/sdd`, `/requirement`, `/brainstorm` | 規格驅動開發 |
505
+ | **推演** | `/derive-all`, `/derive-bdd`, `/derive-tdd`, `/derive-atdd` | 從規格生成測試 |
506
+ | **開發** | `/tdd`, `/bdd`, `/atdd` | 方法論工作流程 |
507
+ | **品質** | `/commit`, `/review`, `/checkin`, `/coverage`, `/ac-coverage` | 日常品質管理 |
508
+ | **文件** | `/docs`, `/docgen`, `/changelog`, `/release` | 文件與發布 |
509
+ | **反向** | `/reverse`, `/reverse-sdd`, `/reverse-bdd`, `/reverse-tdd` | Legacy Code 反向工程 |
510
+ | **重構** | `/refactor` | 重構指導 |
511
+ | **工具** | `/init`, `/check`, `/update`, `/config`, `/methodology`, `/guide` | 設定與配置 |
512
+
513
+ > 不需要記住全部。輸入 `/dev-workflow`,它會引導你到正確的指令。
514
+
515
+ ---
516
+
517
+ ## 漸進式導入策略
518
+
519
+ 不需要一次學會所有指令。分階段導入:
520
+
521
+ ### 第 1 週:零成本起步
522
+
523
+ ```bash
524
+ /commit # 標準化 commit message
525
+ /review # 提交前自我審查
526
+ ```
527
+
528
+ > 只需要這兩個指令,就能立即提升程式碼品質。
529
+
530
+ ### 第 2-3 週:加入測試保護
531
+
532
+ ```bash
533
+ /discover # 了解專案健康度
534
+ /tdd # 用 TDD 寫新功能
535
+ ```
536
+
537
+ ### 第 4 週起:完整工作流程
538
+
539
+ ```bash
540
+ /sdd # 規格驅動開發
541
+ /derive-all # 自動生成測試
542
+ /bdd # 行為驅動開發
543
+ ```
544
+
545
+ > **關鍵心態**:每週多用一個指令,一個月後自然上手。
546
+
547
+ ---
548
+
549
+ ## UDS 的一天
550
+
551
+ ```
552
+ 09:00 /discover auth # 評估要修改的認證模組
553
+ → 健康分數 7.2/10, CONDITIONAL
554
+
555
+ 09:15 /sdd add-2fa # 建立雙因素認證規格
556
+ → 產出 SPEC-001.md
557
+
558
+ 09:30 /sdd review # 審查規格完整性
559
+ → 確認 4 個 AC 無遺漏
560
+
561
+ 09:45 /derive-all # 從規格生成 BDD + TDD
562
+ → 產出 4 個 .feature + 4 組 .test.ts
563
+
564
+ 10:00 /tdd red # 開始 TDD 循環
565
+ 10:30 /tdd green # 實作最少程式碼
566
+ 11:00 /tdd refactor # 改善品質
567
+ → 重複循環直到所有 AC 完成
568
+
569
+ 12:00 /commit # 標準化提交
570
+ → feat(auth): 新增雙因素認證
571
+
572
+ 12:05 /review # 最終審查
573
+ → 0 BLOCKING, 1 SUGGESTION
574
+ ```
575
+
576
+ ---
577
+
578
+ ## 支援的 AI 工具
579
+
580
+ | AI 工具 | 狀態 | Skills | Slash Commands | 設定檔 |
581
+ |---------|------|--------|----------------|--------|
582
+ | **Claude Code** | 完整支援 | 26 | 30 | `CLAUDE.md` |
583
+ | **OpenCode** | 完整支援 | 26 | 30 | `AGENTS.md` |
584
+ | **Gemini CLI** | Preview | 18+ | 20+ | `GEMINI.md` |
585
+ | **Cursor** | 完整支援 | Core | Simulated | `.cursorrules` |
586
+ | **Cline / Roo Code** | 部分支援 | Core | Workflow | `.clinerules` |
587
+ | **Windsurf** | 部分支援 | 有 | Rulebook | `.windsurfrules` |
588
+
589
+ > **一套標準,多工具通用** — 換 AI 工具不需要重學標準。
590
+
591
+ ---
592
+
593
+ ## 常見問題
594
+
595
+ **Q: UDS 會限制我的技術選擇嗎?**
596
+ A: 不會。UDS 是語言無關、框架無關的。它定義的是流程和品質標準,不是技術選擇。
597
+
598
+ **Q: 一定要用 AI 工具嗎?**
599
+ A: 不用。核心標準是 Markdown 文件,人類直接閱讀也完全適用。AI 工具只是讓流程更順暢。
600
+
601
+ **Q: 團隊中只有我用可以嗎?**
602
+ A: 可以。漸進式導入的設計就是為了這個情境。先自己用 `/commit` 和 `/review`,等團隊看到效果再推廣。
603
+
604
+ **Q: 和 ESLint / Prettier 衝突嗎?**
605
+ A: 互補關係。ESLint/Prettier 處理程式碼格式,UDS 處理更高層次的開發流程和品質標準。
606
+
607
+ **Q: 什麼都需要寫規格嗎?**
608
+ A: 不用。UDS 遵循「碰一點,保護一點」原則。只在重大新功能時用 `/sdd`。Bug 修復和小變更只需 `/tdd` 和 `/commit`。
609
+
610
+ **Q: 如何更新到 UDS 新版本?**
611
+ A: 在專案目錄執行 `uds update`。它會更新標準同時保留你的自訂設定。
612
+
613
+ ---
614
+
615
+ ## 下一步與資源
616
+
617
+ ### 現在就開始
618
+
619
+ ```bash
620
+ npm install -g universal-dev-standards
621
+ cd your-project
622
+ uds init
623
+ ```
624
+
625
+ ### 推薦學習路徑
626
+
627
+ 1. 先用 `/commit` + `/review` 養成習慣
628
+ 2. 遇到新功能時試試 `/sdd`
629
+ 3. 不確定下一步時,輸入 `/dev-workflow`
630
+
631
+ ### 參考文件
632
+
633
+ | 資源 | 說明 |
634
+ |------|------|
635
+ | [Daily Workflow Guide](../../../adoption/DAILY-WORKFLOW-GUIDE.md) | 日常工作流程完整指南 |
636
+ | [Command Family Overview](../../../skills/commands/COMMAND-FAMILY-OVERVIEW.md) | 指令家族架構與情境 |
637
+ | [Cheatsheet](CHEATSHEET.md) | 所有功能速查表 |
638
+ | [Feature Reference](FEATURE-REFERENCE.md) | 完整功能目錄(182 個功能) |
639
+ | [README](../../../README.md) | 專案總覽 |
640
+
641
+ ### 取得協助
642
+
643
+ - 輸入 `/dev-workflow` 獲得引導式工作流程選擇
644
+ - 輸入 `/guide <標準名稱>` 查閱特定標準參考
645
+ - 造訪 [GitHub repository](https://github.com/AsiaOstrich/universal-dev-standards) 提交 issue 或參與討論
646
+
647
+ ---
648
+
649
+ ## 授權
650
+
651
+ - 文件(Markdown):CC BY 4.0
652
+ - 程式碼(JavaScript):MIT
@@ -43,7 +43,7 @@ status: current
43
43
 
44
44
  ## 2. Commit 訊息規範
45
45
 
46
- 參考:`.standards/commit-message-guide.md`
46
+ 參考:`.standards/commit-message.ai.yaml`
47
47
 
48
48
  ### 格式
49
49