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,272 @@
1
+ ---
2
+ source: ../../../../skills/commands/init.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-19
6
+ status: current
7
+ ---
8
+
9
+ ---
10
+ description: [UDS] Initialize development standards in current project
11
+ allowed-tools: Read, Bash(uds init:*), Bash(npx:*)
12
+ argument-hint: "[--level N | --yes]"
13
+ ---
14
+
15
+ # 初始化标准
16
+
17
+ 在当前专案初始化 Universal Development Standards。
18
+
19
+ ## 互动模式(默认)
20
+
21
+ 当不带 `--yes` 执行时,使用 AskUserQuestion 询问用户偏好后再执行。
22
+
23
+ ### 步骤 1:检测专案
24
+
25
+ 首先,CLI 会自动检测专案特性:
26
+ - 语言(JavaScript、TypeScript、Python、Go 等)
27
+ - 框架(React、Vue、Express 等)
28
+ - AI 工具(Claude Code、Cursor、Copilot 等)
29
+
30
+ ### 步骤 2:询问 AI 工具选择
31
+
32
+ 使用 AskUserQuestion(多选)询问要配置哪些 AI 工具:
33
+
34
+ | AI Tool | Integration File | Skills Support | Commands Support |
35
+ |---------|-----------------|----------------|------------------|
36
+ | **Claude Code** | `CLAUDE.md` | ✅ | ❌ |
37
+ | **Cursor** | `.cursorrules` | ✅ | ❌ |
38
+ | **Windsurf** | `.windsurfrules` | ✅ | ❌ |
39
+ | **Cline** | `.clinerules` | ✅ | ❌ |
40
+ | **GitHub Copilot** | `.github/copilot-instructions.md` | ✅ | ✅ |
41
+ | **OpenCode** | `AGENTS.md` | ✅ | ✅ |
42
+ | **Gemini CLI** | `GEMINI.md` | ✅ | ✅ |
43
+ | **Codex** | `AGENTS.md` | ✅ | ❌ |
44
+ | **Antigravity** | `INSTRUCTIONS.md` | ✅ | ❌ |
45
+
46
+ 预选环境中检测到的工具。注意:Codex 和 OpenCode 共用 `AGENTS.md`。
47
+
48
+ ### 步骤 3:询问 Skills 安装
49
+
50
+ 对于支持 Skills 的工具,根据工具数量使用**智能分组**策略。
51
+
52
+ **重要:AskUserQuestion 最多只能有 4 个选项。** 使用智能分组来处理。
53
+
54
+ #### 策略 A:1-2 个工具 → 合并询问
55
+
56
+ **范例(仅 Claude Code):**
57
+ ```
58
+ Question: "Skills 要安装到哪里?"
59
+ Options:
60
+ 1. Plugin Marketplace(建议)- 自动更新,易于管理
61
+ 2. User Level (~/.claude/skills/) - 所有专案共用
62
+ 3. Project Level (.claude/skills/) - 仅此专案
63
+ 4. 跳过 - 不安装 Skills
64
+ ```
65
+
66
+ **范例(Claude Code + OpenCode):**
67
+ ```
68
+ Question: "Skills 要安装到哪里?"
69
+ Options:
70
+ 1. Plugin Marketplace + OpenCode Project Level(建议)
71
+ 2. 全部 User Level - 所有专案共用
72
+ 3. 全部 Project Level - 仅此专案
73
+ 4. 跳过 - 不安装 Skills
74
+ ```
75
+
76
+ #### 策略 B:3+ 个工具 → 两阶段询问
77
+
78
+ **阶段 1:询问统一或个别**
79
+ ```
80
+ Question: "您选择了 3 个以上的 AI 工具,Skills 安装层级要如何设定?"
81
+ Options:
82
+ 1. 统一层级(建议)- 所有工具使用相同层级
83
+ 2. 个别设定 - 为每个工具分别选择层级
84
+ 3. 跳过 - 不安装 Skills
85
+ ```
86
+
87
+ **阶段 2a:如果统一 → 询问一次层级**
88
+ ```
89
+ Question: "所有 Skills 要安装到哪个层级?"
90
+ Options:
91
+ 1. User Level - 所有专案共用
92
+ 2. Project Level(建议)- 仅此专案
93
+ ```
94
+ 注意:Claude Code 默认使用 Plugin Marketplace;仅其他工具使用所选层级。
95
+
96
+ **阶段 2b:如果个别 → 逐工具询问**
97
+ 为每个工具分别询问(参见策略 A 范例)。
98
+
99
+ ### 步骤 4:询问 Commands 安装
100
+
101
+ 对于支持 Commands 的工具(OpenCode、Copilot、Gemini CLI),使用**智能分组**策略。
102
+
103
+ **重要:AskUserQuestion 最多只能有 4 个选项。** 使用智能分组来处理。
104
+
105
+ #### 策略 A:1-2 个工具 → 合并询问
106
+
107
+ **范例(仅 OpenCode):**
108
+ ```
109
+ Question: "Commands 要安装到哪里?"
110
+ Options:
111
+ 1. User Level (~/.config/opencode/command/) - 所有专案共用
112
+ 2. Project Level (.opencode/command/) - 仅此专案(建议)
113
+ 3. 跳过 - 使用 Skills 即可
114
+ ```
115
+
116
+ **范例(OpenCode + Copilot):**
117
+ ```
118
+ Question: "Commands 要安装到哪里?"
119
+ Options:
120
+ 1. 全部 User Level - 所有专案共用
121
+ 2. 全部 Project Level(建议)- 仅此专案
122
+ 3. 跳过 - 使用 Skills 即可
123
+ ```
124
+
125
+ #### 策略 B:3+ 个工具 → 两阶段询问
126
+
127
+ **阶段 1:询问统一或个别**
128
+ ```
129
+ Question: "您选择了多个支持 Commands 的 AI 工具,安装层级要如何设定?"
130
+ Options:
131
+ 1. 统一层级(建议)- 所有工具使用相同层级
132
+ 2. 个别设定 - 为每个工具分别选择层级
133
+ 3. 跳过 - 不安装 Commands
134
+ ```
135
+
136
+ **阶段 2a:如果统一 → 询问一次层级**
137
+ ```
138
+ Question: "所有 Commands 要安装到哪个层级?"
139
+ Options:
140
+ 1. User Level - 所有专案共用
141
+ 2. Project Level(建议)- 仅此专案
142
+ ```
143
+
144
+ **阶段 2b:如果个别 → 逐工具询问**
145
+ 为每个工具分别询问(参见策略 A 范例)。
146
+
147
+ ### 步骤 5:询问标准范围
148
+
149
+ 使用 AskUserQuestion(仅在安装 Skills 时显示):
150
+
151
+ | 选项 | 说明 |
152
+ |------|------|
153
+ | **精简(建议)** | 仅参考文档,Skills 提供实时任务指导 |
154
+ | **完整** | 安装所有标准文件,独立于 Skills |
155
+
156
+ ### 步骤 6:询问采用层级
157
+
158
+ 使用 AskUserQuestion:
159
+
160
+ | 选项 | 说明 |
161
+ |------|------|
162
+ | **Level 1:入门** | 6 个核心标准:commit、反幻觉、checkin 等 |
163
+ | **Level 2:专业(建议)** | 增加测试、Git 工作流、错误处理 — 共 12 个 |
164
+ | **Level 3:完整** | 包含版本管理、日志、SDD — 全部 16 个标准 |
165
+
166
+ ### 步骤 7:询问标准格式
167
+
168
+ 使用 AskUserQuestion:
169
+
170
+ | 选项 | 说明 |
171
+ |------|------|
172
+ | **AI(精简)** | 为 AI 消费优化(建议) |
173
+ | **人类(详细)** | 人类可读格式 |
174
+ | **两者** | 同时生成两种格式 |
175
+
176
+ ### 步骤 8:询问标准选项
177
+
178
+ 根据采用层级,询问:
179
+ - **Git 工作流**: github-flow、gitflow、trunk-based
180
+ - **合并策略**: squash、merge、rebase
181
+ - **提交语言**: english、traditional-chinese、bilingual
182
+ - **测试层级**: unit-testing、integration-testing、e2e-testing
183
+
184
+ ### 步骤 9:询问语言扩展
185
+
186
+ 如果检测到语言,询问是否包含特定语言标准:
187
+ - C# Style Guide
188
+ - PHP Style Guide
189
+ - 等
190
+
191
+ ### 步骤 10:询问框架扩展
192
+
193
+ 如果检测到框架,询问是否包含特定框架模式:
194
+ - Fat-Free Patterns
195
+ - 等
196
+
197
+ ### 步骤 11:询问地区设定
198
+
199
+ 使用 AskUserQuestion:
200
+
201
+ | 选项 | 说明 |
202
+ |------|------|
203
+ | **English(默认)** | 英文文档 |
204
+ | **Traditional Chinese** | 繁体中文文档 |
205
+
206
+ ### 步骤 12:询问内容模式
207
+
208
+ 使用 AskUserQuestion 设定整合文件内容:
209
+
210
+ | 选项 | 说明 |
211
+ |------|------|
212
+ | **标准(建议)** | 摘要 + 任务映射,AI 知道何时读取哪个标准 |
213
+ | **完整嵌入** | 嵌入所有规则,AI 可立即使用但文件较大 |
214
+ | **最简** | 仅文件引用,搭配 Skills 使用最佳 |
215
+
216
+ ### 步骤 13:确认并执行
217
+
218
+ 显示配置摘要并在执行前确认。
219
+
220
+ 确认后,CLI 一次性执行所有安装:
221
+ - 将标准复制到 `.standards/`
222
+ - 生成整合文件
223
+ - 安装 Skills(如果已选择)
224
+ - 安装 Commands(如果已选择)
225
+ - 创建 `manifest.json`
226
+
227
+ ## 快速模式
228
+
229
+ 当带有 `--yes` 或特定选项执行时,跳过互动询问:
230
+
231
+ ```bash
232
+ /init --yes # 使用所有默认值
233
+ /init --level 2 --yes # 指定层级并使用默认值
234
+ /init --skills-location none # 不安装 Skills
235
+ /init --content-mode standard # 指定内容模式
236
+ ```
237
+
238
+ ## 选项参考
239
+
240
+ | Option | Description | 说明 |
241
+ |--------|-------------|------|
242
+ | `--yes`, `-y` | Non-interactive mode | 非互动模式 |
243
+ | `--level N` | Adoption level (1, 2, or 3) | 采用层级 |
244
+ | `--skills-location` | marketplace, user, project, or none | Skills 位置 |
245
+ | `--content-mode` | standard, full, or minimal | 内容模式 |
246
+ | `--format` | ai, human, or both | 格式 |
247
+ | `-E`, `--experimental` | Enable experimental features (methodology) | 启用实验性功能 |
248
+
249
+ 详见 `uds init --help` 获取所有选项。
250
+
251
+ ## 采用层级
252
+
253
+ | Level | Name | Standards Count | Description | 说明 |
254
+ |-------|------|-----------------|-------------|------|
255
+ | 1 | Starter | 6 | Core standards for small projects | 核心标准(小型专案) |
256
+ | 2 | Professional | 12 | Adds testing, Git workflow, error handling | 团队专业质量标准 |
257
+ | 3 | Complete | 16 | All 16 standards including SDD | 完整的 16 项标准 |
258
+
259
+ ## 安装内容
260
+
261
+ - `.standards/` 目录包含核心标准
262
+ - 整合文件(`CLAUDE.md`、`.cursorrules` 等)
263
+ - Skills(通过 Plugin Marketplace 或本地安装)
264
+ - Commands(针对支持的 AI 工具)
265
+ - `manifest.json` 用于追踪安装
266
+
267
+ ## 参考
268
+
269
+ - CLI 文档: `uds init --help`
270
+ - 采用指南: [ADOPTION-GUIDE.md](../../adoption/ADOPTION-GUIDE.md)
271
+ - 检查命令: [/check](./check.md)
272
+ - 更新命令: [/update](./update.md)
@@ -7,7 +7,7 @@ status: experimental
7
7
  ---
