universal-dev-standards 3.5.1-beta.1 → 3.5.1-beta.11

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 (433) hide show
  1. package/bin/uds.js +2 -0
  2. package/bundled/core/ai-instruction-standards.md +205 -0
  3. package/bundled/core/anti-hallucination.md +684 -0
  4. package/bundled/core/changelog-standards.md +556 -0
  5. package/bundled/core/checkin-standards.md +935 -0
  6. package/bundled/core/code-review-checklist.md +684 -0
  7. package/bundled/core/commit-message-guide.md +915 -0
  8. package/bundled/core/documentation-structure.md +1117 -0
  9. package/bundled/core/documentation-writing-standards.md +487 -0
  10. package/bundled/core/error-code-standards.md +382 -0
  11. package/bundled/core/git-workflow.md +859 -0
  12. package/bundled/core/logging-standards.md +323 -0
  13. package/bundled/core/project-structure.md +354 -0
  14. package/bundled/core/refactoring-standards.md +636 -0
  15. package/bundled/core/spec-driven-development.md +207 -0
  16. package/bundled/core/test-completeness-dimensions.md +536 -0
  17. package/bundled/core/test-driven-development.md +995 -0
  18. package/bundled/core/testing-standards.md +3061 -0
  19. package/bundled/core/versioning.md +902 -0
  20. package/bundled/locales/README.md +88 -0
  21. package/bundled/locales/zh-CN/CHANGELOG.md +705 -0
  22. package/bundled/locales/zh-CN/CLAUDE.md +213 -0
  23. package/bundled/locales/zh-CN/MAINTENANCE.md +689 -0
  24. package/bundled/locales/zh-CN/README.md +707 -0
  25. package/bundled/locales/zh-CN/STANDARDS-MAPPING.md +177 -0
  26. package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +392 -0
  27. package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +302 -0
  28. package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +332 -0
  29. package/bundled/locales/zh-CN/adoption/checklists/minimal.md +141 -0
  30. package/bundled/locales/zh-CN/adoption/checklists/recommended.md +272 -0
  31. package/bundled/locales/zh-CN/ai/MAINTENANCE.md +739 -0
  32. package/bundled/locales/zh-CN/ai/options/changelog/auto-generated.ai.yaml +76 -0
  33. package/bundled/locales/zh-CN/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
  34. package/bundled/locales/zh-CN/ai/options/code-review/automated-review.ai.yaml +120 -0
  35. package/bundled/locales/zh-CN/ai/options/code-review/pair-programming.ai.yaml +109 -0
  36. package/bundled/locales/zh-CN/ai/options/code-review/pr-review.ai.yaml +104 -0
  37. package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +105 -0
  38. package/bundled/locales/zh-CN/ai/options/commit-message/english.ai.yaml +79 -0
  39. package/bundled/locales/zh-CN/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
  40. package/bundled/locales/zh-CN/ai/options/documentation/api-docs.ai.yaml +140 -0
  41. package/bundled/locales/zh-CN/ai/options/documentation/markdown-docs.ai.yaml +89 -0
  42. package/bundled/locales/zh-CN/ai/options/documentation/wiki-style.ai.yaml +119 -0
  43. package/bundled/locales/zh-CN/ai/options/git-workflow/gitflow.ai.yaml +133 -0
  44. package/bundled/locales/zh-CN/ai/options/git-workflow/github-flow.ai.yaml +73 -0
  45. package/bundled/locales/zh-CN/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
  46. package/bundled/locales/zh-CN/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
  47. package/bundled/locales/zh-CN/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
  48. package/bundled/locales/zh-CN/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
  49. package/bundled/locales/zh-CN/ai/options/project-structure/dotnet.ai.yaml +108 -0
  50. package/bundled/locales/zh-CN/ai/options/project-structure/go.ai.yaml +115 -0
  51. package/bundled/locales/zh-CN/ai/options/project-structure/java.ai.yaml +113 -0
  52. package/bundled/locales/zh-CN/ai/options/project-structure/kotlin.ai.yaml +123 -0
  53. package/bundled/locales/zh-CN/ai/options/project-structure/nodejs.ai.yaml +101 -0
  54. package/bundled/locales/zh-CN/ai/options/project-structure/php.ai.yaml +147 -0
  55. package/bundled/locales/zh-CN/ai/options/project-structure/python.ai.yaml +116 -0
  56. package/bundled/locales/zh-CN/ai/options/project-structure/ruby.ai.yaml +140 -0
  57. package/bundled/locales/zh-CN/ai/options/project-structure/rust.ai.yaml +117 -0
  58. package/bundled/locales/zh-CN/ai/options/project-structure/swift.ai.yaml +143 -0
  59. package/bundled/locales/zh-CN/ai/options/testing/contract-testing.ai.yaml +254 -0
  60. package/bundled/locales/zh-CN/ai/options/testing/e2e-testing.ai.yaml +116 -0
  61. package/bundled/locales/zh-CN/ai/options/testing/industry-pyramid.ai.yaml +144 -0
  62. package/bundled/locales/zh-CN/ai/options/testing/integration-testing.ai.yaml +90 -0
  63. package/bundled/locales/zh-CN/ai/options/testing/istqb-framework.ai.yaml +108 -0
  64. package/bundled/locales/zh-CN/ai/options/testing/performance-testing.ai.yaml +272 -0
  65. package/bundled/locales/zh-CN/ai/options/testing/security-testing.ai.yaml +160 -0
  66. package/bundled/locales/zh-CN/ai/options/testing/system-testing.ai.yaml +101 -0
  67. package/bundled/locales/zh-CN/ai/options/testing/unit-testing.ai.yaml +82 -0
  68. package/bundled/locales/zh-CN/ai/standards/anti-hallucination.ai.yaml +145 -0
  69. package/bundled/locales/zh-CN/ai/standards/changelog.ai.yaml +146 -0
  70. package/bundled/locales/zh-CN/ai/standards/checkin-standards.ai.yaml +170 -0
  71. package/bundled/locales/zh-CN/ai/standards/code-review.ai.yaml +148 -0
  72. package/bundled/locales/zh-CN/ai/standards/commit-message.ai.yaml +175 -0
  73. package/bundled/locales/zh-CN/ai/standards/documentation-structure.ai.yaml +124 -0
  74. package/bundled/locales/zh-CN/ai/standards/documentation-writing-standards.ai.yaml +190 -0
  75. package/bundled/locales/zh-CN/ai/standards/error-codes.ai.yaml +139 -0
  76. package/bundled/locales/zh-CN/ai/standards/git-workflow.ai.yaml +95 -0
  77. package/bundled/locales/zh-CN/ai/standards/logging.ai.yaml +128 -0
  78. package/bundled/locales/zh-CN/ai/standards/project-structure.ai.yaml +134 -0
  79. package/bundled/locales/zh-CN/ai/standards/spec-driven-development.ai.yaml +169 -0
  80. package/bundled/locales/zh-CN/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
  81. package/bundled/locales/zh-CN/ai/standards/testing.ai.yaml +137 -0
  82. package/bundled/locales/zh-CN/ai/standards/versioning.ai.yaml +211 -0
  83. package/bundled/locales/zh-CN/core/ai-instruction-standards.md +213 -0
  84. package/bundled/locales/zh-CN/core/anti-hallucination.md +691 -0
  85. package/bundled/locales/zh-CN/core/changelog-standards.md +147 -0
  86. package/bundled/locales/zh-CN/core/checkin-standards.md +943 -0
  87. package/bundled/locales/zh-CN/core/code-review-guide.md +693 -0
  88. package/bundled/locales/zh-CN/core/commit-message-guide.md +129 -0
  89. package/bundled/locales/zh-CN/core/documentation-structure.md +173 -0
  90. package/bundled/locales/zh-CN/core/documentation-writing-standards.md +495 -0
  91. package/bundled/locales/zh-CN/core/error-code-standards.md +180 -0
  92. package/bundled/locales/zh-CN/core/git-workflow.md +193 -0
  93. package/bundled/locales/zh-CN/core/logging-standards.md +174 -0
  94. package/bundled/locales/zh-CN/core/project-structure.md +184 -0
  95. package/bundled/locales/zh-CN/core/refactoring-standards.md +642 -0
  96. package/bundled/locales/zh-CN/core/spec-driven-development.md +215 -0
  97. package/bundled/locales/zh-CN/core/test-completeness-dimensions.md +544 -0
  98. package/bundled/locales/zh-CN/core/test-driven-development.md +1002 -0
  99. package/bundled/locales/zh-CN/core/testing-standards.md +170 -0
  100. package/bundled/locales/zh-CN/core/versioning.md +177 -0
  101. package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +303 -0
  102. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +990 -0
  103. package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +1064 -0
  104. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +333 -0
  105. package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +215 -0
  106. package/bundled/locales/zh-CN/integrations/codex/AGENTS.md +115 -0
  107. package/bundled/locales/zh-CN/integrations/codex/README.md +67 -0
  108. package/bundled/locales/zh-CN/integrations/gemini-cli/GEMINI.md +102 -0
  109. package/bundled/locales/zh-CN/integrations/gemini-cli/README.md +140 -0
  110. package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
  111. package/bundled/locales/zh-CN/integrations/github-copilot/README.md +167 -0
  112. package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +263 -0
  113. package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +192 -0
  114. package/bundled/locales/zh-CN/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
  115. package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +84 -0
  116. package/bundled/locales/zh-CN/integrations/opencode/AGENTS.md +111 -0
  117. package/bundled/locales/zh-CN/integrations/opencode/README.md +176 -0
  118. package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +396 -0
  119. package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +301 -0
  120. package/bundled/locales/zh-CN/integrations/openspec/README.md +43 -0
  121. package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +184 -0
  122. package/bundled/locales/zh-CN/integrations/spec-kit/README.md +43 -0
  123. package/bundled/locales/zh-CN/options/commit-message/bilingual.md +161 -0
  124. package/bundled/locales/zh-CN/options/commit-message/english.md +137 -0
  125. package/bundled/locales/zh-CN/options/commit-message/traditional-chinese.md +162 -0
  126. package/bundled/locales/zh-CN/options/git-workflow/gitflow.md +147 -0
  127. package/bundled/locales/zh-CN/options/git-workflow/github-flow.md +124 -0
  128. package/bundled/locales/zh-CN/options/git-workflow/merge-commit.md +124 -0
  129. package/bundled/locales/zh-CN/options/git-workflow/rebase-ff.md +160 -0
  130. package/bundled/locales/zh-CN/options/git-workflow/squash-merge.md +117 -0
  131. package/bundled/locales/zh-CN/options/git-workflow/trunk-based.md +125 -0
  132. package/bundled/locales/zh-CN/options/project-structure/dotnet.md +183 -0
  133. package/bundled/locales/zh-CN/options/project-structure/go.md +226 -0
  134. package/bundled/locales/zh-CN/options/project-structure/java.md +213 -0
  135. package/bundled/locales/zh-CN/options/project-structure/nodejs.md +185 -0
  136. package/bundled/locales/zh-CN/options/project-structure/python.md +229 -0
  137. package/bundled/locales/zh-CN/options/testing/e2e-testing.md +207 -0
  138. package/bundled/locales/zh-CN/options/testing/integration-testing.md +230 -0
  139. package/bundled/locales/zh-CN/options/testing/system-testing.md +183 -0
  140. package/bundled/locales/zh-CN/options/testing/unit-testing.md +165 -0
  141. package/bundled/locales/zh-CN/skills/INTEGRATION-GUIDE.md +218 -0
  142. package/bundled/locales/zh-CN/skills/README.md +134 -0
  143. package/bundled/locales/zh-CN/skills/_shared/README.md +68 -0
  144. package/bundled/locales/zh-CN/skills/claude-code/CONTRIBUTING.template.md +151 -0
  145. package/bundled/locales/zh-CN/skills/claude-code/README.md +174 -0
  146. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  147. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
  148. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
  149. package/bundled/locales/zh-CN/skills/claude-code/changelog-guide/SKILL.md +237 -0
  150. package/bundled/locales/zh-CN/skills/claude-code/checkin-assistant/SKILL.md +407 -0
  151. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/SKILL.md +154 -0
  152. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
  153. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
  154. package/bundled/locales/zh-CN/skills/claude-code/commands/bdd.md +142 -0
  155. package/bundled/locales/zh-CN/skills/claude-code/commands/methodology.md +274 -0
  156. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/SKILL.md +191 -0
  157. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/conventional-commits.md +264 -0
  158. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/language-options.md +172 -0
  159. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/SKILL.md +421 -0
  160. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
  161. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/readme-template.md +412 -0
  162. package/bundled/locales/zh-CN/skills/claude-code/error-code-guide/SKILL.md +269 -0
  163. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
  164. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
  165. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
  166. package/bundled/locales/zh-CN/skills/claude-code/logging-guide/SKILL.md +285 -0
  167. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/SKILL.md +131 -0
  168. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/create-methodology.md +350 -0
  169. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/runtime.md +279 -0
  170. package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  171. package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
  172. package/bundled/locales/zh-CN/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
  173. package/bundled/locales/zh-CN/skills/claude-code/release-standards/SKILL.md +191 -0
  174. package/bundled/locales/zh-CN/skills/claude-code/release-standards/changelog-format.md +247 -0
  175. package/bundled/locales/zh-CN/skills/claude-code/release-standards/release-workflow.md +345 -0
  176. package/bundled/locales/zh-CN/skills/claude-code/release-standards/semantic-versioning.md +250 -0
  177. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/SKILL.md +227 -0
  178. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
  179. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
  180. package/bundled/locales/zh-CN/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
  181. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/SKILL.md +332 -0
  182. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/language-examples.md +639 -0
  183. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
  184. package/bundled/locales/zh-CN/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
  185. package/bundled/locales/zh-CN/skills/claude-code/testing-guide/SKILL.md +234 -0
  186. package/bundled/locales/zh-CN/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
  187. package/bundled/locales/zh-CN/skills/cline/README.md +58 -0
  188. package/bundled/locales/zh-CN/skills/copilot/README.md +61 -0
  189. package/bundled/locales/zh-CN/skills/copilot/copilot-instructions.md +79 -0
  190. package/bundled/locales/zh-CN/skills/cursor/README.md +58 -0
  191. package/bundled/locales/zh-CN/skills/windsurf/README.md +59 -0
  192. package/bundled/locales/zh-TW/CHANGELOG.md +707 -0
  193. package/bundled/locales/zh-TW/CLAUDE.md +213 -0
  194. package/bundled/locales/zh-TW/MAINTENANCE.md +683 -0
  195. package/bundled/locales/zh-TW/README.md +687 -0
  196. package/bundled/locales/zh-TW/STANDARDS-MAPPING.md +177 -0
  197. package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +392 -0
  198. package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +299 -0
  199. package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +332 -0
  200. package/bundled/locales/zh-TW/adoption/checklists/minimal.md +141 -0
  201. package/bundled/locales/zh-TW/adoption/checklists/recommended.md +272 -0
  202. package/bundled/locales/zh-TW/ai/MAINTENANCE.md +754 -0
  203. package/bundled/locales/zh-TW/ai/options/changelog/auto-generated.ai.yaml +76 -0
  204. package/bundled/locales/zh-TW/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
  205. package/bundled/locales/zh-TW/ai/options/code-review/automated-review.ai.yaml +120 -0
  206. package/bundled/locales/zh-TW/ai/options/code-review/pair-programming.ai.yaml +109 -0
  207. package/bundled/locales/zh-TW/ai/options/code-review/pr-review.ai.yaml +104 -0
  208. package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +105 -0
  209. package/bundled/locales/zh-TW/ai/options/commit-message/english.ai.yaml +79 -0
  210. package/bundled/locales/zh-TW/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
  211. package/bundled/locales/zh-TW/ai/options/documentation/api-docs.ai.yaml +140 -0
  212. package/bundled/locales/zh-TW/ai/options/documentation/markdown-docs.ai.yaml +89 -0
  213. package/bundled/locales/zh-TW/ai/options/documentation/wiki-style.ai.yaml +119 -0
  214. package/bundled/locales/zh-TW/ai/options/git-workflow/gitflow.ai.yaml +133 -0
  215. package/bundled/locales/zh-TW/ai/options/git-workflow/github-flow.ai.yaml +73 -0
  216. package/bundled/locales/zh-TW/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
  217. package/bundled/locales/zh-TW/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
  218. package/bundled/locales/zh-TW/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
  219. package/bundled/locales/zh-TW/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
  220. package/bundled/locales/zh-TW/ai/options/project-structure/dotnet.ai.yaml +108 -0
  221. package/bundled/locales/zh-TW/ai/options/project-structure/go.ai.yaml +115 -0
  222. package/bundled/locales/zh-TW/ai/options/project-structure/java.ai.yaml +113 -0
  223. package/bundled/locales/zh-TW/ai/options/project-structure/kotlin.ai.yaml +123 -0
  224. package/bundled/locales/zh-TW/ai/options/project-structure/nodejs.ai.yaml +101 -0
  225. package/bundled/locales/zh-TW/ai/options/project-structure/php.ai.yaml +147 -0
  226. package/bundled/locales/zh-TW/ai/options/project-structure/python.ai.yaml +116 -0
  227. package/bundled/locales/zh-TW/ai/options/project-structure/ruby.ai.yaml +140 -0
  228. package/bundled/locales/zh-TW/ai/options/project-structure/rust.ai.yaml +117 -0
  229. package/bundled/locales/zh-TW/ai/options/project-structure/swift.ai.yaml +143 -0
  230. package/bundled/locales/zh-TW/ai/options/testing/contract-testing.ai.yaml +254 -0
  231. package/bundled/locales/zh-TW/ai/options/testing/e2e-testing.ai.yaml +116 -0
  232. package/bundled/locales/zh-TW/ai/options/testing/industry-pyramid.ai.yaml +144 -0
  233. package/bundled/locales/zh-TW/ai/options/testing/integration-testing.ai.yaml +90 -0
  234. package/bundled/locales/zh-TW/ai/options/testing/istqb-framework.ai.yaml +108 -0
  235. package/bundled/locales/zh-TW/ai/options/testing/performance-testing.ai.yaml +272 -0
  236. package/bundled/locales/zh-TW/ai/options/testing/security-testing.ai.yaml +160 -0
  237. package/bundled/locales/zh-TW/ai/options/testing/system-testing.ai.yaml +101 -0
  238. package/bundled/locales/zh-TW/ai/options/testing/unit-testing.ai.yaml +82 -0
  239. package/bundled/locales/zh-TW/ai/standards/anti-hallucination.ai.yaml +145 -0
  240. package/bundled/locales/zh-TW/ai/standards/changelog.ai.yaml +146 -0
  241. package/bundled/locales/zh-TW/ai/standards/checkin-standards.ai.yaml +170 -0
  242. package/bundled/locales/zh-TW/ai/standards/code-review.ai.yaml +148 -0
  243. package/bundled/locales/zh-TW/ai/standards/commit-message.ai.yaml +175 -0
  244. package/bundled/locales/zh-TW/ai/standards/documentation-structure.ai.yaml +124 -0
  245. package/bundled/locales/zh-TW/ai/standards/documentation-writing-standards.ai.yaml +190 -0
  246. package/bundled/locales/zh-TW/ai/standards/error-codes.ai.yaml +139 -0
  247. package/bundled/locales/zh-TW/ai/standards/git-workflow.ai.yaml +95 -0
  248. package/bundled/locales/zh-TW/ai/standards/logging.ai.yaml +128 -0
  249. package/bundled/locales/zh-TW/ai/standards/project-structure.ai.yaml +134 -0
  250. package/bundled/locales/zh-TW/ai/standards/spec-driven-development.ai.yaml +169 -0
  251. package/bundled/locales/zh-TW/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
  252. package/bundled/locales/zh-TW/ai/standards/testing.ai.yaml +137 -0
  253. package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +211 -0
  254. package/bundled/locales/zh-TW/core/ai-instruction-standards.md +213 -0
  255. package/bundled/locales/zh-TW/core/anti-hallucination.md +691 -0
  256. package/bundled/locales/zh-TW/core/changelog-standards.md +564 -0
  257. package/bundled/locales/zh-TW/core/checkin-standards.md +943 -0
  258. package/bundled/locales/zh-TW/core/code-review-checklist.md +693 -0
  259. package/bundled/locales/zh-TW/core/commit-message-guide.md +809 -0
  260. package/bundled/locales/zh-TW/core/documentation-structure.md +1125 -0
  261. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +495 -0
  262. package/bundled/locales/zh-TW/core/error-code-standards.md +384 -0
  263. package/bundled/locales/zh-TW/core/git-workflow.md +860 -0
  264. package/bundled/locales/zh-TW/core/logging-standards.md +325 -0
  265. package/bundled/locales/zh-TW/core/project-structure.md +362 -0
  266. package/bundled/locales/zh-TW/core/refactoring-standards.md +642 -0
  267. package/bundled/locales/zh-TW/core/spec-driven-development.md +215 -0
  268. package/bundled/locales/zh-TW/core/test-completeness-dimensions.md +544 -0
  269. package/bundled/locales/zh-TW/core/test-driven-development.md +1004 -0
  270. package/bundled/locales/zh-TW/core/testing-standards.md +2158 -0
  271. package/bundled/locales/zh-TW/core/versioning.md +909 -0
  272. package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +303 -0
  273. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +990 -0
  274. package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +1064 -0
  275. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +333 -0
  276. package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +215 -0
  277. package/bundled/locales/zh-TW/integrations/codex/AGENTS.md +115 -0
  278. package/bundled/locales/zh-TW/integrations/codex/README.md +113 -0
  279. package/bundled/locales/zh-TW/integrations/gemini-cli/GEMINI.md +102 -0
  280. package/bundled/locales/zh-TW/integrations/gemini-cli/README.md +140 -0
  281. package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
  282. package/bundled/locales/zh-TW/integrations/github-copilot/README.md +167 -0
  283. package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +263 -0
  284. package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +192 -0
  285. package/bundled/locales/zh-TW/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
  286. package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +84 -0
  287. package/bundled/locales/zh-TW/integrations/opencode/AGENTS.md +111 -0
  288. package/bundled/locales/zh-TW/integrations/opencode/README.md +176 -0
  289. package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +396 -0
  290. package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +301 -0
  291. package/bundled/locales/zh-TW/integrations/openspec/README.md +43 -0
  292. package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +184 -0
  293. package/bundled/locales/zh-TW/integrations/spec-kit/README.md +43 -0
  294. package/bundled/locales/zh-TW/options/commit-message/bilingual.md +161 -0
  295. package/bundled/locales/zh-TW/options/commit-message/english.md +137 -0
  296. package/bundled/locales/zh-TW/options/commit-message/traditional-chinese.md +162 -0
  297. package/bundled/locales/zh-TW/options/git-workflow/gitflow.md +147 -0
  298. package/bundled/locales/zh-TW/options/git-workflow/github-flow.md +124 -0
  299. package/bundled/locales/zh-TW/options/git-workflow/merge-commit.md +124 -0
  300. package/bundled/locales/zh-TW/options/git-workflow/rebase-ff.md +160 -0
  301. package/bundled/locales/zh-TW/options/git-workflow/squash-merge.md +117 -0
  302. package/bundled/locales/zh-TW/options/git-workflow/trunk-based.md +125 -0
  303. package/bundled/locales/zh-TW/options/project-structure/dotnet.md +183 -0
  304. package/bundled/locales/zh-TW/options/project-structure/go.md +226 -0
  305. package/bundled/locales/zh-TW/options/project-structure/java.md +213 -0
  306. package/bundled/locales/zh-TW/options/project-structure/nodejs.md +185 -0
  307. package/bundled/locales/zh-TW/options/project-structure/python.md +229 -0
  308. package/bundled/locales/zh-TW/options/testing/e2e-testing.md +207 -0
  309. package/bundled/locales/zh-TW/options/testing/integration-testing.md +230 -0
  310. package/bundled/locales/zh-TW/options/testing/system-testing.md +183 -0
  311. package/bundled/locales/zh-TW/options/testing/unit-testing.md +165 -0
  312. package/bundled/locales/zh-TW/skills/INTEGRATION-GUIDE.md +218 -0
  313. package/bundled/locales/zh-TW/skills/README.md +132 -0
  314. package/bundled/locales/zh-TW/skills/_shared/README.md +68 -0
  315. package/bundled/locales/zh-TW/skills/claude-code/CONTRIBUTING.template.md +151 -0
  316. package/bundled/locales/zh-TW/skills/claude-code/README.md +174 -0
  317. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  318. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
  319. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
  320. package/bundled/locales/zh-TW/skills/claude-code/changelog-guide/SKILL.md +237 -0
  321. package/bundled/locales/zh-TW/skills/claude-code/checkin-assistant/SKILL.md +407 -0
  322. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/SKILL.md +154 -0
  323. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
  324. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
  325. package/bundled/locales/zh-TW/skills/claude-code/commands/bdd.md +142 -0
  326. package/bundled/locales/zh-TW/skills/claude-code/commands/methodology.md +274 -0
  327. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/SKILL.md +191 -0
  328. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/conventional-commits.md +264 -0
  329. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/language-options.md +172 -0
  330. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/SKILL.md +421 -0
  331. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
  332. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/readme-template.md +412 -0
  333. package/bundled/locales/zh-TW/skills/claude-code/error-code-guide/SKILL.md +269 -0
  334. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
  335. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
  336. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
  337. package/bundled/locales/zh-TW/skills/claude-code/logging-guide/SKILL.md +285 -0
  338. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/SKILL.md +131 -0
  339. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/create-methodology.md +350 -0
  340. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/runtime.md +279 -0
  341. package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  342. package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
  343. package/bundled/locales/zh-TW/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
  344. package/bundled/locales/zh-TW/skills/claude-code/release-standards/SKILL.md +191 -0
  345. package/bundled/locales/zh-TW/skills/claude-code/release-standards/changelog-format.md +247 -0
  346. package/bundled/locales/zh-TW/skills/claude-code/release-standards/release-workflow.md +345 -0
  347. package/bundled/locales/zh-TW/skills/claude-code/release-standards/semantic-versioning.md +250 -0
  348. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/SKILL.md +227 -0
  349. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
  350. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
  351. package/bundled/locales/zh-TW/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
  352. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/SKILL.md +332 -0
  353. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/language-examples.md +639 -0
  354. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
  355. package/bundled/locales/zh-TW/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
  356. package/bundled/locales/zh-TW/skills/claude-code/testing-guide/SKILL.md +234 -0
  357. package/bundled/locales/zh-TW/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
  358. package/bundled/locales/zh-TW/skills/cline/README.md +58 -0
  359. package/bundled/locales/zh-TW/skills/copilot/README.md +61 -0
  360. package/bundled/locales/zh-TW/skills/copilot/copilot-instructions.md +79 -0
  361. package/bundled/locales/zh-TW/skills/cursor/README.md +58 -0
  362. package/bundled/locales/zh-TW/skills/windsurf/README.md +59 -0
  363. package/bundled/skills/claude-code/CONTRIBUTING.template.md +141 -0
  364. package/bundled/skills/claude-code/README.md +196 -0
  365. package/bundled/skills/claude-code/ai/standards/checkin.ai.yaml +21 -0
  366. package/bundled/skills/claude-code/ai/standards/commit.ai.yaml +20 -0
  367. package/bundled/skills/claude-code/ai/standards/refactoring.ai.yaml +34 -0
  368. package/bundled/skills/claude-code/ai/standards/testing.ai.yaml +41 -0
  369. package/bundled/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  370. package/bundled/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +215 -0
  371. package/bundled/skills/claude-code/ai-collaboration-standards/certainty-labels.md +124 -0
  372. package/bundled/skills/claude-code/changelog-guide/SKILL.md +232 -0
  373. package/bundled/skills/claude-code/checkin-assistant/SKILL.md +402 -0
  374. package/bundled/skills/claude-code/code-review-assistant/SKILL.md +220 -0
  375. package/bundled/skills/claude-code/code-review-assistant/checkin-checklist.md +249 -0
  376. package/bundled/skills/claude-code/code-review-assistant/review-checklist.md +238 -0
  377. package/bundled/skills/claude-code/commands/README.md +78 -0
  378. package/bundled/skills/claude-code/commands/bdd.md +142 -0
  379. package/bundled/skills/claude-code/commands/changelog.md +57 -0
  380. package/bundled/skills/claude-code/commands/check.md +91 -0
  381. package/bundled/skills/claude-code/commands/commit.md +48 -0
  382. package/bundled/skills/claude-code/commands/config.md +97 -0
  383. package/bundled/skills/claude-code/commands/coverage.md +58 -0
  384. package/bundled/skills/claude-code/commands/docs.md +75 -0
  385. package/bundled/skills/claude-code/commands/init.md +88 -0
  386. package/bundled/skills/claude-code/commands/methodology.md +268 -0
  387. package/bundled/skills/claude-code/commands/release.md +50 -0
  388. package/bundled/skills/claude-code/commands/requirement.md +54 -0
  389. package/bundled/skills/claude-code/commands/review.md +50 -0
  390. package/bundled/skills/claude-code/commands/spec.md +69 -0
  391. package/bundled/skills/claude-code/commands/tdd.md +86 -0
  392. package/bundled/skills/claude-code/commands/update.md +122 -0
  393. package/bundled/skills/claude-code/commit-standards/SKILL.md +249 -0
  394. package/bundled/skills/claude-code/commit-standards/conventional-commits.md +256 -0
  395. package/bundled/skills/claude-code/commit-standards/language-options.md +164 -0
  396. package/bundled/skills/claude-code/documentation-guide/SKILL.md +416 -0
  397. package/bundled/skills/claude-code/documentation-guide/documentation-structure.md +349 -0
  398. package/bundled/skills/claude-code/documentation-guide/readme-template.md +404 -0
  399. package/bundled/skills/claude-code/error-code-guide/SKILL.md +264 -0
  400. package/bundled/skills/claude-code/git-workflow-guide/SKILL.md +226 -0
  401. package/bundled/skills/claude-code/git-workflow-guide/branch-naming.md +212 -0
  402. package/bundled/skills/claude-code/git-workflow-guide/git-workflow.md +313 -0
  403. package/bundled/skills/claude-code/logging-guide/SKILL.md +280 -0
  404. package/bundled/skills/claude-code/methodology-system/SKILL.md +215 -0
  405. package/bundled/skills/claude-code/methodology-system/create-methodology.md +450 -0
  406. package/bundled/skills/claude-code/methodology-system/runtime.md +271 -0
  407. package/bundled/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  408. package/bundled/skills/claude-code/project-structure-guide/language-patterns.md +263 -0
  409. package/bundled/skills/claude-code/refactoring-assistant/SKILL.md +205 -0
  410. package/bundled/skills/claude-code/release-standards/SKILL.md +191 -0
  411. package/bundled/skills/claude-code/release-standards/changelog-format.md +239 -0
  412. package/bundled/skills/claude-code/release-standards/release-workflow.md +337 -0
  413. package/bundled/skills/claude-code/release-standards/semantic-versioning.md +242 -0
  414. package/bundled/skills/claude-code/requirement-assistant/SKILL.md +222 -0
  415. package/bundled/skills/claude-code/requirement-assistant/requirement-checklist.md +317 -0
  416. package/bundled/skills/claude-code/requirement-assistant/requirement-writing.md +391 -0
  417. package/bundled/skills/claude-code/spec-driven-dev/SKILL.md +238 -0
  418. package/bundled/skills/claude-code/tdd-assistant/SKILL.md +384 -0
  419. package/bundled/skills/claude-code/tdd-assistant/language-examples.md +1276 -0
  420. package/bundled/skills/claude-code/tdd-assistant/tdd-workflow.md +659 -0
  421. package/bundled/skills/claude-code/test-coverage-assistant/SKILL.md +277 -0
  422. package/bundled/skills/claude-code/testing-guide/SKILL.md +317 -0
  423. package/bundled/skills/claude-code/testing-guide/testing-pyramid.md +440 -0
  424. package/package.json +4 -2
  425. package/src/commands/check.js +38 -6
  426. package/src/commands/init.js +20 -6
  427. package/src/commands/list.js +7 -2
  428. package/src/commands/skills.js +0 -2
  429. package/src/commands/update.js +271 -0
  430. package/src/i18n/messages.js +161 -11
  431. package/src/utils/copier.js +63 -10
  432. package/src/utils/skills-installer.js +47 -11
  433. package/standards-registry.json +6 -3
