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
@@ -10,6 +10,54 @@ Map your current development phase to UDS commands. Get guidance on which tools
10
10
 
11
11
  將你目前的開發階段對應到 UDS 指令。了解在每個階段應該使用哪些工具。
12
12
 
13
+ ## Context-Aware Start | 情境感知啟動
14
+
15
+ When `/dev-workflow` is invoked, the AI assistant MUST first check the project's workflow state:
16
+
17
+ 當調用 `/dev-workflow` 時,AI 助手必須先檢查專案的工作流程狀態:
18
+
19
+ ### Step 1: Check Active Workflows | 檢查進行中的工作流程
20
+
21
+ ```bash
22
+ ls .workflow-state/*.yaml .workflow-state/*.json 2>/dev/null
23
+ ```
24
+
25
+ **If active workflows found | 如果有進行中的工作流程:**
26
+
27
+ 1. Display active workflow summary (name, phase, progress)
28
+ 2. Suggest resuming: "You have an active **{workflow}** at phase **{phase}**. Resume with `/{command}`?"
29
+ 3. Show the appropriate next command based on current phase
30
+
31
+ **Phase → Next Command Mapping | 階段 → 下一步指令對應:**
32
+
33
+ | Workflow | Current Phase | Suggested Next Command |
34
+ |----------|--------------|----------------------|
35
+ | SDD | discuss | `/sdd create` |
36
+ | SDD | create | `/sdd review` |
37
+ | SDD | review | `/sdd approve` |
38
+ | SDD | approve | `/sdd implement` |
39
+ | SDD | implement | `/sdd verify` |
40
+ | TDD | red | Write failing test, then run tests |
41
+ | TDD | green | Write minimal code to pass |
42
+ | TDD | refactor | Clean up, then `/tdd` for next cycle |
43
+ | BDD | discovery | `/bdd` to formulate scenarios |
44
+ | BDD | formulation | Write `.feature` file |
45
+ | BDD | automation | Implement step definitions |
46
+
47
+ **If no active workflows | 如果沒有進行中的工作流程:**
48
+
49
+ Proceed to show the standard phase overview below.
50
+
51
+ ### Step 2: Check for Active Specs | 檢查活躍規格
52
+
53
+ ```bash
54
+ ls docs/specs/SPEC-*.md 2>/dev/null
55
+ ```
56
+
57
+ If active specs exist, highlight them and suggest the appropriate workflow phase.
58
+
59
+ ---
60
+
13
61
  ## Usage | 用法
14
62
 
15
63
  ```bash
@@ -31,13 +79,13 @@ Map your current development phase to UDS commands. Get guidance on which tools
31
79
 
32
80
  | Phase | UDS Commands | 用途 |
33
81
  |-------|-------------|------|
34
- | **I. Planning** | `/brainstorm` `/requirement` `/sdd` `/reverse` | 需求、規格、逆向工程 |
35
- | **II. Testing** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` | 先寫測試再寫程式 |
36
- | **III. Implementation** | `/refactor` `/reverse` | 撰寫與改善程式碼 |
37
- | **IV. Quality** | `/checkin` `/review` | 提交前檢查與審查 |
38
- | **V. Release** | `/commit` `/changelog` `/release` | 版本、提交、發布 |
39
- | **VI. Docs** | `/docs` `/docgen` `/struct` | 文件與專案結構 |
40
- | **VII. Standards** | `/discover` `/guide` | 參考指南 |
82
+ | **I. Planning** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | 需求、規格、API/DB 設計 |
83
+ | **II. Testing** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | 先寫測試再寫程式 |
84
+ | **III. Implementation** | `/refactor` `/reverse` `/migrate` `/durable` | 撰寫、改善與遷移程式碼 |
85
+ | **IV. Quality** | `/checkin` `/review` `/security` `/scan` `/incident` | 品質、安全、事故回應 |
86
+ | **V. Release** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | 版本、提交、PR、CI/CD |
87
+ | **VI. Docs** | `/docs` `/docgen` | 文件與專案結構 |
88
+ | **VII. Standards** | `/discover` `/guide` `/metrics` `/audit` | 參考指南、指標、審計 |
41
89
  | **VIII. Advanced** | `/methodology` | 跨方法論工作流程 |
