universal-dev-standards 5.17.0 → 6.1.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 (563) hide show
  1. package/bin/uds.js +13 -135
  2. package/bundled/ai/options/commit-message/bilingual.ai.yaml +19 -1
  3. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +13 -4
  4. package/bundled/ai/standards/accessibility-standards.ai.yaml +1 -1
  5. package/bundled/ai/standards/ai-response-navigation.ai.yaml +15 -2
  6. package/bundled/ai/standards/api-design-standards.ai.yaml +27 -4
  7. package/bundled/ai/standards/behavior-snapshot.ai.yaml +86 -9
  8. package/bundled/ai/standards/checkin-standards.ai.yaml +3 -3
  9. package/bundled/ai/standards/code-review.ai.yaml +2 -2
  10. package/bundled/ai/standards/context-aware-loading.ai.yaml +3 -3
  11. package/bundled/ai/standards/data-migration-testing.ai.yaml +79 -3
  12. package/bundled/ai/standards/deprecation-standards.ai.yaml +10 -2
  13. package/bundled/ai/standards/developer-memory.ai.yaml +4 -3
  14. package/bundled/ai/standards/documentation-writing-standards.ai.yaml +1 -1
  15. package/bundled/ai/standards/flow-based-testing.ai.yaml +2 -2
  16. package/bundled/ai/standards/forward-derivation-standards.ai.yaml +26 -2
  17. package/bundled/ai/standards/frontend-design-standards.ai.yaml +33 -3
  18. package/bundled/ai/standards/full-coverage-testing.ai.yaml +34 -2
  19. package/bundled/ai/standards/git-worktree.ai.yaml +3 -3
  20. package/bundled/ai/standards/logging.ai.yaml +97 -3
  21. package/bundled/ai/standards/mock-boundary.ai.yaml +48 -2
  22. package/bundled/ai/standards/model-provenance.ai.yaml +297 -0
  23. package/bundled/ai/standards/model-selection.ai.yaml +11 -2
  24. package/bundled/ai/standards/observability-standards.ai.yaml +10 -0
  25. package/bundled/ai/standards/performance-standards.ai.yaml +46 -1
  26. package/bundled/ai/standards/pii-classification.ai.yaml +15 -1
  27. package/bundled/ai/standards/pipeline-security-gates.ai.yaml +10 -0
  28. package/bundled/ai/standards/privacy-standards.ai.yaml +2 -2
  29. package/bundled/ai/standards/project-context-memory.ai.yaml +2 -2
  30. package/bundled/ai/standards/push-standards.ai.yaml +14 -3
  31. package/bundled/ai/standards/refactoring-standards.ai.yaml +68 -3
  32. package/bundled/ai/standards/requirement-engineering.ai.yaml +42 -3
  33. package/bundled/ai/standards/resource-cost-boundary.ai.yaml +279 -0
  34. package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +55 -2
  35. package/bundled/ai/standards/security-testing.ai.yaml +13 -2
  36. package/bundled/ai/standards/self-review-protocol.ai.yaml +15 -10
  37. package/bundled/ai/standards/skill-standard-alignment-check.ai.yaml +37 -2
  38. package/bundled/ai/standards/user-journey-testing.ai.yaml +107 -0
  39. package/bundled/ai/standards/verification-evidence.ai.yaml +88 -5
  40. package/bundled/ai/standards/verification-oracle.ai.yaml +278 -0
  41. package/bundled/ai/standards/versioning.ai.yaml +32 -38
  42. package/bundled/core/acceptance-criteria-traceability.md +15 -5
  43. package/bundled/core/accessibility-standards.md +8 -4
  44. package/bundled/core/ai-friendly-architecture.md +1 -1
  45. package/bundled/core/ai-response-navigation.md +31 -3
  46. package/bundled/core/anti-sycophancy-prompting.md +1 -1
  47. package/bundled/core/api-design-standards.md +92 -7
  48. package/bundled/core/audit-trail.md +119 -0
  49. package/bundled/core/behavior-snapshot.md +94 -7
  50. package/bundled/core/browser-compatibility-standards.md +15 -2
  51. package/bundled/core/checkin-standards.md +10 -3
  52. package/bundled/core/code-review-checklist.md +10 -2
  53. package/bundled/core/container-image-standards.md +97 -0
  54. package/bundled/core/context-aware-loading.md +2 -2
  55. package/bundled/core/cost-budget-test.md +1 -1
  56. package/bundled/core/cross-flow-regression.md +3 -2
  57. package/bundled/core/data-contract.md +104 -0
  58. package/bundled/core/data-migration-testing.md +90 -0
  59. package/bundled/core/data-pipeline.md +113 -0
  60. package/bundled/core/deprecation-standards.md +16 -2
  61. package/bundled/core/developer-memory.md +13 -8
  62. package/bundled/core/documentation-writing-standards.md +2 -2
  63. package/bundled/core/error-code-standards.md +4 -3
  64. package/bundled/core/feature-discovery-standards.md +191 -0
  65. package/bundled/core/flaky-test-management.md +1 -1
  66. package/bundled/core/flow-based-testing.md +3 -3
  67. package/bundled/core/forward-derivation-standards.md +33 -5
  68. package/bundled/core/frontend-design-standards.md +93 -4
  69. package/bundled/core/full-coverage-testing.md +72 -0
  70. package/bundled/core/git-worktree.md +4 -4
  71. package/bundled/core/guides/performance-guide.md +1 -1
  72. package/bundled/core/guides/security-guide.md +1 -1
  73. package/bundled/core/health-check-standards.md +2 -2
  74. package/bundled/core/iac-design-principles.md +97 -0
  75. package/bundled/core/incident-response.md +119 -0
  76. package/bundled/core/license-compliance.md +2 -0
  77. package/bundled/core/logging-standards.md +78 -2
  78. package/bundled/core/mock-boundary.md +54 -2
  79. package/bundled/core/model-provenance.md +181 -0
  80. package/bundled/core/model-selection.md +27 -2
  81. package/bundled/core/multi-environment-e2e-testing.md +195 -0
  82. package/bundled/core/packaging-standards.md +1 -0
  83. package/bundled/core/performance-standards.md +96 -2
  84. package/bundled/core/pii-classification.md +148 -0
  85. package/bundled/core/pipeline-security-gates.md +22 -2
  86. package/bundled/core/postmortem-standards.md +2 -0
  87. package/bundled/core/prd-standards.md +91 -0
  88. package/bundled/core/privacy-standards.md +14 -3
  89. package/bundled/core/product-metrics-standards.md +100 -0
  90. package/bundled/core/project-context-memory.md +8 -2
  91. package/bundled/core/prompt-regression.md +1 -1
  92. package/bundled/core/push-standards.md +82 -0
  93. package/bundled/core/refactoring-standards.md +44 -3
  94. package/bundled/core/replay-test.md +1 -1
  95. package/bundled/core/requirement-engineering.md +2 -2
  96. package/bundled/core/resource-cost-boundary.md +180 -0
  97. package/bundled/core/reverse-engineering-standards.md +66 -2
  98. package/bundled/core/runbook.md +113 -0
  99. package/bundled/core/schema-evolution.md +105 -0
  100. package/bundled/core/secret-management-standards.md +110 -0
  101. package/bundled/core/security-testing.md +26 -2
  102. package/bundled/core/self-review-protocol.md +15 -10
  103. package/bundled/core/skill-standard-alignment-check.md +53 -0
  104. package/bundled/core/slo-sli.md +109 -0
  105. package/bundled/core/smoke-test.md +1 -1
  106. package/bundled/core/tech-debt-standards.md +1 -1
  107. package/bundled/core/test-data-standards.md +2 -2
  108. package/bundled/core/user-journey-testing.md +102 -0
  109. package/bundled/core/user-story-mapping.md +96 -0
  110. package/bundled/core/verification-evidence.md +170 -10
  111. package/bundled/core/verification-oracle.md +167 -0
  112. package/bundled/core/versioning.md +133 -109
  113. package/bundled/locales/COVERAGE.md +94 -77
  114. package/bundled/locales/zh-CN/CHANGELOG.md +94 -6
  115. package/bundled/locales/zh-CN/CLAUDE.md +1 -1
  116. package/bundled/locales/zh-CN/MAINTENANCE.md +42 -661
  117. package/bundled/locales/zh-CN/README.md +25 -12
  118. package/bundled/locales/zh-CN/SECURITY.md +2 -2
  119. package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
  120. package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +6 -1
  121. package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +4 -6
  122. package/bundled/locales/zh-CN/core/accessibility-standards.md +1 -1
  123. package/bundled/locales/zh-CN/core/adversarial-test.md +226 -0
  124. package/bundled/locales/zh-CN/core/agent-behavior-discipline.md +187 -0
  125. package/bundled/locales/zh-CN/core/ai-response-navigation.md +32 -6
  126. package/bundled/locales/zh-CN/core/anti-sycophancy-prompting.md +1 -1
  127. package/bundled/locales/zh-CN/core/api-design-standards.md +1 -1
  128. package/bundled/locales/zh-CN/core/behavior-snapshot.md +335 -0
  129. package/bundled/locales/zh-CN/core/browser-compatibility-standards.md +239 -0
  130. package/bundled/locales/zh-CN/core/cd-deployment-strategies.md +135 -0
  131. package/bundled/locales/zh-CN/core/chaos-injection-tests.md +130 -0
  132. package/bundled/locales/zh-CN/core/checkin-standards.md +1 -1
  133. package/bundled/locales/zh-CN/core/code-review-checklist.md +1 -1
  134. package/bundled/locales/zh-CN/core/container-security.md +535 -0
  135. package/bundled/locales/zh-CN/core/context-aware-loading.md +1 -1
  136. package/bundled/locales/zh-CN/core/contract-testing-standards.md +191 -0
  137. package/bundled/locales/zh-CN/core/cost-budget-test.md +86 -0
  138. package/bundled/locales/zh-CN/core/cross-flow-regression.md +200 -0
  139. package/bundled/locales/zh-CN/core/data-migration-testing.md +217 -0
  140. package/bundled/locales/zh-CN/core/deployment-standards.md +328 -9
  141. package/bundled/locales/zh-CN/core/deprecation-standards.md +1 -1
  142. package/bundled/locales/zh-CN/core/developer-memory.md +2 -2
  143. package/bundled/locales/zh-CN/core/disaster-recovery-drill.md +87 -0
  144. package/bundled/locales/zh-CN/core/documentation-structure.md +1 -1
  145. package/bundled/locales/zh-CN/core/documentation-writing-standards.md +1 -1
  146. package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
  147. package/bundled/locales/zh-CN/core/feature-manifest-standard.md +222 -0
  148. package/bundled/locales/zh-CN/core/flaky-test-management.md +87 -0
  149. package/bundled/locales/zh-CN/core/flow-based-testing.md +284 -0
  150. package/bundled/locales/zh-CN/core/forward-derivation-standards.md +3 -4
  151. package/bundled/locales/zh-CN/core/frontend-design-standards.md +1 -1
  152. package/bundled/locales/zh-CN/core/full-coverage-testing.md +269 -0
  153. package/bundled/locales/zh-CN/core/git-worktree.md +1 -1
  154. package/bundled/locales/zh-CN/core/governance-layer.md +160 -0
  155. package/bundled/locales/zh-CN/core/guides/performance-guide.md +515 -0
  156. package/bundled/locales/zh-CN/core/guides/security-guide.md +494 -0
  157. package/bundled/locales/zh-CN/core/knowledge-graph-memory.md +128 -0
  158. package/bundled/locales/zh-CN/core/license-compliance.md +131 -0
  159. package/bundled/locales/zh-CN/core/llm-output-validation.md +192 -0
  160. package/bundled/locales/zh-CN/core/logging-standards.md +205 -7
  161. package/bundled/locales/zh-CN/core/mock-boundary.md +161 -0
  162. package/bundled/locales/zh-CN/core/model-selection.md +28 -5
  163. package/bundled/locales/zh-CN/core/mutation-testing.md +106 -0
  164. package/bundled/locales/zh-CN/core/no-cicd-deployment.md +219 -0
  165. package/bundled/locales/zh-CN/core/packaging-standards.md +77 -5
  166. package/bundled/locales/zh-CN/core/pipeline-security-gates.md +146 -0
  167. package/bundled/locales/zh-CN/core/policy-as-code-testing.md +203 -0
  168. package/bundled/locales/zh-CN/core/privacy-standards.md +1 -1
  169. package/bundled/locales/zh-CN/core/project-context-memory.md +1 -1
  170. package/bundled/locales/zh-CN/core/prompt-regression.md +88 -0
  171. package/bundled/locales/zh-CN/core/property-based-testing.md +87 -0
  172. package/bundled/locales/zh-CN/core/release-quality-manifest.md +207 -0
  173. package/bundled/locales/zh-CN/core/release-readiness-gate.md +193 -0
  174. package/bundled/locales/zh-CN/core/replay-test.md +102 -0
  175. package/bundled/locales/zh-CN/core/requirement-engineering.md +1 -1
  176. package/bundled/locales/zh-CN/core/reverse-engineering-standards.md +46 -1
  177. package/bundled/locales/zh-CN/core/rollback-standards.md +120 -0
  178. package/bundled/locales/zh-CN/core/sast-advanced.md +309 -0
  179. package/bundled/locales/zh-CN/core/secure-op.md +328 -0
  180. package/bundled/locales/zh-CN/core/security-testing.md +113 -0
  181. package/bundled/locales/zh-CN/core/self-review-protocol.md +172 -0
  182. package/bundled/locales/zh-CN/core/server-ops-security.md +507 -0
  183. package/bundled/locales/zh-CN/core/smoke-test.md +79 -0
  184. package/bundled/locales/zh-CN/core/spec-driven-development.md +39 -3
  185. package/bundled/locales/zh-CN/core/supply-chain-attestation.md +131 -0
  186. package/bundled/locales/zh-CN/core/verification-evidence.md +252 -41
  187. package/bundled/locales/zh-CN/core/versioning.md +1 -1
  188. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +36 -7
  189. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +71 -53
  190. package/bundled/locales/zh-CN/docs/MIGRATION-v6.md +88 -0
  191. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +2 -2
  192. package/bundled/locales/zh-CN/docs/USER-MANUAL.md +14 -14
  193. package/bundled/locales/zh-CN/docs/specs/system/memory-adoption-strategy.md +105 -0
  194. package/bundled/locales/zh-CN/docs/user/FAQ.md +132 -0
  195. package/bundled/locales/zh-CN/docs/user/GETTING-STARTED.md +144 -0
  196. package/bundled/locales/zh-CN/docs/user/GLOSSARY.md +178 -0
  197. package/bundled/locales/zh-CN/docs/user/README.md +70 -0
  198. package/bundled/locales/zh-CN/docs/user/TROUBLESHOOTING.md +190 -0
  199. package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
  200. package/bundled/locales/zh-CN/integrations/github-copilot/README.md +1 -1
  201. package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +3 -3
  202. package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +3 -3
  203. package/bundled/locales/zh-CN/methodologies/guides/sdd-guide.md +836 -0
  204. package/bundled/locales/zh-CN/options/changelog/auto-generated.md +166 -0
  205. package/bundled/locales/zh-CN/options/changelog/keep-a-changelog.md +140 -0
  206. package/bundled/locales/zh-CN/options/code-review/automated-review.md +214 -0
  207. package/bundled/locales/zh-CN/options/code-review/pair-programming.md +166 -0
  208. package/bundled/locales/zh-CN/options/code-review/pr-review.md +167 -0
  209. package/bundled/locales/zh-CN/options/commit-message/bilingual.md +10 -3
  210. package/bundled/locales/zh-CN/options/documentation/api-docs.md +191 -0
  211. package/bundled/locales/zh-CN/options/documentation/markdown-docs.md +150 -0
  212. package/bundled/locales/zh-CN/options/documentation/wiki-style.md +131 -0
  213. package/bundled/locales/zh-CN/options/project-structure/kotlin.md +144 -0
  214. package/bundled/locales/zh-CN/options/project-structure/php.md +168 -0
  215. package/bundled/locales/zh-CN/options/project-structure/ruby.md +156 -0
  216. package/bundled/locales/zh-CN/options/project-structure/rust.md +136 -0
  217. package/bundled/locales/zh-CN/options/project-structure/swift.md +165 -0
  218. package/bundled/locales/zh-CN/options/testing/contract-testing.md +237 -0
  219. package/bundled/locales/zh-CN/options/testing/industry-pyramid.md +200 -0
  220. package/bundled/locales/zh-CN/options/testing/istqb-framework.md +144 -0
  221. package/bundled/locales/zh-CN/options/testing/performance-testing.md +251 -0
  222. package/bundled/locales/zh-CN/options/testing/security-testing.md +192 -0
  223. package/bundled/locales/zh-CN/skills/README.md +89 -126
  224. package/bundled/locales/zh-CN/skills/ac-coverage/SKILL.md +5 -7
  225. package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +1 -1
  226. package/bundled/locales/zh-CN/skills/agents/code-architect.md +263 -0
  227. package/bundled/locales/zh-CN/skills/agents/doc-writer.md +410 -0
  228. package/bundled/locales/zh-CN/skills/agents/reviewer.md +357 -0
  229. package/bundled/locales/zh-CN/skills/agents/spec-analyst.md +410 -0
  230. package/bundled/locales/zh-CN/skills/agents/test-specialist.md +368 -0
  231. package/bundled/locales/zh-CN/skills/ai-collaboration-standards/SKILL.md +2 -2
  232. package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +2 -2
  233. package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +1 -1
  234. package/bundled/locales/zh-CN/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
  235. package/bundled/locales/zh-CN/skills/atdd-assistant/atdd-workflow.md +3 -4
  236. package/bundled/locales/zh-CN/skills/audit-assistant/SKILL.md +2 -2
  237. package/bundled/locales/zh-CN/skills/bdd-assistant/guide.md +1 -2
  238. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +115 -17
  239. package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +37 -12
  240. package/bundled/locales/zh-CN/skills/checkin-assistant/SKILL.md +1 -1
  241. package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +50 -0
  242. package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +5 -5
  243. package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +1 -1
  244. package/bundled/locales/zh-CN/skills/commands/atdd.md +3 -3
  245. package/bundled/locales/zh-CN/skills/commands/bdd.md +2 -2
  246. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +26 -17
  247. package/bundled/locales/zh-CN/skills/commands/{review.md → code-review.md} +4 -4
  248. package/bundled/locales/zh-CN/skills/commands/derive-all.md +1 -1
  249. package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +1 -1
  250. package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +2 -3
  251. package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +1 -1
  252. package/bundled/locales/zh-CN/skills/commands/derive.md +1 -1
  253. package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +2 -2
  254. package/bundled/locales/zh-CN/skills/commands/methodology.md +4 -4
  255. package/bundled/locales/zh-CN/skills/commands/pr.md +1 -1
  256. package/bundled/locales/zh-CN/skills/commands/tdd.md +1 -1
  257. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -1
  258. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -1
  259. package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +1 -1
  260. package/bundled/locales/zh-CN/skills/dev-methodology/create-methodology.md +456 -0
  261. package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +6 -6
  262. package/bundled/locales/zh-CN/skills/dev-methodology/runtime.md +296 -0
  263. package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +5 -5
  264. package/bundled/locales/zh-CN/skills/docs-generator/SKILL.md +1 -1
  265. package/bundled/locales/zh-CN/skills/e2e-assistant/SKILL.md +1 -1
  266. package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +2 -2
  267. package/bundled/locales/zh-CN/skills/journey-test-assistant/SKILL.md +1 -1
  268. package/bundled/locales/zh-CN/skills/logging-guide/SKILL.md +169 -142
  269. package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +1 -1
  270. package/bundled/locales/zh-CN/skills/observability-assistant/guide.md +1 -1
  271. package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +1 -1
  272. package/bundled/locales/zh-CN/skills/project-discovery/guide.md +2 -2
  273. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +1 -1
  274. package/bundled/locales/zh-CN/skills/runbook-assistant/guide.md +1 -1
  275. package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +1 -1
  276. package/bundled/locales/zh-CN/skills/skill-builder/SKILL.md +3 -3
  277. package/bundled/locales/zh-CN/skills/slo-assistant/guide.md +1 -1
  278. package/bundled/locales/zh-CN/skills/spec-derivation/SKILL.md +1 -1
  279. package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +8 -9
  280. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +2 -2
  281. package/bundled/locales/zh-CN/skills/sweep/SKILL.md +1 -1
  282. package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +1 -1
  283. package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +2 -2
  284. package/bundled/locales/zh-CN/skills/testing-guide/testing-theory.md +2298 -0
  285. package/bundled/locales/zh-CN/skills/workflows/README.md +451 -0
  286. package/bundled/locales/zh-TW/CHANGELOG.md +94 -6
  287. package/bundled/locales/zh-TW/CLAUDE.md +1 -1
  288. package/bundled/locales/zh-TW/MAINTENANCE.md +51 -4
  289. package/bundled/locales/zh-TW/README.md +25 -12
  290. package/bundled/locales/zh-TW/SECURITY.md +2 -2
  291. package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
  292. package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +6 -1
  293. package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +8 -48
  294. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +4 -6
  295. package/bundled/locales/zh-TW/core/accessibility-standards.md +1 -1
  296. package/bundled/locales/zh-TW/core/adversarial-test.md +226 -0
  297. package/bundled/locales/zh-TW/core/agent-behavior-discipline.md +187 -0
  298. package/bundled/locales/zh-TW/core/ai-response-navigation.md +32 -6
  299. package/bundled/locales/zh-TW/core/anti-sycophancy-prompting.md +1 -1
  300. package/bundled/locales/zh-TW/core/api-design-standards.md +91 -9
  301. package/bundled/locales/zh-TW/core/audit-trail.md +110 -0
  302. package/bundled/locales/zh-TW/core/behavior-snapshot.md +335 -0
  303. package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +1 -0
  304. package/bundled/locales/zh-TW/core/cd-deployment-strategies.md +135 -0
  305. package/bundled/locales/zh-TW/core/chaos-injection-tests.md +130 -0
  306. package/bundled/locales/zh-TW/core/checkin-standards.md +1 -1
  307. package/bundled/locales/zh-TW/core/code-review-checklist.md +1 -1
  308. package/bundled/locales/zh-TW/core/container-image-standards.md +93 -0
  309. package/bundled/locales/zh-TW/core/container-security.md +535 -0
  310. package/bundled/locales/zh-TW/core/cost-budget-test.md +86 -0
  311. package/bundled/locales/zh-TW/core/cross-flow-regression.md +1 -0
  312. package/bundled/locales/zh-TW/core/data-contract.md +101 -0
  313. package/bundled/locales/zh-TW/core/data-migration-testing.md +217 -0
  314. package/bundled/locales/zh-TW/core/data-pipeline.md +105 -0
  315. package/bundled/locales/zh-TW/core/deployment-standards.md +363 -25
  316. package/bundled/locales/zh-TW/core/deprecation-standards.md +17 -4
  317. package/bundled/locales/zh-TW/core/developer-memory.md +2 -2
  318. package/bundled/locales/zh-TW/core/disaster-recovery-drill.md +87 -0
  319. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +1 -1
  320. package/bundled/locales/zh-TW/core/error-code-standards.md +2 -2
  321. package/bundled/locales/zh-TW/core/feature-manifest-standard.md +222 -0
  322. package/bundled/locales/zh-TW/core/flaky-test-management.md +87 -0
  323. package/bundled/locales/zh-TW/core/flow-based-testing.md +284 -0
  324. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +3 -4
  325. package/bundled/locales/zh-TW/core/frontend-design-standards.md +1 -1
  326. package/bundled/locales/zh-TW/core/full-coverage-testing.md +250 -0
  327. package/bundled/locales/zh-TW/core/git-worktree.md +1 -1
  328. package/bundled/locales/zh-TW/core/guides/performance-guide.md +515 -0
  329. package/bundled/locales/zh-TW/core/guides/security-guide.md +494 -0
  330. package/bundled/locales/zh-TW/core/iac-design-principles.md +90 -0
  331. package/bundled/locales/zh-TW/core/incident-response.md +111 -0
  332. package/bundled/locales/zh-TW/core/license-compliance.md +131 -0
  333. package/bundled/locales/zh-TW/core/llm-output-validation.md +192 -0
  334. package/bundled/locales/zh-TW/core/logging-standards.md +208 -4
  335. package/bundled/locales/zh-TW/core/mock-boundary.md +161 -0
  336. package/bundled/locales/zh-TW/core/model-provenance.md +173 -0
  337. package/bundled/locales/zh-TW/core/model-selection.md +28 -5
  338. package/bundled/locales/zh-TW/core/mutation-testing.md +106 -0
  339. package/bundled/locales/zh-TW/core/no-cicd-deployment.md +219 -0
  340. package/bundled/locales/zh-TW/core/packaging-standards.md +77 -5
  341. package/bundled/locales/zh-TW/core/performance-standards.md +84 -5
  342. package/bundled/locales/zh-TW/core/pii-classification.md +102 -0
  343. package/bundled/locales/zh-TW/core/pipeline-security-gates.md +146 -0
  344. package/bundled/locales/zh-TW/core/policy-as-code-testing.md +203 -0
  345. package/bundled/locales/zh-TW/core/prd-standards.md +88 -0
  346. package/bundled/locales/zh-TW/core/privacy-standards.md +1 -1
  347. package/bundled/locales/zh-TW/core/product-metrics-standards.md +96 -0
  348. package/bundled/locales/zh-TW/core/project-context-memory.md +1 -1
  349. package/bundled/locales/zh-TW/core/prompt-regression.md +88 -0
  350. package/bundled/locales/zh-TW/core/property-based-testing.md +87 -0
  351. package/bundled/locales/zh-TW/core/refactoring-standards.md +43 -6
  352. package/bundled/locales/zh-TW/core/release-quality-manifest.md +207 -0
  353. package/bundled/locales/zh-TW/core/replay-test.md +102 -0
  354. package/bundled/locales/zh-TW/core/requirement-engineering.md +1 -1
  355. package/bundled/locales/zh-TW/core/resource-cost-boundary.md +175 -0
  356. package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +64 -5
  357. package/bundled/locales/zh-TW/core/rollback-standards.md +120 -0
  358. package/bundled/locales/zh-TW/core/runbook.md +110 -0
  359. package/bundled/locales/zh-TW/core/sast-advanced.md +309 -0
  360. package/bundled/locales/zh-TW/core/schema-evolution.md +98 -0
  361. package/bundled/locales/zh-TW/core/secret-management-standards.md +101 -0
  362. package/bundled/locales/zh-TW/core/secure-op.md +328 -0
  363. package/bundled/locales/zh-TW/core/security-testing.md +113 -0
  364. package/bundled/locales/zh-TW/core/self-review-protocol.md +18 -13
  365. package/bundled/locales/zh-TW/core/server-ops-security.md +507 -0
  366. package/bundled/locales/zh-TW/core/slo-sli.md +108 -0
  367. package/bundled/locales/zh-TW/core/smoke-test.md +79 -0
  368. package/bundled/locales/zh-TW/core/spec-driven-development.md +19 -11
  369. package/bundled/locales/zh-TW/core/supply-chain-attestation.md +131 -0
  370. package/bundled/locales/zh-TW/core/user-journey-testing.md +111 -0
  371. package/bundled/locales/zh-TW/core/user-story-mapping.md +94 -0
  372. package/bundled/locales/zh-TW/core/verification-evidence.md +260 -31
  373. package/bundled/locales/zh-TW/core/verification-oracle.md +159 -0
  374. package/bundled/locales/zh-TW/core/versioning.md +112 -112
  375. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +36 -7
  376. package/bundled/locales/zh-TW/docs/DEV-WORKFLOW-MAPPING.md +6 -6
  377. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +71 -53
  378. package/bundled/locales/zh-TW/docs/MIGRATION-v6.md +88 -0
  379. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +2 -2
  380. package/bundled/locales/zh-TW/docs/USER-MANUAL.md +14 -14
  381. package/bundled/locales/zh-TW/docs/specs/system/memory-adoption-strategy.md +105 -0
  382. package/bundled/locales/zh-TW/docs/user/FAQ.md +132 -0
  383. package/bundled/locales/zh-TW/docs/user/GETTING-STARTED.md +144 -0
  384. package/bundled/locales/zh-TW/docs/user/GLOSSARY.md +178 -0
  385. package/bundled/locales/zh-TW/docs/user/README.md +70 -0
  386. package/bundled/locales/zh-TW/docs/user/TROUBLESHOOTING.md +190 -0
  387. package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
  388. package/bundled/locales/zh-TW/integrations/github-copilot/README.md +1 -1
  389. package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +3 -3
  390. package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +3 -3
  391. package/bundled/locales/zh-TW/methodologies/guides/sdd-guide.md +523 -26
  392. package/bundled/locales/zh-TW/options/changelog/auto-generated.md +166 -0
  393. package/bundled/locales/zh-TW/options/changelog/keep-a-changelog.md +140 -0
  394. package/bundled/locales/zh-TW/options/code-review/automated-review.md +214 -0
  395. package/bundled/locales/zh-TW/options/code-review/pair-programming.md +166 -0
  396. package/bundled/locales/zh-TW/options/code-review/pr-review.md +167 -0
  397. package/bundled/locales/zh-TW/options/commit-message/bilingual.md +10 -3
  398. package/bundled/locales/zh-TW/options/documentation/api-docs.md +191 -0
  399. package/bundled/locales/zh-TW/options/documentation/markdown-docs.md +150 -0
  400. package/bundled/locales/zh-TW/options/documentation/wiki-style.md +131 -0
  401. package/bundled/locales/zh-TW/options/project-structure/kotlin.md +144 -0
  402. package/bundled/locales/zh-TW/options/project-structure/php.md +168 -0
  403. package/bundled/locales/zh-TW/options/project-structure/ruby.md +156 -0
  404. package/bundled/locales/zh-TW/options/project-structure/rust.md +136 -0
  405. package/bundled/locales/zh-TW/options/project-structure/swift.md +165 -0
  406. package/bundled/locales/zh-TW/options/testing/contract-testing.md +237 -0
  407. package/bundled/locales/zh-TW/options/testing/industry-pyramid.md +200 -0
  408. package/bundled/locales/zh-TW/options/testing/istqb-framework.md +144 -0
  409. package/bundled/locales/zh-TW/options/testing/performance-testing.md +251 -0
  410. package/bundled/locales/zh-TW/options/testing/security-testing.md +192 -0
  411. package/bundled/locales/zh-TW/skills/README.md +91 -128
  412. package/bundled/locales/zh-TW/skills/ac-coverage/SKILL.md +4 -6
  413. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
  414. package/bundled/locales/zh-TW/skills/agents/code-architect.md +263 -0
  415. package/bundled/locales/zh-TW/skills/agents/doc-writer.md +410 -0
  416. package/bundled/locales/zh-TW/skills/agents/reviewer.md +357 -0
  417. package/bundled/locales/zh-TW/skills/agents/spec-analyst.md +410 -0
  418. package/bundled/locales/zh-TW/skills/agents/test-specialist.md +368 -0
  419. package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +2 -2
  420. package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +2 -2
  421. package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -1
  422. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
  423. package/bundled/locales/zh-TW/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
  424. package/bundled/locales/zh-TW/skills/atdd-assistant/atdd-workflow.md +3 -4
  425. package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +2 -2
  426. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
  427. package/bundled/locales/zh-TW/skills/bdd-assistant/guide.md +1 -2
  428. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +116 -18
  429. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +38 -11
  430. package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +3 -1
  431. package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +50 -0
  432. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +7 -5
  433. package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +1 -1
  434. package/bundled/locales/zh-TW/skills/commands/atdd.md +3 -3
  435. package/bundled/locales/zh-TW/skills/commands/bdd.md +2 -2
  436. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +26 -17
  437. package/bundled/locales/zh-TW/skills/commands/{review.md → code-review.md} +5 -5
  438. package/bundled/locales/zh-TW/skills/commands/derive-all.md +1 -1
  439. package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +1 -1
  440. package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +2 -3
  441. package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +1 -1
  442. package/bundled/locales/zh-TW/skills/commands/derive.md +1 -1
  443. package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +2 -2
  444. package/bundled/locales/zh-TW/skills/commands/methodology.md +4 -4
  445. package/bundled/locales/zh-TW/skills/commands/pr.md +1 -1
  446. package/bundled/locales/zh-TW/skills/commands/tdd.md +1 -1
  447. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +1 -1
  448. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +1 -1
  449. package/bundled/locales/zh-TW/skills/dev-methodology/create-methodology.md +456 -0
  450. package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +5 -5
  451. package/bundled/locales/zh-TW/skills/dev-methodology/runtime.md +296 -0
  452. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +5 -5
  453. package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -1
  454. package/bundled/locales/zh-TW/skills/e2e-assistant/SKILL.md +1 -1
  455. package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +2 -2
  456. package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +52 -27
  457. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
  458. package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +3 -1
  459. package/bundled/locales/zh-TW/skills/project-discovery/guide.md +2 -2
  460. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -1
  461. package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +1 -1
  462. package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +7 -8
  463. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +2 -2
  464. package/bundled/locales/zh-TW/skills/sweep/SKILL.md +1 -1
  465. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +3 -1
  466. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +2 -2
  467. package/bundled/locales/zh-TW/skills/testing-guide/testing-theory.md +2298 -0
  468. package/bundled/locales/zh-TW/skills/workflows/README.md +451 -0
  469. package/bundled/skills/README.md +1 -1
  470. package/bundled/skills/ac-coverage/SKILL.md +17 -7
  471. package/bundled/skills/adr-assistant/SKILL.md +1 -1
  472. package/bundled/skills/agents/code-architect.md +1 -1
  473. package/bundled/skills/agents/doc-writer.md +1 -1
  474. package/bundled/skills/agents/reviewer.md +2 -2
  475. package/bundled/skills/agents/spec-analyst.md +1 -1
  476. package/bundled/skills/agents/test-specialist.md +1 -1
  477. package/bundled/skills/ai-collaboration-standards/SKILL.md +2 -2
  478. package/bundled/skills/ai-friendly-architecture/SKILL.md +2 -2
  479. package/bundled/skills/ai-instruction-standards/SKILL.md +1 -1
  480. package/bundled/skills/atdd-assistant/SKILL.md +7 -0
  481. package/bundled/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
  482. package/bundled/skills/atdd-assistant/atdd-workflow.md +6 -8
  483. package/bundled/skills/audit-assistant/SKILL.md +2 -2
  484. package/bundled/skills/bdd-assistant/SKILL.md +7 -0
  485. package/bundled/skills/bdd-assistant/guide.md +1 -2
  486. package/bundled/skills/brainstorm-assistant/SKILL.md +139 -15
  487. package/bundled/skills/brainstorm-assistant/guide.md +39 -8
  488. package/bundled/skills/checkin-assistant/SKILL.md +8 -1
  489. package/bundled/skills/ci-cd-assistant/SKILL.md +57 -0
  490. package/bundled/skills/code-review-assistant/SKILL.md +15 -8
  491. package/bundled/skills/commands/COMMAND-FAMILY-OVERVIEW.md +2 -2
  492. package/bundled/skills/commands/COMMAND-INDEX.json +3 -3
  493. package/bundled/skills/commands/README.md +2 -2
  494. package/bundled/skills/commands/ac-coverage.md +1 -1
  495. package/bundled/skills/commands/atdd.md +2 -2
  496. package/bundled/skills/commands/bdd.md +2 -2
  497. package/bundled/skills/commands/brainstorm.md +25 -14
  498. package/bundled/skills/commands/{review.md → code-review.md} +6 -6
  499. package/bundled/skills/commands/derive-all.md +1 -1
  500. package/bundled/skills/commands/derive-atdd.md +1 -1
  501. package/bundled/skills/commands/derive-bdd.md +2 -3
  502. package/bundled/skills/commands/derive-tdd.md +1 -1
  503. package/bundled/skills/commands/derive.md +1 -1
  504. package/bundled/skills/commands/dev-workflow.md +1 -1
  505. package/bundled/skills/commands/journey-test.md +45 -0
  506. package/bundled/skills/commands/methodology.md +4 -4
  507. package/bundled/skills/commands/pr.md +1 -1
  508. package/bundled/skills/commands/skill-builder.md +42 -0
  509. package/bundled/skills/commands/tdd.md +1 -1
  510. package/bundled/skills/dev-methodology/create-methodology.md +1 -1
  511. package/bundled/skills/dev-methodology/guide.md +1 -1
  512. package/bundled/skills/dev-methodology/runtime.md +1 -1
  513. package/bundled/skills/dev-workflow-guide/SKILL.md +3 -3
  514. package/bundled/skills/dev-workflow-guide/workflow-phases.md +3 -3
  515. package/bundled/skills/docs-generator/SKILL.md +3 -3
  516. package/bundled/skills/incident-response-assistant/SKILL.md +2 -2
  517. package/bundled/skills/logging-guide/SKILL.md +38 -2
  518. package/bundled/skills/migration-assistant/SKILL.md +226 -0
  519. package/bundled/skills/observability-assistant/SKILL.md +74 -0
  520. package/bundled/skills/pr-automation-assistant/SKILL.md +5 -1
  521. package/bundled/skills/project-discovery/guide.md +2 -2
  522. package/bundled/skills/push/SKILL.md +1 -1
  523. package/bundled/skills/release-standards/SKILL.md +19 -5
  524. package/bundled/skills/security-assistant/SKILL.md +1 -1
  525. package/bundled/skills/skill-builder/SKILL.md +1 -1
  526. package/bundled/skills/spec-derivation/guide.md +3 -4
  527. package/bundled/skills/spec-driven-dev/SKILL.md +13 -2
  528. package/bundled/skills/sweep/SKILL.md +1 -1
  529. package/bundled/skills/tdd-assistant/SKILL.md +8 -1
  530. package/bundled/skills/testing-guide/SKILL.md +1 -1
  531. package/bundled/skills/testing-guide/testing-theory.md +1 -1
  532. package/bundled/skills/workflows/README.md +2 -2
  533. package/package.json +4 -4
  534. package/src/commands/audit.js +30 -9
  535. package/src/commands/config.js +33 -2
  536. package/src/commands/hitl.js +14 -1
  537. package/src/commands/init.js +168 -75
  538. package/src/commands/quickstart.js +1 -2
  539. package/src/commands/release.js +51 -6
  540. package/src/commands/run-intent.js +9 -0
  541. package/src/commands/spec-split.js +27 -2
  542. package/src/commands/update.js +22 -6
  543. package/src/config/ai-agent-paths.js +3 -1
  544. package/src/i18n/messages.js +3 -102
  545. package/src/missions/MissionManager.js +44 -12
  546. package/src/utils/build-manifest.js +35 -3
  547. package/src/utils/friction-detector.js +71 -22
  548. package/src/utils/health-checker.js +29 -2
  549. package/src/utils/transaction.js +111 -0
  550. package/src/utils/version-promote.js +16 -0
  551. package/standards-registry.json +61 -149
  552. package/bundled/ai/standards/agent-communication-protocol.ai.yaml +0 -42
  553. package/bundled/ai/standards/agent-dispatch.ai.yaml +0 -42
  554. package/bundled/ai/standards/branch-completion.ai.yaml +0 -44
  555. package/bundled/ai/standards/change-batching-standards.ai.yaml +0 -44
  556. package/bundled/ai/standards/execution-history.ai.yaml +0 -42
  557. package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +0 -42
  558. package/bundled/ai/standards/workflow-enforcement.ai.yaml +0 -44
  559. package/bundled/ai/standards/workflow-state-protocol.ai.yaml +0 -43
  560. package/src/commands/flow.js +0 -260
  561. package/src/commands/start.js +0 -372
  562. package/src/commands/sweep.js +0 -151
  563. package/src/commands/workflow.js +0 -681
