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,809 @@
1
+ ---
2
+ source: core/commit-message-guide.md
3
+ source_version: 1.2.3
4
+ translation_version: 1.2.3
5
+ last_synced: 2025-12-25
6
+ status: current
7
+ ---
8
+
9
+ # Commit 訊息規範指南
10
+
11
+ > **語言**: [English](../../../core/commit-message-guide.md) | 繁體中文
12
+
13
+ **版本**: 1.2.3
14
+ **最後更新**: 2025-12-24
15
+ **適用範圍**: 所有使用 Git 版本控制的專案
16
+
17
+ ---
18
+
19
+ ## 目的
20
+
21
+ 標準化的 commit 訊息提升程式碼審查效率、促進自動化變更日誌生成,並使專案歷史可搜尋、可理解。
22
+
23
+ ---
24
+
25
+ ## 基本格式
26
+
27
+ ```
28
+ <type>(<scope>): <subject>
29
+
30
+ <body>
31
+
32
+ <footer>
33
+ ```
34
+
35
+ ### 組成元素
36
+
37
+ | 元素 | 必要性 | 說明 |
38
+ | --------- | ------ | ---------------------------- |
39
+ | `type` | ✅ 是 | 變更類型 |
40
+ | `scope` | 選填 | 受影響的模組/元件 |
41
+ | `subject` | ✅ 是 | 簡短描述(≤72 字元) |
42
+ | `body` | 建議 | 詳細說明 |
43
+ | `footer` | 選填 | Issue 引用、破壞性變更 |
44
+
45
+ ---
46
+
47
+ ## 類型分類
48
+
49
+ **專案必須選擇一種語言**用於類型並保持一致使用。
50
+
51
+ ### 選項 A: 英文(國際標準)
52
+
53
+ 使用英文類型,適合國際團隊及最佳工具相容性。
54
+
55
+ | 類型 | 使用時機 |
56
+ | ---------- | -------------------------- |
57
+ | `feat` | 新功能 |
58
+ | `fix` | Bug 修復 |
59
+ | `refactor` | 重構(無功能變更) |
60
+ | `docs` | 僅文件更新 |
61
+ | `style` | 格式化、空白(無邏輯變更) |
62
+ | `test` | 新增或更新測試 |
63
+ | `perf` | 效能改進 |
64
+ | `build` | 建置系統或依賴 |
65
+ | `ci` | CI/CD 管道變更 |
66
+ | `chore` | 維護任務 |
67
+ | `revert` | 回退先前提交 |
68
+ | `security` | 安全漏洞修復 |
69
+
70
+ ### 選項 B: 繁體中文(台灣團隊適用)
71
+
72
+ 使用繁體中文類型,適合偏好母語提交的本地團隊。
73
+
74
+ | 類型 | 使用時機 |
75
+ | ------ | -------------------- |
76
+ | `新增` | 新功能 |
77
+ | `修正` | Bug 修復 |
78
+ | `重構` | 重構(無功能變更) |
79
+ | `文件` | 僅文件更新 |
80
+ | `樣式` | 格式化(無邏輯變更) |
81
+ | `測試` | 新增或更新測試 |
82
+ | `效能` | 效能改進 |
83
+ | `建置` | 建置系統或依賴 |
84
+ | `整合` | CI/CD 管道變更 |
85
+ | `維護` | 維護任務 |
86
+ | `回退` | 回退先前提交 |
87
+ | `安全` | 安全漏洞修復 |
88
+
89
+ ### 選項 C: 雙語對照模式(推薦)
90
+
91
+ 使用英文 `type` 和 `scope` 以確保工具相容性,subject/body/footer 採用雙語對照。
92
+
93
+ **格式**:
94
+
95
+ ```
96
+ <type>(<scope>): <English subject>. <中文主旨>。
97
+
98
+ <English body>
99
+
100
+ <中文主體>
101
+
102
+ <footer>
103
+ ```
104
+
105
+ **範例**:
106
+
107
+ ```
108
+ feat(auth): Add OAuth2 Google login support. 新增 OAuth2 Google 登入支援。
109
+
110
+ Implement Google OAuth2 authentication flow for user login.
111
+
112
+ - Add Google OAuth2 SDK integration
113
+ - Create callback endpoint for OAuth flow
114
+ - Store refresh tokens securely
115
+
116
+ 實作 Google OAuth2 認證流程供使用者登入。
117
+
118
+ - 整合 Google OAuth2 SDK
119
+ - 建立 OAuth 流程回呼端點
120
+ - 安全儲存更新權杖
121
+
122
+ Closes #123
123
+ ```
124
+
125
+ ### 語言選擇指南
126
+
127
+ 使用此指南為您的專案選擇適當的 commit 訊息語言:
128
+
129
+ | 因素 | English | 繁體中文 | 雙語對照 |
130
+ | ------------------- | -------- | ------------ | --------- |
131
+ | **團隊組成** | 國際/混合 | 本地(台灣) | 混合但以本地為主 |
132
+ | **工具相容性** | ✅ 最佳 | ⚠️ 有限 | ✅ 良好 |
133
+ | **Changelog 自動化** | ✅ 完整支援 | ⚠️ 需自訂設定 | ✅ 支援 |
134
+ | **新人上手** | 中立 | 本地成員較易上手 | 兩者皆受益 |
135
+ | **開源專案** | ✅ 建議 | ❌ 不建議 | ✅ 好選擇 |
136
+
137
+ **快速選擇**:
138
+ - **開源專案** → 英文(選項 A)
139
+ - **本地團隊、內部專案** → 繁體中文(選項 B)
140
+ - **本地團隊但有國際協作** → 雙語對照(選項 C)
141
+
142
+ **重要**:一旦選定,請在整個專案中**一致使用**。勿混用語言。
143
+
144
+ ---
145
+
146
+ **專案決策點**: 在 `CONTRIBUTING.md` 中記錄你的選擇(選擇其一):
147
+
148
+ ```markdown
149
+ ## Commit Message Language
150
+
151
+ <!-- 選擇以下其中一個選項: -->
152
+
153
+ <!-- 選項 A: 英文 -->
154
+ 本專案使用**英文** commit 類型(feat, fix, refactor 等)
155
+
156
+ <!-- 選項 B: 繁體中文 -->
157
+ 本專案使用**繁體中文** commit 類型(新增、修正、重構等)
158
+
159
+ <!-- 選項 C: 雙語對照模式 -->
160
+ 本專案使用**雙語對照模式**,type/scope 使用英文,subject/body 採用雙語對照。
161
+ ```
162
+
163
+ ---
164
+
165
+ ## 範圍指引
166
+
167
+ 範圍指出程式碼庫的哪個部分受影響。使用簡短、可識別的名稱。
168
+
169
+ ### 命名規則
170
+
171
+ 1. **使用小寫**: 所有範圍應使用小寫(`auth`,而非 `Auth`)
172
+ 2. **多字詞用連字號**: 使用連字號分隔多字詞(`user-profile`,而非 `userProfile`)
173
+ 3. **保持簡短**: 最多 1-2 個單詞
174
+
175
+ ### 常見範圍
176
+
177
+ **依層級/模組**:
178
+
179
+ - `api`: API 層
180
+ - `ui`: 使用者介面
181
+ - `auth`: 認證/授權
182
+ - `database`: 資料庫層
183
+ - `config`: 設定
184
+ - `middleware`: 中介層
185
+
186
+ **依功能**:
187
+
188
+ - `login`: 登入功能
189
+ - `payment`: 付款處理
190
+ - `notification`: 通知
191
+ - `search`: 搜尋功能
192
+
193
+ **依檔案類型**:
194
+
195
+ - `tests`: 測試檔案
196
+ - `docs`: 文件檔案
197
+ - `build`: 建置腳本
198
+ - `deps`: 依賴項目
199
+
200
+ **特殊範圍**:
201
+
202
+ - `*`: 多個範圍受影響
203
+ - (無範圍): 全域變更
204
+
205
+ **網路 API 專案的範圍範例**:
206
+
207
+ ```
208
+ auth, user, product, order, payment, notification,
209
+ database, config, middleware, api, tests, docs
210
+ ```
211
+
212
+ ---
213
+
214
+ ## 主旨行
215
+
216
+ ### 規則
217
+
218
+ 1. **長度**: ≤72 字元(50 為理想)
219
+ 2. **時態**: 使用祈使語氣(「Add feature」而非「Added feature」)
220
+ 3. **大寫**: 首字母大寫
221
+ 4. **無句點**: 結尾不加句點(例外:雙語模式使用句點作為分隔符)
222
+ 5. **語言**: 遵循專案政策(英文或母語)
223
+
224
+ ### 繁體中文範例
225
+
226
+ ```
227
+ 新增(認證): 實作 OAuth2 Google 登入支援
228
+ 修正(API): 解決使用者 session 快取記憶體洩漏
229
+ 重構(資料庫): 提取查詢建構器為獨立類別
230
+ 文件(README): 更新 Node 20 安裝說明
231
+ 測試(付款): 新增退款流程單元測試
232
+ 效能(搜尋): 實作全文檢索索引
233
+ 建置(依賴): 升級 Express 至 4.18.2
234
+ ```
235
+
236
+ ### 不良範例
237
+
238
+ ```
239
+ ❌ "fixed bug" - 太模糊,無範圍
240
+ ❌ "feat(auth): added google login and fixed a bug and refactored code" - 太長,多個關注點
241
+ ❌ "Update stuff." - 有句點,太模糊
242
+ ❌ "Added OAuth2 login feature" - 過去式而非祈使語氣
243
+ ❌ "WIP" - 無描述性
244
+ ```
245
+
246
+ ---
247
+
248
+ ## 主體內容
249
+
250
+ 使用主體解釋**為何**做此變更,而非**變更了什麼**(程式碼已顯示變更內容)。
251
+
252
+ ### 結構
253
+
254
+ - 多個變更使用項目符號
255
+ - 每行限制 72 字元
256
+ - 與主旨以空白行分隔
257
+ - 提供上下文和理由
258
+
259
+ ### 主體範本
260
+
261
+ 根據變更類型使用適當的標題。常見模式:
262
+
263
+ **新功能**:
264
+
265
+ ```
266
+ 為何需要此功能:
267
+ 此變更實作內容:
268
+ 技術備註:
269
+ ```
270
+
271
+ **修復**:
272
+
273
+ ```
274
+ 問題發生原因:
275
+ 修正內容:
276
+ 測試:
277
+ ```
278
+
279
+ **重構**:
280
+
281
+ ```
282
+ 重構原因:
283
+ 變更內容:
284
+ 遷移:
285
+ ```
286
+
287
+ **通用範本**:
288
+
289
+ ```
290
+ <主旨行>
291
+
292
+ <空白行>
293
+
294
+ 為何:
295
+ - 原因 1
296
+ - 原因 2
297
+
298
+ 內容:
299
+ - 變更 1
300
+ - 變更 2
301
+
302
+ 備註:
303
+ - 上下文或考量事項
304
+ ```
305
+
306
+ ### 範例
307
+
308
+ #### 範例 1: 含上下文的功能
309
+
310
+ ```
311
+ 新增(通知): 實作電子郵件通知功能
312
+
313
+ 為何需要此變更:
314
+ - 使用者反饋希望收到訂單狀態更新通知
315
+ - 減少客服查詢訂單狀態的工作量
316
+ - 提升使用者體驗與滿意度
317
+
318
+ 此變更做了什麼:
319
+ - 整合 SendGrid API 發送電子郵件
320
+ - 新增 EmailTemplate 模組管理郵件範本
321
+ - 實作訂單狀態變更時觸發通知
322
+ - 新增使用者偏好設定以控制通知開關
323
+
324
+ 技術備註:
325
+ - 使用佇列機制避免阻塞主流程
326
+ - 郵件發送失敗會重試 3 次
327
+ - 範本支援多語言(繁中、英文)
328
+ ```
329
+
330
+ ---
331
+
332
+ ## 頁尾
333
+
334
+ ### Issue 引用
335
+
336
+ 連結 commit 至 issue 追蹤系統:
337
+
338
+ ```
339
+ Closes #123
340
+ Fixes #456
341
+ Resolves #789
342
+ Refs #101, #102
343
+ See also #999
344
+ ```
345
+
346
+ **支援的關鍵字**(GitHub、GitLab、Bitbucket):
347
+
348
+ - `Closes`、`Fixes`、`Resolves`: 自動關閉 issue
349
+ - `Refs`、`References`、`See also`: 僅連結,不關閉
350
+
351
+ ---
352
+
353
+ ### 破壞性變更
354
+
355
+ **重要**: 永遠在頁尾記錄破壞性變更。
356
+
357
+ **格式**:
358
+
359
+ ```
360
+ BREAKING CHANGE: <描述>
361
+
362
+ 遷移指南:
363
+ - 步驟 1
364
+ - 步驟 2
365
+ ```
366
+
367
+ **範例**:
368
+
369
+ ```
370
+ feat(api): 變更使用者端點回應格式
371
+
372
+ - 扁平化巢狀使用者物件結構
373
+ - 移除已棄用的 `legacy_id` 欄位
374
+ - 新增 `created_at` 和 `updated_at` 時間戳記
375
+
376
+ BREAKING CHANGE: 使用者 API 回應格式已變更
377
+
378
+ 舊格式:
379
+ ```json
380
+ {
381
+ "data": {
382
+ "user": {
383
+ "id": 123,
384
+ "name": "John",
385
+ "legacy_id": 456
386
+ }
387
+ }
388
+ }
389
+ ```
390
+
391
+ 新格式:
392
+
393
+ ```json
394
+ {
395
+ "id": 123,
396
+ "name": "John",
397
+ "created_at": "2025-11-12T10:00:00Z",
398
+ "updated_at": "2025-11-12T10:00:00Z"
399
+ }
400
+ ```
401
+
402
+ 遷移指南:
403
+
404
+ - 更新 API 客戶端以移除 `.data` 包裝
405
+ - 移除對 `legacy_id` 欄位的引用
406
+ - 使用 `created_at` 而非 `createdAt`(snake_case)
407
+
408
+ Closes #234
409
+
410
+ ```
411
+
412
+ ---
413
+
414
+ ## 完整範例
415
+
416
+ ### 範例 1: 簡單修正(雙語對照)
417
+
418
+ ```
419
+
420
+ fix(auth): Correct JWT expiration time calculation. 修正 JWT 過期時間計算。
421
+
422
+ The token was expiring 1 hour early due to timezone offset not being accounted for. Now using UTC time consistently.
423
+
424
+ 權杖因未考慮時區偏移而提早 1 小時過期。現已統一使用 UTC 時間。
425
+
426
+ Fixes #445
427
+
428
+ ```
429
+
430
+ ---
431
+
432
+ ### 範例 2: 功能(雙語對照)
433
+
434
+ ```
435
+
436
+ feat(export): Add CSV export functionality for user data. 新增使用者資料 CSV 匯出功能。
437
+
438
+ Why this feature is needed:
439
+
440
+ - Admins need to export user lists for compliance audits
441
+ - Manual copy-paste from UI is error-prone
442
+ - Requested by legal and compliance teams
443
+
444
+ What this implements:
445
+
446
+ - New `/api/users/export` endpoint
447
+ - CSV generation using csv-writer library
448
+ - Streaming response to handle large datasets
449
+ - Date range filtering options
450
+
451
+ Technical notes:
452
+
453
+ - Streaming prevents memory issues with 100k+ users
454
+ - Export limited to admin role only
455
+
456
+ 為何需要此功能:
457
+
458
+ - 管理員需匯出使用者清單以進行合規稽核
459
+ - 從 UI 手動複製貼上容易出錯
460
+ - 法務與合規團隊要求此功能
461
+
462
+ 此變更實作內容:
463
+
464
+ - 新增 `/api/users/export` 端點
465
+ - 使用 csv-writer 函式庫生成 CSV
466
+ - 串流回應以處理大型資料集
467
+ - 日期範圍篩選選項
468
+
469
+ 技術備註:
470
+
471
+ - 串流處理可避免 10 萬筆以上使用者的記憶體問題
472
+ - 匯出功能僅限管理員角色使用
473
+
474
+ Closes #567
475
+ Refs #234
476
+
477
+ ```
478
+
479
+ ---
480
+
481
+ ### 範例 3: 含根因分析的 Bug 修正(雙語對照)
482
+
483
+ ```
484
+
485
+ fix(api): Resolve race condition in concurrent user updates. 解決並發使用者更新的競爭條件。
486
+
487
+ Why this occurred:
488
+
489
+ - Two simultaneous PUT requests to /users/:id could overwrite each other
490
+ - No optimistic locking implemented
491
+
492
+ What this fix does:
493
+
494
+ - Add version field to User model
495
+ - Implement optimistic locking check
496
+ - Return 409 Conflict if version mismatch
497
+
498
+ Testing:
499
+
500
+ - Added concurrent update test scenarios
501
+ - Verified with load test (100 concurrent updates)
502
+
503
+ 問題發生原因:
504
+
505
+ - 兩個同時發送至 /users/:id 的 PUT 請求可能互相覆蓋
506
+ - 未實作樂觀鎖定機制
507
+
508
+ 修正內容:
509
+
510
+ - 新增版本欄位至 User 模型
511
+ - 實作樂觀鎖定檢查
512
+ - 版本不符時回傳 409 Conflict
513
+
514
+ 測試:
515
+
516
+ - 新增並發更新測試情境
517
+ - 以負載測試驗證(100 個並發更新)
518
+
519
+ Fixes #789
520
+
521
+ ```
522
+
523
+ ---
524
+
525
+ ### 範例 4: 破壞性變更(雙語對照)
526
+
527
+ ```
528
+
529
+ refactor(database): Migrate from MySQL to PostgreSQL. 從 MySQL 遷移至 PostgreSQL。
530
+
531
+ Why this refactoring:
532
+
533
+ - PostgreSQL offers better JSON support for our use case
534
+ - Need advanced indexing features for full-text search
535
+
536
+ What this changes:
537
+
538
+ - Update database driver from mysql2 to pg
539
+ - Convert MySQL-specific queries to PostgreSQL syntax
540
+ - Update connection pooling configuration
541
+
542
+ BREAKING CHANGE: Database engine changed from MySQL to PostgreSQL
543
+
544
+ Migration guide:
545
+
546
+ 1. Backup existing MySQL database
547
+ 2. Install PostgreSQL 15+
548
+ 3. Update .env: DATABASE_URL=postgresql://...
549
+ 4. Run migration: npm run db:migrate
550
+ 5. Verify data integrity: npm run db:verify
551
+
552
+ Estimated downtime: 2-4 hours
553
+
554
+ 重構原因:
555
+
556
+ - PostgreSQL 提供更佳的 JSON 支援以符合我們的使用情境
557
+ - 需要進階索引功能支援全文檢索
558
+
559
+ 變更內容:
560
+
561
+ - 更新資料庫驅動從 mysql2 至 pg
562
+ - 將 MySQL 專用查詢轉換為 PostgreSQL syntax
563
+ - 更新連線池設定
564
+
565
+ 破壞性變更: 資料庫引擎從 MySQL 變更為 PostgreSQL
566
+
567
+ 遷移指南:
568
+
569
+ 1. 備份現有 MySQL 資料庫
570
+ 2. 安裝 PostgreSQL 15+
571
+ 3. 更新 .env 設定: DATABASE_URL=postgresql://...
572
+ 4. 執行遷移腳本: npm run db:migrate
573
+ 5. 驗證資料完整性: npm run db:verify
574
+
575
+ 預估停機時間: 2-4 小時
576
+
577
+ Closes #890
578
+
579
+ ```
580
+
581
+ ---
582
+
583
+ ## 反模式
584
+
585
+ ### ❌ 反模式 1: 模糊訊息
586
+
587
+ ```
588
+
589
+ fix: bug fix
590
+ refactor: code improvements
591
+ update: changes
592
+
593
+ ```
594
+
595
+ **問題**: 無上下文,不閱讀程式碼無法理解。
596
+
597
+ **✅ 修正**:
598
+ ```
599
+
600
+ fix(login): 防止快速點擊時重複建立 session
601
+ refactor(utils): 提取電子郵件驗證正規表示式至常數
602
+ feat(profile): 新增含圖片壓縮的頭像上傳功能
603
+
604
+ ```
605
+
606
+ ---
607
+
608
+ ### ❌ 反模式 2: 混合多個關注點
609
+
610
+ ```
611
+
612
+ feat: add login, fix bugs, refactor database, update docs
613
+
614
+ ```
615
+
616
+ **問題**: 應分為多個 commit 以利審查和回退。
617
+
618
+ **✅ 修正**: 拆分為多個 commit:
619
+ ```
620
+
621
+ feat(auth): 新增 OAuth2 登入支援
622
+ fix(api): 解決使用者查詢空指標問題
623
+ refactor(database): 提取連線池至獨立模組
624
+ docs(api): 更新認證端點文件
625
+
626
+ ```
627
+
628
+ ---
629
+
630
+ ### ❌ 反模式 3: Commit 訊息當作程式碼註解
631
+
632
+ ```
633
+
634
+ fix: change line 45 from getUserById to getUserByEmail because the function was renamed
635
+
636
+ ```
637
+
638
+ **問題**: 過度聚焦於實作細節而非目的。
639
+
640
+ **✅ 修正**:
641
+ ```
642
+
643
+ fix(api): 在密碼重設中使用正確的使用者查詢方法
644
+
645
+ 密碼重設流程使用電子郵件參數呼叫 getUserById,
646
+ 導致查詢失敗。現已正確呼叫 getUserByEmail。
647
+
648
+ Fixes #789
649
+
650
+ ```
651
+
652
+ ---
653
+
654
+ ### ❌ 反模式 4: 複雜變更無主體說明
655
+
656
+ ```
657
+
658
+ refactor(database): migrate to PostgreSQL
659
+
660
+ ```
661
+
662
+ **問題**: 破壞性變更卻無遷移指南或上下文。
663
+
664
+ **✅ 修正**: 加入含上下文和遷移指南的主體(參見上方範例 4)。
665
+
666
+ ---
667
+
668
+ ## 自動化與工具
669
+
670
+ ### Commit 訊息檢查工具
671
+
672
+ **commitlint**(Node.js):
673
+ ```bash
674
+ npm install --save-dev @commitlint/{cli,config-conventional}
675
+
676
+ # .commitlintrc.js
677
+ module.exports = {
678
+ extends: ['@commitlint/config-conventional']
679
+ };
680
+ ```
681
+
682
+ **Git Hook**(在 commit 時強制執行):
683
+
684
+ ```bash
685
+ # .git/hooks/commit-msg
686
+ #!/bin/sh
687
+ npx commitlint --edit $1
688
+ ```
689
+
690
+ ---
691
+
692
+ ### 變更日誌生成
693
+
694
+ **standard-version**(Node.js):
695
+
696
+ ```bash
697
+ npm install --save-dev standard-version
698
+
699
+ # package.json
700
+ {
701
+ "scripts": {
702
+ "release": "standard-version"
703
+ }
704
+ }
705
+
706
+ # 從 commit 生成 CHANGELOG.md
707
+ npm run release
708
+ ```
709
+
710
+ **git-chglog**(Go):
711
+
712
+ ```bash
713
+ git-chglog --output CHANGELOG.md
714
+ ```
715
+
716
+ ---
717
+
718
+ ## 專案設定範本
719
+
720
+ 加入至 `CONTRIBUTING.md`:
721
+
722
+ ```markdown
723
+ ## Commit Message Format
724
+
725
+ ### 類型語言
726
+ 本專案使用**[英文 / 繁體中文 / 雙語對照]** commit 類型。
727
+
728
+ ### 允許的類型
729
+ - feat / 新增: 新功能
730
+ - fix / 修正: Bug 修復
731
+ - refactor / 重構: 程式碼重構
732
+ - docs / 文件: 文件
733
+ - test / 測試: 測試
734
+ - perf / 效能: 效能改進
735
+ - build / 建置: 建置系統
736
+ - ci / 整合: CI/CD 變更
737
+ - chore / 維護: 維護
738
+ - security / 安全: 安全修復
739
+
740
+ ### 允許的範圍
741
+ - auth: 認證模組
742
+ - api: API 層
743
+ - ui: 使用者介面
744
+ - database: 資料庫層
745
+ - [新增你的專案特定範圍]
746
+
747
+ ### 主旨語言
748
+ Commit 主旨行應使用**[英文/繁體中文/雙語]**。
749
+
750
+ ### 範例
751
+
752
+ **繁體中文**:
753
+ ```
754
+
755
+ 新增(認證): 實作 OAuth2 支援
756
+ 修正(API): 解決記憶體洩漏
757
+
758
+ ```
759
+
760
+ **雙語模式**(英文在前,中文對照):
761
+ ```
762
+
763
+ feat(auth): Add OAuth2 support. 新增 OAuth2 支援。
764
+
765
+ Implement OAuth2 authentication flow.
766
+
767
+ 實作 OAuth2 認證流程。
768
+
769
+ Closes #123
770
+
771
+ ```
772
+
773
+ ```
774
+
775
+ ---
776
+
777
+ ## 相關標準
778
+
779
+ - [Git Workflow Standards](git-workflow.md) - Git 工作流程標準
780
+ - [Code Check-in Standards](checkin-standards.md) - 程式碼簽入標準
781
+ - [Changelog Standards](changelog-standards.md) - 變更日誌標準
782
+ - [Versioning Standard](versioning.md) - 語義化版本標準
783
+
784
+ ---
785
+
786
+ ## 版本歷史
787
+
788
+ | 版本 | 日期 | 變更 |
789
+ | ----- | ---------- | -------------------------------------------------------------------------- |
790
+ | 1.2.3 | 2025-12-24 | 新增相關標準區段 |
791
+ | 1.2.2 | 2025-12-16 | 新增語言選擇指南,含決策矩陣和快速選擇提示 |
792
+ | 1.2.1 | 2025-12-09 | 改善 Option A/B/C 格式一致性:統一標題風格、新增描述文字 |
793
+ | 1.2.0 | 2025-12-05 | 修正 Option B 類型對照(chore→維護);新增 security 類型;新增 scope 命名規則;釐清雙語句點例外;改善範本 |
794
+ | 1.1.0 | 2025-12-05 | 新增雙語對照模式(選項 C)與範例 |
795
+ | 1.0.0 | 2025-11-12 | 初版發布 |
796
+
797
+ ---
798
+
799
+ ## 參考資料
800
+
801
+ - [Conventional Commits](https://www.conventionalcommits.org/)
802
+ - [Angular Commit Guidelines](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit)
803
+ - [Semantic Versioning](https://semver.org/)
804
+
805
+ ---
806
+
807
+ ## 授權
808
+
809
+ 本指南以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權發布。