42
90
 
43
91
  ## Common Scenarios | 常見場景
@@ -60,6 +108,55 @@ Map your current development phase to UDS commands. Get guidance on which tools
60
108
  /discover → /reverse → /coverage → /refactor → /checkin → /commit
61
109
  ```
62
110
 
111
+ ### Security Review | 安全審查
112
+
113
+ ```
114
+ /scan → /security → /checkin → /commit
115
+ ```
116
+
117
+ ### API Design | API 設計
118
+
119
+ ```
120
+ /brainstorm → /api-design → /sdd → /derive → /tdd → /pr
121
+ ```
122
+
123
+ ## AI Agent Behavior | AI 代理行為
124
+
125
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
126
+
127
+ ### Entry Router | 進入路由
128
+
129
+ | Input | AI Action |
130
+ |-------|-----------|
131
+ | `/dev-workflow` | 先檢查 `.workflow-state/`,有活躍工作流程則顯示狀態,否則展示全階段總覽 |
132
+ | `/dev-workflow <phase>` | 展示指定階段的詳細指令和說明 |
133
+ | `/dev-workflow <scenario>` | 展示指定場景的推薦工作流程(new-feature / bug-fix / refactoring) |
134
+
135
+ ### Interaction Script | 互動腳本
136
+
137
+ 1. 檢查 `.workflow-state/` 和 `docs/specs/` 的活躍狀態
138
+ 2. 依據結果決定展示內容
139
+
140
+ **Decision: 活躍工作流程**
141
+ - IF 有進行中的 workflow → 顯示狀態摘要,建議 resume 命令
142
+ - IF 有活躍 spec → 提示 spec 進度,建議下一步
143
+ - ELSE → 展示完整階段總覽或指定內容
144
+
145
+ **Decision: 場景模式**
146
+ - IF 指定場景(new-feature / bug-fix / refactoring) → 展示該場景的推薦命令序列
147
+ - ELSE → 展示總覽表
148
+
149
+ ### Stop Points | 停止點
150
+
151
+ 此命令為純查詢/導引,無需停止點。
152
+
153
+ ### Error Handling | 錯誤處理
154
+
155
+ | Error Condition | AI Action |
156
+ |-----------------|-----------|
157
+ | 指定的 phase/scenario 不存在 | 列出可用的 phase 和 scenario |
158
+ | `.workflow-state/` 目錄不存在 | 跳過活躍工作流程檢查,直接展示總覽 |
159
+
63
160
  ## References | 參考
64
161
 
65
162
  - [Development Workflow Skill](../dev-workflow-guide/SKILL.md)
@@ -74,6 +74,45 @@ After discovery, the typical brownfield workflow is:
74
74
  3. `/sdd` - Write specification for new features
75
75
  4. `/tdd` or `/bdd` - Implement with test protection
76
76
 
77
+ ## AI Agent Behavior | AI 代理行為
78
+
79
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
80
+
81
+ ### Entry Router | 進入路由
82
+
83
+ | Input | AI Action |
84
+ |-------|-----------|
85
+ | `/discover` | 執行全專案健康評估(所有 5 個維度) |
86
+ | `/discover <area>` | 聚焦評估指定功能區域的相關模組 |
87
+
88
+ ### Interaction Script | 互動腳本
89
+
90
+ 1. 掃描專案結構(package.json、目錄結構、配置檔)
91
+ 2. 逐維度分析(Architecture → Dependencies → Test Coverage → Security → Technical Debt)
92
+ 3. 計算各維度分數和整體分數
93
+ 4. 生成健康報告
94
+
95
+ **Decision: 整體評估**
96
+ - IF 有 Critical 級問題 → 判定 NO-GO,列出必須修復項目
97
+ - IF 有 Warning 級問題 → 判定 CONDITIONAL,列出建議修復項目
98
+ - IF 全部 Good → 判定 GO,建議進入下一步
99
+
100
+ 🛑 **STOP**: 報告展示後等待使用者決定(GO / NO-GO / CONDITIONAL)
101
+
102
+ ### Stop Points | 停止點
103
+
104
+ | Stop Point | 等待內容 |
105
+ |-----------|---------|
106
+ | 健康報告展示後 | 使用者決定是否繼續開發 |
107
+
108
+ ### Error Handling | 錯誤處理
109
+
110
+ | Error Condition | AI Action |
111
+ |-----------------|-----------|
112
+ | 無 package.json 或專案配置 | 仍執行可用的維度分析,標記不可用的維度為 N/A |
113
+ | 指定的功能區域不存在 | 列出可用的模組/目錄供選擇 |
114
+ | npm audit 無法執行 | 跳過相依安全檢查,標記為 SKIP |
115
+
77
116
  ## References | 參考
78
117
 
79
118
  * [Project Discovery Skill](../project-discovery/SKILL.md)
@@ -56,6 +56,41 @@ sources:
56
56
  language: [en, zh-TW]
57
57
  ```