@@ -63,7 +63,7 @@ Universal Development Standards 是一套为 AI 时代设计的**语言无关、
63
63
  | 问题 | UDS 解决方案 |
64
64
  |------|-------------|
65
65
  | 团队 commit message 格式不一致 | 通过 `/commit` 标准化 Conventional Commits |
66
- | Code review 漏看关键问题 | 通过 `/review` 执行 8 维度系统性审查 |
66
+ | Code review 漏看关键问题 | 通过 `/code-review` 执行 8 维度系统性审查 |
67
67
  | AI 工具给出不一致的建议 | 统一标准让 AI 工具读取并遵循 |
68
68
  | 新人加入团队需要数周上手 | 清晰的标准和引导式工作流程 |
69
69
  | 测试覆盖率期望不明确 | 测试金字塔定义明确比例(70/20/7/3) |
@@ -71,10 +71,10 @@ Universal Development Standards 是一套为 AI 时代设计的**语言无关、
71
71
 
72
72
  ### 设计哲学
73
73
 
74
- **"碰一点,保护一点"** — 你不需要一次导入全部 48 个标准。UDS 专为渐进式导入设计:
74
+ **"碰一点,保护一点"** — 你不需要一次导入全部 140+ 个标准。UDS 专为渐进式导入设计:
75
75
 
