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
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  source: ../../../../integrations/openspec/AGENTS.md
3
- source_version: 1.0.0
4
- translation_version: 1.0.0
5
- last_synced: 2026-01-13
3
+ source_version: 1.1.0
4
+ translation_version: 1.1.0
5
+ last_synced: 2026-03-23
6
6
  status: current
7
7
  ---
8
8
 
@@ -100,11 +100,25 @@ openspec list # 列出活躍變更
100
100
  openspec list --specs # 列出規格
101
101
  openspec show [item] # 顯示變更或規格
102
102
  openspec validate [item] # 驗證變更或規格
103
- openspec archive <change-id> [--yes|-y] # 部署後封存(添加 --yes 用於非互動執行)
103
+ openspec archive <change-id> [--yes|-y] # 部署後封存
104
+
105
+ # 瀏覽與狀態
106
+ openspec view # 互動式儀表板
107
+ openspec status # 顯示產物完成進度
108
+ openspec instructions # 取得建立產物的增強指引
109
+ openspec templates # 顯示已解析的範本路徑
110
+
111
+ # Schema 管理
112
+ openspec schemas # 列出可用的工作流程 schema
113
+ openspec schema init # 初始化新 schema
114
+ openspec schema fork # 分叉現有 schema
115
+ openspec schema validate # 驗證 schema
116
+ openspec schema which # 顯示使用中的 schema
104
117
 
105
118
  # 專案管理
106
119
  openspec init [path] # 初始化 OpenSpec
107
120
  openspec update [path] # 更新指令檔案
121
+ openspec config # 管理設定
108
122
 
109
123
  # 互動模式
110
124
  openspec show # 提示選擇
@@ -113,6 +127,10 @@ openspec validate # 批量驗證模式
113
127
  # 除錯
114
128
  openspec show [change] --json --deltas-only
115
129
  openspec validate [change] --strict