58
58
 
59
+ ## AI Agent Behavior | AI 代理行為
60
+
61
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
62
+
63
+ ### Entry Router | 進入路由
64
+
65
+ | Input | AI Action |
66
+ |-------|-----------|
67
+ | `/docgen` | 尋找預設配置檔 `.usage-docs.yaml`,找到則使用,否則詢問 |
68
+ | `/docgen <config>` | 使用指定配置檔 |
69
+ | `/docgen --format <type>` | 僅生成指定格式(cheatsheet / reference / usage-guide) |
70
+
71
+ ### Interaction Script | 互動腳本
72
+
73
+ 1. 載入配置檔,解析來源和輸出設定
74
+ 2. 掃描來源檔案,擷取描述、選項、範例
75
+ 3. 依配置格式生成文件
76
+ 4. 展示生成的檔案清單和預覽
77
+
78
+ 🛑 **STOP**: 展示生成結果後等待使用者確認寫入
79
+
80
+ ### Stop Points | 停止點
81
+
82
+ | Stop Point | 等待內容 |
83
+ |-----------|---------|
84
+ | 文件生成後 | 確認內容正確並寫入 |
85
+
86
+ ### Error Handling | 錯誤處理
87
+
88
+ | Error Condition | AI Action |
89
+ |-----------------|-----------|
90
+ | 配置檔不存在 | 建議建立 `.usage-docs.yaml`,提供模板 |
91
+ | 來源目錄為空 | 告知無內容可擷取,列出已掃描的路徑 |
92
+ | 輸出目錄不存在 | 自動建立目錄 |
93
+
59
94
  ## References | 參考
60
95
 
61
96
  * [Docs Generator Skill](../docs-generator/SKILL.md)
@@ -53,6 +53,46 @@ Used with `/docs generate`:
53
53
  /docs structure