76
76
  - 先只用 `/commit` — 零成本,立即见效
77
- - 接着加入 `/review` — 在合并前捕捉问题
77
+ - 接着加入 `/code-review` — 在合并前捕捉问题
78
78
  - 团队适应后,逐步引入 `/tdd` 和 `/sdd`
79
79
 
80
80
  > **Boy Scout Rule**:让代码比你找到它时更好。每次碰到代码,顺手加一点保护(测试、文档)。
@@ -142,7 +142,7 @@ npx universal-dev-standards init
142
142
 
143
143
  ```
144
144
  your-project/
145
- ├── .standards/ # 48 个 AI 标准(.ai.yaml 文件)
145
+ ├── .standards/ # AI 标准(.ai.yaml 文件)
146
146
  │ ├── testing.ai.yaml
147
147
  │ ├── commit-message.ai.yaml
148
148
  │ ├── code-review.ai.yaml
@@ -458,14 +458,14 @@ Refs: SPEC-001
458
458
  | `test` | 测试 | `test(auth): 新增登录测试` |
459
459
  | `chore` | 维护 | `chore(deps): 更新依赖包` |
460
460
 
461
- ### `/review` — 代码审查
461
+ ### `/code-review` — 代码审查
462
462
 
463
- 提交前,用 `/review` 进行系统性审查:
463
+ 提交前,用 `/code-review` 进行系统性审查:
464
464
 
465
465
  ```bash