130
+
131
+ # 工具
132
+ openspec completion # Shell 整合支援
133
+ openspec feedback # 透過 GitHub 提交回饋
116
134
  ```
117
135
 
118
136
  ### 指令標誌
@@ -123,6 +141,13 @@ openspec validate [change] --strict
123
141
  - `--no-interactive` - 停用提示
124
142
  - `--skip-specs` - 封存時不更新規格
125
143
  - `--yes`/`-y` - 跳過確認提示(非互動封存)
144
+ - `--no-validate` - 封存時不執行驗證
145
+ - `--sort` - 列表輸出排序
146
+ - `--profile` - 指定初始化設定檔
147
+ - `--requirements` / `--no-scenarios` / `-r` - 過濾 show 輸出
148
+ - `--all` / `--changes` / `--specs` - 過濾驗證範圍
149
+ - `--concurrency` - 平行驗證並發數
150
+ - `--schema` - 指定 status/instructions/templates 的 schema
126
151
 
127
152
  ## 目錄結構
128
153
 
@@ -1,47 +1,75 @@
1
1
  ---
2
2
  source: ../../../../integrations/spec-kit/AGENTS.md
3
- source_version: 1.0.0
4
- translation_version: 1.0.0
5
- last_synced: 2026-01-13
3
+ source_version: 1.1.0
4
+ translation_version: 1.1.0
5
+ last_synced: 2026-03-23
6
6
  status: current
7
7
  ---
8
8
 
9
9
  # Spec Kit 指令
10
10
 
11
- 使用 Spec Kit 進行規格驅動開發的 AI 編碼助手指令。
11
+ > **語言**: [English](../../../../integrations/spec-kit/AGENTS.md) | 繁體中文
12
+
13
+ **版本**: 1.1.0
14
+ **最後更新**: 2026-03-23
15
+
16
+ 為使用 Spec Kit 進行規格驅動開發的 AI 程式助手提供指引。
12
17
 
13
18
  ## 使用方式
14
19
 
15
- 將此檔案複製到您的專案,或包含在 AI 助手的系統指令中。
20
+ 將此檔案複製到您的專案中,或納入您的 AI 助手系統指令。
16
21
 
17
22
  ---
18
23
 
19
24
  ## 使用 Spec Kit 進行規格驅動開發
20
25
 
21
- 當此專案啟用 Spec Kit 時,您必須遵循**規格驅動開發(SDD)**方法論。
26
+ Spec Kit 在此專案中啟用時,您必須遵循**規格驅動開發 (SDD)** 方法論。
22
27
 
23
- ### 核心原則:規格優先,程式碼其次
28
+ ### 核心原則:先規格,後程式碼
24
29
 
25
- **規則**:沒有對應的已核准規格,不得進行任何功能性程式碼變更。
30
+ **規則**:在沒有對應已核准規格的情況下,不得進行任何功能性程式碼變更。
26
31
 
27
- **例外情況**:
28
- - 緊急修復(立即恢復服務,事後記錄)
29
- - 瑣碎變更(錯字、註解、格式)
32
+ **例外**:
33
+ - 緊急修復(立即恢復服務,事後補文件)
34
+ - 微小變更(錯字、註解、格式調整)
30
35
 
31
36
  ---
32
37
 
33
38
  ## Spec Kit 指令
34
39
 
35
- Spec Kit 可用時,優先使用這些指令:
40
+ ### CLI 指令
36
41
 
37
42
  | 指令 | 說明 |
38
43
  |------|------|
39
- | `/spec create <title>` | 建立新規格 |
40
- | `/spec list` | 列出所有活躍規格 |
41
- | `/spec show <id>` | 顯示規格詳情 |
42
- | `/spec approve <id>` | 標記規格為已核准 |
43
- | `/spec close <id>` | 關閉已完成規格 |
44
- | `/spec archive <id>` | 封存規格 |
44
+ | `specify init <project-name>` | 初始化新的 SDD 專案 |
45
+ | `specify check` | 驗證已安裝的工具(git、AI agents) |
46
+
47
+ **Init 選項:**
48
+
49
+ | 旗標 | 說明 |
50
+ |------|------|
51
+ | `--ai <agent>` | 選擇 AI 助手(claude、gemini、copilot、cursor-agent、windsurf 等) |
52
+ | `--ai-skills` | 以 agent skills 而非斜線指令安裝 |
53
+ | `--here` | 在目前目錄中初始化 |
54
+ | `--force` | 合併時跳過確認 |
55
+ | `--script ps` | PowerShell 腳本(Windows/跨平台) |
56
+ | `--no-git` | 跳過 git 儲存庫初始化 |
57
+ | `--debug` | 啟用詳細輸出 |
58
+ | `--branch-numbering timestamp` | 使用時間戳記式分支命名 |
59
+
60
+ ### 斜線指令(工作流程)
61
+
62
+ 當 Spec Kit 可用時,使用以下斜線指令進行 SDD 工作流程:
63
+
64
+ | 指令 | 階段 | 說明 |
65
+ |------|------|------|
66
+ | `/constitution` | 設定 | 建立專案治理原則 |
67
+ | `/specify` | 提案 | 定義需求與使用者故事 |
68
+ | `/clarify` | 討論 | 透過結構化問題解決規格歧義 |
69
+ | `/plan` | 設計 | 建立技術實作計畫 |
70
+ | `/tasks` | 規劃 | 產生可執行的任務分解 |
71
+ | `/analyze` | 審查 | 檢查跨產物的一致性 |
72
+ | `/implement` | 實作 | 執行任務以建構功能 |
45
73
 
46
74
  ### 指令優先順序
47
75
 
@@ -49,7 +77,7 @@ status: current
49
77
 
50
78
  **理由**:
51
79
  - **一致性**:確保規格結構遵循 schema
52
- - **可追溯性**:自動產生 ID 和連結
80
+ - **可追溯性**:自動產生 ID 與建立連結
53
81
  - **驗證**:內建檢查防止無效狀態
54
82
 
55
83
  ---
@@ -57,118 +85,160 @@ status: current
57
85
  ## SDD 工作流程
58
86
 
59
87
  ```
