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,88 @@
1
+ # 合併提交 - AI 優化選項
2
+ # 父項: git-workflow
3
+
4
+ id: merge-commit
5
+ meta:
6
+ parent: git-workflow
7
+ version: "1.0.0"
8
+ description: 使用合併提交保留完整分支歷史
9
+ language: zh-TW
10
+
11
+ best_for:
12
+ - 保留完整歷史
13
+ - 長期功能分支
14
+ - GitFlow 工作流程
15
+ - 稽核要求
16
+
17
+ characteristics:
18
+ history: 非線性(有合併點)
19
+ commit_count: 保留所有提交
20
+ reversibility: 可還原整個合併
21
+ bisect_friendly: 非常友好
22
+
23
+ rules:
24
+ - id: no-fast-forward
25
+ trigger: 合併分支時
26
+ instruction: 使用 --no-ff 建立合併提交
27
+ priority: required
28
+
29
+ - id: meaningful-merge-message
30
+ trigger: 建立合併提交時
31
+ instruction: 撰寫描述性的合併訊息
32
+ priority: recommended
33
+
34
+ - id: clean-branch-history
35
+ trigger: 合併前
36
+ instruction: 確保分支有乾淨、有意義的提交
37
+ priority: recommended
38
+
39
+ workflow:
40
+ - step: 建立功能分支
41
+ commands:
42
+ - git checkout main
43
+ - git checkout -b feature/{功能名稱}
44
+
45
+ - step: 進行多次有意義的提交
46
+ commands:
47
+ - git commit -m "feat: add user model"
48
+ - git commit -m "feat: add user service"
49
+ - git commit -m "test: add user tests"
50
+
51
+ - step: 使用合併提交合併
52
+ commands:
53
+ - git checkout main
54
+ - git merge --no-ff feature/{功能名稱} -m "Merge feature/{功能名稱}"
55
+
56
+ example:
57
+ result: |
58
+ * merge123 Merge branch 'feature/oauth'
59
+ |\
60
+ | * abc1234 test: add OAuth tests
61
+ | * def5678 feat: add OAuth service
62
+ | * ghi9012 feat: add OAuth model
63
+ |/
64
+ * xyz7890 previous commit on main
65
+
66
+ pros:
67
+ - 保留完整開發歷史
68
+ - 清楚的功能邊界
69
+ - 適合 git bisect 偵錯
70
+ - 簡單還原整個功能
71
+
72
+ cons:
73
+ - 歷史可能變得複雜
74
+ - 較難閱讀線性流程
75
+ - 更多合併衝突可能性
76
+
77
+ commands:
78
+ merge_no_ff: git merge --no-ff {branch}
79
+ revert_merge: git revert -m 1 {merge-commit}
80
+ view_history: git log --oneline --graph
81
+
82
+ quick_reference:
83
+ options:
84
+ columns: [選項, 說明]
85
+ rows:
86
+ - ["--no-ff", 即使可快進也建立合併提交]
87
+ - ["-m", 指定合併訊息]
88
+ - ["--log", 在合併訊息中包含提交日誌]
@@ -0,0 +1,113 @@
1
+ # 變基快進 - AI 優化選項
2
+ # 父項: git-workflow
3
+
4
+ id: rebase-ff
5
+ meta:
6
+ parent: git-workflow
7
+ version: "1.0.0"
8
+ description: 變基然後快進合併以獲得線性歷史
9
+ language: zh-TW
10
+
11
+ best_for:
12
+ - 完美線性歷史
13
+ - 主幹開發
14
+ - 短期功能分支
15
+ - 資深 Git 使用者
16
+
17
+ characteristics:
18
+ history: 完全線性
19
+ commit_count: 保留所有提交(重寫)
20
+ reversibility: 需要還原每個提交
21
+ bisect_friendly: 優秀
22
+
23
+ rules:
24
+ - id: never-rebase-shared
25
+ trigger: 變基時
26
+ instruction: 永不變基已推送/共享的分支
27
+ priority: required
28
+
29
+ - id: rebase-before-merge
30
+ trigger: 合併前
31
+ instruction: 總是在合併前變基到最新 main
32
+ priority: required
33
+
34
+ - id: clean-commits
35
+ trigger: 變基前
36
+ instruction: 確保提交是原子性且有意義的
37
+ priority: recommended
38
+
39
+ - id: interactive-rebase
40
+ trigger: 清理歷史時
41
+ instruction: 使用互動式變基壓縮 WIP 提交
42
+ priority: recommended
43
+
44
+ workflow:
45
+ - step: 建立功能分支
46
+ commands:
47
+ - git checkout main
48
+ - git checkout -b feature/{功能名稱}
49
+
50
+ - step: 進行提交
51
+ commands:
52
+ - git commit -m "feat: implement feature part 1"
53
+ - git commit -m "feat: implement feature part 2"
54
+
55
+ - step: 變基到最新 main
56
+ commands:
57
+ - git fetch origin
58
+ - git rebase origin/main
59
+
60
+ - step: 快進合併
61
+ commands:
62
+ - git checkout main
63
+ - git merge --ff-only feature/{功能名稱}
64
+
65
+ - step: 推送並刪除分支
66
+ commands:
67
+ - git push origin main
68
+ - git branch -d feature/{功能名稱}
69
+
70
+ interactive_rebase:
71
+ description: 清理提交歷史
72
+ commands:
73
+ - git rebase -i HEAD~3
74
+ actions:
75
+ - pick: 保留提交原樣
76
+ - reword: 變更提交訊息
77
+ - squash: 與前一個合併
78
+ - fixup: 與前一個合併(丟棄訊息)
79
+ - drop: 移除提交
80
+
81
+ example:
82
+ before: |
83
+ main: A---B---C
84
+ \
85
+ feature: D---E---F
86
+ after_rebase: |
87
+ main: A---B---C
88
+ \
89
+ feature: D'---E'---F'
90
+ after_ff: |
91
+ main: A---B---C---D'---E'---F'
92
+
93
+ pros:
94
+ - 完美線性歷史
95
+ - 每個提交都有意義
96
+ - 優秀的 bisect 支援
97
+ - 乾淨的 git log
98
+
99
+ cons:
100
+ - 重寫歷史風險
101
+ - 需要更多 Git 知識
102
+ - 不適合共享分支
103
+ - 合併衝突需解決多次
104
+
105
+ quick_reference:
106
+ commands:
107
+ columns: [操作, 指令]
108
+ rows:
109
+ - [變基到 main, "git rebase origin/main"]
110
+ - [互動式變基, "git rebase -i HEAD~n"]
111
+ - [快進合併, "git merge --ff-only branch"]
112
+ - [中止變基, "git rebase --abort"]
113
+ - [繼續變基, "git rebase --continue"]
@@ -0,0 +1,85 @@
1
+ # 壓縮合併 - AI 優化選項
2
+ # 父項: git-workflow
3
+
4
+ id: squash-merge
5
+ meta:
6
+ parent: git-workflow
7
+ version: "1.0.0"
8
+ description: 將所有分支提交壓縮為單一提交
9
+ language: zh-TW
10
+
11
+ best_for:
12
+ - 乾淨線性歷史
13
+ - 功能分支工作流程
14
+ - 每 PR 一個提交的偏好
15
+
16
+ characteristics:
17
+ history: 線性
18
+ commit_count: 每 PR 一個提交
19
+ reversibility: 簡單還原
20
+ bisect_friendly: 中等
21
+
22
+ rules:
23
+ - id: meaningful-squash-message
24
+ trigger: 壓縮合併時
25
+ instruction: 撰寫完整的提交訊息總結所有變更
26
+ priority: required
27
+
28
+ - id: pr-title-as-commit
29
+ trigger: 合併 PR 時
30
+ instruction: 使用 PR 標題作為壓縮提交的主旨
31
+ priority: recommended
32
+
33
+ - id: include-pr-reference
34
+ trigger: 撰寫壓縮訊息時
35
+ instruction: 在提交訊息中包含 PR 編號
36
+ priority: recommended
37
+
38
+ workflow:
39
+ - step: 建立功能分支
40
+ commands:
41
+ - git checkout main
42
+ - git checkout -b feature/{功能名稱}
43
+
44
+ - step: 進行多次提交
45
+ commands:
46
+ - git commit -m "wip: initial implementation"
47
+ - git commit -m "wip: add tests"
48
+ - git commit -m "wip: fix lint errors"
49
+
50
+ - step: 壓縮合併(通過 GitHub/GitLab)
51
+ commands:
52
+ - "# 在 GitHub/GitLab 中合併時選擇 'Squash and merge'"
53
+ - "# 結果:所有提交壓縮為一個"
54
+
55
+ - step: 或使用命令列
56
+ commands:
57
+ - git checkout main
58
+ - git merge --squash feature/{功能名稱}
59
+ - git commit -m "feat(scope): 總結訊息 (#PR號)"
60
+
61
+ example:
62
+ before: |
63
+ * abc1234 wip: fix lint
64
+ * def5678 wip: add tests
65
+ * ghi9012 wip: initial
66
+ after: |
67
+ * xyz7890 feat(auth): implement OAuth login (#123)
68
+
69
+ pros:
70
+ - 乾淨、可讀的歷史
71
+ - 簡單還原功能
72
+ - 每個功能一個提交
73
+
74
+ cons:
75
+ - 失去詳細提交歷史
76
+ - 較難追蹤個別變更
77
+ - 在 bisect 偵錯時可能較困難
78
+
79
+ quick_reference:
80
+ commands:
81
+ columns: [操作, 指令]
82
+ rows:
83
+ - [壓縮合併, "git merge --squash branch"]
84
+ - [還原壓縮提交, "git revert <commit>"]
85
+ - [查看線性歷史, "git log --oneline"]
@@ -0,0 +1,117 @@
1
+ # 主幹開發 - AI 優化選項
2
+ # 父項: git-workflow
3
+
4
+ id: trunk-based
5
+ meta:
6
+ parent: git-workflow
7
+ version: "1.0.0"
8
+ description: 直接提交到主幹的持續整合工作流程
9
+ language: zh-TW
10
+
11
+ best_for:
12
+ - 持續部署(每天多次)
13
+ - 成熟的 CI/CD 管線
14
+ - 資深開發團隊
15
+ - 微服務架構
16
+
17
+ branches:
18
+ - name: main (trunk)
19
+ purpose: 永遠可部署的單一真相來源
20
+ lifetime: 永久
21
+
22
+ - name: feature/*
23
+ purpose: 非常短期的功能分支(選用)
24
+ lifetime: 最多 1-2 天
25
+ note: 許多團隊直接提交到 trunk
26
+
27
+ rules:
28
+ - id: small-frequent-commits
29
+ trigger: 提交程式碼時
30
+ instruction: 小而頻繁的提交(每天多次)
31
+ priority: required
32
+
33
+ - id: feature-flags
34
+ trigger: 開發新功能時
35
+ instruction: 使用功能旗標隱藏未完成功能
36
+ priority: required
37
+
38
+ - id: trunk-always-green
39
+ trigger: 合併到 trunk 時
40
+ instruction: 所有測試必須通過;trunk 永遠可部署
41
+ priority: required
42
+
43
+ - id: no-long-lived-branches
44
+ trigger: 建立分支時
45
+ instruction: 分支存活不超過 2 天
46
+ priority: required
47
+
48
+ - id: ci-required
49
+ trigger: 推送變更時
50
+ instruction: 每次推送都必須觸發 CI 管線
51
+ priority: required
52
+
53
+ workflow:
54
+ direct_commit:
55
+ - step: 從最新 trunk 開始
56
+ commands:
57
+ - git checkout main
58
+ - git pull origin main
59
+
60
+ - step: 進行小變更
61
+ commands:
62
+ - "# 進行小而聚焦的變更"
63
+ - git add .
64
+ - git commit -m "feat: {描述}"
65
+
66
+ - step: 推送到 trunk
67
+ commands:
68
+ - git pull --rebase origin main
69
+ - git push origin main
70
+
71
+ short_branch:
72
+ - step: 建立短期分支
73
+ commands:
74
+ - git checkout main
75
+ - git pull origin main
76
+ - git checkout -b feature/{小功能}
77
+
78
+ - step: 快速開發(最多 2 天)
79
+ commands:
80
+ - "# 進行變更..."
81
+ - git add .
82
+ - git commit -m "feat: {描述}"
83
+
84
+ - step: 快速合併
85
+ commands:
86
+ - git checkout main
87
+ - git pull origin main
88
+ - git merge --ff-only feature/{小功能}
89
+ - git push origin main
90
+
91
+ feature_flags:
92
+ description: 使用功能旗標允許不完整程式碼進入 trunk
93
+ example: |
94
+ if (featureFlags.isEnabled('new-checkout')) {
95
+ return <NewCheckout />;
96
+ }
97
+ return <OldCheckout />;
98
+
99
+ practices:
100
+ - name: 結對程式設計
101
+ benefit: 即時程式碼審查
102
+ - name: 測試驅動開發
103
+ benefit: 高信心的頻繁合併
104
+ - name: 功能旗標
105
+ benefit: 不完整功能的安全部署
106
+ - name: 監控
107
+ benefit: 快速偵測問題
108
+
109
+ quick_reference:
110
+ principles:
111
+ columns: [原則, 說明]
112
+ rows:
113
+ - [小提交, 每次變更少於 200 行]
114
+ - [頻繁整合, 每天多次合併到 trunk]
115
+ - [功能旗標, 隱藏進行中功能]
116
+ - [永遠綠燈, Trunk 永遠可部署]
117
+ - [快速回饋, CI 在數分鐘內完成]
@@ -0,0 +1,108 @@
1
+ # .NET 專案結構 - AI 優化選項
2
+ # 父項: project-structure
3
+
4
+ id: dotnet
5
+ meta:
6
+ parent: project-structure
7
+ version: "1.0.0"
8
+ description: .NET/C# 專案的標準目錄結構
9
+ language: zh-TW
10
+
11
+ structure:
12
+ template: |
13
+ SolutionName/
14
+ ├── src/
15
+ │ ├── SolutionName.Api/ # Web API 專案
16
+ │ │ ├── Controllers/
17
+ │ │ ├── Middleware/
18
+ │ │ ├── Program.cs
19
+ │ │ └── appsettings.json
20
+ │ ├── SolutionName.Core/ # 核心業務邏輯
21
+ │ │ ├── Entities/
22
+ │ │ ├── Interfaces/
23
+ │ │ └── Services/
24
+ │ ├── SolutionName.Infrastructure/ # 外部服務實作
25
+ │ │ ├── Data/
26
+ │ │ ├── Repositories/
27
+ │ │ └── ExternalServices/
28
+ │ └── SolutionName.Shared/ # 共用程式碼
29
+ │ ├── DTOs/
30
+ │ ├── Extensions/
31
+ │ └── Utils/
32
+ ├── tests/
33
+ │ ├── SolutionName.UnitTests/
34
+ │ ├── SolutionName.IntegrationTests/
35
+ │ └── SolutionName.FunctionalTests/
36
+ ├── docs/
37
+ ├── scripts/
38
+ ├── SolutionName.sln
39
+ ├── .editorconfig
40
+ ├── Directory.Build.props
41
+ └── README.md
42
+
43
+ layers:
44
+ - name: Api
45
+ responsibility: HTTP 端點、中介軟體、DI 設定
46
+ depends_on: [Core, Infrastructure]
47
+
48
+ - name: Core
49
+ responsibility: 業務邏輯、實體、介面
50
+ depends_on: []
51
+
52
+ - name: Infrastructure
53
+ responsibility: 資料存取、外部服務
54
+ depends_on: [Core]
55
+
56
+ - name: Shared
57
+ responsibility: 共用 DTO、擴充方法
58
+ depends_on: []
59
+
60
+ conventions:
61
+ naming:
62
+ files: PascalCase.cs
63
+ directories: PascalCase
64
+ classes: PascalCase
65
+ interfaces: IPascalCase
66
+ methods: PascalCase
67
+ private_fields: _camelCase
68
+ constants: PascalCase
69
+
70
+ rules:
71
+ - id: clean-architecture
72
+ trigger: 組織專案時
73
+ instruction: 遵循 Clean Architecture 原則(相依性向內)
74
+ priority: required
75
+
76
+ - id: interface-segregation
77
+ trigger: 定義介面時
78
+ instruction: 在 Core 定義介面,在 Infrastructure 實作
79
+ priority: required
80
+
81
+ - id: project-references
82
+ trigger: 加入參考時
83
+ instruction: Api → Infrastructure → Core,Shared 可被任何專案參考
84
+ priority: required
85
+
86
+ project_files:
87
+ directory_build_props: |
88
+ <Project>
89
+ <PropertyGroup>
90
+ <TargetFramework>net8.0</TargetFramework>
91
+ <ImplicitUsings>enable</ImplicitUsings>
92
+ <Nullable>enable</Nullable>
93
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
94
+ </PropertyGroup>
95
+ </Project>
96
+
97
+ tools:
98
+ build: dotnet CLI, MSBuild
99
+ testing:
100
+ - xUnit(推薦)
101
+ - NUnit
102
+ - MSTest
103
+ mocking:
104
+ - Moq
105
+ - NSubstitute
106
+ orm:
107
+ - Entity Framework Core
108
+ - Dapper
@@ -0,0 +1,115 @@
1
+ # Go 專案結構 - AI 優化選項
2
+ # 父項: project-structure
3
+
4
+ id: go
5
+ meta:
6
+ parent: project-structure
7
+ version: "1.0.0"
8
+ description: Go 專案的標準目錄結構
9
+ language: zh-TW
10
+
11
+ structure:
12
+ template: |
13
+ project-root/
14
+ ├── cmd/ # 主要應用程式
15
+ │ ├── api/
16
+ │ │ └── main.go # API 伺服器進入點
17
+ │ └── worker/
18
+ │ └── main.go # 背景 worker 進入點
19
+ ├── internal/ # 私有應用程式程式碼
20
+ │ ├── config/ # 設定
21
+ │ │ └── config.go
22
+ │ ├── handlers/ # HTTP 處理器
23
+ │ │ └── user_handler.go
24
+ │ ├── services/ # 業務邏輯
25
+ │ │ └── user_service.go
26
+ │ ├── repositories/ # 資料存取
27
+ │ │ └── user_repository.go
28
+ │ ├── models/ # 資料模型
29
+ │ │ └── user.go
30
+ │ └── middleware/ # HTTP 中介軟體
31
+ ├── pkg/ # 公開函式庫程式碼
32
+ │ └── utils/
33
+ ├── api/ # API 定義
34
+ │ └── openapi.yaml
35
+ ├── scripts/ # 建置/部署腳本
36
+ ├── docs/ # 文件
37
+ ├── go.mod
38
+ ├── go.sum
39
+ ├── Makefile
40
+ └── README.md
41
+
42
+ directories:
43
+ - name: cmd/
44
+ purpose: 應用程式進入點
45
+ note: 每個子目錄是一個可執行檔
46
+
47
+ - name: internal/
48
+ purpose: 私有程式碼(Go 強制)
49
+ note: 無法被外部套件導入
50
+
51
+ - name: pkg/
52
+ purpose: 可被外部使用的函式庫程式碼
53
+ note: 小心使用,僅用於真正可重用的程式碼
54
+
55
+ conventions:
56
+ naming:
57
+ files: snake_case.go
58
+ packages: 簡短、小寫、單一單字
59
+ interfaces: 動詞 + "er"(Reader, Writer)
60
+ structs: 名詞(User, Config)
61
+ functions: camelCase(exported 用 PascalCase)
62
+
63
+ file_organization:
64
+ - 一個檔案一個主要類型
65
+ - 測試檔案命名為 *_test.go
66
+ - 測試與原始碼放一起
67
+
68
+ rules:
69
+ - id: flat-structure
70
+ trigger: 組織套件時
71
+ instruction: 優先扁平結構,避免過深巢狀
72
+ priority: recommended
73
+
74
+ - id: internal-private
75
+ trigger: 放置私有程式碼時
76
+ instruction: 使用 internal/ 保護應用程式程式碼
77
+ priority: required
78
+
79
+ - id: interface-consumers
80
+ trigger: 定義介面時
81
+ instruction: 在消費者套件定義介面,而非提供者
82
+ priority: recommended
83
+
84
+ - id: small-interfaces
85
+ trigger: 設計介面時
86
+ instruction: 優先使用小介面(1-3 個方法)
87
+ priority: recommended
88
+
89
+ makefile:
90
+ example: |
91
+ .PHONY: build test run lint
92
+
93
+ build:
94
+ go build -o bin/api ./cmd/api
95
+
96
+ test:
97
+ go test ./...
98
+
99
+ run:
100
+ go run ./cmd/api
101
+
102
+ lint:
103
+ golangci-lint run
104
+
105
+ tools:
106
+ build: go build, Makefile
107
+ testing:
108
+ - go test
109
+ - testify
110
+ linting:
111
+ - golangci-lint
112
+ - staticcheck
113
+ mocking:
114
+ - mockgen
115
+ - mockery