466
- /review # 审查当前分支所有变更
467
- /review src/auth.js # 审查特定文件
468
- /review feature/login # 审查特定分支
466
+ /code-review # 审查当前分支所有变更
467
+ /code-review src/auth.js # 审查特定文件
468
+ /code-review feature/login # 审查特定分支
469
469
  ```
470
470
 
471
471
  **8 个审查维度:**
@@ -504,7 +504,7 @@ Refs: SPEC-001
504
504
  | **规格** | `/sdd`, `/requirement`, `/brainstorm` | 规格驱动开发 |
505
505
  | **推演** | `/derive-all`, `/derive-bdd`, `/derive-tdd`, `/derive-atdd` | 从规格生成测试 |
506
506
  | **开发** | `/tdd`, `/bdd`, `/atdd` | 方法论工作流程 |
507
- | **质量** | `/commit`, `/review`, `/checkin`, `/coverage`, `/ac-coverage` | 日常质量管理 |
507
+ | **质量** | `/commit`, `/code-review`, `/checkin`, `/coverage`, `/ac-coverage` | 日常质量管理 |
508
508
  | **文档** | `/docs`, `/docgen`, `/changelog`, `/release` | 文档与发布 |
509
509
  | **反向** | `/reverse`, `/reverse-sdd`, `/reverse-bdd`, `/reverse-tdd` | Legacy Code 反向工程 |
510
510
  | **重构** | `/refactor` | 重构指导 |
@@ -522,7 +522,7 @@ Refs: SPEC-001
522
522
 
523
523
  ```bash