54
54
  ```
55
55
 
56
+ ## AI Agent Behavior | AI 代理行為
57
+
58
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
59
+
60
+ ### Entry Router | 進入路由
61
+
62
+ | Input | AI Action |
63
+ |-------|-----------|
64
+ | `/docs` | 展示專案文件狀態總覽(哪些文件存在、是否過時) |
65
+ | `/docs generate` | 生成文件工件(速查表、參考手冊) |
66
+ | `/docs generate --lang <lang>` | 生成指定語言的文件 |
67
+ | `/docs readme` | 審計並更新 README.md |
68
+ | `/docs api` | 從程式碼生成 API 文件 |
69
+ | `/docs structure` | 檢查文件目錄結構是否符合規範 |
70
+
71
+ ### Interaction Script | 互動腳本
72
+
73
+ **Decision: 子命令分派**
74
+ - IF `generate` → 執行 `/docgen` 的生成流程
75
+ - IF `readme` → 分析 README 完整性,建議更新
76
+ - IF `api` → 掃描程式碼,生成 API 文件
77
+ - IF `structure` → 檢查目錄結構,報告缺失
78
+ - IF 無子命令 → 展示文件狀態總覽
79
+
80
+ 🛑 **STOP**: 生成結果展示後等待使用者確認寫入(僅 generate / readme / api 子命令)
81
+
82
+ ### Stop Points | 停止點
83
+
84
+ | Stop Point | 等待內容 |
85
+ |-----------|---------|
86
+ | 生成結果展示後 | 確認寫入(generate / readme / api) |
87
+
88
+ ### Error Handling | 錯誤處理
89
+
90
+ | Error Condition | AI Action |
91
+ |-----------------|-----------|
92
+ | 子命令無效 | 列出可用子命令 |
93
+ | 目標目錄不存在 | 自動建立或詢問使用者 |
94
+ | 無程式碼可分析(api 子命令) | 告知並建議檢查路徑 |
95
+
56
96
  ## References | 參考
57
97
 
58
98
  * [Documentation Guide Skill](../documentation-guide/SKILL.md)
@@ -0,0 +1,79 @@
1
+ ---
2
+ description: "[UDS] Guide workflow failure recovery with checkpoints, retries and rollback strategies"
3
+ allowed-tools: Read, Write, Grep, Glob
4
+ argument-hint: "[workflow name or failure context | 工作流名稱或失敗情境]"
5
+ ---
6
+
7
+ # Durable Execution Assistant | 持久執行助手
8
+
9
+ Guide workflow failure recovery with checkpoints, retries and rollback strategies.
10
+
11
+ 引導工作流程故障恢復,包含檢查點、重試與回滾策略。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ DETECT ──► DIAGNOSE ──► RECOVER ──► VERIFY ──► CONTINUE
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/durable` - Start interactive failure recovery
22
+ - `/durable --checkpoint` - Design checkpoint strategy
23
+ - `/durable --retry` - Design retry policy
24
+ - `/durable --rollback` - Plan rollback strategy
25
+ - `/durable <workflow>` - Analyze specific workflow
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
+ | `/durable` | 詢問工作流程或失敗情境,進入 DETECT |
36
+ | `/durable --checkpoint` | 直接進入檢查點策略設計 |
37
+ | `/durable --retry` | 直接進入重試策略設計 |
38
+ | `/durable --rollback` | 直接進入回滾策略規劃 |
39
+ | `/durable <workflow>` | 分析指定工作流程 |
40
+
41
+ ### Interaction Script | 互動腳本
42
+
43
+ #### DETECT / DIAGNOSE
44
+ 1. 分析工作流程結構和失敗點
45
+ 2. 識別需要持久化的狀態
46
+
47
+ **Decision: 故障類型**
48
+ - IF 暫時性故障(網路、超時) → 建議重試策略(exponential backoff)
49
+ - IF 資料不一致 → 建議檢查點 + 補償交易
50
+ - IF 不可逆失敗 → 建議回滾策略
51
+
52
+ 🛑 **STOP**: 診斷結果展示後等待使用者確認策略方向
53
+
54
+ #### RECOVER
55
+ 1. 設計選定的恢復策略
56
+ 2. 展示策略細節和程式碼建議
57
+
58
+ 🛑 **STOP**: 策略設計後等待使用者確認
59
+
60
+ #### VERIFY
61
+ 1. 建議驗證步驟確認恢復成功
62
+
63
+ ### Stop Points | 停止點
64
+
65
+ | Phase | Stop Point | 等待內容 |
66
+ |-------|-----------|---------|
67
+ | DIAGNOSE | 診斷結果後 | 確認策略方向 |
68
+ | RECOVER | 策略設計後 | 確認實施 |
69
+
70
+ ### Error Handling | 錯誤處理
71
+
72
+ | Error Condition | AI Action |
73
+ |-----------------|-----------|
74
+ | 無法識別工作流程模式 | 詢問使用者描述工作流程步驟 |
75
+ | 多種故障類型並存 | 逐一分析,建議組合策略 |
76
+
77
+ ## Reference | 參考
78
+
79
+ - Full standard: [durable-execution-assistant](../durable-execution-assistant/SKILL.md)
@@ -0,0 +1,84 @@
1
+ ---
2
+ description: "[UDS] Guide incident response, root cause analysis and post-mortem documentation"
3
+ allowed-tools: Read, Write, Grep, Glob
4
+ argument-hint: "[incident description or severity | 事故描述或嚴重程度]"
5
+ ---
6
+
7
+ # Incident Response Assistant | 事故回應助手
8
+
9
+ Guide incident response, root cause analysis and post-mortem documentation.
10
+
11
+ 引導事故回應、根因分析和事後檢討文件撰寫。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ DETECT ──► TRIAGE ──► MITIGATE ──► RESOLVE ──► POST-MORTEM
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/incident` - Start interactive incident response
22
+ - `/incident "API 500 errors"` - Respond to specific incident
23
+ - `/incident --post-mortem` - Write post-mortem for resolved incident
24
+ - `/incident --sev1` - Start SEV1 response protocol
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
+ | `/incident` | 詢問事故描述和嚴重程度,進入 DETECT |
35
+ | `/incident "description"` | 以描述為起點,進入 TRIAGE |
36
+ | `/incident --post-mortem` | 直接進入 POST-MORTEM 階段 |
37
+ | `/incident --sev1` | 啟動 SEV1 緊急回應協議 |
38
+
39
+ ### Interaction Script | 互動腳本
40
+
41
+ #### DETECT / TRIAGE
42
+ 1. 收集事故症狀和影響範圍
43
+ 2. 評估嚴重程度(SEV1-4)
44
+
45
+ **Decision: 嚴重程度**
46
+ - IF SEV1/SEV2 → 立即列出緊急行動清單,建議通知相關人員
47
+ - IF SEV3/SEV4 → 按標準流程排查
48
+
49
+ 🛑 **STOP**: 嚴重程度評估後等待使用者確認
50
+
51
+ #### MITIGATE
52
+ 1. 建議即時緩解措施
53
+ 2. 追蹤緩解狀態
54
+
55
+ #### RESOLVE
56
+ 1. 引導根因分析(5 Whys)
57
+ 2. 建議修復方案
58
+
59
+ 🛑 **STOP**: 修復方案確認後等待使用者確認實施
60
+
61
+ #### POST-MORTEM
62
+ 1. 收集時間線、根因、影響
63
+ 2. 生成事後檢討文件
64
+
65
+ 🛑 **STOP**: 文件生成後等待使用者確認寫入
66
+
67
+ ### Stop Points | 停止點
68
+
69
+ | Phase | Stop Point | 等待內容 |
70
+ |-------|-----------|---------|
71
+ | TRIAGE | 嚴重程度評估後 | 確認分級 |
72
+ | RESOLVE | 修復方案提出後 | 確認實施 |
73
+ | POST-MORTEM | 文件生成後 | 確認寫入 |
74
+
75
+ ### Error Handling | 錯誤處理
76
+
77
+ | Error Condition | AI Action |
78
+ |-----------------|-----------|
79
+ | 無法判斷嚴重程度 | 列出分級標準,請使用者選擇 |
80
+ | 缺乏足夠症狀資訊 | 引導收集更多資訊(日誌、監控、錯誤訊息) |
81
+
82
+ ## Reference | 參考
83
+
84
+ - Full standard: [incident-response-assistant](../incident-response-assistant/SKILL.md)
@@ -280,6 +280,61 @@ See `uds init --help` for all options.
280
280
  - Commands (for supported AI tools)
281
281
  - `manifest.json` for tracking installation
282
282
 
283
+ ## AI Agent Behavior | AI 代理行為
284
+
285
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
286
+
287
+ ### Entry Router | 進入路由
288
+
289
+ | Input | AI Action | AI 行為 |
290
+ |-------|-----------|--------|
291
+ | `/init` | 進入互動模式,逐步詢問 13 個配置問題 | Enter interactive mode, 13-step configuration |
292
+ | `/init --yes` | 使用所有預設值直接執行 | Execute with all defaults |
293
+ | `/init --level N` | 設定採用層級,其餘進入互動或搭配 `--yes` | Set level, rest interactive or defaults |
294
+ | `/init --level N --yes` | 指定層級 + 所有預設值直接執行 | Specified level + all defaults |
295
+
296
+ ### Interaction Script | 互動腳本
297
+
298
+ **Decision: 互動 vs 快速模式**
299
+ - IF `--yes` 存在 → 使用預設值直接執行,跳過所有 AskUserQuestion
300
+ - ELSE → 進入 13 步驟互動流程
301
+
302
+ #### 互動流程(13 步驟)
303
+
304
+ 1. **偵測專案** — 自動偵測語言、框架、AI 工具
305
+ 2. **AI 工具選擇** — 多選,預選偵測到的工具
306
+ 3. **Skills 安裝** — Smart Grouping(1-2 工具合併 / 3+ 工具兩階段)
307
+ 4. **Commands 安裝** — Smart Grouping(同上策略)
308
+ 5. **標準範圍** — Lean(建議)或 Complete
309
+ 6. **採用層級** — Level 1/2/3
310
+ 7. **標準格式** — AI / Human / Both
311
+ 8. **標準選項** — Git Workflow、Merge Strategy、Commit Language、Test Levels
312
+ 9. **語言擴展** — 偵測到語言時詢問
313
+ 10. **框架擴展** — 偵測到框架時詢問
314
+ 11. **地區設定** — English / Traditional Chinese
315
+ 12. **內容模式** — Standard / Full Embed / Minimal
316
+ 13. **確認並執行** — 展示摘要,確認後一次執行所有安裝
317
+
318
+ **IMPORTANT**: AskUserQuestion 最多 4 個選項。3+ 工具時必須使用 Smart Grouping 兩階段策略。
319
+
320
+ 🛑 **STOP**: Step 13 展示配置摘要後等待使用者確認再執行安裝
321
+
322
+ ### Stop Points | 停止點
323
+
324
+ | Stop Point | 等待內容 |
325
+ |-----------|---------|
326
+ | 配置摘要展示後 | 確認安裝或修改配置 |
327
+ | 偵測到已有 `.standards/` | 詢問是否覆寫或跳過 |
328
+
329
+ ### Error Handling | 錯誤處理
330
+
331
+ | Error Condition | AI Action |
332
+ |-----------------|-----------|
333
+ | 已有 `.standards/` 目錄 | 提示使用 `/update` 更新,或確認覆寫 |
334
+ | 無法偵測專案語言 | 跳過語言擴展步驟,繼續流程 |
335
+ | npm/npx 不可用 | 提示安裝 Node.js >= 18 |
336
+ | AskUserQuestion 超過 4 選項 | 使用 Smart Grouping 拆分為多階段 |
337
+
283
338
  ## Reference | 參考
284
339
 
285
340
  - CLI documentation: `uds init --help`
@@ -268,6 +268,78 @@ You can also configure methodology settings using:
268
268
 
269
269
  ---
270
270
 
271
+ ## AI Agent Behavior | AI 代理行為
272
+
273
+ > Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
274
+
275
+ ### Entry Router | 進入路由
276
+
277
+ | Input | AI Action | AI 行為 |
278
+ |-------|-----------|--------|
279
+ | `/methodology` | 顯示當前方法論狀態和 checklist | Show current status |
280
+ | `/methodology status` | 同上 | Same as above |
281
+ | `/methodology switch <id>` | 檢查未提交變更 → 切換方法論 | Check uncommitted → switch |
282
+ | `/methodology phase` | 顯示當前階段 | Show current phase |
283
+ | `/methodology phase <name>` | 移動到指定階段 | Move to specified phase |
284
+ | `/methodology checklist` | 顯示當前階段的 checklist | Show phase checklist |
285
+ | `/methodology skip` | 跳過當前階段(含警告) | Skip phase with warning |
286
+ | `/methodology list` | 列出所有可用方法論 | List available methodologies |
287
+ | `/methodology create` | 啟動自訂方法論建立精靈 | Start creation wizard |
288
+
289
+ ### Interaction Script | 互動腳本
290
+
291
+ #### Status / Checklist
292
+
293
+ 1. 讀取 `.standards/manifest.json` 中的 methodology 配置
294
+ 2. 顯示狀態面板(方法論、階段、checklist 進度)
295
+
296
+ #### Switch
297
+
298
+ 1. 檢查是否有未提交變更(`git status`)
299
+
300
+ **Decision: 未提交變更**
301
+ - IF 有未提交變更 → 顯示警告,提供 4 選項:Commit first / Stash / Switch anyway / Cancel
302
+ - IF 無變更 → 直接切換
303
+
304
+ 🛑 **STOP**: 有未提交變更時等待使用者選擇處理方式
305
+
306
+ 2. 更新 manifest 中的 active methodology
307
+ 3. 顯示切換結果和新方法論的第一個階段
308
+
309
+ #### Skip
310
+
311
+ 1. 檢查當前 checklist 未完成項目
312
+ 2. 顯示警告(含已跳過次數)
313
+
314
+ 🛑 **STOP**: 顯示跳過警告後等待使用者確認
315
+
316
+ **Decision: 跳過限制**
317
+ - IF 已達跳過上限(skipLimit) → 強制顯示嚴重警告
318
+ - ELSE → 記錄跳過,進入下一階段
319
+
320
+ #### Create
321
+
322
+ 1. 啟動互動式精靈,引導使用者定義自訂方法論
323
+
324
+ 🛑 **STOP**: 定義完成後展示方法論結構,等待確認寫入
325
+
326
+ ### Stop Points | 停止點
327
+
328
+ | Stop Point | 等待內容 |
329
+ |-----------|---------|
330
+ | Switch 有未提交變更 | 使用者選擇處理方式 |
331
+ | Skip 確認 | 使用者確認跳過 |
332
+ | Create 完成 | 使用者確認寫入自訂方法論 |
333
+
334
+ ### Error Handling | 錯誤處理
335
+
336
+ | Error Condition | AI Action |
337
+ |-----------------|-----------|
338
+ | 方法論未啟用 | 提示執行 `/methodology switch <id>` |
339
+ | 指定的方法論不存在 | 列出可用方法論(`/methodology list`) |
340
+ | 指定的階段在當前方法論中不存在 | 列出可用階段 |
341
+ | manifest 無 methodology 配置 | 提示透過 `/config methodology` 啟用 |
342
+
271
343
  ## Reference | 參考
272
344
 
273
345
  - [Methodology System Skill](../methodology-system/SKILL.md) - Full skill documentation
@@ -0,0 +1,65 @@
1
+ ---
2
+ description: "[UDS] Track development metrics, code quality indicators and project health"
3
+ allowed-tools: Read, Grep, Glob, Bash(npm:*, git log:*)
4
+ argument-hint: "[metric type or module | 指標類型或模組]"
5
+ ---
6
+
7
+ # Metrics Dashboard Assistant | 指標儀表板助手
8
+
9
+ Track development metrics, code quality indicators and project health.
10
+
11
+ 追蹤開發指標、程式碼品質指示器與專案健康狀態。
12
+
13
+ ## Workflow | 工作流程
14
+
15
+ ```
16
+ COLLECT ──► ANALYZE ──► REPORT ──► TREND
17
+ ```
18
+
19
+ ## Usage | 使用方式
20
+
21
+ - `/metrics` - Run full metrics analysis
22
+ - `/metrics --quality` - Code quality metrics only
23
+ - `/metrics --debt` - Technical debt analysis
24
+ - `/metrics --test` - Test metrics only
25
+ - `/metrics src/` - Analyze specific module
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
+ | `/metrics` | 執行全面指標分析 |
36
+ | `/metrics --quality` | 僅分析程式碼品質指標 |
37
+ | `/metrics --debt` | 僅分析技術債 |
38
+ | `/metrics --test` | 僅分析測試指標 |
39
+ | `/metrics <path>` | 分析指定模組 |
40
+
41
+ ### Interaction Script | 互動腳本
42
+
43
+ 1. 偵測專案結構和可用工具
44
+ 2. 收集指標資料(git log、測試覆蓋率、程式碼複雜度)
45
+ 3. 分析趨勢和異常
46
+ 4. 生成報告
47
+
48
+ 🛑 **STOP**: 報告展示後等待使用者決定是否採取行動
49
+
50
+ ### Stop Points | 停止點
51
+
52
+ | Stop Point | 等待內容 |
53
+ |-----------|---------|
54
+ | 報告展示後 | 使用者決定後續行動 |
55
+
56
+ ### Error Handling | 錯誤處理
57
+
58
+ | Error Condition | AI Action |
59
+ |-----------------|-----------|
60
+ | 無法執行覆蓋率工具 | 跳過該指標,報告可用的其他指標 |
61
+ | git 歷史不足以分析趨勢 | 僅報告當前快照,標記趨勢為 N/A |
62
+
63
+ ## Reference | 參考
64
+
65
+ - Full standard: [metrics-dashboard-assistant](../metrics-dashboard-assistant/SKILL.md)