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 助手对话的语言偏好