524
524
  /commit # 标准化 commit message
525
- /review # 提交前自我审查
525
+ /code-review # 提交前自我审查
526
526
  ```
527
527
 
528
528
  > 只需要这两个指令,就能立即提升代码质量。
@@ -569,7 +569,7 @@ Refs: SPEC-001
569
569
  12:00 /commit # 标准化提交
570
570
  → feat(auth): 新增双因素认证
571
571
 
572
- 12:05 /review # 最终审查
572
+ 12:05 /code-review # 最终审查
573
573
  → 0 BLOCKING, 1 SUGGESTION
574
574
  ```
575
575
 
@@ -599,7 +599,7 @@ A: 不会。UDS 是语言无关、框架无关的。它定义的是流程和质
599
599
  A: 不用。核心标准是 Markdown 文件,人类直接阅读也完全适用。AI 工具只是让流程更顺畅。
600
600
 
601
601
  **Q: 团队中只有我用可以吗?**
602
- A: 可以。渐进式导入的设计就是为了这个场景。先自己用 `/commit` 和 `/review`,等团队看到效果再推广。
602
+ A: 可以。渐进式导入的设计就是为了这个场景。先自己用 `/commit` 和 `/code-review`,等团队看到效果再推广。
603
603
 
604
604
  **Q: 和 ESLint / Prettier 冲突吗?**
605
605
  A: 互补关系。ESLint/Prettier 处理代码格式,UDS 处理更高层次的开发流程和质量标准。
@@ -624,7 +624,7 @@ uds init
624
624
 
625
625
  ### 推荐学习路径
626
626
 
627
- 1. 先用 `/commit` + `/review` 养成习惯
627
+ 1. 先用 `/commit` + `/code-review` 养成习惯
628
628
  2. 遇到新功能时试试 `/sdd`
629
629
  3. 不确定下一步时,输入 `/dev-workflow`
630
630
 
