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,691 @@
1
+ ---
2
+ source: ../../../core/anti-hallucination.md
3
+ source_version: 1.3.1
4
+ translation_version: 1.3.1
5
+ last_synced: 2025-12-25
6
+ status: current
7
+ ---
8
+
9
+ # AI 協作防幻覺標準
10
+
11
+ > **語言**: [English](../../../core/anti-hallucination.md) | 繁體中文
12
+
13
+ **版本**: 1.3.1
14
+ **最後更新**: 2025-12-24
15
+ **適用範圍**: 所有使用 AI 助理協作的軟體專案
16
+
17
+ ---
18
+
19
+ ## 目的
20
+
21
+ 本標準定義 AI 助理的嚴格準則,以防止在分析程式碼、提出建議或撰寫系統文件時產生幻覺(生成錯誤或未經驗證的資訊)。
22
+
23
+ ---
24
+
25
+ ## AI 助手互動規範
26
+
27
+ ### 對話語言
28
+
29
+ AI 助手應適應使用者的偏好語言。當專案指定對話語言時,請遵循以下準則:
30
+
31
+ | 情境 | 準則 | 範例 |
32
+ |------|------|------|
33
+ | 對話互動 | 使用專案指定語言 | 繁體中文、英文等 |
34
+ | 確定性標籤 | 使用專案指定語言 | `[已確認]` 或 `[Confirmed]` |
35
+ | 錯誤訊息解釋 | 使用專案指定語言 | 以使用者語言解釋編譯/執行錯誤 |
36
+ | 技術術語 | 保留原文 | JWT、BCrypt、API、Token |
37
+ | 程式碼註解 | 遵循專案慣例 | 通常為英文 |
38
+ | Commit 訊息 | 遵循專案慣例 | 如 `feat(auth): 新增登入功能` |
39
+
40
+ ### 選項建議原則
41
+
42
+ **規則**: 當提供多個選項時,必須同時提出最推薦的選項並說明理由。
43
+
44
+ | 情境 | 要求 | 範例 |
45
+ |------|------|------|
46
+ | 提供 2+ 選項 | 必須明確標示推薦選項並說明理由 | 「推薦選項 A,因為...」 |
47
+ | 選項優劣明顯 | 直接推薦最佳選項,說明理由 | 「建議使用 BCrypt,因為安全性較高」 |
48
+ | 選項各有優劣 | 推薦最適合當前情境的選項,說明權衡考量 | 「考量專案需求,推薦選項 B」 |
49
+ | 無法判斷優劣 | 說明需要哪些資訊才能給出推薦 | 「需要確認效能需求才能推薦」 |
50
+
51
+ **範例**:
52
+
53
+ ❌ **錯誤**:
54
+ ```
55
+ 有三個選項:
56
+ 1. 使用 Redis 快取
57
+ 2. 使用記憶體快取
58
+ 3. 使用檔案快取
59
+
60
+ 請選擇一個。
61
+ ```
62
+
63
+ ✅ **正確**:
64
+ ```
65
+ 有三個選項:
66
+ 1. 使用 Redis 快取
67
+ 2. 使用記憶體快取
68
+ 3. 使用檔案快取
69
+
70
+ **推薦: 選項 1 (Redis)**: 考量專案已有 Redis 基礎設施且需要跨實例共享快取,Redis 是最適合的選擇。
71
+ ```
72
+
73
+ ### 下一步建議
74
+
75
+ **規則**: 當完成一項任務或子任務時,AI 助手**必須**建議合理的下一步工作,並明確標示**最推薦**的選項。
76
+
77
+ **指引**:
78
+ - **主動性**: 不要等待使用者問「接下來呢?」。
79
+ - **情境相關**: 建議應遵循專案的工作流程(如:提案 -> 實作 -> 測試)。
80
+ - **明確推薦**: 使用 `[推薦]` 或 `[Recommended]` 標示最佳路徑。
81
+
82
+ **範例**:
83
+
84
+ ✅ **正確**:
85
+ ```
86
+ 任務完成: API 端點已實作。
87
+
88
+ **建議下一步**:
89
+ 1. **[推薦]** 為新端點新增單元測試 (`src/tests/api/`)
90
+ 2. 更新 API 文件 (`docs/api-reference.md`)
91
+ 3. 開始前端整合
92
+ ```
93
+
94
+ ---
95
+
96
+ ## 核心原則
97
+
98
+ ### 1. 僅基於證據的分析
99
+
100
+ **規則**: 僅分析和引用已明確提供或讀取的內容。
101
+
102
+ **指引**:
103
+ - ✅ 分析已使用檔案讀取工具讀取的程式碼檔案
104
+ - ✅ 引用已擷取的文件
105
+ - ✅ 引用已檢查的設定檔
106
+ - ❌ 不要推測未見過的 API、函式或設定
107
+ - ❌ 不要在未驗證的情況下假設框架行為
108
+ - ❌ 不要捏造需求細節
109
+
110
+ **範例**:
111
+
112
+ ✅ **正確**:
113
+ ```
114
+ [證據] 在 src/auth/service.ts:45,JWT 驗證邏輯使用 'jsonwebtoken' 函式庫
115
+ [證據] package.json 檔案(第 12-18 行)列出 Express 4.18.2 作為相依項目
116
+ ```
117
+
118
+ ❌ **錯誤**:
119
+ ```
120
+ 此系統使用 Redis 進行快取(程式碼未審查)
121
+ UserService 應該有 authenticate() 方法(API 未驗證)
122
+ 需求指出我們需要 SSO 登入支援(需求未確認)
123
+ ```
124
+
125
+ ---
126
+
127
+ ### 2. 明確來源標註
128
+
129
+ **規則**: 所有引用必須包含來源類型、位置與可驗證性資訊。
130
+
131
+ #### 2.1 來源類型
132
+
133
+ | 來源類型 | 標籤 | 說明 | 可靠度 |
134
+ |---------|------|------|--------|
135
+ | 專案程式碼 | `[來源: 程式碼]` | 直接從程式碼庫讀取 | ⭐⭐⭐⭐⭐ 最高 |
136
+ | 專案文件 | `[來源: 文件]` | README、Wiki、程式碼註解 | ⭐⭐⭐⭐ 高 |
137
+ | 外部文件 | `[來源: 外部]` | 官方文件(附 URL) | ⭐⭐⭐⭐ 高 |
138
+ | 網路搜尋 | `[來源: 搜尋]` | 搜尋結果(包含日期) | ⭐⭐⭐ 中 |
139
+ | AI 知識 | `[來源: 知識]` | AI 訓練資料(需驗證) | ⭐⭐ 低 |
140
+ | 使用者提供 | `[來源: 使用者]` | 使用者對話中的資訊 | ⭐⭐⭐ 中 |
141
+
142
+ #### 2.2 標註格式
143
+
144
+ **程式碼引用**:
145
+ ```
146
+ [來源: 程式碼] 檔案路徑:行號 - 描述
147
+ ```
148
+
149
+ **外部文件**:
150
+ ```
151
+ [來源: 外部] URL - 描述(版本: x.x.x,存取: YYYY-MM-DD)
152
+ ```
153
+
154
+ **AI 知識**:
155
+ ```
156
+ [來源: 知識] 主題 - 描述(⚠️ 需要驗證)
157
+ ```
158
+
159
+ #### 2.3 範例
160
+
161
+ ✅ **正確**:
162
+ ```
163
+ [來源: 程式碼] UserService.cs:142 - 密碼雜湊使用 BCrypt
164
+ [來源: 程式碼] app.config:23-28 - 資料庫連線字串設定為 SQL Server
165
+ [來源: 文件] README.md:15 - 專案需要 .NET 8.0 SDK
166
+ [來源: 外部] https://react.dev/reference/react/useState - useState hook API(版本: React 18,存取: 2025-12-10)
167
+ [來源: 搜尋] "Express.js middleware order" - 中介軟體依註冊順序執行(搜尋: 2025-12-10)
168
+ [來源: 知識] HTTP 狀態碼 - 404 表示資源未找到(⚠️ 一般知識,請驗證您的 API)
169
+ [來源: 使用者] 使用者在對話中表示 - 驗證必須支援 OAuth2
170
+ ```
171
+
172
+ ❌ **錯誤**:
173
+ ```
174
+ 驗證服務使用 BCrypt(無來源類型,無檔案引用)
175
+ 設定檔案中某處有資料庫連線(模糊引用)
176
+ 我認為 README 提到 .NET 8(不確定語言,無來源)
177
+ React useState 的運作方式是...(無版本,無引用)
178
+ ```
179
+
180
+ #### 2.4 版本敏感性
181
+
182
+ **規則**: 引用函式庫、框架或 API 時,必須包含版本資訊(如有)。
183
+
184
+ **為何重要**:
185
+ - API 在不同版本間會改變
186
+ - 已棄用的功能可能仍出現在 AI 訓練資料中
187
+ - 安全性漏洞是版本特定的
188
+
189
+ **範例**:
190
+ ```
191
+ ✅ [來源: 外部] Next.js App Router (v14.x) - Server Components 是預設值
192
+ ✅ [來源: 程式碼] package.json:12 - 使用 "express": "^4.18.2"
193
+ ❌ "Next.js 使用 Server Components"(哪個版本?v12 和 v14 行為不同)
194
+ ```
195
+
196
+ ---
197
+
198
+ ### 3. 分類確定性等級
199
+
200
+ **規則**: 明確區分已確認事實、推測與未知事項。
201
+
202
+ **分類標籤**:
203
+
204
+ | 標籤 | 使用時機 |
205
+ |-----|---------|
206
+ | `[已確認]` | 直接來自程式碼/文件的證據 |
207
+ | `[推測]` | 基於現有證據的邏輯推論 |
208
+ | `[假設]` | 基於常見模式(需驗證)|
209
+ | `[未知]` | 資訊不可得 |
210
+ | `[需確認]` | 需要使用者澄清 |
211
+
212
+ **範例**:
213
+
214
+ ✅ **正確**:
215
+ ```
216
+ [已確認] src/database/connection.ts:12 - 使用 PostgreSQL 驅動程式 'pg'
217
+ [推測] 基於 src/repositories/ 中的 repository 模式,可能使用依賴注入
218
+ [假設] 專案可能使用 OAuth2,但需要審查驗證設定
219
+ [未知] API 速率限制策略未記錄
220
+ [需確認] 新功能是否應支援多租戶?
221
+ ```
222
+
223
+ ❌ **錯誤**:
224
+ ```
225
+ 系統使用 Redis(無分類,無證據)
226
+ 我們應該實作快取(以事實呈現,非建議)
227
+ 使用者需要 SSO 支援(假設以已確認需求呈現)
228
+ ```
229
+
230
+ ---
231
+
232
+ ### 4. 禁止行為
233
+
234
+ **AI 助手不得**:
235
+
236
+ 1. **捏造 API 或函式簽名**
237
+ - ❌ 不要編造方法名稱、參數或回傳類型
238
+ - ✅ 要讀取實際原始碼或詢問使用者
239
+
240
+ 2. **假設需求**
241
+ - ❌ 不要猜測使用者需求或業務規則
242
+ - ✅ 當需求模糊時要提出澄清問題
243
+
244
+ 3. **推測未讀取的程式碼**
245
+ - ❌ 不要描述未審查檔案的功能
246
+ - ✅ 要明確表示「需要讀取 [檔案] 以確認」
247
+
248
+ 4. **編造設定**
249
+ - ❌ 不要假設環境變數、設定鍵或資料庫結構
250
+ - ✅ 要審查實際設定檔
251
+
252
+ 5. **憑空產生錯誤或 Bug**
253
+ - ❌ 不要在無證據的情況下聲稱程式碼有問題
254
+ - ✅ 要分析實際程式碼並引用特定行號
255
+
256
+ 6. **提出選項但不推薦**
257
+ - ❌ 不要列出選項後要求使用者選擇而不提供指引
258
+ - ✅ 要永遠包含推薦選項並附理由
259
+
260
+ #### 詳細範例
261
+
262
+ ##### 1. 捏造 API 或函式名稱
263
+
264
+ ❌ **錯誤**:
265
+ ```
266
+ 助理: 「你可以呼叫 UserService.GetUserById(int id) 來取得使用者」
267
+ ```
268
+ **問題**: 方法不存在或簽名不同。
269
+
270
+ ✅ **正確**:
271
+ ```
272
+ 助理: 「讓我讀取 UserService 檔案以找到正確的方法簽名。」
273
+
274
+ [讀取 src/services/UserService.cs 後]
275
+
276
+ [來源: 程式碼] UserService.cs:45 - 找到方法: FindUser(Guid userId)
277
+ 實際方法使用 Guid 而非 int 作為使用者 ID 參數。
278
+ ```
279
+
280
+ ---
281
+
282
+ ##### 2. 假設使用者需求
283
+
284
+ ❌ **錯誤**:
285
+ ```
286
+ 助理: 「系統需要支援 OAuth 和 SAML 以提供企業 SSO。」
287
+ ```
288
+ **問題**: 使用者只詢問認證,未指定協議。
289
+
290
+ ✅ **正確**:
291
+ ```
292
+ 助理: 「[需確認] 您提到需要驗證功能。
293
+ 能否澄清:
294
+ 1. 這是給內部使用者、外部客戶,還是兩者都有?
295
+ 2. 您需要企業 SSO(OAuth/SAML)還是簡單的使用者名稱/密碼?
296
+ 3. 有任何需要整合的現有身分提供者嗎?
297
+
298
+ 這將幫助我推薦最適合的方法。」
299
+ ```
300
+
301
+ ---
302
+
303
+ ##### 3. 描述未讀取的程式碼功能
304
+
305
+ ❌ **錯誤**:
306
+ ```
307
+ 助理: 「PaymentService 處理信用卡處理並與 Stripe 整合。」
308
+ ```
309
+ **問題**: 檔案未讀取,功能僅從名稱假設。
310
+
311
+ ✅ **正確**:
312
+ ```
313
+ 助理: 「我在您的專案結構中看到名為 PaymentService.cs 的檔案。
314
+
315
+ [未知] 我尚未讀取此檔案,因此無法確認其功能。
316
+
317
+ 您想讓我讀取 src/services/PaymentService.cs 以了解:
318
+ - 它使用哪個支付提供者?
319
+ - 支援哪些支付方式?
320
+ - 交易如何處理?」
321
+ ```
322
+
323
+ ---
324
+
325
+ ##### 4. 編造設定細節
326
+
327
+ ❌ **錯誤**:
328
+ ```
329
+ 助理: 「設定 DATABASE_URL 環境變數以連線到 PostgreSQL。
330
+ 您的連線字串應在 appsettings.json 的 'ConnectionStrings:DefaultConnection' 下。」
331
+ ```
332
+ **問題**: 設定結構和變數名稱未經驗證即假設。
333
+
334
+ ✅ **正確**:
335
+ ```
336
+ 助理: 「讓我檢查您的實際設定檔。」
337
+
338
+ [讀取 appsettings.json 後]
339
+
340
+ [來源: 程式碼] appsettings.json:8-12 - 找到資料庫設定:
341
+ - 連線字串鍵: "ConnectionStrings:MainDb"(非 "DefaultConnection")
342
+ - 使用 SQL Server,非 PostgreSQL
343
+ - 額外設定 "CommandTimeout": 30
344
+
345
+ 您的專案使用與 .NET 預設不同的鍵名稱。
346
+ ```
347
+
348
+ ---
349
+
350
+ ##### 5. 斷言程式碼有 Bug(無證據)
351
+
352
+ ❌ **錯誤**:
353
+ ```
354
+ 助理: 「您的驗證程式碼有安全性漏洞 -
355
+ 您沒有正確進行密碼雜湊。」
356
+ ```
357
+ **問題**: 未讀取實際程式碼即聲稱有 Bug。
358
+
359
+ ✅ **正確**:
360
+ ```
361
+ 助理: 「讓我審查您的驗證實作。」
362
+
363
+ [讀取 src/auth/AuthService.cs 後]
364
+
365
+ [已確認] AuthService.cs:67 - 找到密碼雜湊實作:
366
+ - 使用 BCrypt,work factor 為 12 ✅
367
+ - Salt 自動生成 ✅
368
+ - 未偵測到時序攻擊漏洞 ✅
369
+
370
+ 您的密碼雜湊實作遵循安全性最佳實務。
371
+ 在審查的程式碼中未發現問題。
372
+ ```
373
+
374
+ ---
375
+
376
+ ##### 6. 選項未附推薦
377
+
378
+ ❌ **錯誤**:
379
+ ```
380
+ 助理: 「您可以使用: 1) JWT 2) Session 3) OAuth。您偏好哪個?」
381
+ ```
382
+ **問題**: 列出選項但未提供指引或考慮情境。
383
+
384
+ ✅ **正確**:
385
+ ```
386
+ 助理: 「基於您的需求:
387
+
388
+ **選項**:
389
+ 1. JWT - 無狀態、可擴展、適合 API
390
+ 2. Session - 伺服器端狀態、傳統 Web 應用程式
391
+ 3. OAuth - 第三方身分提供者
392
+
393
+ **推薦: JWT**
394
+
395
+ [推測] 基於您的微服務架構(見於 docker-compose.yml),
396
+ JWT 是最適合的,因為:
397
+ - 無狀態: 跨服務不需要 session 儲存
398
+ - 可擴展: 每個服務可獨立驗證 token
399
+ - 標準: 在您的技術堆疊(.NET、React)中有良好支援
400
+
401
+ 如果之後需要社交登入,可以在 JWT 之上加入 OAuth。」
402
+ ```
403
+
404
+ ---
405
+
406
+ ## 實施檢查清單
407
+
408
+ 在對程式碼、需求或架構做出任何陳述前,請驗證:
409
+
410
+ - [ ] **來源已驗證**
411
+ - 我是否已讀取實際的檔案/文件?
412
+
413
+ - [ ] **來源類型已標註**
414
+ - 我是否已指定來源類型?(`[來源: 程式碼]`、`[來源: 外部]`、`[來源: 知識]` 等)
415
+
416
+ - [ ] **引用已標註**
417
+ - 我是否已包含檔案路徑與行號(程式碼)?
418
+ - 我是否已包含 URL 與存取日期(外部文件)?
419
+
420
+ - [ ] **版本已標註**
421
+ - 我是否已包含適用的函式庫/框架版本?
422
+
423
+ - [ ] **確定性已分類**
424
+ - 我是否已標註為 [已確認]、[推測]、[假設]、[未知] 或 [需確認]?
425
+
426
+ - [ ] **AI 知識已標記**
427
+ - 我是否已對 `[來源: 知識]` 標記 ⚠️ 驗證警告?
428
+
429
+ - [ ] **無捏造**
430
+ - 我是否避免了捏造 API、設定或需求?
431
+
432
+ - [ ] **使用者澄清**
433
+ - 我是否對模糊點請求澄清?
434
+
435
+ - [ ] **包含推薦**
436
+ - 當提出選項時,我是否包含了推薦選項?
437
+
438
+ ---
439
+
440
+ ## 審查情境
441
+
442
+ ### 情境 1: 程式碼分析
443
+
444
+ **使用者請求**: 「審查驗證邏輯」
445
+
446
+ **❌ 不良回應**:
447
+ ```
448
+ 您的驗證系統使用 JWT 搭配 RS256 簽名。
449
+ Token 在 1 小時後過期。
450
+ 您應該加入 refresh token 支援。
451
+ ```
452
+ **問題**: 未讀取程式碼即做出聲明,假設實作細節。
453
+
454
+ **✅ 良好回應**:
455
+ ```
456
+ [需確認] 哪個檔案包含驗證邏輯?
457
+ 可能的位置包括:
458
+ - src/auth/
459
+ - src/services/auth
460
+ - src/middleware/
461
+
462
+ 請引導我找到正確的檔案,以便我提供準確分析。
463
+
464
+ 或者,我可以搜尋程式碼庫中與驗證相關的檔案。
465
+ ```
466
+
467
+ ---
468
+
469
+ ### 情境 2: 架構建議
470
+
471
+ **使用者請求**: 「我應該如何架構新的付款模組?」
472
+
473
+ **❌ 不良回應**:
474
+ ```
475
+ 基於您現有的架構,您應該:
476
+ 1. 在 src/services/ 建立 PaymentService
477
+ 2. 使用 Stripe API
478
+ 3. 將交易儲存在 payments 資料表
479
+ ```
480
+ **問題**: 未經證據即假設架構、支付提供者和資料庫結構。
481
+
482
+ **✅ 良好回應**:
483
+ ```
484
+ 為了提供準確的建議,我需要了解您目前的架構:
485
+
486
+ [需確認]
487
+ 1. 您計劃使用哪個支付提供者?(Stripe、PayPal、自訂等)
488
+ 2. 您現有的服務層結構是什麼?
489
+ 3. 您使用什麼資料庫?
490
+
491
+ 能否分享:
492
+ - 專案結構(ls -R src/ 或類似)
493
+ - 現有服務範例
494
+ - 資料庫結構或 ORM 模型
495
+
496
+ 一旦我審查了這些,就能建議與您的模式一致的結構。
497
+ ```
498
+
499
+ ---
500
+
501
+ ### 情境 3: Bug 調查
502
+
503
+ **使用者請求**: 「登入失敗」
504
+
505
+ **❌ 不良回應**:
506
+ ```
507
+ 問題可能在您的 validateCredentials() 函式中。
508
+ 您可能需要在比對前對密碼進行雜湊。
509
+ ```
510
+ **問題**: 未看程式碼即猜測原因。
511
+
512
+ **✅ 良好回應**:
513
+ ```
514
+ 要調查登入失敗,我需要更多資訊:
515
+
516
+ [需確認]
517
+ 1. 您看到什麼錯誤訊息?(主控台日誌、錯誤回應)
518
+ 2. 哪個檔案包含登入邏輯?
519
+ 3. 能否分享相關的程式碼片段或日誌?
520
+
521
+ 建議的除錯步驟:
522
+ - 分享登入控制器/服務程式碼
523
+ - 提供主控台/伺服器的錯誤日誌
524
+ - 描述預期與實際行為
525
+
526
+ 一旦我審查了實際程式碼和錯誤,就能找出根本原因。
527
+ ```
528
+
529
+ ---
530
+
531
+ ### 情境 4: 技術選型
532
+
533
+ **使用者請求**: 「我應該使用什麼快取解決方案?」
534
+
535
+ **❌ 不良回應**:
536
+ ```
537
+ 您有幾個選項:
538
+ 1. Redis
539
+ 2. Memcached
540
+ 3. 記憶體快取
541
+
542
+ 讓我知道您想使用哪一個。
543
+ ```
544
+ **問題**: 列出選項但未推薦或考慮情境。
545
+
546
+ **✅ 良好回應**:
547
+ ```
548
+ 基於可用的選項:
549
+ 1. Redis - 分散式、持久化、豐富的資料結構
550
+ 2. Memcached - 簡單、快速、分散式
551
+ 3. 記憶體快取 - 僅本機、無需設定
552
+
553
+ **推薦: Redis**
554
+
555
+ [需確認] 在最終決定前,我想了解:
556
+ - 您需要跨多個實例共享快取嗎?
557
+ - 需要資料持久化嗎?
558
+ - 您現有的基礎設施是什麼?
559
+
560
+ 如果您已有 Redis 基礎設施或需要跨實例共享,
561
+ Redis 是最佳選擇。如果這是單實例應用程式且有
562
+ 簡單的快取需求,記憶體快取就足夠了。
563
+ ```
564
+
565
+ ---
566
+
567
+ ## AI 助理工作流程
568
+
569
+ ```
570
+ ┌─────────────────────────────────┐
571
+ │ 收到使用者請求 │
572
+ └─────────────┬───────────────────┘
573
+
574
+
575
+ ┌─────────────────────────────────┐
576
+ │ 識別所需資訊 │
577
+ │ - 程式碼檔案? │
578
+ │ - 設定? │
579
+ │ - 需求? │
580
+ └─────────────┬───────────────────┘
581
+
582
+
583
+ ┌────┴────┐
584
+ │ 可取得? │
585
+ └────┬────┘
586
+
587
+ ┌───────┴───────┐
588
+ │ │
589
+ 是 否
590
+ │ │
591
+ ▼ ▼
592
+ ┌──────────┐ ┌─────────────┐
593
+ │ 讀取/ │ │ 向使用者 │
594
+ │ 分析 │ │ 詢問資訊 │
595
+ └────┬─────┘ └──────┬──────┘
596
+ │ │
597
+ ▼ ▼
598
+ ┌─────────────────────────────────┐
599
+ │ 為回應加上標籤: │
600
+ │ - [已確認] 用於事實 │
601
+ │ - [推測] 用於推論 │
602
+ │ - [需確認] 用於缺口 │
603
+ └─────────────┬───────────────────┘
604
+
605
+
606
+ ┌─────────────────────────────────┐
607
+ │ 引用來源(檔案:行號) │
608
+ └─────────────┬───────────────────┘
609
+
610
+
611
+ ┌─────────────────────────────────┐
612
+ │ 包含推薦 │
613
+ │ (如提出選項) │
614
+ └─────────────┬───────────────────┘
615
+
616
+
617
+ ┌─────────────────────────────────┐
618
+ │ 提供回應 │
619
+ └─────────────────────────────────┘
620
+ ```
621
+
622
+ ---
623
+
624
+ ## 語言無關應用
625
+
626
+ 本標準適用於任何程式語言、框架或領域:
627
+
628
+ - **Web 開發**: 未經證據不假設 Express/Django/Spring Boot
629
+ - **行動開發**: 未經證據不假設 React Native/Flutter
630
+ - **資料科學**: 未經證據不假設 TensorFlow/PyTorch
631
+ - **DevOps**: 未經證據不假設 Docker/Kubernetes
632
+
633
+ **通用規則**: 先讀取,再分析,永遠以證據報告。
634
+
635
+ ---
636
+
637
+ ## 與程式碼審查整合
638
+
639
+ 執行程式碼審查時,應用這些原則:
640
+
641
+ 1. **引用行號**: 所有審查評論必須引用特定行號
642
+ 2. **以證據分類嚴重性**:
643
+ - `[已確認 Bug]` - 程式碼明顯損壞
644
+ - `[潛在問題]` - 程式碼可能造成問題
645
+ - `[建議]` - 改善想法(非缺陷)
646
+ 3. **避免假設**: 如不確定設計意圖,詢問作者
647
+
648
+ **審查評論範本**:
649
+ ```
650
+ [檔案:行號] - [嚴重性]
651
+ [問題描述與程式碼摘錄]
652
+ [證據或推理]
653
+ [建議修正或澄清問題]
654
+ ```
655
+
656
+ ---
657
+
658
+ ## 相關標準
659
+
660
+ - [測試標準](testing-standards.md) - 確保驗證 AI 分析結果(或使用 `/testing-guide` 技能)
661
+ - [程式碼審查清單](code-review-checklist.md) - 審查 AI 生成內容
662
+ - [程式碼簽入標準](checkin-standards.md) - AI 協作簽入流程
663
+
664
+ ---
665
+
666
+ ## 版本歷史
667
+
668
+ | 版本 | 日期 | 變更 |
669
+ |------|------|------|
670
+ | 1.3.1 | 2025-12-24 | 新增: 相關標準章節 |
671
+ | 1.3.0 | 2025-12-22 | 增強: 禁止行為章節,新增詳細對比範例 |
672
+ | 1.2.0 | 2025-12-15 | 新增: AI 助手互動規範章節(對話語言、推薦原則) |
673
+ | 1.1.0 | 2025-12-10 | 增強來源標註,新增來源類型、版本敏感性與可靠度評級 |
674
+ | 1.0.0 | 2025-11-12 | 初版發布 |
675
+
676
+ ---
677
+
678
+ ## 授權
679
+
680
+ 本標準以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權發布。
681
+ 您可以自由調整用於您的專案,但需註明出處。
682
+
683
+ ---
684
+
685
+ **專案特定化**
686
+
687
+ 專案可透過以下方式擴充本標準:
688
+ - 領域特定驗證需求(如醫療領域的 HIPAA 合規檢查)
689
+ - 工具特定指引(如如何驗證 Terraform 設定)
690
+ - 團隊特定證據格式(如 JIRA ticket 引用)
691
+ - AI 助手對話的語言偏好