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,116 +1,183 @@
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) |
45
46
 
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` | 使用时间戳式分支命名 |
47
59
 
48
- **规则**:始终优先使用 Spec Kit 指令,而非手动编辑文件。
60
+ ### 斜杠命令(工作流程)
61
+
62
+ 当 Spec Kit 可用时,使用以下斜杠命令进行 SDD 工作流程:
63
+
64
+ | 命令 | 阶段 | 说明 |
65
+ |------|------|------|
66
+ | `/constitution` | 设定 | 建立项目治理原则 |
67
+ | `/specify` | 提案 | 定义需求与用户故事 |
68
+ | `/clarify` | 讨论 | 通过结构化问题解决规格歧义 |
69
+ | `/plan` | 设计 | 创建技术实现计划 |
70
+ | `/tasks` | 规划 | 生成可执行的任务分解 |
71
+ | `/analyze` | 审查 | 检查跨产物的一致性 |
72
+ | `/implement` | 实现 | 执行任务以构建功能 |
73
+
74
+ ### 命令优先级
75
+
76
+ **规则**:始终优先使用 Spec Kit 命令,而非手动编辑文件。
49
77
 
50
78
  **理由**:
51
79
  - **一致性**:确保规格结构遵循 schema
52
- - **可追溯性**:自动生成 ID 和链接
53
- - **验证**:内建检查防止无效状态
80
+ - **可追溯性**:自动生成 ID 与建立链接
81
+ - **验证**:内置检查防止无效状态
54
82
 
55
83
  ---
56
84
 
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
+ 若发现活跃的工作流程 → 告知用户并提供继续的选项。
131
+
132
+ 参考:`.standards/workflow-enforcement.ai.yaml`
133
+
134
+ ---
135
+
136
+ ## 执行任何任务之前
84
137
 
85
138
  **上下文检查清单**:
86
- - [ ] 检查活跃规格:`/spec list`
87
- - [ ] 变更前审查相关规格
88
- - [ ] 确认无冲突规格
89
- - [ ] 非琐碎变更需创建规格
139
+ - [ ] 检查活跃的规格:查找 `.specify/` 目录
140
+ - [ ] 在进行变更前审查相关规格
141
+ - [ ] 确认没有冲突的规格存在
142
+ - [ ] 若变更非微小则创建规格
90
143
 
91
144
  **可跳过规格的情况**:
92
- - 错误修复(恢复预期行为)
93
- - 错字、格式、注释
94
- - 依赖更新(非破坏性)
95
- - 配置变更
145
+ - Bug 修复(恢复预期行为)
146
+ - 错别字、格式、注释
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
@@ -120,55 +187,58 @@ status: current
120
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
239
  - [规格驱动开发](../../../../core/spec-driven-development.md) - SDD 方法论
170
- - [Commit 消息指南](../../../../core/commit-message-guide.md) - Commit 惯例
171
- - [代码签入规范](../../../../core/checkin-standards.md) - 签入要求
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,126 @@
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: |
8
+ 分析验收条件(AC)与测试之间的追踪关系,产生覆盖率报告。
9
+ 使用时机:验证 AC 覆盖率、检查测试追踪性、发布前审查。
10
+ 关键字:AC, acceptance-criteria, coverage, traceability, 验收条件, 覆盖率。
11
+ ---
12
+
13
+ # AC 覆盖率助手
14
+
15
+ > **语言**: [English](../../../../skills/ac-coverage-assistant/SKILL.md) | 简体中文
16
+
17
+ 分析验收条件(AC)与测试之间的追踪关系,并产生覆盖率报告。
18
+
19
+ ## 与 `/coverage` 的区别
20
+
21
+ | 方面 | `/coverage` | `/ac-coverage` |
22
+ |------|-------------|----------------|
23
+ | **范围** | 代码级别(行/分支/函数) | 需求级别(AC 到测试) |
24
+ | **输入** | 源代码 + 测试运行器 | SPEC 文件 + 测试标注 |
25
+ | **问题** | "多少代码被测试了?" | "哪些 AC 有测试?" |
26
+ | **输出** | 覆盖率百分比 | 追踪矩阵 + 差距报告 |
27
+
28
+ ## 工作流程
29
+
30
+ 1. **解析 SPEC** — 从规格文件中提取 AC 定义(AC-1、AC-2……)
31
+ 2. **扫描测试** — 使用标准链接惯例搜索测试文件中的 `@AC` 和 `@SPEC` 标注
32
+ 3. **构建矩阵** — 将每个 AC 映射到其测试引用(文件、测试名称、行号)
33
+ 4. **分类状态** — 将每个 AC 标记为 ✅ 已覆盖、⚠️ 部分覆盖 或 ❌ 未覆盖
34
+ 5. **计算覆盖率** — 套用公式:`覆盖率 % = (已覆盖 + 部分覆盖 × 0.5) / 总计 × 100`
35
+ 6. **产生报告** — 输出标准化 Markdown 报告
36
+
37
+ ## 标注惯例
38
+
39
+ 测试必须使用标准标注引用其来源 AC:
40
+
41
+ ```typescript
42
+ // TypeScript/JavaScript
43
+ describe('AC-1: 使用有效凭证登录', () => {
44
+ // @AC AC-1
45
+ // @SPEC SPEC-001
46
+ it('should redirect to dashboard on successful login', () => { ... });
47
+ });
48
+ ```
49
+
50
+ ```python
51
+ # Python
52
+ class TestAC1_UserLogin:
53
+ """AC-1: 使用有效凭证登录
54
+ @AC AC-1
55
+ @SPEC SPEC-001
56
+ """
57
+ def test_redirect_to_dashboard(self): ...
58
+ ```
59
+
60
+ ```gherkin
61
+ # BDD Feature
62
+ @SPEC-001 @AC-1
63
+ Scenario: 使用有效凭证登录
64
+ ```
65
+
66
+ ## 覆盖率门槛
67
+
68
+ | 门槛 | 默认值 | 执行时机 |
69
+ |------|--------|---------|
70
+ | **提交** | 80% | 功能分支合并时必须达标 |
71
+ | **发布** | 100% | 生产环境发布时必须达标 |
72
+ | **警告** | 60% | 触发覆盖率警告 |
73
+
74
+ 门槛可通过 `--threshold` 参数或项目配置自定义。
75
+
76
+ ## 报告格式
77
+
78
+ 产生的报告遵循 `core/acceptance-criteria-traceability.md` 的标准格式:
79
+
80
+ ```markdown
81
+ # AC 覆盖率报告
82
+
83
+ **规格**: SPEC-001 — 功能名称
84
+ **产生日期**: 2026-03-18
85
+ **覆盖率**: 75% (6/8 AC)
86
+
87
+ ## 摘要
88
+
89
+ | 状态 | 数量 | 百分比 |
90
+ |------|------|--------|
91
+ | ✅ 已覆盖 | 5 | 62.5% |
92
+ | ⚠️ 部分覆盖 | 2 | 25.0% |
93
+ | ❌ 未覆盖 | 1 | 12.5% |
94
+
95
+ ## 追踪矩阵
96
+
97
+ | AC-ID | 描述 | 状态 | 测试引用 |
98
+ |-------|------|------|---------|
99
+ | AC-1 | 使用有效凭证登录 | ✅ | auth.test.ts:15 |
100
+ | AC-2 | 拒绝无效凭证 | ✅ | auth.test.ts:32 |
101
+ | ... | ... | ... | ... |
102
+
103
+ ## 差距
104
+
105
+ - **AC-8**: 社交登录 — 被 OAuth 沙箱阻塞
106
+
107
+ ## 行动项目
108
+
109
+ 1. [ ] AC-8: 建立 OAuth 沙箱(预计完成时间:待定)
110
+ ```
111
+
112
+ ## 下一步引导
113
+
114
+ `/ac-coverage` 完成后,AI 助手应建议:
115
+
116
+ > **AC 覆盖率分析完成。建议下一步:**
117
+ > - 覆盖率达标 → 执行 `/checkin` 品质关卡
118
+ > - 有未覆盖 AC → 执行 `/derive-tdd` 补齐测试
119
+ > - 有部分覆盖 AC → 检查缺少的边界情况
120
+
121
+ ## 参考
122
+
123
+ - 核心规范:[acceptance-criteria-traceability.md](../../../../core/acceptance-criteria-traceability.md)
124
+ - SPEC:[SPEC-AC-COVERAGE.md](../../../../docs/specs/skills/SPEC-AC-COVERAGE.md)
125
+ - 相关:[test-coverage-assistant](../test-coverage-assistant/SKILL.md)(代码级别覆盖率)
126
+ - 相关:[checkin-assistant](../checkin-assistant/SKILL.md)(品质关卡)
@@ -0,0 +1,100 @@
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: |
8
+ 引导 API 设计,遵循 REST、GraphQL 和 gRPC 最佳实践。
9
+ 使用时机:设计 API、审查端点、API 版本决策。
10
+ 关键字:API, REST, GraphQL, gRPC, endpoint, versioning, 接口设计。
11
+ ---
12
+
13
+ # API 设计助手
14
+
15
+ > **语言**: [English](../../../../skills/api-design-assistant/SKILL.md) | 简体中文
16
+
17
+ 引导 API 设计,遵循 REST、GraphQL 和 gRPC 最佳实践。
18
+
19
+ ## 快速参考 — REST 惯例
20
+
21
+ ### HTTP 方法
22
+
23
+ | 方法 | 用途 | 幂等性 |
24
+ |------|------|--------|
25
+ | GET | 读取资源 | 是 |
26
+ | POST | 创建资源 | 否 |
27
+ | PUT | 替换资源 | 是 |
28
+ | PATCH | 部分更新 | 否 |
29
+ | DELETE | 删除资源 | 是 |
30
+
31
+ ### 状态码
32
+
33
+ | 代码 | 说明 |
34
+ |------|------|
35
+ | 200 | 成功 |
36
+ | 201 | 已创建 |
37
+ | 204 | 无内容(删除成功) |
38
+ | 400 | 请求格式错误 |
39
+ | 401 | 未认证 |
40
+ | 403 | 无权限 |
41
+ | 404 | 资源不存在 |
42
+ | 409 | 资源冲突 |
43
+ | 422 | 验证失败 |
44
+ | 429 | 请求过多(限流) |
45
+ | 500 | 服务器内部错误 |
46
+
47
+ ### URL 命名规则
48
+
49
+ | 模式 | 示例 | 说明 |
50
+ |------|------|------|
51
+ | 集合 | `/users` | 资源集合 |
52
+ | 单一资源 | `/users/{id}` | 单一资源 |
53
+ | 子资源 | `/users/{id}/orders` | 子资源 |
54
+ | 动作 | `/users/{id}/activate` | 动作(仅限 POST) |
55
+
56
+ ## 设计工作流程
57
+
58
+ ```
59
+ DEFINE ──► DESIGN ──► VALIDATE ──► DOCUMENT
60
+ ```
61
+
62
+ ### 1. Define — 定义需求
63
+ 厘清使用者、使用场景、数据模型和非功能性需求。
64
+
65
+ ### 2. Design — 设计端点
66
+ 套用 RESTful 惯例、定义请求/响应 Schema、规划版本策略。
67
+
68
+ ### 3. Validate — 验证一致性
69
+ 检查命名一致性、错误格式统一、分页模式。
70
+
71
+ ### 4. Document — 生成文档
72
+ 产出 OpenAPI/Swagger 规格或 GraphQL Schema 文档。
73
+
74
+ ## 版本策略
75
+
76
+ | 策略 | 示例 | 优点 |
77
+ |------|------|------|
78
+ | URL 路径 | `/v1/users` | 简单、明确 |
79
+ | Header | `Accept: application/vnd.api+json;v=1` | URL 干净 |
80
+ | Query | `/users?version=1` | 容易测试 |
81
+
82
+ ## 使用方式
83
+
84
+ - `/api-design` - 交互式 API 设计引导
85
+ - `/api-design /users` - 审查特定端点设计
86
+ - `/api-design --graphql` - GraphQL Schema 设计引导
87
+
88
+ ## 下一步引导
89
+
90
+ `/api-design` 完成后,AI 助手应建议:
91
+
92
+ > **API 设计完成。建议下一步:**
93
+ > - 执行 `/sdd` 建立正式规格文档
94
+ > - 执行 `/testing` 规划 API 测试策略
95
+ > - 执行 `/docs` 生成 API 文档
96
+ > - 审查安全性 → 执行 `/security`
97
+
98
+ ## 参考
99
+
100
+ - 核心规范:[api-design-standards.md](../../../../core/api-design-standards.md)