8
8
 
9
9
  ---
10
- description: 管理开发方法論工作流 | Manage development methodology workflow
10
+ description: [UDS] Manage development methodology workflow
11
11
  allowed-tools: Read, Write, Glob, Grep, Bash(git:*)
12
12
  argument-hint: "[action] [argument]"
13
13
  status: experimental
@@ -0,0 +1,73 @@
1
+ ---
2
+ source: ../../../../skills/commands/metrics.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-25
6
+ status: current
7
+ ---
8
+
9
+ ---
10
+ description: "[UDS] Track development metrics, code quality indicators and project health"
11
+ allowed-tools: Read, Grep, Glob, Bash(npm:*, git log:*)
12
+ argument-hint: "[metric type or module | 指标类型或模块]"
13
+ ---
14
+
15
+ # Metrics Dashboard Assistant | 指标仪表板助手
16
+
17
+ Track development metrics, code quality indicators and project health.
18
+
19
+ 追踪开发指标、代码质量指示器与项目健康状态。
20
+
21
+ ## Workflow | 工作流程
22
+
23
+ ```
24
+ COLLECT ──► ANALYZE ──► REPORT ──► TREND
25
+ ```
26
+
27
+ ## Usage | 使用方式
28
+
29
+ - `/metrics` - 执行全面指标分析
30
+ - `/metrics --quality` - 仅代码质量指标
31
+ - `/metrics --debt` - 技术债分析
32
+ - `/metrics --test` - 仅测试指标
33
+ - `/metrics src/` - 分析特定模块
34
+
35
+ ## AI Agent Behavior | AI 代理行为
36
+
37
+ > 遵循 [AI Command Behavior Standards](../../core/ai-command-behavior.md)
38
+
39
+ ### Entry Router | 进入路由
40
+
41
+ | 输入 | AI 动作 |
42
+ |------|---------|
43
+ | `/metrics` | 执行全面指标分析 |
44
+ | `/metrics --quality` | 仅分析代码质量指标 |
45
+ | `/metrics --debt` | 仅分析技术债 |
46
+ | `/metrics --test` | 仅分析测试指标 |
47
+ | `/metrics <path>` | 分析指定模块 |
48
+
49
+ ### Interaction Script | 交互脚本
50
+
51
+ 1. 检测项目结构和可用工具
52
+ 2. 收集指标数据(git log、测试覆盖率、代码复杂度)
53
+ 3. 分析趋势和异常
54
+ 4. 生成报告
55
+
56
+ **STOP**: 报告展示后等待用户决定是否采取行动
57
+
58
+ ### Stop Points | 停止点
59
+
60
+ | 停止点 | 等待内容 |
61
+ |--------|---------|
62
+ | 报告展示后 | 用户决定后续行动 |
63
+
64
+ ### Error Handling | 错误处理
65
+
66
+ | 错误条件 | AI 动作 |
67
+ |----------|---------|
68
+ | 无法执行覆盖率工具 | 跳过该指标,报告可用的其他指标 |
69
+ | git 历史不足以分析趋势 | 仅报告当前快照,标记趋势为 N/A |
70
+
71
+ ## Reference | 参考
72
+
73
+ - Full standard: [metrics-dashboard-assistant](../metrics-dashboard-assistant/SKILL.md)
@@ -0,0 +1,92 @@
1
+ ---
2
+ source: ../../../../skills/commands/migrate.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-25
6
+ status: current
7
+ ---
8
+
9
+ ---
10
+ description: "[UDS] Guide code migration, framework upgrades and technology modernization"
11
+ allowed-tools: Read, Grep, Glob, Bash(npm:*, git:*)
12
+ argument-hint: "[migration target or framework | 迁移目标或框架]"
13
+ ---
14
+
15
+ # Migration Assistant | 迁移助手
16
+
17
+ Guide code migration, framework upgrades and technology modernization.
18
+
19
+ 引导代码迁移、框架升级与技术现代化。
20
+
21
+ ## Workflow | 工作流程
22
+
23
+ ```
24
+ ASSESS ──► PLAN ──► PREPARE ──► MIGRATE ──► VERIFY ──► CLEANUP
25
+ ```
26
+
27
+ ## Usage | 使用方式
28
+
29
+ - `/migrate` - 启动交互式迁移指南
30
+ - `/migrate --assess` - 评估迁移范围和风险
31
+ - `/migrate "Vue 2 to 3"` - 迁移特定框架
32
+ - `/migrate --deps` - 依赖升级分析
33
+ - `/migrate --rollback` - 回滚策略规划
34
+
35
+ ## AI Agent Behavior | AI 代理行为
36
+
37
+ > 遵循 [AI Command Behavior Standards](../../core/ai-command-behavior.md)
38
+
39
+ ### Entry Router | 进入路由
40
+
41
+ | 输入 | AI 动作 |
42
+ |------|---------|
43
+ | `/migrate` | 询问迁移目标,进入 ASSESS |
44
+ | `/migrate --assess` | 直接执行范围和风险评估 |
45
+ | `/migrate "target"` | 以指定目标进入 ASSESS |
46
+ | `/migrate --deps` | 仅分析依赖包升级 |
47
+ | `/migrate --rollback` | 规划回滚策略 |
48
+
49
+ ### Interaction Script | 交互脚本
50
+
51
+ #### ASSESS Phase
52
+ 1. 分析现有代码和依赖性
53
+ 2. 评估风险矩阵(breaking changes、数据迁移、API 变更)
54
+ 3. 展示评估报告
55
+
56
+ **STOP**: 评估报告后等待用户决定是否继续
57
+
58
+ #### PLAN Phase
59
+ 1. 制定迁移计划(分阶段步骤)
60
+ 2. 定义回滚策略
61
+
62
+ **STOP**: 计划确认后等待用户确认
63
+
64
+ #### MIGRATE Phase
65
+ 1. 逐步执行迁移
66
+ 2. 每个步骤后验证
67
+
68
+ **STOP**: 每个主要步骤完成后等待确认
69
+
70
+ #### VERIFY Phase
71
+ 1. 执行测试确认迁移成功
72
+ 2. 生成验证报告
73
+
74
+ ### Stop Points | 停止点
75
+
76
+ | 阶段 | 停止点 | 等待内容 |
77
+ |------|--------|---------|
78
+ | ASSESS | 评估报告后 | 决定是否继续 |
79
+ | PLAN | 计划制定后 | 确认计划 |
80
+ | MIGRATE | 每个主要步骤后 | 确认继续 |
81
+
82
+ ### Error Handling | 错误处理
83
+
84
+ | 错误条件 | AI 动作 |
85
+ |----------|---------|
86
+ | 迁移步骤失败 | 建议回滚到上一个检查点 |
87
+ | 依赖冲突 | 列出冲突,建议解决方案 |
88
+ | 测试失败 | 报告失败,建议修复后重试 |
89
+
90
+ ## Reference | 参考
91
+
92
+ - Full standard: [migration-assistant](../migration-assistant/SKILL.md)
@@ -0,0 +1,80 @@
1
+ ---
2
+ source: ../../../../skills/commands/pr.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-25
6
+ status: current
7
+ ---
8
+
9
+ ---
10
+ description: "[UDS] Guide Pull Request creation, review automation and merge strategies"
11
+ allowed-tools: Read, Grep, Glob, Bash(git:*, gh:*)
12
+ argument-hint: "[branch name or PR number | 分支名称或 PR 编号]"
13
+ ---
14
+
15
+ # PR Automation Assistant | PR 自动化助手
16
+
17
+ Guide Pull Request creation, review automation and merge strategies.
18
+
19
+ 引导 Pull Request 创建、审查自动化和合并策略。
20
+
21
+ ## Workflow | 工作流程
22
+
23
+ ```
24
+ CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
25
+ ```
26
+
27
+ ## Usage | 使用方式
28
+
29
+ - `/pr` - 启动交互式 PR 创建
30
+ - `/pr create` - 从当前分支创建 PR
31
+ - `/pr --template` - 使用 PR 模板
32
+ - `/pr review 123` - 审查特定 PR
33
+
34
+ ## AI Agent Behavior | AI 代理行为
35
+
36
+ > 遵循 [AI Command Behavior Standards](../../core/ai-command-behavior.md)
37
+
38
+ ### Entry Router | 进入路由
39
+
40
+ | 输入 | AI 动作 |
41
+ |------|---------|
42
+ | `/pr` | 检查当前分支状态,询问创建或审查 PR |
43
+ | `/pr create` | 分析当前分支差异,创建 PR |
44
+ | `/pr --template` | 使用 PR 模板创建 |
45
+ | `/pr review <number>` | 审查指定 PR |
46
+
47
+ ### Interaction Script | 交互脚本
48
+
49
+ #### CREATE
50
+ 1. 确认当前分支和目标分支
51
+ 2. 分析 commits,生成 PR title 和 description
52
+ 3. 展示 PR 内容预览
53
+
54
+ **STOP**: PR 内容确认后等待用户确认创建
55
+
56
+ #### REVIEW
57
+ 1. 获取 PR 差异
58
+ 2. 执行代码审查(套用 `/review` 标准)
59
+ 3. 展示审查结果
60
+
61
+ **STOP**: 审查结果展示后等待用户决定
62
+
63
+ ### Stop Points | 停止点
64
+
65
+ | 阶段 | 停止点 | 等待内容 |
66
+ |------|--------|---------|
67
+ | CREATE | PR 内容预览后 | 确认创建 |
68
+ | REVIEW | 审查结果后 | 决定后续行动 |
69
+
70
+ ### Error Handling | 错误处理
71
+
72
+ | 错误条件 | AI 动作 |
73
+ |----------|---------|
74
+ | 无远程分支 | 建议先 push |
75
+ | PR 已存在 | 展示现有 PR,询问是否更新 |
76
+ | CI 检查失败 | 列出失败项目,建议修复 |
77
+
78
+ ## Reference | 参考
79
+
80
+ - Full standard: [pr-automation-assistant](../pr-automation-assistant/SKILL.md)
@@ -4,7 +4,7 @@ source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-01-21
6
6
  status: current
