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,84 @@
1
+ ---
2
+ description: "[UDS] Guide code migration, framework upgrades and technology modernization"
3
+ allowed-tools: Read, Grep, Glob, Bash(npm:*, git:*)
4
+ argument-hint: "[migration target or framework | 遷移目標或框架]"
5
+ ---
6
+
7
+ # Migration Assistant | 遷移助手
8
+
9
+ Guide code migration, framework upgrades and technology modernization.
10
+
11
+ 引導程式碼遷移、框架升級與技術現代化。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ ASSESS ──► PLAN ──► PREPARE ──► MIGRATE ──► VERIFY ──► CLEANUP
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/migrate` - Start interactive migration guide
22
+ - `/migrate --assess` - Assess migration scope and risk
23
+ - `/migrate "Vue 2 to 3"` - Migrate specific framework
24
+ - `/migrate --deps` - Dependency upgrade analysis
25
+ - `/migrate --rollback` - Rollback strategy planning
26
+
27
+ ## AI Agent Behavior | AI 代理行為
28
+
29
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
30
+
31
+ ### Entry Router | 進入路由
32
+
33
+ | Input | AI Action |
34
+ |-------|-----------|
35
+ | `/migrate` | 詢問遷移目標,進入 ASSESS |
36
+ | `/migrate --assess` | 直接執行範圍和風險評估 |
37
+ | `/migrate "target"` | 以指定目標進入 ASSESS |
38
+ | `/migrate --deps` | 僅分析相依套件升級 |
39
+ | `/migrate --rollback` | 規劃回滾策略 |
40
+
41
+ ### Interaction Script | 互動腳本
42
+
43
+ #### ASSESS Phase
44
+ 1. 分析現有程式碼和相依性
45
+ 2. 評估風險矩陣(breaking changes、資料遷移、API 變更)
46
+ 3. 展示評估報告
47
+
48
+ 🛑 **STOP**: 評估報告後等待使用者決定是否繼續
49
+
50
+ #### PLAN Phase
51
+ 1. 制定遷移計畫(分階段步驟)
52
+ 2. 定義回滾策略
53
+
54
+ 🛑 **STOP**: 計畫確認後等待使用者確認
55
+
56
+ #### MIGRATE Phase
57
+ 1. 逐步執行遷移
58
+ 2. 每個步驟後驗證
59
+
60
+ 🛑 **STOP**: 每個主要步驟完成後等待確認
61
+
62
+ #### VERIFY Phase
63
+ 1. 執行測試確認遷移成功
64
+ 2. 生成驗證報告
65
+
66
+ ### Stop Points | 停止點
67
+
68
+ | Phase | Stop Point | 等待內容 |
69
+ |-------|-----------|---------|
70
+ | ASSESS | 評估報告後 | 決定是否繼續 |
71
+ | PLAN | 計畫制定後 | 確認計畫 |
72
+ | MIGRATE | 每個主要步驟後 | 確認繼續 |
73
+
74
+ ### Error Handling | 錯誤處理
75
+
76
+ | Error Condition | AI Action |
77
+ |-----------------|-----------|
78
+ | 遷移步驟失敗 | 建議回滾到上一個檢查點 |
79
+ | 相依性衝突 | 列出衝突,建議解決方案 |
80
+ | 測試失敗 | 報告失敗,建議修復後重試 |
81
+
82
+ ## Reference | 參考
83
+
84
+ - Full standard: [migration-assistant](../migration-assistant/SKILL.md)
@@ -0,0 +1,72 @@
1
+ ---
2
+ description: "[UDS] Guide Pull Request creation, review automation and merge strategies"
3
+ allowed-tools: Read, Grep, Glob, Bash(git:*, gh:*)
4
+ argument-hint: "[branch name or PR number | 分支名稱或 PR 編號]"
5
+ ---
6
+
7
+ # PR Automation Assistant | PR 自動化助手
8
+
9
+ Guide Pull Request creation, review automation and merge strategies.
10
+
11
+ 引導 Pull Request 建立、審查自動化和合併策略。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/pr` - Start interactive PR creation
22
+ - `/pr create` - Create PR from current branch
23
+ - `/pr --template` - Use PR template
24
+ - `/pr review 123` - Review specific PR
25
+
26
+ ## AI Agent Behavior | AI 代理行為
27
+
28
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
29
+
30
+ ### Entry Router | 進入路由
31
+
32
+ | Input | AI Action |
33
+ |-------|-----------|
34
+ | `/pr` | 檢查當前分支狀態,詢問建立或審查 PR |
35
+ | `/pr create` | 分析當前分支差異,建立 PR |
36
+ | `/pr --template` | 使用 PR 模板建立 |
37
+ | `/pr review <number>` | 審查指定 PR |
38
+
39
+ ### Interaction Script | 互動腳本
40
+
41
+ #### CREATE
42
+ 1. 確認當前分支和目標分支
43
+ 2. 分析 commits,生成 PR title 和 description
44
+ 3. 展示 PR 內容預覽
45
+
46
+ 🛑 **STOP**: PR 內容確認後等待使用者確認建立
47
+
48
+ #### REVIEW
49
+ 1. 取得 PR 差異
50
+ 2. 執行程式碼審查(套用 `/review` 標準)
51
+ 3. 展示審查結果
52
+
53
+ 🛑 **STOP**: 審查結果展示後等待使用者決定
54
+
55
+ ### Stop Points | 停止點
56
+
57
+ | Phase | Stop Point | 等待內容 |
58
+ |-------|-----------|---------|
59
+ | CREATE | PR 內容預覽後 | 確認建立 |
60
+ | REVIEW | 審查結果後 | 決定後續行動 |
61
+
62
+ ### Error Handling | 錯誤處理
63
+
64
+ | Error Condition | AI Action |
65
+ |-----------------|-----------|
66
+ | 無遠端分支 | 建議先 push |
67
+ | PR 已存在 | 展示現有 PR,詢問是否更新 |
68
+ | CI 檢查失敗 | 列出失敗項目,建議修復 |
69
+
70
+ ## Reference | 參考
71
+
72
+ - Full standard: [pr-automation-assistant](../pr-automation-assistant/SKILL.md)
@@ -166,6 +166,57 @@ This command integrates with:
166
166
  - **方法論系統** 追蹤重構進度
