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,100 @@
1
+ ---
2
+ source: ../../../core/security-standards.md
3
+ source_version: 1.1.0
4
+ translation_version: 1.1.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/security-standards.md) | 简体中文
10
+
11
+ # 安全标准
12
+
13
+ **版本**: 1.1.0
14
+ **最后更新**: 2026-01-29
15
+ **适用范围**: 所有软件项目
16
+ **范围**: universal
17
+ **行业标准**: OWASP Top 10 (2021), OWASP ASVS v4.0, NIST SP 800-53
18
+ **参考**: [owasp.org](https://owasp.org/Top10/)
19
+
20
+ > **详细说明和示例请参阅 [安全指南](../../../core/guides/security-guide.md)**
21
+
22
+ ---
23
+
24
+ ## 目的
25
+
26
+ 本标准定义软件开发的综合安全指南,涵盖安全编码实践、漏洞预防、认证/授权和安全测试。
27
+
28
+ **参考标准**:
29
+ - [OWASP Top 10 (2021)](https://owasp.org/Top10/)
30
+ - [OWASP ASVS v4.0](https://owasp.org/www-project-application-security-verification-standard/)
31
+ - [NIST SP 800-53](https://csrc.nist.gov/publications/detail/sp/800-53/rev-5/final)
32
+
33
+ ---
34
+
35
+ ## 核心安全原则
36
+
37
+ | 原则 | 实施方式 |
38
+ |------|---------|
39
+ | **最小权限** | 基于角色的访问控制、限时令牌 |
40
+ | **安全失败** | 认证错误时拒绝访问,不暴露堆栈跟踪 |
41
+ | **职责分离** | 开发/部署/管理使用不同角色 |
42
+ | **纵深防御** | 不依赖单一控制措施 |
43
+ | **默认安全** | 安全默认值,选择性开启较不安全的选项 |
44
+ | **零信任** | 验证每个请求,假设已被入侵 |
45
+
46
+ ---
47
+
48
+ ## OWASP Top 10 预防清单
49
+
50
+ | 漏洞 | 预防措施 |
51
+ |------|---------|
52
+ | **A01: 失效的访问控制** | 默认拒绝、服务端检查、验证所有权 |
53
+ | **A02: 加密失败** | 加密 PII、使用 TLS 1.3、使用密钥管理 |
54
+ | **A03: 注入** | 参数化查询、输入验证、使用 ORM |
55
+ | **A04: 不安全设计** | 威胁建模、在规格中包含安全需求 |
56
+ | **A05: 安全配置错误** | 移除默认值、禁用未使用功能、安全头 |
57
+ | **A06: 易受攻击的组件** | 维护 SBOM、使用 npm audit/Snyk 扫描、快速修补 |
58
+ | **A07: 认证失败** | 强密码、MFA、安全会话 |
59
+ | **A08: 完整性失败** | 代码签名、验证校验和、安全 CI/CD |
60
+ | **A09: 日志记录失败** | 记录安全事件、保护日志完整性 |
61
+ | **A10: SSRF** | URL 白名单、阻止内部 IP |
62
+
63
+ ---
64
+
65
+ ## 必需的安全头
66
+
67
+ ```http
68
+ Content-Security-Policy: default-src 'self'; script-src 'self'
69
+ X-Content-Type-Options: nosniff
70
+ X-Frame-Options: DENY
71
+ Strict-Transport-Security: max-age=31536000; includeSubDomains
72
+ X-XSS-Protection: 0
73
+ Referrer-Policy: strict-origin-when-cross-origin
74
+ Permissions-Policy: camera=(), microphone=(), geolocation=()
75
+ ```
76
+
77
+ ---
78
+
79
+ ## 安全测试
80
+
81
+ | 测试类型 | 工具 | 频率 |
82
+ |---------|------|------|
83
+ | **SAST**(静态分析) | SonarQube, CodeQL, Semgrep | 每次提交 |
84
+ | **DAST**(动态分析) | OWASP ZAP, Burp Suite | 每次发布 |
85
+ | **SCA**(依赖扫描) | npm audit, Snyk, Dependabot | 每日 |
86
+ | **密钥扫描** | git-secrets, TruffleHog | 每次提交 |
87
+
88
+ ---
89
+
90
+ ## 相关标准
91
+
92
+ - [部署标准](deployment-standards.md)
93
+ - [性能标准](performance-standards.md)
94
+ - [测试标准](testing-standards.md)
95
+
96
+ ---
97
+
98
+ ## 许可证
99
+
100
+ 本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
@@ -0,0 +1,106 @@
1
+ ---
2
+ source: ../../../core/systematic-debugging.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/systematic-debugging.md) | 简体中文
10
+
11
+ # 系统化调试工作流
12
+
13
+ **版本**: 1.0.0
14
+ **最后更新**: 2026-03-20
15
+ **适用范围**: 所有使用 AI 辅助开发的软件项目
16
+ **范围**: universal
17
+ **灵感来源**: [Superpowers](https://github.com/obra/superpowers) — systematic-debugging (MIT)
18
+
19
+ ---
20
+
21
+ ## 目的
22
+
23
+ 定义结构化的四阶段调试工作流,防止常见的"猜测修复"反模式。强制要求在尝试修复前先进行根因分析,并包含 **3-Strike Rule** 以提早发现架构问题。
24
+
25
+ ---
26
+
27
+ ## 术语表
28
+
29
+ | 术语 | 定义 |
30
+ |------|------|
31
+ | 根因 | 缺陷存在的根本原因,而非仅仅是症状 |
32
+ | 3-Strike Rule | 连续 3 次修复尝试失败后,怀疑架构问题 |
33
+ | 反向追踪 | 从错误症状追溯到产生源头 |
34
+ | 组件边界 | 两个模块或子系统之间的接口 |
35
+
36
+ ---
37
+
38
+ ## 核心原则 — 铁律
39
+
40
+ > **禁止跳过根因分析直接修复。**
41
+
42
+ 如果你发现自己在说"快速修复"、"试试看"或"现在应该可以了" — **停下来**,回到阶段 1。
43
+
44
+ ---
45
+
46
+ ## 四个阶段
47
+
48
+ ### 阶段 1:根因调查
49
+
50
+ 分析错误消息并追踪最近变更,形成初步假设。
51
+
52
+ 1. **仔细阅读错误** — 识别失败的确切位置和类型
53
+ 2. **追踪最近变更** — 使用 `git log`、`git diff`、`git blame` 查找变更内容
54
+ 3. **在组件边界添加诊断** — 在模块接口处插入日志/断点
55
+ 4. **记录观察** — 记录所见并形成初步假设
56
+
57
+ ### 阶段 2:模式分析
58
+
59
+ 将失败代码与类似的成功实现进行比较。
60
+
61
+ 1. **搜索类似的成功实现** — 在代码库中查找
62
+ 2. **识别差异** — 比较失败和成功代码之间的不同
63
+ 3. **检查最近的变更** — 确认是否有回归引入
64
+ 4. **验证假设** — 通过额外的日志/测试确认
65
+
66
+ ### 阶段 3:修复实施
67
+
68
+ 基于确认的根因实施修复。
69
+
70
+ 1. **先写测试** — 创建复现问题的失败测试
71
+ 2. **实施最小修复** — 只修改必需的内容
72
+ 3. **验证修复** — 测试现在应通过
73
+ 4. **检查副作用** — 运行完整测试套件
74
+
75
+ ### 阶段 4:回顾
76
+
77
+ 防止类似问题再次发生。
78
+
79
+ 1. **记录根因** — 在提交消息中说明
80
+ 2. **评估是否需要额外测试** — 防止回归
81
+ 3. **检查是否有类似模式** — 其他地方是否有同样的问题
82
+
83
+ ---
84
+
85
+ ## 3-Strike Rule
86
+
87
+ | 尝试 | 动作 |
88
+ |------|------|
89
+ | 第 1 次失败 | 重新审视假设,添加更多诊断 |
90
+ | 第 2 次失败 | 扩大调查范围,考虑上游原因 |
91
+ | 第 3 次失败 | **停止** — 怀疑架构问题,寻求审查 |
92
+
93
+ 连续 3 次修复失败后,问题很可能不在你认为的地方。需要退后一步,重新审视整体架构。
94
+
95
+ ---
96
+
97
+ ## 相关标准
98
+
99
+ - [验证证据](verification-evidence.md)
100
+ - [测试标准](testing-standards.md)
101
+
102
+ ---
103
+
104
+ ## 许可证
105
+
106
+ 本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
@@ -0,0 +1,116 @@
1
+ ---
2
+ source: ../../../core/test-governance.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/test-governance.md) | 简体中文
10
+
11
+ # 测试治理标准
12
+
13
+ **适用范围**: 所有软件项目
14
+ **范围**: universal
15
+
16
+ ---
17
+
18
+ ## 概述
19
+
20
+ 测试治理标准定义测试活动的策略、完成条件和环境管理策略。本标准将 ISO/IEC/IEEE 29119 正式过程与敏捷/Scrum 实践相结合。
21
+
22
+ ## 参考
23
+
24
+ | 标准/来源 | 内容 |
25
+ |-----------|------|
26
+ | ISO/IEC/IEEE 29119-2 | 测试过程 |
27
+ | ISO/IEC/IEEE 29119-3 | 测试文档(测试计划/测试用例) |
28
+ | ISO/IEC/IEEE 12207 | 验证过程 + 集成过程 |
29
+ | 敏捷/Scrum 指南 | 完成定义(DoD) |
30
+ | ISTQB 基础教学大纲 | 测试级别、测试类型 |
31
+ | Mike Cohn 测试金字塔 | 金字塔经验比例(推荐默认值) |
32
+
33
+ ## 术语
34
+
35
+ | 术语 | 标准来源 | 描述 |
36
+ |------|---------|------|
37
+ | 完成定义(DoD) | 敏捷/Scrum | 任务/功能完成的检查清单 |
38
+ | 测试完成条件 | ISO 29119-2 | 测试活动的退出条件 |
39
+ | 系统集成测试 | ISO 12207 | 非正式 ISO 术语,但为行业标准 |
40
+ | 金字塔比例 70/20/7/3 | Mike Cohn(经验值) | 推荐默认值,非强制 |
41
+
42
+ ---
43
+
44
+ ## 测试策略
45
+
46
+ ### 品质目标
47
+
48
+ | ID | 名称 | 度量 |
49
+ |----|------|------|
50
+ | QO-1 | 功能正确性 | 测试通过率 >= 95% |
51
+ | QO-2 | 回归预防 | CI 中零回归失败 |
52
+ | QO-3 | 代码品质 | 零 lint/类型错误,静态分析通过 |
53
+
54
+ ### 级别归属
55
+
56
+ | 级别 | 负责人 | 环境 | 金字塔比例 |
57
+ |------|--------|------|-----------|
58
+ | 单元测试(UT) | 开发者 | 本地 | 70% |
59
+ | 集成测试(IT) | 开发者 | 本地 / CI | 20% |
60
+ | 系统测试(ST) | QA / 开发者 | CI / SIT | 7% |
61
+ | E2E 测试 | QA | 预发布 | 3% |
62
+
63
+ ### 静态分析
64
+
65
+ 在测试执行前运行静态分析工具:
66
+
67
+ - `ruff check .`(Python)
68
+ - `eslint .`(TypeScript/JavaScript)
69
+ - `cargo clippy`(Rust)
70
+
71
+ ---
72
+
73
+ ## 测试完成条件
74
+
75
+ ### 按级别定义
76
+
77
+ | 级别 | 完成条件 |
78
+ |------|---------|
79
+ | **单元测试** | 所有测试通过、覆盖率 >= 目标、无 TODO 测试 |
80
+ | **集成测试** | API 契约验证通过、数据库迁移测试通过 |
81
+ | **系统测试** | 所有用户场景通过、性能目标达标 |
82
+ | **E2E 测试** | 关键用户流程通过、无阻塞级缺陷 |
83
+
84
+ ### 完成定义(DoD)检查清单
85
+
86
+ - [ ] 所有测试通过
87
+ - [ ] 代码审查已完成
88
+ - [ ] 文档已更新
89
+ - [ ] 无已知阻塞级缺陷
90
+ - [ ] 性能目标达标
91
+ - [ ] 安全扫描通过
92
+
93
+ ---
94
+
95
+ ## 环境管理
96
+
97
+ | 环境 | 用途 | 数据 |
98
+ |------|------|------|
99
+ | **本地** | 开发和单元测试 | 模拟数据 |
100
+ | **CI** | 自动化测试 | 测试夹具 |
101
+ | **SIT** | 集成测试 | 模拟数据 |
102
+ | **预发布** | E2E 和验收测试 | 脱敏生产数据 |
103
+
104
+ ---
105
+
106
+ ## 相关标准
107
+
108
+ - [测试标准](testing-standards.md)
109
+ - [验证证据](verification-evidence.md)
110
+ - [部署标准](deployment-standards.md)
111
+
112
+ ---
113
+
114
+ ## 许可证
115
+
116
+ 本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。