@@ -0,0 +1,105 @@
1
+ ---
2
+ source: docs/specs/system/memory-adoption-strategy.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ status: current
6
+ ---
7
+
8
+ # 记忆采用策略
9
+
10
+ **状态**: Archived
11
+
12
+ > **语言**: [English](../../../../../docs/specs/system/memory-adoption-strategy.md) | 简体中文
13
+
14
+ 本文档提供策略指引,帮助跨不同团队规模与运营模式采用 Universal Development Standards (UDS) 的记忆系统。它帮助用户决定如何构建自身的 **Project Context Memory (PCM)** 与 **Developer Persistent Memory (DPM)**,以发挥最大效益。
15
+
16
+ ---
17
+
18
+ ## 1. 决策矩阵
19
+
20
+ 选择最适合你运营模式的策略:
21
+
22
+ | 策略 | 目标对象 | 存储位置 | 知识流向 | 主要效益 |
23
+ | :--- | :--- | :--- | :--- | :--- |
24
+ | **数字花园 (Digital Garden)** | 独立开发者、自由职业者 | 本机全局 (`~/.uds/memory`) | Project → User | **可携性**:你的经验随你而行。 |
25
+ | **仓库中心 (Repo-Centric)** | 初创公司、小型团队 | 项目本地 (`.project-context/`) | User → Project | **一致性**:为新成员提供"开箱即用"的上手体验。 |
26
+ | **轴辐式 (Hub-and-Spoke)** | 企业、多项目组织 | Git Submodule/Registry | Hub ↔ Spoke | **标准化**:在严格边界内强制落实合规。 |
27
+
28
+ ---
29
+
30
+ ## 2. 策略 A:数字花园 (独立/自由职业者)
31
+
32
+ **理念**:"我是知识的载体。"
33
+
34
+ 目标是在许多临时项目之间积累个人经验。AI 扮演你的个人结对编程伙伴,学习 *你的* 偏好。
35
+
36
+ ### 配置
37
+ - **全局 memory**:启用。将特定技术栈的洞见(例如"React Tips"、"Python Tricks")存储于 `~/.uds/memory/`。
38
+ - **项目 memory**:最小化。仅存储凭证、特定路径或临时性的业务逻辑。
39
+
40
+ ### 工作流程
41
+ 1. **遇到问题**:在项目 A 中解决一个棘手的 React 渲染错误。
42
+ 2. **提升 (Promote)**:告诉 AI:"将这个存成通用的 React 模式到我的全局 memory。"
43
+ 3. **重复使用**:打开项目 B。当你编写类似代码时,AI 会立即建议该模式,因为它读取了 `~/.uds/memory`。
44
+
45
+ ### 设置
46
+ ```bash
47
+ # 1. Create global directory
48
+ mkdir -p ~/.uds/memory
49
+
50
+ # 2. (Optional) Initialize as git repo for backup
51
+ cd ~/.uds/memory && git init
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 3. 策略 B:仓库中心 (小型团队)
57
+
58
+ **理念**:"仓库即真实来源 (Source of Truth)。"
59
+
60
+ 目标是确保每位团队成员(以及他们的 AI Agent)拥有完全相同的上下文。个人偏好不应凌驾于项目惯例之上。
61
+
62
+ ### 配置
63
+ - **全局 memory**:**停用** 或只读。避免"在我的机器/AI 上可以运行"的问题。
64
+ - **项目 memory**:完整。所有架构决策、代码风格与领域术语均存放于 `.project-context/`,并提交至 Git。
65
+
66
+ ### 工作流程
67
+ 1. **上手 (Onboarding)**:新成员 clone 仓库。
68
+ 2. **即时上下文**:他们的 AI 读取 `.project-context/`,立即得知:"我们采用 Hexagonal Architecture"与"变量必须使用 snake_case"。
69
+ 3. **共识**:当团队在 Code Review 中对新规则达成共识时,由一人指示 AI:"将这条规则加入 Project Context。"
70
+ 4. **同步**:新的 `.md` 文件被提交并推送。每个人在下次 `git pull` 时获取更新。
71
+
72
+ ---
73
+
74
+ ## 4. 策略 C:轴辐式 (企业)
75
+
76
+ **理念**:"治理与合规。"
77
+
78
+ 目标是在数百个项目之间共享共通标准,同时允许本地的灵活性。
79
+
80
+ ### 配置
81
+ - **核心层(轴 The Hub)**:一个专用的 Git 仓库(例如 `acme-corp/standard-memory`),内含全公司的安全规则与架构模式。
82
+ - **项目层(辐 The Spoke)**:本地 `.project-context/`,用于应用程序专属的逻辑。
83
+
84
+ ### 实现:Git Submodules
85
+ 每个项目将中央 memory 作为 submodule 挂载。
86
+
87
+ ```bash
88
+ # In Project A, B, and C:
89
+ git submodule add git@github.com:acme-corp/standard-memory.git .standards/shared
90
+ ```
91
+
92
+ ### 工作流程
93
+ 1. **政策更新**:安全团队在 Hub 仓库中更新"Auth Standards"。
94
+ 2. **传播 (Propagation)**:各项目更新其 submodule,以拉取新标准。
95
+ 3. **验证**:CI/CD 管线检查项目代码是否符合 `.standards/shared` 中更新后的规则。
96
+
97
+ ---
98
+
99
+ ## 5. 总结
100
+
101
+ | 如果你想要… | 采用策略… |
102
+ | :--- | :--- |
103
+ | 在不同接单工作之间停止重复造轮子 | **数字花园 (Digital Garden)** |
104
+ | 让新进人员在第一天就能产出 | **仓库中心 (Repo-Centric)** |
105
+ | 确保 50+ 个微服务遵循安全规格 | **轴辐式 (Hub-and-Spoke)** |
@@ -0,0 +1,132 @@
1
+ ---
2
+ source: docs/user/FAQ.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ status: current
6
+ ---
7
+
8
+ # UDS 常见问题
9
+
10
+ > **语言**: [English](../../../../docs/user/FAQ.md) | 简体中文
11
+
12
+ ---
13
+
14
+ ## 安装与设置
15
+
16
+ **Q:`uds init` 和 `uds update` 有什么区别?**
17
+
18
+ `uds init` 用于首次设置:它会复制标准、配置你的 AI 工具,并安装 skill。
19
+ `uds update` 则是把已初始化的项目升级到最新的 UDS 版本,过程中不会重新配置。
20
+
21
+ **Q:不用 Claude Code 也能使用 UDS 吗?**
22
+
23
+ 可以。UDS 支持 Claude Code、Cursor、GitHub Copilot、Windsurf,以及任何会读取指令文件的 AI 工具。运行 `uds init` 并选择你的工具,它就会配置对应的文件(`.cursorrules`、`CLAUDE.md` 等)。Skill 为 Claude Code 专属;对于其他工具,标准与等同 CLAUDE.md 的文件仍然适用。
24
+
25
+ **Q:我已经有一份 `CLAUDE.md`,`uds init` 会覆盖它吗?**
26
+
27
+ 不会。`uds init` 会把 UDS 内容合并进你既有的文件,以清楚标记的区块追加 UDS 段落。你原有的内容会被保留。
28
+
29
+ ---
30
+
31
+ ## Skill 与命令
32
+
33
+ **Q:什么是 Skill?**
34
+
35
+ Skill 是预先构建好的 AI 工作流,当你在 Claude Code 输入 `/command` 时就会激活。例如 `/sdd` 会激活 Spec-Driven Development(规格驱动开发)skill,引导你创建 spec 文件。Skill 存储在 `skills/<name>/SKILL.md`,并由 Claude Code 自动加载。
36
+
37
+ **Q:Skill 和 Standard 有什么区别?**
38
+
39
+ **Standard(标准)** 是书面准则(Markdown 或 YAML),说明某件事该怎么做(例如「commit-message」标准定义了 Conventional Commits 格式)。**Skill** 则是运用这些标准来执行某个流程的 AI 工作流。标准是知识库;Skill 是执行层。
40
+
41
+ **Q:为什么我在 Claude Code 菜单里看不到某个 skill?**
42
+
43
+ 可能有三个原因:
44
+ 1. **UDS 未初始化**:运行 `uds check` 确认
45
+ 2. **超出 skill 预算**:当 skill 很多时,Claude Code 会截断列表。请参阅 [skill-budget-tuning.md](../../../../docs/skill-budget-tuning.md) 调整哪些 skill 会显示
46
+ 3. **Tier 3 skill**:Tier 3 skill 默认隐藏以节省 context。它们仍可通过 `/<name>` 调用。若要显示,请在你的 `settings.json` 中覆盖——参阅 [skill-budget-tuning.md](../../../../docs/skill-budget-tuning.md)
47
+
48
+ **Q:菜单里看不到的 skill 还能用吗?**
49
+
50
+ 可以。无论是否出现在菜单中,每个 skill 都能直接输入 `/<name>` 来调用。例如即使 `brainstorm-assistant` 是 Tier 3 而未列出,`/brainstorm` 仍然有效。
51
+
52
+ **Q:我怎么知道哪个命令会触发哪个 skill?**
53
+
54
+ 完整的「命令对 skill」对照请见 [COMMANDS-INDEX.md](../../../../docs/user/COMMANDS-INDEX.md),或以 skill 为中心的视图 [SKILLS-INDEX.md](../../../../docs/user/SKILLS-INDEX.md)。
55
+
56
+ **Q:我怎么停用一个从不使用的 skill?**
57
+
58
+ 在你的 `.claude/settings.json` 中:
59
+ ```json
60
+ {
61
+ "skillOverrides": {
62
+ "brainstorm-assistant": "disabled"
63
+ }
64
+ }
65
+ ```
66
+ 所有覆盖选项请见 [skill-budget-tuning.md](../../../../docs/skill-budget-tuning.md)。
67
+
68
+ ---
69
+
70
+ ## 规格驱动开发
71
+
72
+ **Q:每次变更都得写 spec 吗?**
73
+
74
+ 不用。建议在功能、user story 与较具规模的变更时撰写 spec。对于小型 bug 修正或重构,`/commit` 与 `/code-review` 就足够了。经验法则:若实现会花超过 2 小时,写 spec 会有帮助。
75
+
76
+ **Q:spec 存放在哪里?**
77
+
78
+ 默认位于项目根目录的 `specs/SPEC-NNN-<slug>.md`。格式遵循 UDS spec-driven-development 标准。
79
+
80
+ **Q:什么是 AC(Acceptance Criterion,验收条件)?**
81
+
82
+ 验收条件是一条可测试的陈述,用来定义一个功能何时算「完成」。例如:「Given 一位已注册用户,When 他以正确凭证登录,Then 他会取得有效的 session token。」AC 驱动测试覆盖并防止范围蔓延。
83
+
84
+ ---
85
+
86
+ ## 更新与版本
87
+
88
+ **Q:我要如何把 UDS 更新到最新版?**
89
+
90
+ ```bash
91
+ uds update
92
+ ```
93
+
94
+ 这会下载最新的标准与 skill,同时保留你项目专属的定制化。
95
+
96
+ **Q:我要如何查看当前的 UDS 版本?**
97
+
98
+ ```bash
99
+ uds --version
100
+ # 或
101
+ cat .standards/manifest.json | grep version
102
+ ```
103
+
104
+ **Q:更新 UDS 会破坏我现有的 spec 或 CLAUDE.md 吗?**
105
+
106
+ 不会。标准更新保持向后兼容。Spec 是你的文件,`uds update` 绝不会动它们。CLAUDE.md 只有在你明确运行 `uds init --force` 时才会被修改。
107
+
108
+ ---
109
+
110
+ ## 架构
111
+
112
+ **Q:什么是「双层架构(Dual-Layer Architecture)」?**
113
+
114
+ UDS 有两层:
115
+ - **Core Standards(核心标准,`.standards/` — Markdown 文件)**:人类可读的准则、完整理论、边界情况
116
+ - **AI Standards(AI 标准,`.standards/` — `.ai.yaml` 文件)**:同一份标准的 token 精简、为 AI 优化的版本,专为 Claude Code 的 context window 设计
117
+
118
+ 当 Skill 运行时,它会读取 `.ai.yaml` 文件。当开发者想了解背后理由时,则阅读 `.md` 文件。
119
+
120
+ **Q:`skills/` 和 `.standards/` 有什么区别?**
121
+
122
+ `skills/` 包含驱动 Claude Code 中 `/command` 的 SKILL.md 文件,它们是工作流。
123
+ `.standards/` 包含底层知识库(Core Standards + AI Standards)。Skill 引用标准;标准不引用 skill。
124
+
125
+ **Q:什么是 Skill Tier?(DEC-061)**
126
+
127
+ Tier 控制 Claude Code 的 context 预算有多少用于 skill 描述:
128
+ - **Tier 1**:永远以完整描述列出(15 个 skill — 每日使用)
129
+ - **Tier 2**:默认以完整描述列出(28 个 skill — 每周使用)
130
+ - **Tier 3**:默认仅列出名称(12 个 skill — 专家/事件驱动)
131
+
132
+ 所有 tier 都能通过 `/<name>` 完整调用。Tier 只影响 _列出_ 的行为。
@@ -0,0 +1,144 @@
1
+ ---
2
+ source: docs/user/GETTING-STARTED.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ status: current
6
+ ---
7
+
8
+ # UDS 入门指南
9
+
10
+ > **语言**: [English](../../../../docs/user/GETTING-STARTED.md) | 简体中文
11
+
12
+ 本指南带你走过 UDS 从零开始,直到完成第一份 AI 辅助的 spec 与 commit。
13
+ 预估时间:**5 分钟**。
14
+
15
+ ---
16
+
17
+ ## 先决条件
18
+
19
+ - Node.js ≥ 20.0.0(`node --version`)
20
+ - 一个 AI 编程助手:Claude Code(建议)、Cursor、GitHub Copilot 或类似工具
21
+
22
+ ---
23
+
24
+ ## 步骤 1 — 安装
25
+
26
+ ```bash
27
+ npm install -g universal-dev-standards
28
+ uds --version
29
+ ```
30
+
31
+ > **不想全局安装?** 使用 `npx universal-dev-standards init` 即可不安装直接运行。
32
+
33
+ ---
34
+
35
+ ## 步骤 2 — 初始化你的项目
36
+
37
+ 在你的项目目录内运行 `uds init`:
38
+
39
+ ```bash
40
+ cd your-project
41
+ uds init
42
+ ```
43
+
44
+ 交互式向导将会:
45
+ 1. 检测你的 AI 工具(Claude Code、Cursor 等)
46
+ 2. 复制标准到 `.standards/`
47
+ 3. 配置你 AI 工具的指令文件(例如 `CLAUDE.md`)
48
+ 4. 安装你所选择的 skill
49
+
50
+ 初始化后,你应该会看到:
51
+ ```
52
+ .standards/ ← AI 可读的标准
53
+ CLAUDE.md ← 已更新 UDS 指引(Claude Code)
54
+ ```
55
+
56
+ > **已经有 CLAUDE.md?** `uds init` 会采合并方式——不会覆盖你既有的内容。
57
+
58
+ ---
59
+
60
+ ## 步骤 3 — 你的第一份 Spec(`/sdd`)
61
+
62
+ 在写代码之前,先创建一份 spec:
63
+
64
+ 1. 在你的项目中打开 Claude Code
65
+ 2. 输入:`/sdd` 并按 Enter
66
+ 3. 描述你想要构建的东西(例如「新增用户以 email + 密码登录」)
67
+ 4. Claude 会在 `specs/SPEC-NNN-*.md` 创建一份 spec 文件
68
+
69
+ 这份 spec 会记录:
70
+ - **Background(背景)** — 为什么需要这个功能
71
+ - **Acceptance Criteria(验收条件,AC)** — 可测试的结果
72
+ - **Out of Scope(范围外)** — 明确的边界
73
+
74
+ > **为什么要先写 spec?** AC 驱动的开发能减少范围蔓延,并让 review 更快。
75
+ > `/sdd` 遵循 UDS Spec-Driven Development(规格驱动开发)标准。
76
+
77
+ ---
78
+
79
+ ## 步骤 4 — 编写代码(搭配 TDD 或 BDD)
80
+
81
+ 有了 spec 之后,选择你的工作流:
82
+
83
+ | 工作流 | 命令 | 适用时机 |
84
+ |--------|------|----------|
85
+ | 测试驱动开发 | `/tdd` | 编写单元/集成测试 |
86
+ | 行为驱动开发 | `/bdd` | 编写功能场景 |
87
+ | 直接实现 | — | 简单、已充分理解的任务 |
88
+
89
+ TDD 示例:
90
+ ```
91
+ /tdd specs/SPEC-001-user-login.md
92
+ ```
93
+ Claude 会引导你走过 RED → GREEN → REFACTOR 循环。
94
+
95
+ ---
96
+
97
+ ## 步骤 5 — Commit(`/commit`)
98
+
99
+ 准备好要 commit 时:
100
+
101
+ ```
102
+ /commit
103
+ ```
104
+
105
+ Claude Code 将会:
106
+ 1. 审查你已 stage 的变更
107
+ 2. 生成一则符合 [Conventional Commits](https://www.conventionalcommits.org/) 格式的消息
108
+ 3. 在 commit 前把消息显示给你确认
109
+
110
+ > **安全推送?** 在 `git push` 前使用 `/push` 取得额外的质量门禁。
111
+
112
+ ---
113
+
114
+ ## 常用命令速览
115
+
116
+ | 任务 | 命令 |
117
+ |------|------|
118
+ | 浏览所有 skill | `/dev-workflow` |
119
+ | 创建 spec | `/sdd` |
120
+ | TDD 工作流 | `/tdd` |
121
+ | BDD 工作流 | `/bdd` |
122
+ | 生成 commit | `/commit` |
123
+ | 安全推送 | `/push` |
124
+ | 架构决策 | `/adr` |
125
+ | 代码审查 | `/code-review` |
126
+
127
+ 完整列表请见 [SKILLS-INDEX.md → 触发时机速查](../../../../docs/user/SKILLS-INDEX.md#觸發時機速查-when-to-use)。
128
+
129
+ ---
130
+
131
+ ## 疑难排解
132
+
133
+ - **找不到 skill**:输入 `uds check` 验证安装状态
134
+ - **CLAUDE.md 未更新**:重新运行 `uds init --force`
135
+ - **Claude Code 菜单中未显示 skill**:见 [TROUBLESHOOTING.md](../../../../docs/user/TROUBLESHOOTING.md)
136
+
137
+ ---
138
+
139
+ ## 后续步骤
140
+
141
+ - **探索所有 skill**:[SKILLS-INDEX.md](../../../../docs/user/SKILLS-INDEX.md)
142
+ - **自定义 skill 显示**:[skill-budget-tuning.md](../../../../docs/skill-budget-tuning.md)
143
+ - **每日工作流模式**:[DAILY-WORKFLOW-GUIDE.md](../../adoption/DAILY-WORKFLOW-GUIDE.md)
144
+ - **理解架构**:[GLOSSARY.md](../../../../docs/user/GLOSSARY.md)
@@ -0,0 +1,178 @@
1
+ ---
2
+ source: docs/user/GLOSSARY.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ status: current
6
+ ---
7
+
8
+ # UDS 术语表
9
+
10
+ > **语言**: [English](../../../../docs/user/GLOSSARY.md) | 简体中文
11
+
12
+ UDS 专属,或在 UDS 语境下有特定用法的术语。
13
+
14
+ ---
15
+
16
+ ## A
17
+
18
+ **AC(Acceptance Criterion,验收条件)**
19
+ 一条可测试的陈述,定义一个功能何时算完成。以 Given-When-Then 或一般英文撰写。AC 记录在 Spec 文件中,并在测试里被引用。
20
+ _参见:`/atdd`、`/sdd`、`acceptance-test-driven-development` 标准_
21
+
22
+ **Activity(活动)**
23
+ 在 DEC-051 四层分类模型中,Activity 是一个具名的工作流步骤(例如「编写失败的测试」、「执行回归测试」)。Activity 定义于 UDS 标准中,并由 Skill 执行。
24
+
25
+ **ADR(Architecture Decision Record,架构决策记录)**
26
+ 记录一项重大技术决策的文件:上下文、考量过的选项、所选方案,以及后果。
27
+ _参见:`/adr`、`adr-standards` 标准_
28
+
29
+ **ATDD(Acceptance Test-Driven Development,验收测试驱动开发)**
30
+ 一种实践做法:在开始实现前先定义验收条件,并编写测试来验证这些 AC。桥接 BDD 与 TDD。
31
+ _参见:`/atdd`_
32
+
33
+ ---
34
+
35
+ ## B
36
+
37
+ **BDD(Behavior-Driven Development,行为驱动开发)**
38
+ 一种使用自然语言 Given-When-Then 场景来描述系统行为的开发实践。场景同时作为文档与测试规格。
39
+ _参见:`/bdd`、`behavior-driven-development` 标准_
40
+
41
+ **Bundle(Bundle 层)**
42
+ 包含在 `npm install` 包中的 UDS 标准子集(供采用者使用)。与 Source 层不同——后者包含所有标准,含治理与维护工具。
43
+ _参见:DEC-045_
44
+
45
+ ---
46
+
47
+ ## C
48
+
49
+ **Core Standard(核心标准)**
50
+ 位于 `core/`(以及 `.standards/*.md`)的 Markdown 文件,包含某个 UDS 标准完整、人类可读的版本。涵盖背后理由、边界情况、示例与参考资料。
51
+ _对比:AI Standard_
52
+
53
+ **AI Standard(AI 标准)**
54
+ 位于 `.standards/`(以及 `ai/standards/`)的 `.ai.yaml` 文件,是 Core Standard 的 token 精简、为 AI 优化的编码。Skill 在执行时读取它。
55
+
56
+ ---
57
+
58
+ ## D
59
+
60
+ **DEC(Decision,决策)**
61
+ 记录于 `dev-platform/cross-project/decisions/DEC-NNN-*.md` 的跨项目架构或产品决策。DEC 依序编号,追踪重大选择背后的「为什么」。
62
+
63
+ **Dual-Layer Architecture(双层架构)**
64
+ UDS 的两层设计:Core Standards(完整知识、人类可读)+ AI Standards(token 精简、机器可读)。Skill 使用 AI Standards;开发者阅读 Core Standards。
65
+
66
+ ---
67
+
68
+ ## S
69
+
70
+ **SDD(Spec-Driven Development,规格驱动开发)**
71
+ 一种 UDS 实践做法:在写代码前先创建规格文件。Spec 定义背景、范围、验收条件与范围外项目。
72
+ _参见:`/sdd`、`spec-driven-development` 标准_
73
+
74
+ **Skill**
75
+ 封装为 SKILL.md 文件的预建 AI 工作流。在 Claude Code 输入 `/<name>` 即可激活。Skill 运用 AI Standards 来实现 UDS 的活动。
76
+ _参见:[SKILLS-INDEX.md](../../../../docs/user/SKILLS-INDEX.md)_
77
+
78
+ **Skill Budget(Skill 预算)**
79
+ Claude Code 的 context window 中保留用于列出可用 skill 的比例。当有 55+ 个 skill 时,描述可能被截断。UDS 以 Tier 来管理这项预算。
80
+ _参见:DEC-061、[skill-budget-tuning.md](../../../../docs/skill-budget-tuning.md)_
81
+
82
+ **Skill Tier(Skill 分级,DEC-061)**
83
+ 依使用频率对 skill 进行分类,借此控制列出行为:
84
+ - **Tier 1(Core)**:15 个 skill,每日使用,永远以描述列出
85
+ - **Tier 2(Advanced)**:28 个 skill,每周使用,默认以描述列出
86
+ - **Tier 3(Specialist)**:12 个 skill,事件驱动,默认仅列出名称(仍可通过 `/<name>` 调用)
87
+
88
+ **Standard(标准)**
89
+ 涵盖某项特定实践(例如 commit 消息、API 设计、测试)的 UDS 准则文件。标准与技术、语言无关。每个标准同时存在为 Core Standard(`.md`)与 AI Standard(`.ai.yaml`)。
90
+
91
+ **Source(Source 层)**
92
+ 完整的 UDS 仓库,包含所有标准、治理工具与维护脚本。是 Bundle 层的超集。
93
+ _参见:DEC-045_
94
+
95
+ ---
96
+
97
+ ## T
98
+
99
+ **TDD(Test-Driven Development,测试驱动开发)**
100
+ 一种在实现代码前先编写测试的开发实践。RED-GREEN-REFACTOR 循环:写一个失败的测试 → 让它通过 → 重构。
101
+ _参见:`/tdd`、`test-driven-development` 标准_
102
+
103
+ ---
104
+
105
+ ## U
106
+
107
+ **UDS(Universal Development Standards,通用开发标准)**
108
+ 本项目。一套与语言无关、与框架无关的软件开发质量汇集,含 149 个核心标准、55 个 AI skill 与 51 个斜线命令。
109
+
110
+ **UDS Manifest(`uds-manifest.json`)**
111
+ 所有 UDS 标准与 skill 的机器可读索引。包含统计数据、skill 对命令的对照,以及分类归属。供 UDS CLI 与文档生成器使用。
112
+
113
+ ---
114
+
115
+ ## X
116
+
117
+ **XSPEC(Cross-Project Spec,跨项目规格)**
118
+ 位于 `dev-platform/cross-project/specs/XSPEC-NNN-*.md` 的规格文件。用于影响多个子项目(UDS、VibeOps、telemetry)的功能,或新的 UDS 功能。
119
+ _依集中化政策(2026-04-22),所有新 spec 一律创建为 XSPEC。_
120
+
121
+ ---
122
+
123
+ ## 术语规范化(Canonical Forms,标准形式)
124
+
125
+ > 跨标准反复出现的术语与符号之单一真实来源(XSPEC-292 T6)。这些表格把**既有、刻意为之**的惯例明文化,让新标准对齐而非漂移。它们**不会**重新命名任何东西——多数看似「双重术语」的情况其实是依层级设计、各得其所(例如 JSON body 中的 `createdAt` 对比数据库字段的 `created_at` 是正确的,并非冲突)。
126
+
127
+ ### 依层级的字段命名
128
+
129
+ 同一个概念依其所在层级的惯例书写。跨越层级边界是一种转换,而非不一致。
130
+
131
+ | 层级 | 惯例 | 示例 |
132
+ |------|------|------|
133
+ | 结构化日志(JSON) | `snake_case` | `trace_id`、`request_id`、`http_method`、`db_table` |
134
+ | API JSON body | `camelCase` | `createdAt`、`firstName`、`httpStatus` |
135
+ | API 查询参数 | `snake_case` | `?sort_by=created_at` |
136
+ | URL 路径片段 | `kebab-case` | `/user-profiles` |
137
+ | HTTP header 名称 | `lowercase-hyphen` | `x-request-id`、`traceparent` |
138
+ | 数据库数据表/字段 | `snake_case`(单数数据表)| `user_account`、`created_at` |
139
+ | 代码标识符 | 语言原生 | `camelCase`(JS/TS)、`snake_case`(Python/Go)|
140
+
141
+ _标准:`logging-standards`、`api-design-standards`、`database-standards`。_
142
+
143
+ ### 测试层级缩写
144
+
145
+ 大写=该术语;小写=环境标识符。`IT` 永远指 Integration Testing(集成测试),绝非 Information Technology。
146
+
147
+ | 缩写 | 全称 | 典型环境 |
148
+ |------|------|----------|
149
+ | `UT` | Unit Testing(单元测试)| `local` |
150
+ | `IT` | Integration Testing(集成测试)| `local` / `ci` |
151
+ | `ST` | System Testing(系统测试)| `ci` / `sit` |
152
+ | `E2E` | End-to-End Testing(端到端测试)| `staging` |
153
+ | `AT` | Acceptance Testing(验收测试)| — |
154
+ | `UAT` | User Acceptance Testing(用户验收测试)| — |
155
+ | `SIT` | System Integration Testing(系统集成测试,该术语);`sit` 是 SIT **环境** id | `ci` |
156
+
157
+ _标准:`testing`(testing-standards)、`test-governance`。_
158
+
159
+ ### 状态:文字 vs 符号
160
+
161
+ **文字**是标准/机器可读的值;**符号**是可选的视觉呈现。两者成对,并非互相竞争。
162
+
163
+ | 标准文字 | 符号 | 领域 |
164
+ |----------|------|------|
165
+ | `covered` | ✅ | AC/测试覆盖 |
166
+ | `partial` | ⚠️ | AC/测试覆盖 |
167
+ | `uncovered` | ❌ | AC/测试覆盖(测试缺口)|
168
+ | `not_implemented` | 🚫 | AC(代码缺口,非测试缺口)|
169
+
170
+ _领域专属的生命周期各自维持独立的状态机——ADR(`Proposed → Accepted → Deprecated → Superseded`)、文档生命周期(`draft → active → archived`),以及上方的 AC 覆盖彼此不同,**不会**被合并。标准:`acceptance-criteria-traceability`、`adr-standards`、`documentation-structure`。_
171
+
172
+ ---
173
+
174
+ ## 另见
175
+
176
+ - [FAQ.md](FAQ.md) — 常见问题
177
+ - [SKILLS-INDEX.md](../../../../docs/user/SKILLS-INDEX.md) — 所有 skill 与描述
178
+ - [GETTING-STARTED.md](GETTING-STARTED.md) — 首次设置