167
167
  - **TDD 助手** 用於紅-綠-重構循環
168
168
 
169
+ ## AI Agent Behavior | AI 代理行為
170
+
171
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
172
+
173
+ ### Entry Router | 進入路由
174
+
175
+ | Input | AI Action |
176
+ |-------|-----------|
177
+ | `/refactor` | 詢問重構目標和情境,引導選擇策略 |
178
+ | `/refactor decide` | 直接執行重構 vs 重寫決策樹 |
179
+ | `/refactor tactical` | 列出戰術性策略,詢問情境後推薦 |
180
+ | `/refactor strategic` | 引導架構級重構規劃 |
181
+ | `/refactor legacy` | 執行遺留程式碼安全策略引導 |
182
+ | `/refactor debt` | 執行技術債評估 |
183
+
184
+ ### Interaction Script | 互動腳本
185
+
186
+ #### `/refactor`(無子命令)
187
+ 1. 詢問重構情境(日常開發 / 架構變更 / 遺留程式碼)
188
+ 2. 依回答分派到 tactical / strategic / legacy
189
+
190
+ #### `/refactor decide`
191
+ 1. 逐一提出決策樹問題(4 題)
192
+ 2. 等使用者回答每一題
193
+ 3. 根據答案路徑給出建議(重構 / 重寫 / 先加測試)
194
+
195
+ 🛑 **STOP**: 決策結果展示後等待使用者確認方向
196
+
197
+ #### `/refactor tactical` / `strategic` / `legacy`
198
+ 1. 評估當前程式碼狀態(測試覆蓋率、複雜度)
199
+ 2. 推薦適合的策略
200
+ 3. 提供步驟式執行指引
201
+
202
+ 🛑 **STOP**: 策略推薦後等待使用者選擇,再提供執行引導
203
+
204
+ ### Stop Points | 停止點
205
+
206
+ | Stop Point | 等待內容 |
207
+ |-----------|---------|
208
+ | 決策樹結果後 | 確認重構方向 |
209
+ | 策略推薦後 | 選擇策略 |
210
+ | 重構計畫制定後 | 確認開始執行 |
211
+
212
+ ### Error Handling | 錯誤處理
213
+
214
+ | Error Condition | AI Action |
215
+ |-----------------|-----------|
216
+ | 測試覆蓋率無法取得 | 建議先執行 `/coverage`,或詢問使用者估計 |
217
+ | 重構範圍過大 | 建議分階段進行,先從最高風險區域開始 |
218
+ | 無子命令且無法判斷情境 | 預設引導到 decide 決策樹 |
219
+
169
220
  ## Reference | 參考