7
- description: 引导重构决策与策略选择
7
+ description: [UDS] Guide refactoring decisions and strategy selection
8
8
  allowed-tools: Read, Write, Grep, Glob, Bash(npm test:*), Bash(npx:*)
9
9
  argument-hint: "[scope: tactical | strategic | legacy | decide | debt]"
10
10
  status: stable
@@ -0,0 +1,62 @@
1
+ ---
2
+ source: ../../../../skills/commands/release.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-19
6
+ status: current
7
+ ---
8
+
9
+ ---
10
+ name: release
11
+ description: [UDS] Manage release process and changelogs.
12
+ argument-hint: "[start|finish|changelog] <version>"
13
+ ---
14
+
15
+ # /release 命令
16
+
17
+ 根据语义化版本管理发布流程和变更日志。
18
+
19
+ ## 用法
20
+
21
+ ```bash
22
+ /release [subcommand] [version]
23
+ ```
24
+
25
+ ### 子命令
26
+
27
+ | Subcommand | Description |
28
+ |------------|-------------|
29
+ | `start` | 启动发布分支/流程 |
30
+ | `finish` | 完成发布(标签、合并) |
31
+ | `changelog` | 生成或更新 CHANGELOG.md |
32
+ | `check` | 运行预发布检查 |
33
+
34
+ ## Changelog 管理
35
+
36
+ ```bash
37
+ /release changelog [version]
38
+ ```
39
+
40
+ 通过以下方式更新 `CHANGELOG.md`:
41
+ 1. 将「Unreleased」变更移动到新的 `[version]` 区段。
42
+ 2. 创建新的「Unreleased」区段。
43
+ 3. 更新底部的比较链接。
44
+
45
+ ## 范例
46
+
47
+ ```bash
48
+ # 启动发布 v1.2.0
49
+ /release start 1.2.0
50
+
51
+ # 更新 v1.2.0 的 changelog
52
+ /release changelog 1.2.0
53
+
54
+ # 完成发布
55
+ /release finish 1.2.0
56
+ ```
57
+
58
+ ## 参考
59
+
60
+ * [发布规范技能](../release-standards/SKILL.md)
61
+ * [Changelog 指南](../changelog-guide/SKILL.md)
62
+ * [核心规范](../../core/versioning.md)
@@ -0,0 +1,54 @@
1
+ ---
2
+ description: [UDS] Write user stories and requirements following INVEST criteria
3
+ allowed-tools: Read, Write, Grep, Glob
4
+ argument-hint: "[feature name or description | 功能名称或描述]"
5
+ ---
6
+
7
+ # Requirement Assistant | 需求助手
8
+
9
+ Write well-structured user stories and requirements following INVEST criteria.
10
+
11
+ 撰写结构良好的用户故事和需求文件,遵循 INVEST 标准。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ 1. **理解上下文** - 收集功能相关信息
16
+ 2. **识别利益相关者** - 谁从此功能中受益?
17
+ 3. **撰写用户故事** - 遵循标准格式
18
+ 4. **定义验收标准** - 具体、可测试的条件
19
+ 5. **以 INVEST 验证** - 检查质量标准
20
+
21
+ ## User Story Format | 用户故事格式
22
+
23
+ ```markdown
24
+ As a [role],
25
+ I want [feature],
26
+ So that [benefit].
27
+
28
+ ### Acceptance Criteria
29
+
30
+ - [ ] Given [context], when [action], then [result]
31
+ - [ ] Given [context], when [action], then [result]
32
+ ```
33
+
34
+ ## INVEST Criteria | INVEST 标准
35
+
36
+ | Criterion | Description | 说明 |
37
+ |-----------|-------------|------|
38
+ | **I**ndependent | Can be developed separately | 可独立开发 |
39
+ | **N**egotiable | Details can be discussed | 可协商细节 |
40
+ | **V**aluable | Delivers value to user | 提供用户价值 |
41
+ | **E**stimable | Can estimate effort | 可估算工作量 |
42
+ | **S**mall | Fits in one sprint | 适合单一迭代 |
43
+ | **T**estable | Has clear test criteria | 有明确测试标准 |
44
+
45
+ ## Usage | 使用方式
46
+
47
+ - `/requirement` - 交互式需求撰写向导
48
+ - `/requirement user login` - 为特定功能撰写需求
49
+ - `/requirement "users can export data"` - 基于描述撰写
50
+
51
+ ## Reference | 参考
52
+
53
+ - Full standard: [requirement-assistant](../requirement-assistant/SKILL.md)
54
+ - Core guide: [requirements-standards](../../core/requirement-engineering.md)
@@ -0,0 +1,47 @@
1
+ ---
2
+ description: [UDS] Transform SDD acceptance criteria to BDD scenarios
3
+ allowed-tools: Read, Grep, Glob, Write
4
+ argument-hint: "[spec file or source directory | 规格文件或源代码目录]"
5
+ ---
6
+
7
+ # /reverse-bdd — Extract BDD Scenarios | 提取 BDD 场景
8
+
9
+ Transform existing code or SDD acceptance criteria into BDD Gherkin scenarios.
10
+
11
+ 将现有代码或 SDD 验收条件转换为 BDD Gherkin 场景。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ Source/Spec ──► Analyze Behaviors ──► Generate .feature ──► Review
17
+ ```
18
+
19
+ 1. **分析**源代码或规格中的行为模式
20
+ 2. **提取**隐含的 Given-When-Then 流程
21
+ 3. **生成** Gherkin `.feature` 文件
22
+ 4. **标记**确定性标签:`[Confirmed]`、`[Inferred]`
23
+
24
+ ## Output Format | 输出格式
25
+
26
+ ```gherkin
27
+ # [Source: src/auth/login.js:45]
28
+ Feature: User Login [Inferred]
29
+
30
+ # [Confirmed] from test/auth.test.js:12
31
+ Scenario: Successful login
32
+ Given a registered user exists
33
+ When they submit valid credentials
34
+ Then they receive an auth token
35
+ ```
36
+
37
+ ## Usage | 使用方式
38
+
39
+ | Command | Purpose | 用途 |
40
+ |---------|---------|------|
41
+ | `/reverse-bdd src/auth/` | Extract BDD from auth module | 从 auth 模块提取 BDD |
42
+ | `/reverse-bdd specs/SPEC-001.md` | Convert spec AC to BDD | 将规格 AC 转为 BDD |
43
+
44
+ ## Reference | 参考
45
+
46
+ - Parent command: [/reverse](../reverse-engineer/SKILL.md)
47
+ - Core standard: [reverse-engineering-standards.md](../../core/reverse-engineering-standards.md)