60
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
61
- 討論 │───▶│ 提案 │───▶│ 審查 │───▶│ 實作
62
- └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
63
-
64
-
65
- ┌──────────────┐ ┌──────────────┐
66
- │ 封存 │◀───│ 驗證 │
67
- └──────────────┘ └──────────────┘
88
+ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
89
+ Constitution │───▶│ Specify │───▶│ Clarify
90
+ └──────────────┘ └──────────────┘ └──────────────┘
91
+
92
+ ┌──────────────┐ ┌───────▼──────┐
93
+ │ Implement │◀───│ Plan/Tasks │
94
+ └──────────────┘ └──────────────┘
95
+
96
+ ┌──────▼───────┐
97
+ │ Analyze │
98
+ └──────────────┘
68
99
  ```
69
100
 
70
101
  ### 工作流程階段
71
102
 
72
- | 階段 | 說明 | 操作 |
103
+ | 階段 | 說明 | 指令 |
73
104
  |------|------|------|
74
- | **討論** | 釐清需求與探索方案 | 討論紀錄 |
75
- | **提案** | 定義變更內容和原因 | `/spec create` |
76
- | **審查** | 利害關係人核准 | `/spec approve` |
77
- | **實作** | 執行已核准規格 | 程式碼變更 |
78
- | **驗證** | 確認實作符合規格 | 測試 |
79
- | **封存** | 關閉並封存規格 | `/spec close` |
105
+ | **Constitution** | 定義專案治理原則 | `/constitution` |
106
+ | **Specify** | 定義需求與使用者故事 | `/specify` |
107
+ | **Clarify** | 透過結構化問題解決歧義 | `/clarify` |
108
+ | **Plan** | 建立技術實作計畫 | `/plan` |
109
+ | **Tasks** | 產生可執行的任務分解 | `/tasks` |
110
+ | **Implement** | 執行任務以建構功能 | `/implement` |
111
+ | **Analyze** | 檢查跨產物的一致性 | `/analyze` |
80
112
 
81
113
  ---
82
114
 
83
- ## 任何任務之前
115
+ ## 工作流程強制閘門
116
+
117
+ **重要**:在執行任何工作流程階段之前,你**必須**檢查先決條件。
118
+
119
+ ### 階段閘門
120
+
121
+ | 階段 | 先決條件 | 失敗時 |
122
+ |------|----------|--------|
123
+ | Specify | Constitution 已建立(首次時) | → 先執行 `/constitution` |
124
+ | Plan | 需求已透過 `/specify` 定義 | → 先執行 `/specify` |
125
+ | Implement | 計畫已核准、任務已產生 | → 先執行 `/plan` 再執行 `/tasks` |
126
+ | Commit (feat/fix) | 檢查作用中的規格 | → 建議加上 `Refs: SPEC-XXX` |
127
+
128
+ ### 會話啟動協定
129
+ 在會話開始時,檢查是否有作用中的工作流程:尋找 `.specify/` 目錄或作用中的規格檔案。
130
+ 若發現作用中的工作流程 → 告知使用者並提供繼續的選項。
84
131
 
85
- **脈絡檢查清單**:
86
- - [ ] 檢查活躍規格:`/spec list`
87
- - [ ] 變更前審查相關規格
88
- - [ ] 確認無衝突規格
89
- - [ ] 非瑣碎變更需建立規格
132
+ 參考:`.standards/workflow-enforcement.ai.yaml`
133
+
134
+ ---
135
+
136
+ ## 執行任何任務之前
137
+
138
+ **情境檢查清單**:
139
+ - [ ] 檢查作用中的規格:尋找 `.specify/` 目錄
140
+ - [ ] 在進行變更前審查相關規格
141
+ - [ ] 確認沒有衝突的規格存在
142
+ - [ ] 若變更非微小則建立規格
90
143
 
91
144
  **可跳過規格的情況**:
92
- - 錯誤修復(恢復預期行為)
145
+ - Bug 修復(恢復預期行為)
93
146
  - 錯字、格式、註解
94
- - 依賴更新(非破壞性)
95
- - 配置變更
147
+ - 相依性更新(非破壞性)
148
+ - 設定檔變更
149
+
150
+ ---
151
+
152
+ ## 目錄結構
153
+
154
+ ```
155
+ .specify/
156
+ ├── templates/ # 核心 spec-kit 範本
157
+ ├── extensions/
158
+ │ └── <ext-id>/templates/ # 擴充套件範本
159
+ ├── presets/
160
+ │ └── <preset-id>/templates/ # 預設客製化
161
+ └── templates/overrides/ # 專案本地覆寫(最高優先)
162
+ ```
96
163
 
97
164
  ---
98
165
 
99
166
  ## 規格文件範本
100
167
 
101
- 手動建立規格時,使用此結構:
168
+ 手動建立規格時,請使用以下結構:
102
169
 
103
170
  ```markdown
104
171
  # [SPEC-ID] 功能標題
105
172
 
106
173
  ## 摘要