170
221
 
171
222
  - [Refactoring Standards](../../core/refactoring-standards.md) - Core standard
@@ -49,6 +49,66 @@ Updates `CHANGELOG.md` by:
49
49
  /release finish 1.2.0
50
50
  ```
51
51
 
52
+ ## AI Agent Behavior | AI 代理行為
53
+
54
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
55
+
56
+ ### Entry Router | 進入路由
57
+
58
+ | Input | AI Action |
59
+ |-------|-----------|
60
+ | `/release` | 詢問版本號和發布類型(alpha/beta/rc/stable) |
61
+ | `/release start <version>` | 開始指定版本的發布流程 |
62
+ | `/release finish <version>` | 完成發布(tag、merge) |
63
+ | `/release changelog <version>` | 更新 CHANGELOG.md |
64
+ | `/release check` | 執行預發布檢查 |
65
+
66
+ ### Interaction Script | 互動腳本
67
+
68
+ #### `/release start`
69
+ 1. 確認版本號和類型
70
+ 2. 執行預發布檢查(tests、lint、git status)
71
+
72
+ 🛑 **STOP**: 預發布檢查結果展示後等待確認
73
+
74
+ 3. 更新版本檔案
75
+
76
+ 🛑 **STOP**: 版本檔案更新後展示變更,等待確認
77
+
78
+ 4. 更新 CHANGELOG.md
79
+
80
+ 🛑 **STOP**: CHANGELOG 更新後展示內容,等待確認
81
+
82
+ #### `/release finish`
83
+ 1. 確認所有檢查通過
84
+ 2. 建立 git tag
85
+
86
+ 🛑 **STOP**: git tag 建立前等待確認
87
+
88
+ 3. 展示 commit 和 push 命令
89
+
90
+ 🛑 **STOP**: git push 前等待確認
91
+
92
+ #### `/release check`
93
+ 1. 執行所有預發布檢查腳本
94
+ 2. 展示結果摘要
95
+
96
+ ### Stop Points | 停止點
97
+
98
+ | Stop Point | 等待內容 |
99
+ |-----------|---------|
100
+ | 版本檔案更新後 | 確認版本號正確 |
101
+ | git tag 建立前 | 確認要建立 tag |
102
+ | git push 前 | 確認要推送到遠端 |
103
+
104
+ ### Error Handling | 錯誤處理
105
+
106
+ | Error Condition | AI Action |
107
+ |-----------------|-----------|
108
+ | 預發布檢查失敗 | 列出失敗項目,阻止繼續 |
109
+ | 版本號格式不正確 | 提示正確格式(X.Y.Z 或 X.Y.Z-type.N) |
110
+ | 工作目錄不乾淨 | 建議先 commit 或 stash |
111
+
52
112
  ## References | 參考
53
113
 
54
114
  * [Release Standards Skill](../release-standards/SKILL.md)
@@ -48,6 +48,44 @@ So that [benefit].
48
48
  - `/requirement user login` - Write requirement for specific feature
49
49
  - `/requirement "users can export data"` - Based on description
50
50
 
51
+ ## AI Agent Behavior | AI 代理行為
52
+
53
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
54
+
55
+ ### Entry Router | 進入路由
56
+
57
+ | Input | AI Action |
58
+ |-------|-----------|
59
+ | `/requirement` | 詢問使用者要定義的功能,開始互動式需求撰寫 |
60
+ | `/requirement <feature>` | 以指定功能為目標,開始收集資訊 |
61
+ | `/requirement "description"` | 從描述中提取需求,生成使用者故事 |
62
+
63
+ ### Interaction Script | 互動腳本
64
+
65
+ 1. 收集功能描述和使用者角色
66
+ 2. 引導定義 As a / I want / So that
67
+ 3. 引導定義 Acceptance Criteria(GWT 格式)
68
+ 4. 以 INVEST 準則逐項驗證
69
+
70
+ **Decision: INVEST 驗證結果**
71
+ - IF 全部通過 → 展示完整需求文件
72
+ - IF 有項目未通過 → 指出哪些未通過,建議修改方式
73
+
74
+ 🛑 **STOP**: 展示需求文件後等待使用者確認寫入
75
+
76
+ ### Stop Points | 停止點
77
+
78
+ | Stop Point | 等待內容 |
79
+ |-----------|---------|
80
+ | 需求文件生成後 | 確認內容正確並寫入 |
81
+
82
+ ### Error Handling | 錯誤處理
83
+
84
+ | Error Condition | AI Action |
85
+ |-----------------|-----------|
86
+ | 使用者描述過於模糊 | 提出具體問題釐清範圍 |
87
+ | AC 無法用 GWT 格式表達 | 協助轉換,展示轉換建議 |
88
+
51
89
  ## Reference | 參考
52
90
 
53
91
  - Full standard: [requirement-assistant](../requirement-assistant/SKILL.md)
@@ -41,6 +41,40 @@ Feature: User Login [Inferred]
41
41
  | `/reverse-bdd src/auth/` | Extract BDD from auth module | 從 auth 模組擷取 BDD |
42
42
  | `/reverse-bdd specs/SPEC-001.md` | Convert spec AC to BDD | 將規格 AC 轉為 BDD |
43
43
 
44
+ ## AI Agent Behavior | AI 代理行為
45
+
46
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
47
+
48
+ ### Entry Router | 進入路由
49
+
50
+ | Input | AI Action |
51
+ |-------|-----------|
52
+ | `/reverse-bdd` | 詢問目標(原始碼目錄或 spec 檔案) |
53
+ | `/reverse-bdd <path>` | 直接分析指定路徑 |
54
+
55
+ ### Interaction Script | 互動腳本
56
+
57
+ 1. 判斷輸入類型(原始碼 or spec)
58
+ 2. 分析行為模式,擷取隱含的 Given-When-Then 流程
59
+ 3. 為每個場景標記確定性:`[Confirmed]`、`[Inferred]`
60
+ 4. 生成 Gherkin `.feature` 檔案(含 `[Source: file:line]` 引用)
61
+ 5. 展示結果
62
+
63
+ 🛑 **STOP**: 展示 `.feature` 內容後等待使用者確認寫入
64
+
65
+ ### Stop Points | 停止點
66
+
67
+ | Stop Point | 等待內容 |
68
+ |-----------|---------|
69
+ | `.feature` 生成後 | 確認場景正確並寫入 |
70
+
71
+ ### Error Handling | 錯誤處理
72
+
73
+ | Error Condition | AI Action |
74
+ |-----------------|-----------|
75
+ | 行為模式模糊無法轉為場景 | 標記 `[Assumption]`,列出需人工確認的場景 |
76
+ | 目標無可分析的行為邏輯 | 告知並建議檢查是否為正確的檔案 |
77
+
44
78
  ## Reference | 參考
45
79
 
46
80
  - Parent command: [/reverse](../reverse-engineer/SKILL.md)
@@ -45,6 +45,48 @@ Source Code ──► Analyze ──► Extract Requirements ──► Generate
45
45
  | `/reverse-sdd src/auth/` | Reverse engineer auth module | 反向工程 auth 模組 |
46
46
  | `/reverse-sdd` | Interactive — ask for target | 互動式 — 詢問目標 |
47
47
 
48
+ ## AI Agent Behavior | AI 代理行為
49
+
50
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
51
+
52
+ ### Entry Router | 進入路由
53
+
54
+ | Input | AI Action |
55
+ |-------|-----------|
56
+ | `/reverse-sdd` | 詢問使用者要分析的原始碼路徑 |
57
+ | `/reverse-sdd <path>` | 直接分析指定路徑 |
58
+
59
+ ### Interaction Script | 互動腳本
60
+
61
+ 1. 掃描目標路徑的程式碼結構和相依性
62
+ 2. 擷取隱含需求、API 合約、商業規則
63
+ 3. 為每個發現分類確定性:`[Confirmed]`、`[Inferred]`、`[Assumption]`
64
+
65
+ **Decision: 確定性門檻**
66
+ - IF 有對應測試佐證 → `[Confirmed]`
67
+ - IF 從程式碼邏輯推斷 → `[Inferred]`
68
+ - IF 無直接證據 → `[Assumption]`
69
+
70
+ 4. 生成 SDD 格式的規格文件
71
+ 5. 展示結果(含確定性標記)
72
+
73
+ 🛑 **STOP**: 展示生成的 spec 後等待使用者審查並確認寫入
74
+
75
+ ### Stop Points | 停止點
76
+
77
+ | Stop Point | 等待內容 |
78
+ |-----------|---------|
79
+ | 生成 spec 後 | 使用者審查確定性標記,確認寫入 |
80
+
81
+ ### Error Handling | 錯誤處理
82
+
83
+ | Error Condition | AI Action |
84
+ |-----------------|-----------|
85
+ | 路徑不存在 | 告知並詢問正確路徑 |
86
+ | 程式碼過大(>50 檔案) | 建議縮小範圍,或列出模組供選擇 |
87
+ | 無法辨識程式語言 | 詢問使用者確認語言 |
88
+ | 所有發現都是 `[Assumption]` | 警告信心不足,建議人工審查後再使用 |
89
+
48
90
  ## Reference | 參考
49
91
 
50
92
  - Parent command: [/reverse](../reverse-engineer/SKILL.md)
@@ -45,6 +45,46 @@ Analyze gaps between BDD scenarios and TDD test coverage.
45
45
  | `/reverse-tdd features/` | Analyze all feature files | 分析所有 feature 檔案 |
46
46
  | `/reverse-tdd features/auth.feature` | Analyze specific feature | 分析特定 feature |
47
47
 
48
+ ## AI Agent Behavior | AI 代理行為
49
+
50
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
51
+
52
+ ### Entry Router | 進入路由
53
+
54
+ | Input | AI Action |
55
+ |-------|-----------|
56
+ | `/reverse-tdd` | 詢問要分析的 feature 檔案或測試目錄 |
57
+ | `/reverse-tdd <path>` | 直接分析指定路徑 |
58
+
59
+ ### Interaction Script | 互動腳本
60
+
61
+ 1. 解析 `.feature` 檔案中的所有場景
62
+ 2. 掃描測試目錄尋找對應的單元測試
63
+ 3. 建立 BDD 場景 → TDD 測試的對應關係
64
+ 4. 識別覆蓋差距(有場景無對應測試)
65
+ 5. 生成差距報告
66
+
67
+ **Decision: 差距嚴重度**
68
+ - IF 覆蓋率 ≥ 80% → 標記為 ✅ Good,列出剩餘差距
69
+ - IF 覆蓋率 50-79% → 標記為 ⚠️ Needs Improvement,建議優先補測試的場景
70
+ - IF 覆蓋率 < 50% → 標記為 ❌ Critical,建議系統性補強
71
+
72
+ 🛑 **STOP**: 展示差距報告後等待使用者決定下一步
73
+
74
+ ### Stop Points | 停止點
75
+
76
+ | Stop Point | 等待內容 |
77
+ |-----------|---------|
78
+ | 差距報告展示後 | 使用者決定是否要 AI 協助補測試 |
79
+
80
+ ### Error Handling | 錯誤處理
81
+
82
+ | Error Condition | AI Action |
83
+ |-----------------|-----------|
84
+ | 無 `.feature` 檔案 | 引導到 `/derive-bdd` 或 `/reverse-bdd` 先生成 |
85
+ | 測試目錄為空 | 報告 0% 覆蓋率,建議從 `/derive-tdd` 生成骨架 |
86
+ | 場景與測試命名不一致無法自動對應 | 列出無法對應的項目,詢問使用者手動確認 |
87
+
48
88
  ## Reference | 參考
49
89
 
50
90
  - Parent command: [/reverse](../reverse-engineer/SKILL.md)
@@ -57,6 +57,47 @@ Checks if the scenarios in the feature file have corresponding unit tests.
57
57
  * **Certainty Tags**: Use `[Confirmed]`, `[Inferred]`, `[Unknown]` tags in output.
58
58
  * **Source Attribution**: Cite `file:line` for all reversed logic.
59
59
 
60
+ ## AI Agent Behavior | AI 代理行為
61
+
62
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
63
+
64
+ ### Entry Router | 進入路由
65
+
66
+ | Input | AI Action |
67
+ |-------|-----------|
68
+ | `/reverse` | 詢問使用者要執行哪個子命令(spec/bdd/tdd)和目標 |
69
+ | `/reverse <subcommand> <input>` | 直接對指定目標執行指定子命令 |
70
+ | `/reverse <subcommand>` | 執行子命令,詢問目標檔案/目錄 |
71
+
72
+ ### Interaction Script | 互動腳本
73
+
74
+ 1. 確認子命令和輸入目標
75
+ 2. 分派到對應的 `/reverse-sdd`、`/reverse-bdd`、`/reverse-tdd`
76
+ 3. 收集子命令結果
77
+ 4. 展示結果摘要
78
+
79
+ **Decision: 子命令選擇**
80
+ - IF `spec` → 分派到 `/reverse-sdd`
81
+ - IF `bdd` → 分派到 `/reverse-bdd`
82
+ - IF `tdd` → 分派到 `/reverse-tdd`
83
+ - IF 未指定 → 問使用者選擇
84
+
85
+ 🛑 **STOP**: 結果展示後等待使用者確認
86
+
87
+ ### Stop Points | 停止點
88
+
89
+ | Stop Point | 等待內容 |
90
+ |-----------|---------|
91
+ | 反向工程結果展示後 | 確認結果正確並寫入 |
92
+
93
+ ### Error Handling | 錯誤處理
94
+
95
+ | Error Condition | AI Action |
96
+ |-----------------|-----------|
97
+ | 目標檔案/目錄不存在 | 告知並詢問正確路徑 |
98
+ | 子命令無效 | 列出可用子命令(spec/bdd/tdd) |
99
+ | 目標為空目錄或空檔案 | 告知無內容可分析 |
100
+
60
101
  ## References | 參考
61
102
 
62
103
  * [Reverse Engineering Skill](../reverse-engineer/SKILL.md)
@@ -44,6 +44,45 @@ Perform systematic code review using standardized checklists and comment prefixe
44
44
  - `/review src/auth.js` - Review specific file
45
45
  - `/review feature/login` - Review specific branch
46
46
 
47
+ ## AI Agent Behavior | AI 代理行為
48
+
49
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
50
+
51
+ ### Entry Router | 進入路由
52
+
53
+ | Input | AI Action |
54
+ |-------|-----------|
55
+ | `/review` | 執行 `git diff` 取得當前分支所有變更,開始審查 |
56
+ | `/review <file>` | 僅審查指定檔案 |
57
+ | `/review <branch>` | 審查指定分支相對於 main 的差異 |
58
+
59
+ ### Interaction Script | 互動腳本
60
+
61
+ 1. 取得變更內容(git diff / 讀取檔案)
62
+ 2. 逐一套用 8 個審查類別
63
+ 3. 為每個發現標記嚴重度前綴(BLOCKING / IMPORTANT / SUGGESTION / QUESTION / NOTE)
64
+ 4. 生成審查報告
65
+
66
+ **Decision: 發現衝突**
67
+ - IF 多個發現互相矛盾(如效能 vs 可讀性) → 明確說明取捨,標記為 QUESTION 請使用者決定
68
+ - ELSE → 依嚴重度排序呈現
69
+
70
+ 🛑 **STOP**: 報告生成後展示結果,等待使用者決定處理方式
71
+
72
+ ### Stop Points | 停止點
73
+
74
+ | Stop Point | 等待內容 |
75
+ |-----------|---------|
76
+ | 審查報告展示後 | 使用者決定是否修復 BLOCKING 項目 |
77
+
78
+ ### Error Handling | 錯誤處理
79
+
80
+ | Error Condition | AI Action |
81
+ |-----------------|-----------|
82
+ | 無變更可審查 | 告知無差異,建議先修改程式碼 |
83
+ | 檔案/分支不存在 | 列出可用的檔案或分支 |
84
+ | 變更量過大(>500 行) | 建議分批審查,列出建議的分批方式 |
85
+
47
86
  ## Reference | 參考
48
87
 
49
88
  - Full standard: [code-review-assistant](../code-review-assistant/SKILL.md)
@@ -0,0 +1,68 @@
1
+ ---
2
+ description: "[UDS] Guide automated security scanning, dependency auditing and secret detection"
3
+ allowed-tools: Read, Grep, Glob, Bash(npm:audit, npx:*)
4
+ argument-hint: "[scan type or target | 掃描類型或目標]"
5
+ ---
6
+
7
+ # Security Scan Assistant | 安全掃描助手
8
+
9
+ Guide automated security scanning, dependency auditing and secret detection.
10
+
11
+ 引導自動化安全掃描、相依套件審計和機密偵測。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/scan` - Run all security scans
22
+ - `/scan --deps` - Dependency vulnerability scan
23
+ - `/scan --secrets` - Secret detection scan
24
+ - `/scan --license` - License compliance check
25
+
26
+ ## AI Agent Behavior | AI 代理行為
27
+
28
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
29
+
30
+ ### Entry Router | 進入路由
31
+
32
+ | Input | AI Action |
33
+ |-------|-----------|
34
+ | `/scan` | 執行所有掃描類型 |
35
+ | `/scan --deps` | 僅執行相依套件漏洞掃描 |
36
+ | `/scan --secrets` | 僅執行機密偵測 |
37
+ | `/scan --license` | 僅執行授權合規檢查 |
38
+
39
+ ### Interaction Script | 互動腳本
40
+
41
+ 1. 執行指定類型的掃描
42
+ 2. 收集結果,依嚴重程度分類
43
+ 3. 展示分類報告
44
+
45
+ **Decision: 掃描結果**
46
+ - IF 發現 Critical/High → 列出 SLA 修復時限,建議立即處理
47
+ - IF 僅 Medium/Low → 列入報告,建議排程處理
48
+ - IF 發現機密洩漏 → 立即警告,建議輪換金鑰
49
+
50
+ 🛑 **STOP**: 報告展示後等待使用者決定修復優先順序
51
+
52
+ ### Stop Points | 停止點
53
+
54
+ | Stop Point | 等待內容 |
55
+ |-----------|---------|
56
+ | 掃描報告展示後 | 使用者決定修復項目 |
57
+ | 修復建議展示後 | 確認套用修復 |
58
+
59
+ ### Error Handling | 錯誤處理
60
+
61
+ | Error Condition | AI Action |
62
+ |-----------------|-----------|
63
+ | 掃描工具未安裝 | 建議安裝(npm audit 通常內建) |
64
+ | 無 package.json 或 lock 檔 | 告知無法執行相依掃描 |
65
+
66
+ ## Reference | 參考
67
+
68
+ - Full standard: [security-scan-assistant](../security-scan-assistant/SKILL.md)
@@ -33,6 +33,54 @@ Create lightweight specification documents for past changes that were committed
33
33
  /sdd-retro --last=10