@@ -0,0 +1,1064 @@
1
+ ---
2
+ source: ../../../docs/OPERATION-WORKFLOW.md
3
+ source_version: 1.2.0
4
+ translation_version: 1.2.0
5
+ status: current
6
+ last_updated: 2026-01-14
7
+ translator: Claude
8
+ ---
9
+
10
+ # UDS 作業流程
11
+
12
+ > **Language**: [English](../../../docs/OPERATION-WORKFLOW.md) | 繁體中文 | [简体中文](../../zh-CN/docs/OPERATION-WORKFLOW.md)
13
+
14
+ **版本**: 1.2.0
15
+ **最後更新**: 2026-01-14
16
+
17
+ 本文件提供 Universal Development Standards (UDS) 專案的完整作業流程,涵蓋從核心規範到檔案生成的所有流程。
18
+
19
+ ---
20
+
21
+ ## 目錄
22
+
23
+ 1. [概覽](#1-概覽)
24
+ 2. [核心規範層](#2-核心規範層)
25
+ 3. [衍生格式生成](#3-衍生格式生成)
26
+ 4. [Claude Code Skills](#4-claude-code-skills)
27
+ 5. [AI 工具整合](#5-ai-工具整合)
28
+ 6. [CLI 執行流程](#6-cli-執行流程)
29
+ 7. [維護流程](#7-維護流程)
30
+ 8. [開發指南](#8-開發指南)
31
+ 9. [發布流程](#9-發布流程)
32
+ 10. [檔案路徑參考](#10-檔案路徑參考)
33
+
34
+ ---
35
+
36
+ ## 1. 概覽
37
+
38
+ ### 1.1 專案架構
39
+
40
+ ```
41
+ ┌─────────────────────────────────────────────────────────────────┐
42
+ │ 核心規範層 (core/) │
43
+ │ 16 個標準:Essential(6) + Recommended(6) + Enterprise(4) │
44
+ └──────────────────────────┬──────────────────────────────────────┘
45
+
46
+ ┌──────────────────┼──────────────────┐
47
+ ↓ ↓ ↓
48
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
49
+ │ AI 格式 │ │ 選項檔案 │ │ 本地化 │
50
+ │ ai/standards/│ │ options/ │ │ locales/ │
51
+ │ 16 個 YAML │ │ 7 類 36 個 │ │ zh-TW/zh-CN │
52
+ └───────┬───────┘ └───────┬───────┘ └───────────────┘
53
+ │ │
54
+ └────────┬─────────┘
55
+
56
+ ┌─────────────────────────────────────────────────────────────────┐
57
+ │ Claude Code Skills │
58
+ │ skills/claude-code/ - 15 個 Skills │
59
+ │ 每個 Skill 對應 1+ 個核心規範 │
60
+ └──────────────────────────┬──────────────────────────────────────┘
61
+
62
+
63
+ ┌─────────────────────────────────────────────────────────────────┐
64
+ │ AI 工具整合 │
65
+ │ integrations/ - 10 種工具範本 │
66
+ │ CLI 動態生成:CLAUDE.md, .cursorrules, .windsurfrules 等 │
67
+ └─────────────────────────────────────────────────────────────────┘
68
+ ```
69
+
70
+ ### 1.2 檔案關係摘要
71
+
72
+ | 來源 | 衍生格式 | 數量 |
73
+ |------|----------|------|
74
+ | `core/*.md` | 人類可讀規範 | 16 |
75
+ | `ai/standards/*.ai.yaml` | AI 優化規範 | 16 |
76
+ | `options/*/*.md` | 實踐選項 | 36 |
77
+ | `ai/options/*/*.ai.yaml` | AI 優化選項 | 36 |
78
+ | `skills/claude-code/*/` | Claude Code 技能 | 15 |
79
+ | `integrations/*/` | AI 工具範本 | 10 |
80
+ | `locales/zh-TW/` | 繁體中文 | ~129 |
81
+ | `locales/zh-CN/` | 簡體中文 | 部分 |
82
+
83
+ ---
84
+
85
+ ## 2. 核心規範層
86
+
87
+ ### 2.1 依採用層級分類
88
+
89
+ #### 層級 1:Essential(6 個規範)
90
+
91
+ | ID | 檔案 | 說明 |
92
+ |----|------|------|
93
+ | anti-hallucination | `core/anti-hallucination.md` | AI 協作防幻覺指南 |
94
+ | commit-message | `core/commit-message-guide.md` | Conventional Commits 規範 |
95
+ | checkin-standards | `core/checkin-standards.md` | 程式碼簽入標準 |
96
+ | git-workflow | `core/git-workflow.md` | Git 工作流程標準 |
97
+ | changelog | `core/changelog-standards.md` | CHANGELOG 格式規範 |
98
+ | versioning | `core/versioning.md` | 語義化版本規範 |
99
+
100
+ #### 層級 2:Recommended(6 個規範)
101
+
102
+ | ID | 檔案 | 說明 |
103
+ |----|------|------|
104
+ | code-review | `core/code-review-checklist.md` | 程式碼審查清單 |
105
+ | documentation-structure | `core/documentation-structure.md` | 文件組織結構 |
106
+ | documentation-writing | `core/documentation-writing-standards.md` | 文件撰寫標準 |
107
+ | project-structure | `core/project-structure.md` | 專案目錄結構 |
108
+ | testing | `core/testing-standards.md` | 測試標準 |
109
+ | logging | `core/logging-standards.md` | 日誌記錄標準 |
110
+
111
+ #### 層級 3:Enterprise(4 個規範)
112
+
113
+ | ID | 檔案 | 說明 |
114
+ |----|------|------|
115
+ | tdd | `core/test-driven-development.md` | 測試驅動開發 |
116
+ | test-completeness | `core/test-completeness-dimensions.md` | 測試完整性維度 |
117
+ | spec-driven | `core/spec-driven-development.md` | 規格驅動開發 |
118
+ | error-codes | `core/error-code-standards.md` | 錯誤碼標準 |
119
+
120
+ ### 2.2 規範文件範本
121
+
122
+ ```markdown
123
+ # [規範名稱]
124
+
125
+ > **Language**: English | [繁體中文](../locales/zh-TW/core/[file].md)
126
+
127
+ **版本**: X.Y.Z
128
+ **最後更新**: YYYY-MM-DD
129
+
130
+ ---
131
+
132
+ ## 目的
133
+
134
+ [規範目的說明]
135
+
136
+ ## 主要指南
137
+
138
+ [詳細指南]
139
+
140
+ ## 相關規範
141
+
142
+ - [相關規範連結]
143
+
144
+ ## 版本歷史
145
+
146
+ | 版本 | 日期 | 變更 |
147
+ |------|------|------|
148
+ | X.Y.Z | YYYY-MM-DD | 說明 |
149
+
150
+ ## 授權
151
+
152
+ 本規範採用 [CC BY 4.0](...)
153
+ ```
154
+
155
+ ---
156
+
157
+ ## 3. 衍生格式生成
158
+
159
+ ### 3.1 AI 優化格式(`ai/`)
160
+
161
+ **轉換規則:**
162
+ ```
163
+ core/commit-message-guide.md(人類可讀)
164
+ ↓ 轉換
165
+ ai/standards/commit-message.ai.yaml(AI 優化)
166
+ ```
167
+
168
+ **名稱對應:**
169
+ | 核心檔案 | AI 檔案 |
170
+ |----------|---------|
171
+ | `changelog-standards` | `changelog` |
172
+ | `code-review-checklist` | `code-review` |
173
+ | `commit-message-guide` | `commit-message` |
174
+ | `error-code-standards` | `error-codes` |
175
+ | `logging-standards` | `logging` |
176
+ | `testing-standards` | `testing` |
177
+ | 其他 | 相同名稱 |
178
+
179
+ **AI YAML 結構:**
180
+ ```yaml
181
+ ---
182
+ name: commit-message
183
+ description: AI 助手的簡要說明
184
+ keywords: [commit, conventional, message, 提交, 訊息]
185
+ ---
186
+
187
+ # Commit Message Standards
188
+
189
+ ## Quick Reference
190
+ [簡潔內容]
191
+
192
+ ## Configuration Detection
193
+ [專案配置偵測邏輯]
194
+
195
+ ## Related Standards
196
+ - [核心規範連結]
197
+
198
+ ## Version History
199
+ [表格]
200
+
201
+ ## License
202
+ CC BY 4.0
203
+ ```
204
+
205
+ ### 3.2 選項檔案(`options/`)
206
+
207
+ | 類別 | 選項 | 路徑 |
208
+ |------|------|------|
209
+ | Git 工作流 | github-flow, gitflow, trunk-based | `options/git-workflow/` |
210
+ | 合併策略 | squash, merge-commit, rebase-ff | `options/git-workflow/` |
211
+ | 提交訊息語言 | english, traditional-chinese, bilingual | `options/commit-message/` |
212
+ | 測試類型 | unit, integration, e2e, system 等 | `options/testing/` |
213
+ | 程式碼審查 | pr-review, pair-programming, automated | `options/code-review/` |
214
+ | 文件類型 | markdown, api-docs, wiki-style | `options/documentation/` |
215
+ | 專案結構 | nodejs, python, java, go 等 | `options/project-structure/` |
216
+
217
+ ### 3.3 本地化(`locales/`)
218
+
219
+ **同步層級:**
220
+ ```
221
+ core/*.md(主要來源)
222
+
223
+ locales/zh-TW/core/*.md(繁體中文)
224
+
225
+ locales/zh-CN/core/*.md(簡體中文)
226
+ ```
227
+
228
+ **YAML Front Matter 範本:**
229
+ ```yaml
230
+ ---
231
+ source: ../../core/commit-message-guide.md
232
+ source_version: 1.2.0
233
+ translation_version: 1.2.0
234
+ status: current
235
+ last_updated: 2026-01-10
236
+ translator: [名稱]
237
+ ---
238
+ ```
239
+
240
+ **狀態值:**
241
+ - `current` - 翻譯已同步
242
+ - `outdated` - 來源已更新
243
+ - `needs_review` - 需要審查
244
+
245
+ ---
246
+
247
+ ## 4. Claude Code Skills
248
+
249
+ ### 4.1 Skills 清單(15 個 Skills)
250
+
251
+ | Skill 名稱 | 對應核心規範 | 路徑 |
252
+ |------------|--------------|------|
253
+ | ai-collaboration-standards | anti-hallucination | `skills/claude-code/ai-collaboration-standards/` |
254
+ | changelog-guide | changelog | `skills/claude-code/changelog-guide/` |
255
+ | code-review-assistant | code-review, checkin | `skills/claude-code/code-review-assistant/` |
256
+ | commit-standards | commit-message | `skills/claude-code/commit-standards/` |
257
+ | documentation-guide | documentation-* | `skills/claude-code/documentation-guide/` |
258
+ | error-code-guide | error-codes | `skills/claude-code/error-code-guide/` |
259
+ | git-workflow-guide | git-workflow | `skills/claude-code/git-workflow-guide/` |
260
+ | logging-guide | logging | `skills/claude-code/logging-guide/` |
261
+ | project-structure-guide | project-structure | `skills/claude-code/project-structure-guide/` |
262
+ | release-standards | versioning | `skills/claude-code/release-standards/` |
263
+ | requirement-assistant | (需求文件) | `skills/claude-code/requirement-assistant/` |
264
+ | spec-driven-dev | spec-driven | `skills/claude-code/spec-driven-dev/` |
265
+ | tdd-assistant | tdd | `skills/claude-code/tdd-assistant/` |
266
+ | test-coverage-assistant | test-completeness | `skills/claude-code/test-coverage-assistant/` |
267
+ | testing-guide | testing | `skills/claude-code/testing-guide/` |
268
+
269
+ ### 4.2 Skill 目錄結構
270
+
271
+ ```
272
+ skills/claude-code/[skill-name]/
273
+ ├── SKILL.md # 主要技能文件(YAML 前置 + 內容)
274
+ ├── [guide1].md # 詳細指南
275
+ ├── [guide2].md # 詳細指南
276
+ └── commands/ # 選用:命令檔案
277
+ └── [command].md
278
+ ```
279
+
280
+ ### 4.3 SKILL.md 範本
281
+
282
+ ```markdown
283
+ ---
284
+ name: skill-name
285
+ description: |
286
+ 簡要說明。
287
+ 使用時機:觸發此技能的時機。
288
+ 關鍵字:[keyword1, keyword2]
289
+ ---
290
+
291
+ # 技能標題
292
+
293
+ > **Language**: English | [繁體中文](翻譯路徑)
294
+
295
+ **版本**: 1.0.0
296
+ **最後更新**: YYYY-MM-DD
297
+ **適用範圍**: Claude Code Skills
298
+
299
+ ---
300
+
301
+ ## 目的
302
+ [清楚說明]
303
+
304
+ ## 快速參考
305
+ [快速參考指南]
306
+
307
+ ## 詳細指南
308
+ 完整資訊請參閱:
309
+ - [guide1.md](./guide1.md)
310
+
311
+ ## 配置偵測
312
+ [專案配置偵測]
313
+
314
+ ## 相關規範
315
+ - [core/related-standard.md](路徑)
316
+
317
+ ## 版本歷史
318
+ | 版本 | 日期 | 變更 |
319
+ |------|------|------|
320
+
321
+ ## 授權
322
+ CC BY 4.0
323
+ ```
324
+
325
+ ---
326
+
327
+ ## 5. AI 工具整合
328
+
329
+ ### 5.1 支援工具(10 種工具)
330
+
331
+ | 工具 | 整合檔案 | 格式 |
332
+ |------|----------|------|
333
+ | Claude Code | `CLAUDE.md` | Markdown |
334
+ | Cursor | `.cursorrules` | 純文字 |
335
+ | Windsurf | `.windsurfrules` | 純文字 |
336
+ | Cline | `.clinerules` | 純文字 |
337
+ | GitHub Copilot | `.github/copilot-instructions.md` | Markdown |
338
+ | Google Antigravity | `INSTRUCTIONS.md` | Markdown |
339
+ | OpenAI Codex | `AGENTS.md` | Markdown |
340
+ | OpenCode | `AGENTS.md`(共用) | Markdown |
341
+ | Gemini CLI | `GEMINI.md` | Markdown |
342
+ | OpenSpec | `AGENTS.md` | Markdown |
343
+
344
+ > **相關文件**:完整的 AI Agent 支援狀態、Skills 相容性矩陣及未來規劃,請參閱 [AI-AGENT-ROADMAP.md](./AI-AGENT-ROADMAP.md)。
345
+
346
+ ### 5.2 整合目錄結構
347
+
348
+ ```
349
+ integrations/[tool-name]/
350
+ ├── README.md # 安裝和使用指南
351
+ ├── [config-file] # 工具特定配置
352
+ └── examples/ # 選用:範例配置
353
+ ```
354
+
355
+ ---
356
+
357
+ ## 6. CLI 執行流程
358
+
359
+ ### 6.1 完整流程圖(`uds init`)
360
+
361
+ ```
362
+ ┌─────────────────────────────────────────────────────────────────┐
363
+ │ 階段 1:初始化檢查 │
364
+ │ - 檢查 .standards/manifest.json 是否存在 │
365
+ │ - 如已初始化,提示使用 uds update │
366
+ └─────────────────────────────┬───────────────────────────────────┘
367
+
368
+ ┌─────────────────────────────────────────────────────────────────┐
369
+ │ 階段 2:專案偵測(detector.js) │
370
+ │ - detectLanguage(): C#, PHP, TypeScript, JavaScript, Python │
371
+ │ - detectFramework(): Fat-Free, React, Vue, Angular, .NET │
372
+ │ - detectAITools(): 9 種 AI 工具偵測 │
373
+ └─────────────────────────────┬───────────────────────────────────┘
374
+
375
+ ┌─────────────────────────────────────────────────────────────────┐
376
+ │ 階段 3:互動配置(prompts/init.js) │
377
+ │ - AI 工具選擇(1-9 種) │
378
+ │ - Skills 安裝位置(marketplace/user/project/none) │
379
+ │ - 採用層級(Essential/Recommended/Enterprise) │
380
+ │ - 格式選擇(ai/human/both) │
381
+ │ - 標準選項(workflow, commit_language, test_levels) │
382
+ │ - 內容模式(minimal/index/full) │
383
+ └─────────────────────────────┬───────────────────────────────────┘
384
+
385
+ ┌─────────────────────────────────────────────────────────────────┐
386
+ │ 階段 4:標準查詢(registry.js) │
387
+ │ - 載入 cli/standards-registry.json │
388
+ │ - getStandardsByLevel() 篩選標準 │
389
+ │ - getStandardSource() 取得來源路徑 │
390
+ └─────────────────────────────┬───────────────────────────────────┘
391
+
392
+ ┌─────────────────────────────────────────────────────────────────┐
393
+ │ 階段 5:檔案複製(copier.js) │
394
+ │ - 核心規範 → .standards/*.md │
395
+ │ - AI 格式 → .standards/*.ai.yaml │
396
+ │ - 選項檔案 → .standards/options/ │
397
+ │ - 擴展檔案 → .standards/(語言/框架/本地化) │
398
+ └─────────────────────────────┬───────────────────────────────────┘
399
+
400
+ ┌─────────────────────────────────────────────────────────────────┐
401
+ │ 階段 6:整合檔案生成(integration-generator.js) │
402
+ │ - 根據選擇的 AI 工具動態生成 │
403
+ │ - 依據 contentMode 調整內容量 │
404
+ │ - 支援多語言(en/zh-tw) │
405
+ │ 生成檔案: │
406
+ │ - CLAUDE.md(Claude Code) │
407
+ │ - .cursorrules(Cursor) │
408
+ │ - .windsurfrules(Windsurf) │
409
+ │ - .clinerules(Cline) │
410
+ │ - .github/copilot-instructions.md(Copilot) │
411
+ │ - AGENTS.md(Codex/OpenCode) │
412
+ │ - GEMINI.md(Gemini CLI) │
413
+ │ - INSTRUCTIONS.md(Antigravity) │
414
+ └─────────────────────────────┬───────────────────────────────────┘
415
+
416
+ ┌─────────────────────────────────────────────────────────────────┐
417
+ │ 階段 7:Skills 安裝(github.js) │
418
+ │ - 使用者層級:~/.claude/skills/ │
419
+ │ - 專案層級:.claude/skills/ │
420
+ │ - 下載全部 15 個 Skills 檔案 │
421
+ │ - 寫入 skills-manifest.json │
422
+ └─────────────────────────────┬───────────────────────────────────┘
423
+
424
+ ┌─────────────────────────────────────────────────────────────────┐
425
+ │ 階段 8:雜湊計算(hasher.js) │
426
+ │ - 計算所有複製檔案的 SHA-256 雜湊 │
427
+ │ - 用於 uds check 完整性驗證 │
428
+ └─────────────────────────────┬───────────────────────────────────┘
429
+
430
+ ┌─────────────────────────────────────────────────────────────────┐
431
+ │ 階段 9:Manifest 生成 │
432
+ │ - 寫入 .standards/manifest.json │
433
+ │ - 記錄:版本、配置、檔案路徑、雜湊、時間戳 │
434
+ └─────────────────────────────────────────────────────────────────┘
435
+ ```
436
+
437
+ ### 6.2 生成檔案結構
438
+
439
+ ```
440
+ project-root/
441
+ ├── .standards/ # 標準目錄
442
+ │ ├── manifest.json # 追蹤清單
443
+ │ ├── anti-hallucination.md # 核心規範(Markdown)
444
+ │ ├── anti-hallucination.ai.yaml # 核心規範(AI YAML)
445
+ │ ├── commit-message.md
446
+ │ ├── commit-message.ai.yaml
447
+ │ ├── ...(其他規範)
448
+ │ └── options/ # 選項檔案
449
+ │ ├── github-flow.md
450
+ │ ├── english.md
451
+ │ └── unit-testing.md
452
+
453
+ ├── CLAUDE.md # Claude Code 整合
454
+ ├── .cursorrules # Cursor 整合
455
+ ├── .windsurfrules # Windsurf 整合
456
+ ├── .clinerules # Cline 整合
457
+ ├── AGENTS.md # Codex/OpenCode 整合
458
+ ├── .github/
459
+ │ └── copilot-instructions.md # Copilot 整合
460
+
461
+ └── .claude/ # Claude Code Skills
462
+ └── skills/
463
+ ├── commit-standards/
464
+ ├── code-review-assistant/
465
+ └── ...(其他 skills)
466
+ ```
467
+
468
+ ### 6.3 CLI 原始碼結構
469
+
470
+ ```
471
+ cli/
472
+ ├── bin/
473
+ │ └── uds.js # 進入點
474
+ ├── src/
475
+ │ ├── index.js # 主要匯出
476
+ │ ├── commands/ # 命令實作
477
+ │ │ ├── init.js # init 命令(約 920 行)
478
+ │ │ ├── list.js # list 命令
479
+ │ │ ├── check.js # check 命令
480
+ │ │ ├── update.js # update 命令
481
+ │ │ ├── configure.js # configure 命令
482
+ │ │ └── skills.js # skills 命令
483
+ │ ├── prompts/ # 互動提示
484
+ │ │ ├── init.js # init 提示(約 1007 行)
485
+ │ │ └── integrations.js # 整合提示
486
+ │ └── utils/ # 工具模組
487
+ │ ├── registry.js # 標準登錄表(207 行)
488
+ │ ├── copier.js # 檔案複製(143 行)
489
+ │ ├── github.js # GitHub 下載(508 行)
490
+ │ ├── detector.js # 專案偵測(159 行)
491
+ │ ├── hasher.js # 雜湊計算(219 行)
492
+ │ ├── integration-generator.js # 整合生成(2310 行)
493
+ │ └── reference-sync.js # 參考同步(189 行)
494
+ ├── standards-registry.json # 標準登錄表(約 1000 行)
495
+ └── package.json # 相依套件
496
+ ```
497
+
498
+ ---
499
+
500
+ ## 7. 維護流程
501
+
502
+ ### 7.1 同步檢查腳本
503
+
504
+ | 腳本 | 用途 | 命令 |
505
+ |------|------|------|
506
+ | `check-translation-sync.sh` | 檢查翻譯同步 | `./scripts/check-translation-sync.sh [locale]` |
507
+ | `check-standards-sync.sh` | 檢查 MD ↔ AI YAML 同步 | `./scripts/check-standards-sync.sh` |
508
+ | `check-version-sync.sh` | 檢查版本一致性 | `./scripts/check-version-sync.sh` |
509
+ | `check-install-scripts-sync.sh` | 檢查安裝腳本同步 | `./scripts/check-install-scripts-sync.sh` |
510
+ | `pre-release.sh` | 預發布自動化 | `./scripts/pre-release.sh --version X.Y.Z` |
511
+
512
+ ### 7.2 翻譯同步機制
513
+
514
+ **檢查流程:**
515
+ ```bash
516
+ # 檢查 zh-TW 翻譯
517
+ ./scripts/check-translation-sync.sh
518
+
519
+ # 檢查 zh-CN 翻譯
520
+ ./scripts/check-translation-sync.sh zh-CN
521
+ ```
522
+
523
+ **輸出狀態:**
524
+ - `[CURRENT]`(綠色)- 翻譯已同步
525
+ - `[OUTDATED]`(紅色)- 翻譯版本過舊
526
+ - `[NO META]`(黃色)- 缺少 YAML Front Matter
527
+ - `[MISSING]`(紅色)- 來源檔案不存在
528
+
529
+ **更新流程:**
530
+ 1. 執行同步檢查
531
+ 2. 開啟過時的翻譯檔案
532
+ 3. 更新內容
533
+ 4. 更新 YAML Front Matter 中的 `source_version` 和 `translation_version`
534
+ 5. 再次執行同步檢查驗證
535
+
536
+ ### 7.3 標準同步機制
537
+
538
+ **檢查流程:**
539
+ ```bash
540
+ ./scripts/check-standards-sync.sh
541
+ ```
542
+
543
+ **第一階段:core/ ↔ ai/standards/**
544
+ ```
545
+ core/changelog-standards.md ↔ ai/standards/changelog.ai.yaml
546
+ core/commit-message-guide.md ↔ ai/standards/commit-message.ai.yaml
547
+ ...
548
+ ```
549
+
550
+ **第二階段:options/ ↔ ai/options/**
551
+ ```
552
+ options/git-workflow/github-flow.md ↔ ai/options/git-workflow/github-flow.ai.yaml
553
+ options/commit-message/english.md ↔ ai/options/commit-message/english.ai.yaml
554
+ ...
555
+ ```
556
+
557
+ ### 7.4 版本同步機制
558
+
559
+ **版本檔案位置(6 處):**
560
+
561
+ | 檔案 | 欄位 | 更新頻率 |
562
+ |------|------|----------|
563
+ | `cli/package.json` | `"version"` | 每次發布 |
564
+ | `.claude-plugin/plugin.json` | `"version"` | 每次發布 |
565
+ | `.claude-plugin/marketplace.json` | `"version"` | 每次發布 |
566
+ | `cli/standards-registry.json` | 根 `"version"` | 每次發布 |
567
+ | `cli/standards-registry.json` | `repositories.standards.version` | 每次發布 |
568
+ | `cli/standards-registry.json` | `repositories.skills.version` | 每次發布 |
569
+ | `README.md` | `**Version**:` | 僅穩定版本 |
570
+
571
+ **檢查流程:**
572
+ ```bash
573
+ ./scripts/check-version-sync.sh
574
+ ```
575
+
576
+ ### 7.5 CLI 與斜線命令同步
577
+
578
+ #### 關係概述
579
+
580
+ UDS 有兩個相關但獨立的元件:
581
+
582
+ | 元件 | 類型 | 位置 | 用途 |
583
+ |------|------|------|------|
584
+ | UDS CLI | Node.js 程式 | `cli/src/` | 執行實際操作(`uds init`、`uds check` 等)|
585
+ | 斜線命令 | Markdown 文檔 | `skills/claude-code/commands/` | 指導 AI 如何使用 CLI |
586
+
587
+ **執行流程:**
588
+ ```
589
+ 使用者在 Claude Code 輸入 /update
590
+
591
+ AI 讀取 skills/claude-code/commands/update.md
592
+
593
+ AI 執行 CLI 命令(uds check、uds update)
594
+
595
+ AI 根據 CLI 輸出向使用者報告結果
596
+ ```
597
+
598
+ #### 同步要求
599
+
600
+ 修改 CLI 功能時,對應的斜線命令文檔**必須**同步更新:
601
+
602
+ | CLI 檔案 | 斜線命令 |
603
+ |----------|----------|
604
+ | `cli/src/commands/init.js` | `skills/claude-code/commands/init.md` |
605
+ | `cli/src/commands/check.js` | `skills/claude-code/commands/check.md` |
606
+ | `cli/src/commands/update.js` | `skills/claude-code/commands/update.md` |
607
+ | `cli/src/commands/configure.js` | `skills/claude-code/commands/configure.md` |
608
+ | `cli/src/commands/list.js` | `skills/claude-code/commands/list.md` |
609
+ | `cli/src/commands/skills.js` | `skills/claude-code/commands/skills.md` |
610
+
611
+ #### 同步檢查清單
612
+
613
+ 新增 CLI 功能時:
614
+
615
+ 1. [ ] 在 CLI 實作功能(`cli/src/commands/*.js` 或 `cli/src/utils/*.js`)
616
+ 2. [ ] 新增單元測試(`cli/tests/`)
617
+ 3. [ ] 更新斜線命令文檔(`skills/claude-code/commands/*.md`)
618
+ 4. [ ] 如需要,更新翻譯(`locales/zh-TW/skills/`、`locales/zh-CN/skills/`)
619
+ 5. [ ] 執行驗證:`cd cli && npm test && npm run lint`
620
+
621
+ #### 範例:新增 Marketplace Skills 版本檢測
622
+
623
+ 當 CLI `check.js` 更新以檢測 Plugin Marketplace Skills 版本時:
624
+
625
+ ```
626
+ 步驟 1:在 cli/src/utils/github.js 新增 getMarketplaceSkillsInfo()
627
+ - 讀取 ~/.claude/plugins/installed_plugins.json
628
+ - 返回 universal-dev-standards plugin 的版本資訊
629
+
630
+ 步驟 2:更新 cli/src/commands/check.js 的 displaySkillsStatus()
631
+ - 對 Marketplace 安裝呼叫 getMarketplaceSkillsInfo()
632
+ - 顯示版本和最後更新日期
633
+
634
+ 步驟 3:在 cli/tests/utils/github.test.js 新增單元測試
635
+ - 測試各種情境(檔案存在、找不到、解析錯誤)
636
+
637
+ 步驟 4:更新 skills/claude-code/commands/check.md
638
+ - 在 Skills Status 區段記錄新的版本輸出
639
+
640
+ 步驟 5:更新 skills/claude-code/commands/update.md
641
+ - 新增說明如何檢查 Skills 版本的章節
642
+ ```
643
+
644
+ **關鍵洞察**:如果不更新斜線命令文檔,AI 將不知道新的 CLI 功能,可能向使用者提供不準確的資訊。
645
+
646
+ ---
647
+
648
+ ## 8. 開發指南
649
+
650
+ ### 8.1 新增核心規範
651
+
652
+ **完整流程(10 步驟):**
653
+
654
+ ```
655
+ 步驟 1:建立 core/new-standard.md
656
+
657
+ 步驟 2:建立 ai/standards/new-standard.ai.yaml
658
+
659
+ 步驟 3:建立 options/new-standard/*.md(如適用)
660
+
661
+ 步驟 4:建立 ai/options/new-standard/*.ai.yaml(如適用)
662
+
663
+ 步驟 5:建立 skills/claude-code/new-skill/(如適用)
664
+
665
+ 步驟 6:建立 locales/zh-TW/core/new-standard.md
666
+
667
+ 步驟 7:建立 locales/zh-CN/core/new-standard.md
668
+
669
+ 步驟 8:更新 cli/standards-registry.json
670
+
671
+ 步驟 9:更新 CHANGELOG.md
672
+
673
+ 步驟 10:執行所有同步檢查腳本
674
+ ```
675
+
676
+ **詳細步驟:**
677
+
678
+ 1. **建立核心規範**
679
+ ```bash
680
+ # 建立 markdown 檔案
681
+ touch core/new-standard.md
682
+ # 遵循標準範本結構
683
+ ```
684
+
685
+ 2. **建立 AI 優化版本**
686
+ ```bash
687
+ touch ai/standards/new-standard.ai.yaml
688
+ # 使用簡潔的 YAML 格式
689
+ ```
690
+
691
+ 3. **建立選項(如適用)**
692
+ ```bash
693
+ mkdir -p options/new-standard
694
+ touch options/new-standard/option-1.md
695
+ touch options/new-standard/option-2.md
696
+
697
+ mkdir -p ai/options/new-standard
698
+ touch ai/options/new-standard/option-1.ai.yaml
699
+ touch ai/options/new-standard/option-2.ai.yaml
700
+ ```
701
+
702
+ 4. **建立 Skill(如適用)**
703
+ ```bash
704
+ mkdir -p skills/claude-code/new-standard-skill
705
+ touch skills/claude-code/new-standard-skill/SKILL.md
706
+ touch skills/claude-code/new-standard-skill/guide.md
707
+ ```
708
+
709
+ 5. **建立翻譯**
710
+ ```bash
711
+ touch locales/zh-TW/core/new-standard.md
712
+ touch locales/zh-CN/core/new-standard.md
713
+ # 添加含來源追蹤的 YAML Front Matter
714
+ ```
715
+
716
+ 6. **更新登錄表**
717
+ ```json
718
+ // 在 cli/standards-registry.json 中
719
+ {
720
+ "standards": [
721
+ {
722
+ "id": "new-standard",
723
+ "name": "New Standard Name",
724
+ "level": 2,
725
+ "category": "reference",
726
+ "source": {
727
+ "ai": "ai/standards/new-standard.ai.yaml",
728
+ "human": "core/new-standard.md"
729
+ }
730
+ }
731
+ ]
732
+ }
733
+ ```
734
+
735
+ 7. **驗證**
736
+ ```bash
737
+ ./scripts/check-standards-sync.sh
738
+ ./scripts/check-translation-sync.sh
739
+ ./scripts/check-translation-sync.sh zh-CN
740
+ cd cli && npm test
741
+ ```
742
+
743
+ ### 8.2 新增 Skill
744
+
745
+ **完整流程(6 步驟):**
746
+
747
+ ```
748
+ 步驟 1:建立 skills/claude-code/new-skill/ 目錄
749
+
750
+ 步驟 2:建立含 YAML 前置的 SKILL.md
751
+
752
+ 步驟 3:建立輔助指南檔案
753
+
754
+ 步驟 4:在 locales/ 中建立翻譯
755
+
756
+ 步驟 5:更新文件(README.md 等)
757
+
758
+ 步驟 6:執行驗證腳本
759
+ ```
760
+
761
+ ### 8.3 新增 AI 工具整合
762
+
763
+ **完整流程(14 步驟):**
764
+
765
+ ```
766
+ 階段 1:研究與規劃(3 步驟)
767
+ 步驟 1:研究目標工具的指令格式與功能
768
+ 步驟 2:識別相較於 Claude Code 的限制
769
+ 步驟 3:建立 Skills 對照計畫(哪些 Claude Code 功能要移植)
770
+
771
+ 階段 2:核心檔案 - 4 檔案模式(4 步驟)
772
+ 步驟 4:建立 integrations/[tool-name]/ 目錄
773
+ 步驟 5:建立 README.md(安裝指南、限制說明、功能比較)
774
+ 步驟 6:建立 [tool]-instructions.md(主要 AI 指令)
775
+ 步驟 7:建立 CHAT-REFERENCE.md(適用於無斜線命令的工具)
776
+ 步驟 8:建立 skills-mapping.md(Claude Code → 工具功能對照)
777
+
778
+ 階段 3:翻譯(2 步驟)
779
+ 步驟 9:建立 locales/zh-TW/integrations/[tool-name]/(4 個檔案)
780
+ 步驟 10:建立 locales/zh-CN/integrations/[tool-name]/(4 個檔案)
781
+
782
+ 階段 4:整合更新(3 步驟)
783
+ 步驟 11:更新 integration-generator.js(如需 CLI 動態生成)
784
+ 步驟 12:更新 skills/[tool]/ 精簡版(如存在)
785
+ 步驟 13:更新相關文件(README.md 等)
786
+
787
+ 階段 5:驗證(1 步驟)
788
+ 步驟 14:執行所有驗證腳本
789
+ ```
790
+
791
+ #### 4 檔案模式(必要結構)
792
+
793
+ 完整的 AI 工具整合需建立這 4 個檔案:
794
+
795
+ | 檔案 | 用途 | 必要 |
796
+ |------|------|------|
797
+ | `README.md` | 安裝指南、快速開始、限制說明、功能比較 | ✅ 必要 |
798
+ | `[tool]-instructions.md` | 工具的主要 AI 指令 | ✅ 必要 |
799
+ | `CHAT-REFERENCE.md` | Chat 提示範本(適用於無斜線命令的工具) | ⚠️ 視情況 |
800
+ | `skills-mapping.md` | Claude Code → 工具功能對照 | ✅ 必要 |
801
+
802
+ **範例:**
803
+ ```
804
+ integrations/github-copilot/
805
+ ├── README.md # 整合概述
806
+ ├── copilot-instructions.md # 主要指令
807
+ ├── COPILOT-CHAT-REFERENCE.md # Chat 提示範本
808
+ └── skills-mapping.md # Skills 遷移指南
809
+ ```
810
+
811
+ #### README.md 範本
812
+
813
+ ```markdown
814
+ # [工具名稱] 整合
815
+
816
+ ## 概述
817
+ [簡要說明]
818
+
819
+ ## 快速開始
820
+
821
+ ### 方式 1:從儲存庫複製
822
+ ### 方式 2:使用 curl 下載
823
+ ### 方式 3:使用 UDS CLI
824
+
825
+ ## 配置方式
826
+ [IDE 特定設定:VS Code、JetBrains 等]
827
+
828
+ ## 限制說明
829
+ [與 Claude Code 和其他工具的功能比較表]
830
+
831
+ ## 包含的規範
832
+ [整合中包含的規範表格]
833
+
834
+ ## 驗證整合
835
+ [如何驗證整合是否正常運作]
836
+
837
+ ## 相關規範
838
+ ## 版本歷史
839
+ ## 授權
840
+ ```
841
+
842
+ #### Skills 對照方法論
843
+
844
+ 將 Claude Code 功能遷移到其他工具時:
845
+
846
+ | Claude Code 功能 | 遷移策略 |
847
+ |------------------|----------|
848
+ | Skills(18 個) | → 指令檔案中的專用章節 |
849
+ | 斜線命令(16 個) | → CHAT-REFERENCE.md 中的 Chat 提示範本 |
850
+ | MCP 支援 | → 記錄為限制,建議替代方案 |
851
+ | 全域配置 | → 記錄為限制 |
852
+ | 自動觸發關鍵字 | → 建議使用 IDE 程式碼片段/快捷鍵作為替代 |
853
+ | 方法論追蹤 | → 記錄為限制,建議手動追蹤 |
854
+
855
+ #### 翻譯要求
856
+
857
+ 每個整合需要 8 個翻譯檔案(每種語言 4 個):
858
+
859
+ **目錄:**
860
+ - `locales/zh-TW/integrations/[tool-name]/`(繁體中文)
861
+ - `locales/zh-CN/integrations/[tool-name]/`(簡體中文)
862
+
863
+ **YAML 前置範本:**
864
+ ```yaml
865
+ ---
866
+ source: ../../../../integrations/[tool-name]/[file].md
867
+ source_version: X.Y.Z
868
+ translation_version: X.Y.Z
869
+ last_synced: YYYY-MM-DD
870
+ status: current
871
+ ---
872
+ ```
873
+
874
+ #### 驗證檢查清單
875
+
876
+ 完成整合後,驗證:
877
+
878
+ ```bash
879
+ # 翻譯同步檢查
880
+ ./scripts/check-translation-sync.sh
881
+ ./scripts/check-translation-sync.sh zh-CN
882
+
883
+ # 標準一致性檢查
884
+ ./scripts/check-standards-sync.sh
885
+
886
+ # CLI 測試(如修改了 integration-generator.js)
887
+ cd cli && npm test && npm run lint
888
+
889
+ # 完整預發布檢查
890
+ ./scripts/pre-release-check.sh
891
+ ```
892
+
893
+ #### 功能比較表範本
894
+
895
+ 在 README.md 中包含此表格:
896
+
897
+ | 功能 | [新工具] | Claude Code | 其他工具 |
898
+ |------|----------|-------------|----------|
899
+ | 專案指令 | ✅/❌ | ✅ | ... |
900
+ | 全域配置 | ✅/❌ | ✅ | ... |
901
+ | 斜線命令 | ✅/❌ | ✅(18 個 skills) | ... |
902
+ | MCP 支援 | ✅/❌ | ✅ | ... |
903
+ | 自訂 skills | ✅/❌ | ✅ | ... |
904
+ | 多檔案上下文 | ✅/❌ | ✅ | ... |
905
+
906
+ ---
907
+
908
+ ## 9. 發布流程
909
+
910
+ ### 9.1 預發布檢查清單
911
+
912
+ **任何發布前:**
913
+ - [ ] 所有測試通過(`npm test`)
914
+ - [ ] Linting 通過(`npm run lint`)
915
+ - [ ] 版本同步檢查通過(`./scripts/check-version-sync.sh`)
916
+ - [ ] CHANGELOG.md 已更新
917
+ - [ ] Git 工作目錄乾淨
918
+
919
+ **版本檔案檢查清單(6 個檔案):**
920
+ - [ ] `cli/package.json` - `"version": "X.Y.Z"`
921
+ - [ ] `.claude-plugin/plugin.json` - `"version": "X.Y.Z"`
922
+ - [ ] `.claude-plugin/marketplace.json` - `"version": "X.Y.Z"`
923
+ - [ ] `cli/standards-registry.json` - 3 處位置
924
+ - [ ] `README.md` - `**Version**:`(僅穩定版本)
925
+
926
+ ### 9.2 版本類型與 npm Tags
927
+
928
+ | 類型 | 版本格式 | npm Tag | 用途 |
929
+ |------|----------|---------|------|
930
+ | 穩定版 | `3.3.0` | `@latest` | 正式發布 |
931
+ | Beta | `3.3.0-beta.1` | `@beta` | 測試新功能 |
932
+ | Alpha | `3.3.0-alpha.1` | `@alpha` | 早期內部測試 |
933
+ | RC | `3.3.0-rc.1` | `@rc` | 最終預發布測試 |
934
+
935
+ ### 9.3 完整發布工作流
936
+
937
+ ```
938
+ 步驟 1:預發布準備
939
+ ./scripts/pre-release.sh --version X.Y.Z
940
+
941
+ 步驟 2:更新 CHANGELOG.md
942
+ (遵循 Keep a Changelog 格式)
943
+
944
+ 步驟 3:提交變更
945
+ git add -A
946
+ git commit -m "chore(release): prepare vX.Y.Z"
947
+
948
+ 步驟 4:建立 Git 標籤
949
+ git tag vX.Y.Z
950
+ git push origin main --tags
951
+
952
+ 步驟 5:建立 GitHub Release
953
+ (在 GitHub UI 中手動操作)
954
+
955
+ 步驟 6:GitHub Actions 自動發布
956
+ - 偵測版本類型(stable/beta/alpha/rc)
957
+ - npm publish --tag [latest/beta/alpha/rc]
958
+
959
+ 步驟 7:驗證發布
960
+ npm view universal-dev-standards dist-tags
961
+ ```
962
+
963
+ ### 9.4 GitHub Actions 工作流
964
+
965
+ **CI 工作流(`.github/workflows/ci.yml`):**
966
+ - 觸發條件:Push 到 main、PR 到 main
967
+ - 工作:Linting、測試(多矩陣)、翻譯同步檢查
968
+
969
+ **發布工作流(`.github/workflows/publish.yml`):**
970
+ - 觸發條件:GitHub Release 發布
971
+ - 自動從 package.json 偵測版本類型
972
+ - 使用適當的 tag 發布到 npm
973
+
974
+ ---
975
+
976
+ ## 10. 檔案路徑參考
977
+
978
+ ### 10.1 核心目錄
979
+
980
+ | 目錄 | 說明 | 數量 |
981
+ |------|------|------|
982
+ | `core/` | 人類可讀核心規範 | 16 檔案 |
983
+ | `ai/standards/` | AI 優化規範 | 16 檔案 |
984
+ | `ai/options/` | AI 優化選項 | 36 檔案 |
985
+ | `options/` | 人類可讀選項 | 36 檔案 |
986
+ | `skills/claude-code/` | Claude Code skills | 15 目錄 |
987
+ | `integrations/` | AI 工具整合範本 | 10 目錄 |
988
+ | `locales/zh-TW/` | 繁體中文翻譯 | ~129 檔案 |
989
+ | `locales/zh-CN/` | 簡體中文翻譯 | 部分 |
990
+
991
+ ### 10.2 維護腳本
992
+
993
+ | 腳本 | 路徑 | 用途 |
994
+ |------|------|------|
995
+ | 翻譯同步 | `scripts/check-translation-sync.sh` | 檢查翻譯同步 |
996
+ | 標準同步 | `scripts/check-standards-sync.sh` | 檢查 MD ↔ YAML 同步 |
997
+ | 版本同步 | `scripts/check-version-sync.sh` | 檢查版本一致性 |
998
+ | 安裝腳本同步 | `scripts/check-install-scripts-sync.sh` | 檢查安裝腳本 |
999
+ | 預發布 | `scripts/pre-release.sh` | 預發布自動化 |
1000
+
1001
+ ### 10.3 配置檔案
1002
+
1003
+ | 檔案 | 用途 |
1004
+ |------|------|
1005
+ | `cli/package.json` | 主版本來源、相依套件 |
1006
+ | `cli/standards-registry.json` | 標準登錄表、版本資訊 |
1007
+ | `.claude-plugin/plugin.json` | Plugin 配置 |
1008
+ | `.claude-plugin/marketplace.json` | Marketplace 配置 |
1009
+ | `cli/.eslintrc.json` | ESLint 配置 |
1010
+ | `cli/vitest.config.js` | 測試配置 |
1011
+
1012
+ ### 10.4 GitHub Actions
1013
+
1014
+ | 檔案 | 用途 |
1015
+ |------|------|
1016
+ | `.github/workflows/ci.yml` | CI 工作流(測試、linting) |
1017
+ | `.github/workflows/publish.yml` | npm 發布工作流 |
1018
+
1019
+ ---
1020
+
1021
+ ## 附錄:快速參考命令
1022
+
1023
+ ### 日常維護
1024
+
1025
+ ```bash
1026
+ # 執行所有同步檢查
1027
+ ./scripts/check-standards-sync.sh
1028
+ ./scripts/check-translation-sync.sh
1029
+ ./scripts/check-version-sync.sh
1030
+
1031
+ # 執行測試和 linting
1032
+ cd cli && npm test && npm run lint
1033
+ ```
1034
+
1035
+ ### 預發布
1036
+
1037
+ ```bash
1038
+ # 自動化預發布準備
1039
+ ./scripts/pre-release.sh --version 3.4.0
1040
+
1041
+ # 或使用選項
1042
+ ./scripts/pre-release.sh --version 3.4.0-beta.1 --skip-translations
1043
+ ```
1044
+
1045
+ ### 發布
1046
+
1047
+ ```bash
1048
+ # 提交並標記
1049
+ git add -A
1050
+ git commit -m "chore(release): prepare v3.4.0"
1051
+ git tag v3.4.0
1052
+ git push origin main --tags
1053
+
1054
+ # 在 GitHub Release 後驗證
1055
+ npm view universal-dev-standards dist-tags
1056
+ ```
1057
+
1058
+ ---
1059
+
1060
+ ## 授權
1061
+
1062
+ 本文件採用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)。
1063
+
1064
+ **來源**:[universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)