107
- 簡述提議變更。
174
+ 簡要描述提議的變更。
108
175
 
109
176
  ## 動機
110
- 為何需要此變更?解決什麼問題?
177
+ 為何需要此變更?它解決什麼問題?
111
178
 
112
179
  ## 詳細設計
113
- 技術方案、受影響元件、資料流程。
180
+ 技術方案、受影響的元件、資料流。
114
181
 
115
182
  ## 驗收標準
116
183
  - [ ] 標準 1
117
184
  - [ ] 標準 2
118
185
 
119
- ## 依賴項
120
- 列出對其他規格或外部系統的依賴。
186
+ ## 相依性
187
+ 列出對其他規格或外部系統的相依性。
121
188
 
122
189
  ## 風險
123
- 潛在風險和緩解策略。
190
+ 潛在風險與緩解策略。
124
191
  ```
125
192
 
126
193
  ---
127
194
 
128
- ## 與通用文件規範的整合
195
+ ## 與 Universal Dev Standards 整合
129
196
 
130
- ### Commit 訊息
197
+ ### 提交訊息
131
198
 
132
- commit 訊息中引用規格 ID:
199
+ 在提交訊息中引用規格 ID:
133
200
 
134
201
  ```
135
- feat(auth): 實作登入功能
202
+ feat(auth): implement login feature
136
203
 
137
- 實作 SPEC-001 登入功能,支援 OAuth2
204
+ Implements SPEC-001 login functionality with OAuth2 support.
138
205
 
139
206
  Refs: SPEC-001