34
34
  ```
35
35
 
36
+ ## AI Agent Behavior | AI 代理行為
37
+
38
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
39
+
40
+ ### Entry Router | 進入路由
41
+
42
+ | Input | AI Action |
43
+ |-------|-----------|
44
+ | `/sdd-retro` | 掃描所有 feat/fix commits(無 `Refs:` footer),顯示摘要 |
45
+ | `/sdd-retro --since=<date>` | 僅掃描指定日期後的 commits |
46
+ | `/sdd-retro --last=<N>` | 僅掃描最近 N 筆 commits |
47
+
48
+ ### Interaction Script | 互動腳本
49
+
50
+ 1. 執行 `git log` 掃描符合條件的 commits
51
+ 2. 過濾已有 `Refs: SPEC-` 的 commits
52
+ 3. 依 scope 分群相關 commits
53
+
54
+ **Decision: 掃描結果**
55
+ - IF 無未追蹤的 commits → 告知使用者「所有 feat/fix commits 都已追蹤」,結束
56
+ - IF 有未追蹤的 commits → 顯示分群清單,問使用者要為哪些群組建立 retro spec
57
+ - ELSE → 顯示清單供選擇
58
+
59
+ 🛑 **STOP**: 掃描結果展示後等待使用者選擇要追蹤的群組
60
+
61
+ 4. 為使用者選定的群組生成 retro spec(使用 SDD 格式,status: Archived)
62
+ 5. 展示生成的 spec 內容
63
+
64
+ 🛑 **STOP**: 展示 spec 內容後等待使用者確認寫入檔案
65
+
66
+ 6. 寫入 `docs/specs/` 並建議更新原 commits 的 footer(如有需要)
67
+
68
+ ### Stop Points | 停止點
69
+
70
+ | Stop Point | 等待內容 |
71
+ |-----------|---------|
72
+ | 掃描結果展示後 | 使用者選擇要追蹤哪些群組 |
73
+ | Spec 內容生成後 | 確認寫入檔案 |
74
+
75
+ ### Error Handling | 錯誤處理
76
+
77
+ | Error Condition | AI Action |
78
+ |-----------------|-----------|
79
+ | 不在 git 倉庫中 | 告知使用者需要在 git 倉庫中執行 |
80
+ | git log 無結果 | 告知無符合條件的 commits |
81
+ | `docs/specs/` 目錄不存在 | 自動建立目錄 |
82
+ | commit message 格式不符合 Conventional Commits | 標記為 `[Unknown]` scope,仍嘗試分析 |
83
+
36
84
  ## Reference | 參考
37
85
 
38
86
  - SDD workflow: [sdd command](sdd.md)