140
207
  ```
141
208
 
142
209
  ### 程式碼審查
143
210
 
144
- 審查者應確認:
145
- - [ ] 變更符合已核准規格
146
- - [ ] 無超出規格的範圍蔓延
211
+ 審查者應驗證:
212
+ - [ ] 變更符合已核准的規格
213
+ - [ ] 未超出規格範圍
147
214
  - [ ] 規格驗收標準已達成
148
215
 
149
216
  ---
150
217
 
151
218
  ## 最佳實踐
152
219
 
153
- ### 應該做的
154
- - 保持規格聚焦且原子化(每個規格一項變更)
155
- - 包含清晰的驗收標準
220
+ ### 應做
221
+
222
+ - 保持規格聚焦且原子化(每個規格一個變更)
223
+ - 包含明確的驗收標準
156
224
  - 將規格連結到實作 PR
225
+ - 使用 `/analyze` 驗證一致性
157
226
  - 完成後封存規格
158
227
 
159
- ### 不應該做的
160
- - 規格核准前開始編碼
161
- - 實作期間修改範圍而不更新規格
162
- - 讓規格處於懸而未決狀態(始終關閉或封存)
163
- - 跳過驗證步驟
228
+ ### 不應做
229
+
230
+ - 在規格核准前開始寫程式
231
+ - 在實作期間修改範圍卻未更新規格
232
+ - 讓規格處於未決狀態(應始終關閉或封存)
233
+ - 在需求模糊時跳過 `/clarify` 步驟
164
234
 
165
235
  ---
166
236
 
167
237
  ## 相關標準
168
238
 
169
- - [規格驅動開發](../../core/spec-driven-development.md) - SDD 方法論
170
- - [Commit 訊息指南](../../core/commit-message-guide.md) - Commit 慣例
171
- - [程式碼簽入標準](../../core/checkin-standards.md) - 簽入要求
239
+ - [規格驅動開發](../../../../core/spec-driven-development.md) - SDD 方法論
240
+ - [提交訊息指南](../../../../core/commit-message-guide.md) - 提交慣例
241
+ - [程式碼簽入標準](../../../../core/checkin-standards.md) - 簽入要求
172
242
 
173
243
  ---
174
244
 
@@ -176,10 +246,11 @@ Refs: SPEC-001
176
246
 
177
247
  | 版本 | 日期 | 變更 |
178
248
  |------|------|------|
249
+ | 1.1.0 | 2026-03-23 | 更新以反映 Spec Kit v0.4.0 實際的 CLI 指令與斜線指令 |
179
250
  | 1.0.0 | 2025-12-30 | 初始 Spec Kit 整合 |
180
251
 
181
252
  ---
182
253
 
183
- ## 授權
254
+ ## 授權條款
184
255
 
185
- 本文件以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權發布。
256
+ 本文件依 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權釋出。
@@ -0,0 +1,127 @@
1
+ ---
2
+ source: ../../../../skills/ac-coverage-assistant/SKILL.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ description: "[UDS] 分析 AC 與測試的追蹤關係及覆蓋率"
8
+ ---
9
+
10
+ # AC 覆蓋率助手
11
+
12
+ > **語言**: [English](../../../../skills/ac-coverage-assistant/SKILL.md) | 繁體中文
13
+
14
+ 分析驗收條件(AC)與測試之間的追蹤關係,並產生覆蓋率報告。
15
+
16
+ ## 與 `/coverage` 的區別
17
+
18
+ | 面向 | `/coverage` | `/ac-coverage` |
19
+ |------|-------------|----------------|
20
+ | **範圍** | 程式碼層級(行/分支/函式) | 需求層級(AC 對測試) |
21
+ | **輸入** | 原始碼 + 測試執行器 | SPEC 檔案 + 測試標註 |
22
+ | **問題** | 「有多少程式碼被測試?」 | 「哪些 AC 有測試?」 |
23
+ | **輸出** | 覆蓋率百分比 | 追蹤矩陣 + 缺口報告 |
24
+
25
+ ## 工作流程
26
+
27
+ 1. **解析 SPEC** — 從規格檔案中擷取 AC 定義(AC-1、AC-2、...)
28
+ 2. **掃描測試** — 使用標準連結慣例搜尋測試檔案中的 `@AC` 和 `@SPEC` 標註
29
+ 3. **建立矩陣** — 將每個 AC 對應到其測試參考(檔案、測試名稱、行號)
30
+ 4. **分類狀態** — 將每個 AC 標記為 ✅ 已覆蓋、⚠️ 部分覆蓋 或 ❌ 未覆蓋
31
+ 5. **計算覆蓋率** — 套用公式:`覆蓋率 % = (已覆蓋 + 部分 × 0.5) / 總計 × 100`
32
+ 6. **產生報告** — 輸出標準化 Markdown 報告
33
+
34
+ ## 標註慣例
35
+
36
+ 測試必須使用標準標註來參考其來源 AC:
37
+
38
+ ```typescript
39
+ // TypeScript/JavaScript
40
+ describe('AC-1: 使用有效憑證登入', () => {
41
+ // @AC AC-1
42
+ // @SPEC SPEC-001
43
+ it('成功登入後應重導至儀表板', () => { ... });
44
+ });
45
+ ```
46
+
47
+ ```python
48
+ # Python
49
+ class TestAC1_UserLogin:
50
+ """AC-1: 使用有效憑證登入
51
+ @AC AC-1
52
+ @SPEC SPEC-001
53
+ """
54
+ def test_redirect_to_dashboard(self): ...
55
+ ```
56
+
57
+ ```gherkin
58
+ # BDD Feature
59
+ @SPEC-001 @AC-1
60
+ Scenario: 使用有效憑證登入
61
+ ```
62
+
63
+ ## 覆蓋率門檻
64
+
65
+ | 門檻 | 預設值 | 強制執行 |
66
+ |------|--------|----------|
67
+ | **提交時** | 80% | 功能分支合併必要條件 |
68
+ | **發布時** | 100% | 正式發布必要條件 |
69
+ | **警告** | 60% | 觸發覆蓋率警告 |
70
+
71
+ 門檻可透過 `--threshold` 參數或專案設定進行配置。
72
+
73
+ ## 報告格式
74
+
75
+ 產生的報告遵循 `core/acceptance-criteria-traceability.md` 中的標準格式:
76
+
77
+ ```markdown
78
+ # AC 覆蓋率報告
79
+
80
+ **規格**: SPEC-001 — 功能名稱
81
+ **產生日期**: 2026-03-24
82
+ **覆蓋率**: 75% (6/8 AC)
83
+
84
+ ## 摘要
85
+
86
+ | 狀態 | 數量 | 百分比 |
87
+ |------|------|--------|
88
+ | ✅ 已覆蓋 | 5 | 62.5% |
89
+ | ⚠️ 部分覆蓋 | 2 | 25.0% |
90
+ | ❌ 未覆蓋 | 1 | 12.5% |
91
+
92
+ ## 追蹤矩陣
93
+
94
+ | AC-ID | 描述 | 狀態 | 測試參考 |
95
+ |-------|------|------|----------|
96
+ | AC-1 | 使用有效憑證登入 | ✅ | auth.test.ts:15 |
97
+ | AC-2 | 拒絕無效憑證 | ✅ | auth.test.ts:32 |
98
+ | ... | ... | ... | ... |
99
+
100
+ ## 缺口
101
+
102
+ - **AC-8**: 社群登入 — 受 OAuth 沙盒環境限制
103
+
104
+ ## 待辦事項
105
+
106
+ 1. [ ] AC-8: 建立 OAuth 沙盒環境(預計完成:待定)
107
+ ```
108
+
109
+ ## 使用方式
110
+
111
+ - `/ac-coverage` - 分析當前專案的 AC 覆蓋率
112
+ - `/ac-coverage path/to/SPEC.md` - 分析特定規格檔案的 AC 覆蓋率
113
+
114
+ ## 下一步引導
115
+
116
+ `/ac-coverage` 完成後,AI 助手應建議:
117
+
118
+ > **AC 覆蓋率分析完成。建議下一步:**
119
+ > - 覆蓋率達標 → 執行 `/checkin` 通過品質關卡
120
+ > - 有未覆蓋 AC → 執行 `/derive-tdd` 補齊測試
121
+ > - 有部分覆蓋 AC → 檢查缺少的邊界情況
122
+
123
+ ## 參考
124
+
125
+ - 核心規範:[acceptance-criteria-traceability.md](../../../../core/acceptance-criteria-traceability.md)
126
+ - 相關:[test-coverage-assistant](../test-coverage-assistant/SKILL.md)(程式碼層級覆蓋率)
127
+ - 相關:[checkin-assistant](../checkin-assistant/SKILL.md)(品質關卡)
@@ -5,10 +5,7 @@ translation_version: 1.0.0
5
5
  last_synced: 2026-02-05
6
6
  status: current
7
7
  scope: uds-specific
8
- description: |
9
- 設計 AI 友善架構,包含明確模式、分層文件和語義邊界。
10
- 使用時機:為 AI 協作規劃專案結構、優化程式碼庫以利 AI 分析、設定 AI 上下文。
11
- 關鍵字:architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml, 架構, AI 友善, 上下文.
8
+ description: "[UDS] 設計 AI 友善架構,包含明確模式、分層文件和語義邊界"
12
9
  ---
13
10
 
14
11
  # AI 友善架構指南
@@ -5,10 +5,7 @@ translation_version: 1.0.0
5
5
  last_synced: 2026-02-05
6
6
  status: current
7
7
  scope: partial
8
- description: |
9
- 建立和維護 AI 指令檔案(CLAUDE.md、.cursorrules 等)並採用適當結構。
10
- 使用時機:建立 AI 指令檔案、區分通用與專案特定規則、配置 AI 工具。
11
- 關鍵字:CLAUDE.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt, 指令檔案, AI 設定.
8
+ description: "[UDS] 建立和維護 AI 指令檔案(CLAUDE.md、.cursorrules 等)並採用適當結構"
12
9
  ---
13
10
 
14
11
  # AI 指令檔案標準指南
@@ -0,0 +1,97 @@
1
+ ---
2
+ source: ../../../../skills/api-design-assistant/SKILL.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-23
6
+ status: current
7
+ description: "[UDS] 引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐"
8
+ ---
9
+
10
+ # API 設計助手
11
+
12
+ > **語言**: [English](../../../../skills/api-design-assistant/SKILL.md) | 繁體中文
13
+
14
+ 引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐。
15
+
16
+ ## 快速參考 — REST 慣例
17
+
18
+ ### HTTP 方法
19
+
20
+ | 方法 | 用途 | 冪等性 |
21
+ |------|------|--------|
22
+ | GET | 讀取資源 | 是 |
23
+ | POST | 建立資源 | 否 |
24
+ | PUT | 替換資源 | 是 |
25
+ | PATCH | 部分更新 | 否 |
26
+ | DELETE | 刪除資源 | 是 |
27
+
28
+ ### 狀態碼
29
+
30
+ | 代碼 | 說明 |
31
+ |------|------|
32
+ | 200 | 成功 |
33
+ | 201 | 已建立 |
34
+ | 204 | 無內容(刪除成功) |
35
+ | 400 | 請求格式錯誤 |
36
+ | 401 | 未認證 |
37
+ | 403 | 無權限 |
38
+ | 404 | 資源不存在 |
39
+ | 409 | 資源衝突 |
40
+ | 422 | 驗證失敗 |
41
+ | 429 | 請求過多(限流) |
42
+ | 500 | 伺服器內部錯誤 |
43
+
44
+ ### URL 命名規則
45
+
46
+ | 模式 | 範例 | 說明 |
47
+ |------|------|------|
48
+ | 集合 | `/users` | 資源集合 |
49
+ | 單一資源 | `/users/{id}` | 單一資源 |
50
+ | 子資源 | `/users/{id}/orders` | 子資源 |
51
+ | 動作 | `/users/{id}/activate` | 動作(僅限 POST) |
52
+
53
+ ## 設計工作流程
54
+
55
+ ```
56
+ DEFINE ──► DESIGN ──► VALIDATE ──► DOCUMENT
57
+ ```
58
+
59
+ ### 1. Define — 定義需求
60
+ 釐清使用者、使用情境、資料模型和非功能性需求。
61
+
62
+ ### 2. Design — 設計端點
63
+ 套用 RESTful 慣例、定義請求/回應 Schema、規劃版本策略。
64
+
65
+ ### 3. Validate — 驗證一致性
66
+ 檢查命名一致性、錯誤格式統一、分頁模式。
67
+
68
+ ### 4. Document — 產生文件
69
+ 產出 OpenAPI/Swagger 規格或 GraphQL Schema 文件。
70
+
71
+ ## 版本策略
72
+
73
+ | 策略 | 範例 | 優點 |
74
+ |------|------|------|
75
+ | URL 路徑 | `/v1/users` | 簡單、明確 |
76
+ | Header | `Accept: application/vnd.api+json;v=1` | URL 乾淨 |
77
+ | Query | `/users?version=1` | 容易測試 |
78
+
79
+ ## 使用方式
80
+
81
+ - `/api-design` - 互動式 API 設計引導
82
+ - `/api-design /users` - 審查特定端點設計
83
+ - `/api-design --graphql` - GraphQL Schema 設計引導
84
+
85
+ ## 下一步引導
86
+
87
+ `/api-design` 完成後,AI 助手應建議:
88
+
89
+ > **API 設計完成。建議下一步:**
90
+ > - 執行 `/sdd` 建立正式規格文件
91
+ > - 執行 `/testing` 規劃 API 測試策略
92
+ > - 執行 `/docs` 產生 API 文件
93
+ > - 審查安全性 → 執行 `/security`
94
+
95
+ ## 參考
96
+
97
+ - 核心規範:[api-design-standards.md](../../../../core/api-design-standards.md)
@@ -4,10 +4,7 @@ source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-02-10
6
6
  status: current
7
- description: |
8
- 引導驗收測試驅動開發(ATDD)流程,用於定義和驗證使用者故事。
9
- 使用時機:定義驗收條件、使用者故事驗證、ATDD 流程。
10
- 關鍵字:atdd, acceptance, user story, INVEST, 驗收測試, 使用者故事, 驗收條件。
7
+ description: "[UDS] 引導驗收測試驅動開發(ATDD)流程,用於定義和驗證使用者故事"
11
8
  ---
12
9
 
13
10
  # ATDD 助手
@@ -4,10 +4,7 @@ source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-03-04
6
6
  status: current
7
- description: |
8
- UDS 健康檢查與回饋系統。診斷安裝完整性、偵測開發模式、識別摩擦點。
9
- 使用時機:檢查 UDS 安裝、回報問題、發現規範化機會。
10
- 關鍵字:audit, health, pattern, friction, feedback, 審計, 健康, 模式, 摩擦, 回饋。
7
+ description: "[UDS] UDS 健康檢查與回饋系統,診斷安裝完整性與偵測開發模式"
11
8
  ---
12
9
 
13
10
  # 審計助手
@@ -4,10 +4,7 @@ source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-02-10
6
6
  status: current
7
- description: |
8
- 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景。
9
- 使用時機:定義行為場景、撰寫 Gherkin、三劍客會議、BDD 流程。
10
- 關鍵字:bdd, gherkin, given-when-then, scenario, feature, 行為驅動, 場景, 驗收。
7
+ description: "[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景"
11
8
  ---
12
9
 
13
10
  # BDD 助手