universal-dev-standards 4.2.0 → 5.0.0-beta.10

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 (542) hide show
  1. package/README.md +3 -3
  2. package/bin/uds.js +165 -5
  3. package/bundled/core/acceptance-test-driven-development.md +19 -721
  4. package/bundled/core/accessibility-standards.md +862 -0
  5. package/bundled/core/ai-agreement-standards.md +95 -0
  6. package/bundled/core/ai-friendly-architecture.md +2 -0
  7. package/bundled/core/ai-instruction-standards.md +2 -0
  8. package/bundled/core/anti-hallucination.md +90 -637
  9. package/bundled/core/behavior-driven-development.md +20 -735
  10. package/bundled/core/changelog-standards.md +4 -0
  11. package/bundled/core/checkin-standards.md +21 -4
  12. package/bundled/core/code-review-checklist.md +3 -0
  13. package/bundled/core/commit-message-guide.md +14 -3
  14. package/bundled/core/deployment-standards.md +296 -0
  15. package/bundled/core/developer-memory.md +568 -0
  16. package/bundled/core/documentation-structure.md +114 -18
  17. package/bundled/core/documentation-writing-standards.md +272 -2
  18. package/bundled/core/error-code-standards.md +3 -0
  19. package/bundled/core/forward-derivation-standards.md +134 -8
  20. package/bundled/core/git-workflow.md +72 -686
  21. package/bundled/core/guides/anti-hallucination-guide.md +517 -0
  22. package/bundled/core/guides/git-workflow-guide.md +954 -0
  23. package/bundled/core/guides/performance-guide.md +508 -0
  24. package/bundled/core/guides/refactoring-guide.md +608 -0
  25. package/bundled/core/guides/security-guide.md +485 -0
  26. package/bundled/core/logging-standards.md +337 -2
  27. package/bundled/core/performance-standards.md +231 -0
  28. package/bundled/core/project-context-memory.md +180 -0
  29. package/bundled/core/project-structure.md +315 -2
  30. package/bundled/core/refactoring-standards.md +81 -761
  31. package/bundled/core/requirement-engineering.md +39 -0
  32. package/bundled/core/reverse-engineering-standards.md +6 -4
  33. package/bundled/core/security-standards.md +244 -0
  34. package/bundled/core/spec-driven-development.md +20 -319
  35. package/bundled/core/test-completeness-dimensions.md +213 -11
  36. package/bundled/core/test-driven-development.md +22 -978
  37. package/bundled/core/testing-standards.md +222 -2903
  38. package/bundled/core/versioning.md +16 -55
  39. package/bundled/core/virtual-organization-standards.md +85 -0
  40. package/bundled/locales/README.md +4 -4
  41. package/bundled/locales/zh-CN/CHANGELOG.md +18 -18
  42. package/bundled/locales/zh-CN/CLAUDE.md +3 -3
  43. package/bundled/locales/zh-CN/MAINTENANCE.md +7 -7
  44. package/bundled/locales/zh-CN/README.md +2 -2
  45. package/bundled/locales/zh-CN/STANDARDS-MAPPING.md +1 -1
  46. package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +3 -3
  47. package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +66 -7
  48. package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +22 -22
  49. package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +5 -5
  50. package/bundled/locales/zh-CN/adoption/checklists/minimal.md +4 -4
  51. package/bundled/locales/zh-CN/adoption/checklists/recommended.md +5 -5
  52. package/bundled/locales/zh-CN/ai/MAINTENANCE.md +13 -13
  53. package/bundled/locales/zh-CN/core/ai-instruction-standards.md +1 -1
  54. package/bundled/locales/zh-CN/core/anti-hallucination.md +39 -3
  55. package/bundled/locales/zh-CN/core/checkin-standards.md +18 -5
  56. package/bundled/locales/zh-CN/core/commit-message-guide.md +1 -1
  57. package/bundled/locales/zh-CN/core/developer-memory.md +576 -0
  58. package/bundled/locales/zh-CN/core/documentation-structure.md +43 -5
  59. package/bundled/locales/zh-CN/core/documentation-writing-standards.md +146 -5
  60. package/bundled/locales/zh-CN/core/git-workflow.md +179 -4
  61. package/bundled/locales/zh-CN/core/logging-standards.md +177 -4
  62. package/bundled/locales/zh-CN/core/project-structure.md +117 -5
  63. package/bundled/locales/zh-CN/core/refactoring-standards.md +3 -3
  64. package/bundled/locales/zh-CN/core/reverse-engineering-standards.md +6 -6
  65. package/bundled/locales/zh-CN/core/spec-driven-development.md +516 -14
  66. package/bundled/locales/zh-CN/core/test-completeness-dimensions.md +155 -24
  67. package/bundled/locales/zh-CN/core/test-driven-development.md +71 -20
  68. package/bundled/locales/zh-CN/core/testing-standards.md +4 -4
  69. package/bundled/locales/zh-CN/core/versioning.md +1 -1
  70. package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +90 -51
  71. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +184 -0
  72. package/bundled/locales/zh-CN/docs/CLI-FLOW.md +239 -0
  73. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +320 -0
  74. package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +43 -43
  75. package/bundled/locales/zh-CN/docs/STANDARDS-REFERENCE.md +440 -0
  76. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +1 -1
  77. package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +1 -1
  78. package/bundled/locales/zh-CN/integrations/codex/README.md +3 -3
  79. package/bundled/locales/zh-CN/integrations/gemini-cli/README.md +3 -3
  80. package/bundled/locales/zh-CN/integrations/github-copilot/README.md +5 -5
  81. package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +9 -9
  82. package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +18 -6
  83. package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +2 -2
  84. package/bundled/locales/zh-CN/integrations/opencode/README.md +3 -3
  85. package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +22 -10
  86. package/bundled/locales/zh-CN/integrations/openspec/README.md +1 -1
  87. package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +3 -3
  88. package/bundled/locales/zh-CN/integrations/spec-kit/README.md +1 -1
  89. package/bundled/locales/zh-CN/options/commit-message/bilingual.md +1 -1
  90. package/bundled/locales/zh-CN/options/commit-message/english.md +1 -1
  91. package/bundled/locales/zh-CN/options/commit-message/traditional-chinese.md +1 -1
  92. package/bundled/locales/zh-CN/options/git-workflow/gitflow.md +1 -1
  93. package/bundled/locales/zh-CN/options/git-workflow/github-flow.md +1 -1
  94. package/bundled/locales/zh-CN/options/git-workflow/merge-commit.md +1 -1
  95. package/bundled/locales/zh-CN/options/git-workflow/rebase-ff.md +1 -1
  96. package/bundled/locales/zh-CN/options/git-workflow/squash-merge.md +1 -1
  97. package/bundled/locales/zh-CN/options/git-workflow/trunk-based.md +1 -1
  98. package/bundled/locales/zh-CN/options/project-structure/dotnet.md +1 -1
  99. package/bundled/locales/zh-CN/options/project-structure/go.md +1 -1
  100. package/bundled/locales/zh-CN/options/project-structure/java.md +1 -1
  101. package/bundled/locales/zh-CN/options/project-structure/nodejs.md +1 -1
  102. package/bundled/locales/zh-CN/options/project-structure/python.md +1 -1
  103. package/bundled/locales/zh-CN/options/testing/e2e-testing.md +1 -1
  104. package/bundled/locales/zh-CN/options/testing/integration-testing.md +1 -1
  105. package/bundled/locales/zh-CN/options/testing/system-testing.md +1 -1
  106. package/bundled/locales/zh-CN/options/testing/unit-testing.md +1 -1
  107. package/bundled/locales/zh-CN/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +2 -2
  108. package/bundled/locales/zh-CN/skills/README.md +131 -81
  109. package/bundled/locales/zh-CN/skills/agents/README.md +281 -0
  110. package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +10 -10
  111. package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +8 -8
  112. package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +8 -8
  113. package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +221 -0
  114. package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +214 -0
  115. package/bundled/locales/zh-CN/skills/atdd-assistant/SKILL.md +71 -0
  116. package/bundled/locales/zh-CN/skills/atdd-assistant/acceptance-criteria-guide.md +428 -0
  117. package/bundled/locales/zh-CN/skills/atdd-assistant/atdd-workflow.md +484 -0
  118. package/bundled/locales/zh-CN/skills/atdd-assistant/guide.md +368 -0
  119. package/bundled/locales/zh-CN/skills/bdd-assistant/SKILL.md +68 -0
  120. package/bundled/locales/zh-CN/skills/bdd-assistant/bdd-workflow.md +406 -0
  121. package/bundled/locales/zh-CN/skills/bdd-assistant/gherkin-guide.md +454 -0
  122. package/bundled/locales/zh-CN/skills/bdd-assistant/guide.md +324 -0
  123. package/bundled/locales/zh-CN/skills/changelog-guide/SKILL.md +64 -0
  124. package/bundled/locales/zh-CN/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +6 -7
  125. package/bundled/locales/zh-CN/skills/checkin-assistant/SKILL.md +56 -0
  126. package/bundled/locales/zh-CN/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -7
  127. package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +56 -0
  128. package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +4 -4
  129. package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +5 -6
  130. package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +4 -4
  131. package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/bdd.md +2 -2
  132. package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/methodology.md +3 -3
  133. package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/refactor.md +3 -3
  134. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +61 -0
  135. package/bundled/locales/zh-CN/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +4 -4
  136. package/bundled/locales/zh-CN/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +5 -6
  137. package/bundled/locales/zh-CN/skills/{claude-code/commit-standards → commit-standards}/language-options.md +3 -3
  138. package/bundled/locales/zh-CN/skills/docs-generator/SKILL.md +59 -0
  139. package/bundled/locales/zh-CN/skills/docs-generator/guide.md +262 -0
  140. package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -8
  141. package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +4 -4
  142. package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +3 -3
  143. package/bundled/locales/zh-CN/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +6 -6
  144. package/bundled/locales/zh-CN/skills/forward-derivation/SKILL.md +62 -0
  145. package/bundled/locales/zh-CN/skills/forward-derivation/guide.md +130 -0
  146. package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +6 -6
  147. package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +3 -3
  148. package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +4 -4
  149. package/bundled/locales/zh-CN/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +6 -6
  150. package/bundled/locales/zh-CN/skills/methodology-system/SKILL.md +78 -0
  151. package/bundled/locales/zh-CN/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +2 -2
  152. package/bundled/locales/zh-CN/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +2 -2
  153. package/bundled/locales/zh-CN/skills/{claude-code/methodology-system → methodology-system}/runtime.md +3 -3
  154. package/bundled/locales/zh-CN/skills/project-discovery/SKILL.md +66 -0
  155. package/bundled/locales/zh-CN/skills/project-discovery/guide.md +371 -0
  156. package/bundled/locales/zh-CN/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +4 -4
  157. package/bundled/locales/zh-CN/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +1 -1
  158. package/bundled/locales/zh-CN/skills/refactoring-assistant/SKILL.md +67 -0
  159. package/bundled/locales/zh-CN/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -8
  160. package/bundled/locales/zh-CN/skills/release-standards/SKILL.md +64 -0
  161. package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/changelog-format.md +3 -3
  162. package/bundled/locales/zh-CN/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +5 -6
  163. package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/release-workflow.md +7 -7
  164. package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +3 -3
  165. package/bundled/locales/zh-CN/skills/requirement-assistant/SKILL.md +67 -0
  166. package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +4 -5
  167. package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +3 -3
  168. package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +3 -3
  169. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +67 -0
  170. package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +2 -2
  171. package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +17 -18
  172. package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +2 -2
  173. package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +3 -3
  174. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +75 -0
  175. package/bundled/locales/zh-CN/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +10 -11
  176. package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +66 -0
  177. package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +12 -16
  178. package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
  179. package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +3 -3
  180. package/bundled/locales/zh-CN/skills/test-coverage-assistant/SKILL.md +65 -0
  181. package/bundled/locales/zh-CN/skills/test-coverage-assistant/guide.md +284 -0
  182. package/bundled/locales/zh-CN/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +8 -8
  183. package/bundled/locales/zh-CN/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +4 -4
  184. package/bundled/locales/zh-CN/skills/{cline → tools/cline}/README.md +1 -1
  185. package/bundled/locales/zh-CN/skills/{copilot → tools/copilot}/README.md +1 -1
  186. package/bundled/locales/zh-CN/skills/{copilot → tools/copilot}/copilot-instructions.md +1 -1
  187. package/bundled/locales/zh-CN/skills/{cursor → tools/cursor}/README.md +1 -1
  188. package/bundled/locales/zh-CN/skills/{windsurf → tools/windsurf}/README.md +1 -1
  189. package/bundled/locales/zh-TW/CHANGELOG.md +16 -16
  190. package/bundled/locales/zh-TW/CLAUDE.md +3 -3
  191. package/bundled/locales/zh-TW/MAINTENANCE.md +7 -7
  192. package/bundled/locales/zh-TW/README.md +13 -7
  193. package/bundled/locales/zh-TW/STANDARDS-MAPPING.md +1 -1
  194. package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +4 -4
  195. package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +66 -7
  196. package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +22 -22
  197. package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +5 -5
  198. package/bundled/locales/zh-TW/adoption/checklists/minimal.md +4 -4
  199. package/bundled/locales/zh-TW/adoption/checklists/recommended.md +5 -5
  200. package/bundled/locales/zh-TW/ai/MAINTENANCE.md +13 -13
  201. package/bundled/locales/zh-TW/ai/standards/anti-hallucination.ai.yaml +3 -2
  202. package/bundled/locales/zh-TW/ai/standards/git-workflow.ai.yaml +4 -3
  203. package/bundled/locales/zh-TW/ai/standards/spec-driven-development.ai.yaml +3 -3
  204. package/bundled/locales/zh-TW/ai/standards/testing.ai.yaml +1 -0
  205. package/bundled/locales/zh-TW/core/ai-instruction-standards.md +1 -1
  206. package/bundled/locales/zh-TW/core/anti-hallucination.md +38 -701
  207. package/bundled/locales/zh-TW/core/changelog-standards.md +1 -1
  208. package/bundled/locales/zh-TW/core/checkin-standards.md +18 -5
  209. package/bundled/locales/zh-TW/core/code-review-checklist.md +1 -1
  210. package/bundled/locales/zh-TW/core/commit-message-guide.md +1 -1
  211. package/bundled/locales/zh-TW/core/developer-memory.md +576 -0
  212. package/bundled/locales/zh-TW/core/documentation-structure.md +115 -22
  213. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +126 -5
  214. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +2 -2
  215. package/bundled/locales/zh-TW/core/git-workflow.md +38 -812
  216. package/bundled/locales/zh-TW/core/guides/anti-hallucination-guide.md +779 -0
  217. package/bundled/locales/zh-TW/core/guides/git-workflow-guide.md +1016 -0
  218. package/bundled/locales/zh-TW/core/guides/refactoring-guide.md +864 -0
  219. package/bundled/locales/zh-TW/core/guides/testing-guide.md +2280 -0
  220. package/bundled/locales/zh-TW/core/logging-standards.md +159 -4
  221. package/bundled/locales/zh-TW/core/project-structure.md +102 -9
  222. package/bundled/locales/zh-TW/core/refactoring-standards.md +37 -823
  223. package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +6 -6
  224. package/bundled/locales/zh-TW/core/spec-driven-development.md +17 -268
  225. package/bundled/locales/zh-TW/core/test-completeness-dimensions.md +128 -14
  226. package/bundled/locales/zh-TW/core/test-driven-development.md +20 -983
  227. package/bundled/locales/zh-TW/core/testing-standards.md +120 -2105
  228. package/bundled/locales/zh-TW/core/versioning.md +13 -55
  229. package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +90 -51
  230. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +184 -0
  231. package/bundled/locales/zh-TW/docs/CLI-FLOW.md +239 -0
  232. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +320 -0
  233. package/bundled/locales/zh-TW/docs/MIGRATION-V5.md +71 -0
  234. package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +42 -42
  235. package/bundled/locales/zh-TW/docs/STANDARDS-REFERENCE.md +440 -0
  236. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +1 -1
  237. package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +1 -1
  238. package/bundled/locales/zh-TW/integrations/claude-code/README.md +44 -0
  239. package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +3 -3
  240. package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +18 -6
  241. package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +22 -10
  242. package/bundled/locales/zh-TW/methodologies/guides/sdd-guide.md +338 -0
  243. package/bundled/locales/zh-TW/methodologies/guides/tdd-guide.md +1055 -0
  244. package/bundled/locales/zh-TW/options/commit-message/bilingual.md +1 -1
  245. package/bundled/locales/zh-TW/options/commit-message/english.md +1 -1
  246. package/bundled/locales/zh-TW/options/commit-message/traditional-chinese.md +1 -1
  247. package/bundled/locales/zh-TW/options/git-workflow/gitflow.md +1 -1
  248. package/bundled/locales/zh-TW/options/git-workflow/github-flow.md +1 -1
  249. package/bundled/locales/zh-TW/options/git-workflow/merge-commit.md +1 -1
  250. package/bundled/locales/zh-TW/options/git-workflow/rebase-ff.md +1 -1
  251. package/bundled/locales/zh-TW/options/git-workflow/squash-merge.md +1 -1
  252. package/bundled/locales/zh-TW/options/git-workflow/trunk-based.md +1 -1
  253. package/bundled/locales/zh-TW/options/project-structure/dotnet.md +1 -1
  254. package/bundled/locales/zh-TW/options/project-structure/go.md +1 -1
  255. package/bundled/locales/zh-TW/options/project-structure/java.md +1 -1
  256. package/bundled/locales/zh-TW/options/project-structure/nodejs.md +1 -1
  257. package/bundled/locales/zh-TW/options/project-structure/python.md +1 -1
  258. package/bundled/locales/zh-TW/options/testing/e2e-testing.md +1 -1
  259. package/bundled/locales/zh-TW/options/testing/integration-testing.md +1 -1
  260. package/bundled/locales/zh-TW/options/testing/system-testing.md +1 -1
  261. package/bundled/locales/zh-TW/options/testing/unit-testing.md +1 -1
  262. package/bundled/locales/zh-TW/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +2 -2
  263. package/bundled/locales/zh-TW/skills/README.md +131 -79
  264. package/bundled/locales/zh-TW/skills/agents/README.md +281 -0
  265. package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +7 -7
  266. package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +8 -8
  267. package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +8 -8
  268. package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +221 -0
  269. package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +214 -0
  270. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +71 -0
  271. package/bundled/locales/zh-TW/skills/atdd-assistant/acceptance-criteria-guide.md +428 -0
  272. package/bundled/locales/zh-TW/skills/atdd-assistant/atdd-workflow.md +484 -0
  273. package/bundled/locales/zh-TW/skills/atdd-assistant/guide.md +368 -0
  274. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +68 -0
  275. package/bundled/locales/zh-TW/skills/bdd-assistant/bdd-workflow.md +406 -0
  276. package/bundled/locales/zh-TW/skills/bdd-assistant/gherkin-guide.md +454 -0
  277. package/bundled/locales/zh-TW/skills/bdd-assistant/guide.md +324 -0
  278. package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +64 -0
  279. package/bundled/locales/zh-TW/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +6 -7
  280. package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +56 -0
  281. package/bundled/locales/zh-TW/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -7
  282. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +56 -0
  283. package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +4 -4
  284. package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +2 -3
  285. package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +4 -4
  286. package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/bdd.md +2 -2
  287. package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/methodology.md +3 -3
  288. package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/refactor.md +3 -3
  289. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +61 -0
  290. package/bundled/locales/zh-TW/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +4 -4
  291. package/bundled/locales/zh-TW/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +5 -6
  292. package/bundled/locales/zh-TW/skills/{claude-code/commit-standards → commit-standards}/language-options.md +3 -3
  293. package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +59 -0
  294. package/bundled/locales/zh-TW/skills/docs-generator/guide.md +262 -0
  295. package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -8
  296. package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +4 -4
  297. package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +3 -3
  298. package/bundled/locales/zh-TW/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +6 -6
  299. package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +62 -0
  300. package/bundled/locales/zh-TW/skills/{claude-code/forward-derivation/SKILL.md → forward-derivation/guide.md} +24 -19
  301. package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +3 -3
  302. package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +3 -3
  303. package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +4 -4
  304. package/bundled/locales/zh-TW/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +6 -6
  305. package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +78 -0
  306. package/bundled/locales/zh-TW/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +2 -2
  307. package/bundled/locales/zh-TW/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +2 -2
  308. package/bundled/locales/zh-TW/skills/{claude-code/methodology-system → methodology-system}/runtime.md +3 -3
  309. package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +66 -0
  310. package/bundled/locales/zh-TW/skills/project-discovery/guide.md +371 -0
  311. package/bundled/locales/zh-TW/skills/project-discovery/workflow.md +574 -0
  312. package/bundled/locales/zh-TW/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +4 -4
  313. package/bundled/locales/zh-TW/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +1 -1
  314. package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +67 -0
  315. package/bundled/locales/zh-TW/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -8
  316. package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +64 -0
  317. package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/changelog-format.md +3 -3
  318. package/bundled/locales/zh-TW/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +2 -3
  319. package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/release-workflow.md +60 -28
  320. package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +3 -3
  321. package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +67 -0
  322. package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +2 -3
  323. package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +3 -3
  324. package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +3 -3
  325. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +67 -0
  326. package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +2 -2
  327. package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +17 -18
  328. package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +2 -2
  329. package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +3 -3
  330. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +75 -0
  331. package/bundled/locales/zh-TW/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +9 -10
  332. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +66 -0
  333. package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +9 -10
  334. package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
  335. package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +3 -3
  336. package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +65 -0
  337. package/bundled/locales/zh-TW/skills/{claude-code/test-coverage-assistant/SKILL.md → test-coverage-assistant/guide.md} +27 -24
  338. package/bundled/locales/zh-TW/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +6 -6
  339. package/bundled/locales/zh-TW/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +4 -4
  340. package/bundled/locales/zh-TW/skills/{cline → tools/cline}/README.md +1 -1
  341. package/bundled/locales/zh-TW/skills/{copilot → tools/copilot}/README.md +1 -1
  342. package/bundled/locales/zh-TW/skills/{copilot → tools/copilot}/copilot-instructions.md +1 -1
  343. package/bundled/locales/zh-TW/skills/{cursor → tools/cursor}/README.md +1 -1
  344. package/bundled/locales/zh-TW/skills/{windsurf → tools/windsurf}/README.md +1 -1
  345. package/bundled/skills/INTEGRATION-GUIDE.md +210 -0
  346. package/bundled/skills/README.md +95 -0
  347. package/bundled/skills/_shared/README.md +60 -0
  348. package/bundled/skills/{claude-code/agents → agents}/README.md +2 -2
  349. package/bundled/skills/{claude-code/agents → agents}/code-architect.md +1 -1
  350. package/bundled/skills/{claude-code/agents → agents}/doc-writer.md +1 -1
  351. package/bundled/skills/{claude-code/agents → agents}/reviewer.md +1 -1
  352. package/bundled/skills/{claude-code/agents → agents}/spec-analyst.md +1 -1
  353. package/bundled/skills/{claude-code/agents → agents}/test-specialist.md +1 -1
  354. package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +28 -5
  355. package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +24 -5
  356. package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +31 -6
  357. package/bundled/skills/ai-friendly-architecture/SKILL.md +216 -0
  358. package/bundled/skills/ai-instruction-standards/SKILL.md +209 -0
  359. package/bundled/skills/atdd-assistant/SKILL.md +74 -0
  360. package/bundled/skills/{claude-code/atdd-assistant → atdd-assistant}/acceptance-criteria-guide.md +1 -1
  361. package/bundled/skills/{claude-code/atdd-assistant → atdd-assistant}/atdd-workflow.md +1 -1
  362. package/bundled/skills/{claude-code/atdd-assistant/SKILL.md → atdd-assistant/guide.md} +11 -11
  363. package/bundled/skills/bdd-assistant/SKILL.md +70 -0
  364. package/bundled/skills/{claude-code/bdd-assistant → bdd-assistant}/bdd-workflow.md +1 -1
  365. package/bundled/skills/{claude-code/bdd-assistant → bdd-assistant}/gherkin-guide.md +1 -1
  366. package/bundled/skills/{claude-code/bdd-assistant/SKILL.md → bdd-assistant/guide.md} +11 -11
  367. package/bundled/skills/changelog-guide/SKILL.md +66 -0
  368. package/bundled/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +8 -6
  369. package/bundled/skills/checkin-assistant/SKILL.md +52 -0
  370. package/bundled/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -6
  371. package/bundled/skills/code-review-assistant/SKILL.md +53 -0
  372. package/bundled/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +3 -3
  373. package/bundled/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +7 -5
  374. package/bundled/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +3 -3
  375. package/bundled/skills/commands/COMMAND-FAMILY-OVERVIEW.md +290 -0
  376. package/bundled/skills/{claude-code/commands → commands}/README.md +13 -3
  377. package/bundled/skills/{claude-code/commands → commands}/atdd.md +3 -3
  378. package/bundled/skills/{claude-code/commands → commands}/bdd.md +2 -2
  379. package/bundled/skills/commands/changelog.md +58 -0
  380. package/bundled/skills/{claude-code/commands → commands}/check.md +1 -1
  381. package/bundled/skills/commands/checkin.md +53 -0
  382. package/bundled/skills/{claude-code/commands → commands}/commit.md +3 -3
  383. package/bundled/skills/{claude-code/commands → commands}/config.md +1 -1
  384. package/bundled/skills/{claude-code/commands → commands}/coverage.md +5 -4
  385. package/bundled/skills/commands/derive-all.md +53 -0
  386. package/bundled/skills/commands/derive-atdd.md +49 -0
  387. package/bundled/skills/commands/derive-bdd.md +47 -0
  388. package/bundled/skills/commands/derive-tdd.md +48 -0
  389. package/bundled/skills/commands/derive.md +72 -0
  390. package/bundled/skills/commands/discover.md +80 -0
  391. package/bundled/skills/commands/docgen.md +61 -0
  392. package/bundled/skills/commands/docs.md +59 -0
  393. package/bundled/skills/commands/guide.md +44 -0
  394. package/bundled/skills/{claude-code/commands → commands}/init.md +2 -2
  395. package/bundled/skills/{claude-code/commands → commands}/methodology.md +32 -16
  396. package/bundled/skills/{claude-code/commands → commands}/refactor.md +2 -2
  397. package/bundled/skills/commands/release.md +56 -0
  398. package/bundled/skills/{claude-code/commands → commands}/requirement.md +3 -3
  399. package/bundled/skills/commands/reverse-bdd.md +47 -0
  400. package/bundled/skills/commands/reverse-sdd.md +51 -0
  401. package/bundled/skills/commands/reverse-tdd.md +51 -0
  402. package/bundled/skills/commands/reverse.md +63 -0
  403. package/bundled/skills/{claude-code/commands → commands}/review.md +3 -3
  404. package/bundled/skills/commands/sdd.md +135 -0
  405. package/bundled/skills/{claude-code/commands → commands}/tdd.md +3 -3
  406. package/bundled/skills/{claude-code/commands → commands}/update.md +2 -2
  407. package/bundled/skills/commit-standards/SKILL.md +60 -0
  408. package/bundled/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +3 -3
  409. package/bundled/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +17 -5
  410. package/bundled/skills/{claude-code/commit-standards → commit-standards}/language-options.md +2 -2
  411. package/bundled/skills/docs-generator/SKILL.md +69 -0
  412. package/bundled/skills/docs-generator/guide.md +258 -0
  413. package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -7
  414. package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +3 -3
  415. package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +2 -2
  416. package/bundled/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +7 -5
  417. package/bundled/skills/forward-derivation/SKILL.md +61 -0
  418. package/bundled/skills/{claude-code/forward-derivation/SKILL.md → forward-derivation/guide.md} +44 -29
  419. package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +7 -5
  420. package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +2 -2
  421. package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +3 -3
  422. package/bundled/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +7 -5
  423. package/bundled/skills/methodology-system/SKILL.md +75 -0
  424. package/bundled/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +1 -1
  425. package/bundled/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +51 -16
  426. package/bundled/skills/methodology-system/integrated-flow.md +454 -0
  427. package/bundled/skills/{claude-code/methodology-system → methodology-system}/runtime.md +2 -2
  428. package/bundled/skills/project-discovery/SKILL.md +63 -0
  429. package/bundled/skills/project-discovery/guide.md +367 -0
  430. package/bundled/skills/project-discovery/workflow.md +566 -0
  431. package/bundled/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +14 -4
  432. package/bundled/skills/refactoring-assistant/SKILL.md +78 -0
  433. package/bundled/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -7
  434. package/bundled/skills/release-standards/SKILL.md +61 -0
  435. package/bundled/skills/{claude-code/release-standards → release-standards}/changelog-format.md +2 -2
  436. package/bundled/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +7 -5
  437. package/bundled/skills/{claude-code/release-standards → release-standards}/release-workflow.md +59 -24
  438. package/bundled/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +2 -2
  439. package/bundled/skills/requirement-assistant/SKILL.md +66 -0
  440. package/bundled/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +14 -6
  441. package/bundled/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +2 -2
  442. package/bundled/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +2 -2
  443. package/bundled/skills/reverse-engineer/SKILL.md +64 -0
  444. package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +1 -1
  445. package/bundled/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +21 -18
  446. package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +1 -1
  447. package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +2 -2
  448. package/bundled/skills/spec-driven-dev/SKILL.md +80 -0
  449. package/bundled/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +50 -8
  450. package/bundled/skills/tdd-assistant/SKILL.md +65 -0
  451. package/bundled/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +10 -10
  452. package/bundled/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
  453. package/bundled/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +2 -2
  454. package/bundled/skills/test-coverage-assistant/SKILL.md +63 -0
  455. package/bundled/skills/{claude-code/test-coverage-assistant/SKILL.md → test-coverage-assistant/guide.md} +39 -24
  456. package/bundled/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +12 -7
  457. package/bundled/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +3 -3
  458. package/bundled/skills/testing-guide/testing-theory.md +2291 -0
  459. package/bundled/skills/tools/cline/.clinerules +79 -0
  460. package/bundled/skills/tools/cline/README.md +50 -0
  461. package/bundled/skills/tools/copilot/README.md +99 -0
  462. package/bundled/skills/tools/copilot/copilot-instructions.md +71 -0
  463. package/bundled/skills/tools/cursor/.cursorrules +101 -0
  464. package/bundled/skills/tools/cursor/README.md +50 -0
  465. package/bundled/skills/tools/windsurf/.windsurfrules +76 -0
  466. package/bundled/skills/tools/windsurf/README.md +51 -0
  467. package/bundled/skills/{claude-code/workflows → workflows}/README.md +1 -1
  468. package/bundled/skills/workflows/release.workflow.yaml +893 -0
  469. package/package.json +4 -1
  470. package/src/commands/check.js +195 -130
  471. package/src/commands/config.js +1262 -0
  472. package/src/commands/configure.js +3 -950
  473. package/src/commands/fix.js +53 -0
  474. package/src/commands/hitl.js +19 -0
  475. package/src/commands/init.js +320 -1030
  476. package/src/commands/list.js +1 -1
  477. package/src/commands/simulate.js +61 -0
  478. package/src/commands/spec.js +288 -0
  479. package/src/commands/start.js +373 -0
  480. package/src/commands/sweep.js +142 -0
  481. package/src/commands/update.js +136 -19
  482. package/src/commands/workflow.js +265 -1
  483. package/src/config/ai-agent-paths.js +89 -29
  484. package/src/core/constants.js +7 -1
  485. package/src/core/manifest.js +1 -0
  486. package/src/flows/init-flow.js +243 -0
  487. package/src/hitl/checkpoint.js +80 -0
  488. package/src/hitl/classifier.js +54 -0
  489. package/src/hitl/manager.js +88 -0
  490. package/src/i18n/messages.js +907 -99
  491. package/src/index.js +1 -0
  492. package/src/installers/integration-installer.js +237 -0
  493. package/src/installers/manifest-installer.js +131 -0
  494. package/src/installers/skills-installer.js +286 -0
  495. package/src/installers/standards-installer.js +193 -0
  496. package/src/missions/MissionManager.js +501 -0
  497. package/src/prompts/init.js +228 -130
  498. package/src/prompts/integrations.js +13 -1
  499. package/src/schemas/standard.schema.json +117 -0
  500. package/src/utils/agents-installer.js +2 -2
  501. package/src/utils/config-loader.js +47 -0
  502. package/src/utils/config-manager.js +108 -0
  503. package/src/utils/config-merger.js +47 -0
  504. package/src/utils/github.js +22 -18
  505. package/src/utils/inquirer-patch.js +98 -0
  506. package/src/utils/integration-generator.js +392 -58
  507. package/src/utils/reference-sync.js +69 -19
  508. package/src/utils/skills-installer.js +6 -3
  509. package/src/utils/standard-fixer.js +141 -0
  510. package/src/utils/standard-validator.js +329 -0
  511. package/src/utils/workflow-executor.js +886 -0
  512. package/src/utils/workflow-state.js +404 -0
  513. package/src/utils/workflows-installer.js +2 -2
  514. package/src/vibe/auto-sweep.js +349 -0
  515. package/src/vibe/micro-spec.js +428 -0
  516. package/standards-registry.json +278 -102
  517. package/bundled/locales/zh-CN/skills/claude-code/README.md +0 -174
  518. package/bundled/locales/zh-CN/skills/claude-code/test-coverage-assistant/SKILL.md +0 -282
  519. package/bundled/locales/zh-TW/skills/claude-code/README.md +0 -174
  520. package/bundled/skills/claude-code/README.md +0 -215
  521. package/bundled/skills/claude-code/commands/changelog.md +0 -57
  522. package/bundled/skills/claude-code/commands/derive-all.md +0 -214
  523. package/bundled/skills/claude-code/commands/derive-atdd.md +0 -177
  524. package/bundled/skills/claude-code/commands/derive-bdd.md +0 -158
  525. package/bundled/skills/claude-code/commands/derive-tdd.md +0 -259
  526. package/bundled/skills/claude-code/commands/docs.md +0 -75
  527. package/bundled/skills/claude-code/commands/release.md +0 -50
  528. package/bundled/skills/claude-code/commands/reverse-bdd.md +0 -264
  529. package/bundled/skills/claude-code/commands/reverse-spec.md +0 -185
  530. package/bundled/skills/claude-code/commands/reverse-tdd.md +0 -351
  531. package/bundled/skills/claude-code/commands/spec.md +0 -69
  532. package/bundled/skills/claude-code/methodology-system/integrated-flow.md +0 -322
  533. /package/bundled/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +0 -0
  534. /package/bundled/skills/{claude-code/ai → ai}/standards/checkin.ai.yaml +0 -0
  535. /package/bundled/skills/{claude-code/ai → ai}/standards/commit.ai.yaml +0 -0
  536. /package/bundled/skills/{claude-code/ai → ai}/standards/refactoring.ai.yaml +0 -0
  537. /package/bundled/skills/{claude-code/ai → ai}/standards/testing.ai.yaml +0 -0
  538. /package/bundled/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +0 -0
  539. /package/bundled/skills/{claude-code/workflows → workflows}/code-review.workflow.yaml +0 -0
  540. /package/bundled/skills/{claude-code/workflows → workflows}/feature-dev.workflow.yaml +0 -0
  541. /package/bundled/skills/{claude-code/workflows → workflows}/integrated-flow.workflow.yaml +0 -0
  542. /package/bundled/skills/{claude-code/workflows → workflows}/large-codebase-analysis.workflow.yaml +0 -0
@@ -0,0 +1,779 @@
1
+ ---
2
+ source: ../../core/anti-hallucination.md
3
+ source_version: 1.4.0
4
+ translation_version: 1.4.0
5
+ last_synced: 2026-01-19
6
+ status: current
7
+ ---
8
+
9
+ # AI 協作防幻覺標準
10
+
11
+ > **語言**: [English](../../../../core/anti-hallucination.md) | 繁體中文
12
+
13
+ **版本**: 1.4.0
14
+ **最後更新**: 2026-01-19
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
+ 本標準定義兩類互補的標籤類別,用於相關標準:
233
+
234
+ **類別 1:確定性標籤**(用於分析現有內容)
235
+
236
+ 用於分析程式碼、審查文件或討論系統時。參見[反向工程標準](../reverse-engineering-standards.md)。
237
+
238
+ | 標籤 | 用途 | 範例情境 |
239
+ |-----|------|---------|
240
+ | `[已確認]` | 直接來自程式碼/文件的證據 | 程式碼分析、測試提取 |
241
+ | `[推測]` | 基於模式的邏輯推論 | 行為分析、架構審查 |
242
+ | `[假設]` | 需驗證的合理猜測 | 缺口識別、推測 |
243
+ | `[未知]` | 無法從現有資訊判斷 | 缺少文件 |
244
+ | `[需確認]` | 需要人類輸入 | 模糊的需求 |
245
+
246
+ **類別 2:推導標籤**(用於生成新內容)
247
+
248
+ 用於從已核准來源生成測試、規格或文件時。參見[正向推演標準](../forward-derivation-standards.md)。
249
+
250
+ | 標籤 | 用途 | 範例情境 |
251
+ |-----|------|---------|
252
+ | `[來源]` | 直接來自規格/需求的內容 | SPEC 標題、AC 文字原文 |
253
+ | `[推導]` | 從來源內容轉換而來 | 從條列 AC 轉換的 GWT |
254
+ | `[生成]` | AI 生成的結構 | 測試骨架、TODO 註解 |
255
+ | `[待辦]` | 需要人類實作 | Step definitions、斷言 |
256
+
257
+ **何時使用哪種**:
258
+
259
+ | 工作流程 | 主要標籤 | 次要標籤 |
260
+ |----------|---------|---------|
261
+ | 程式碼分析 | 確定性標籤 | - |
262
+ | 反向工程 | 確定性標籤 | - |
263
+ | 正向推演 | 推導標籤 | 確定性標籤(用於缺口)|
264
+ | 規格生成 | 推導標籤 | 確定性標籤(用於未知)|
265
+
266
+ ---
267
+
268
+ ### 4. 禁止行為
269
+
270
+ **AI 助手不得**:
271
+
272
+ 1. **捏造 API 或函式簽名**
273
+ - ❌ 不要編造方法名稱、參數或回傳類型
274
+ - ✅ 要讀取實際原始碼或詢問使用者
275
+
276
+ 2. **假設需求**
277
+ - ❌ 不要猜測使用者需求或業務規則
278
+ - ✅ 當需求模糊時要提出澄清問題
279
+
280
+ 3. **推測未讀取的程式碼**
281
+ - ❌ 不要描述未審查檔案的功能
282
+ - ✅ 要明確表示「需要讀取 [檔案] 以確認」
283
+
284
+ 4. **編造設定**
285
+ - ❌ 不要假設環境變數、設定鍵或資料庫結構
286
+ - ✅ 要審查實際設定檔
287
+
288
+ 5. **憑空產生錯誤或 Bug**
289
+ - ❌ 不要在無證據的情況下聲稱程式碼有問題
290
+ - ✅ 要分析實際程式碼並引用特定行號
291
+
292
+ 6. **提出選項但不推薦**
293
+ - ❌ 不要列出選項後要求使用者選擇而不提供指引
294
+ - ✅ 要永遠包含推薦選項並附理由
295
+
296
+ 7. **未分析副作用即實作**
297
+ - ❌ 不要在未識別潛在副作用的情況下開始寫程式碼
298
+ - ✅ 要在實作前列出至少 3 個潛在副作用
299
+ - ✅ 要考慮:狀態變更、相依性、連鎖效應
300
+
301
+ #### 詳細範例
302
+
303
+ ##### 1. 捏造 API 或函式名稱
304
+
305
+ ❌ **錯誤**:
306
+ ```
307
+ 助理: 「你可以呼叫 UserService.GetUserById(int id) 來取得使用者」
308
+ ```
309
+ **問題**: 方法不存在或簽名不同。
310
+
311
+ ✅ **正確**:
312
+ ```
313
+ 助理: 「讓我讀取 UserService 檔案以找到正確的方法簽名。」
314
+
315
+ [讀取 src/services/UserService.cs 後]
316
+
317
+ [來源: 程式碼] UserService.cs:45 - 找到方法: FindUser(Guid userId)
318
+ 實際方法使用 Guid 而非 int 作為使用者 ID 參數。
319
+ ```
320
+
321
+ ---
322
+
323
+ ##### 2. 假設使用者需求
324
+
325
+ ❌ **錯誤**:
326
+ ```
327
+ 助理: 「系統需要支援 OAuth 和 SAML 以提供企業 SSO。」
328
+ ```
329
+ **問題**: 使用者只詢問認證,未指定協議。
330
+
331
+ ✅ **正確**:
332
+ ```
333
+ 助理: 「[需確認] 您提到需要驗證功能。
334
+ 能否澄清:
335
+ 1. 這是給內部使用者、外部客戶,還是兩者都有?
336
+ 2. 您需要企業 SSO(OAuth/SAML)還是簡單的使用者名稱/密碼?
337
+ 3. 有任何需要整合的現有身分提供者嗎?
338
+
339
+ 這將幫助我推薦最適合的方法。」
340
+ ```
341
+
342
+ ---
343
+
344
+ ##### 3. 描述未讀取的程式碼功能
345
+
346
+ ❌ **錯誤**:
347
+ ```
348
+ 助理: 「PaymentService 處理信用卡處理並與 Stripe 整合。」
349
+ ```
350
+ **問題**: 檔案未讀取,功能僅從名稱假設。
351
+
352
+ ✅ **正確**:
353
+ ```
354
+ 助理: 「我在您的專案結構中看到名為 PaymentService.cs 的檔案。
355
+
356
+ [未知] 我尚未讀取此檔案,因此無法確認其功能。
357
+
358
+ 您想讓我讀取 src/services/PaymentService.cs 以了解:
359
+ - 它使用哪個支付提供者?
360
+ - 支援哪些支付方式?
361
+ - 交易如何處理?」
362
+ ```
363
+
364
+ ---
365
+
366
+ ##### 4. 編造設定細節
367
+
368
+ ❌ **錯誤**:
369
+ ```
370
+ 助理: 「設定 DATABASE_URL 環境變數以連線到 PostgreSQL。
371
+ 您的連線字串應在 appsettings.json 的 'ConnectionStrings:DefaultConnection' 下。」
372
+ ```
373
+ **問題**: 設定結構和變數名稱未經驗證即假設。
374
+
375
+ ✅ **正確**:
376
+ ```
377
+ 助理: 「讓我檢查您的實際設定檔。」
378
+
379
+ [讀取 appsettings.json 後]
380
+
381
+ [來源: 程式碼] appsettings.json:8-12 - 找到資料庫設定:
382
+ - 連線字串鍵: "ConnectionStrings:MainDb"(非 "DefaultConnection")
383
+ - 使用 SQL Server,非 PostgreSQL
384
+ - 額外設定 "CommandTimeout": 30
385
+
386
+ 您的專案使用與 .NET 預設不同的鍵名稱。
387
+ ```
388
+
389
+ ---
390
+
391
+ ##### 5. 斷言程式碼有 Bug(無證據)
392
+
393
+ ❌ **錯誤**:
394
+ ```
395
+ 助理: 「您的驗證程式碼有安全性漏洞 -
396
+ 您沒有正確進行密碼雜湊。」
397
+ ```
398
+ **問題**: 未讀取實際程式碼即聲稱有 Bug。
399
+
400
+ ✅ **正確**:
401
+ ```
402
+ 助理: 「讓我審查您的驗證實作。」
403
+
404
+ [讀取 src/auth/AuthService.cs 後]
405
+
406
+ [已確認] AuthService.cs:67 - 找到密碼雜湊實作:
407
+ - 使用 BCrypt,work factor 為 12 ✅
408
+ - Salt 自動生成 ✅
409
+ - 未偵測到時序攻擊漏洞 ✅
410
+
411
+ 您的密碼雜湊實作遵循安全性最佳實務。
412
+ 在審查的程式碼中未發現問題。
413
+ ```
414
+
415
+ ---
416
+
417
+ ##### 6. 選項未附推薦
418
+
419
+ ❌ **錯誤**:
420
+ ```
421
+ 助理: 「您可以使用: 1) JWT 2) Session 3) OAuth。您偏好哪個?」
422
+ ```
423
+ **問題**: 列出選項但未提供指引或考慮情境。
424
+
425
+ ✅ **正確**:
426
+ ```
427
+ 助理: 「基於您的需求:
428
+
429
+ **選項**:
430
+ 1. JWT - 無狀態、可擴展、適合 API
431
+ 2. Session - 伺服器端狀態、傳統 Web 應用程式
432
+ 3. OAuth - 第三方身分提供者
433
+
434
+ **推薦: JWT**
435
+
436
+ [推測] 基於您的微服務架構(見於 docker-compose.yml),
437
+ JWT 是最適合的,因為:
438
+ - 無狀態: 跨服務不需要 session 儲存
439
+ - 可擴展: 每個服務可獨立驗證 token
440
+ - 標準: 在您的技術堆疊(.NET、React)中有良好支援
441
+
442
+ 如果之後需要社交登入,可以在 JWT 之上加入 OAuth。」
443
+ ```
444
+
445
+ ---
446
+
447
+ ##### 7. 未分析副作用即實作
448
+
449
+ ❌ **錯誤**:
450
+ ```
451
+ 使用者: 「新增一個刪除使用者帳號的功能」
452
+ 助理: 「這是實作:
453
+
454
+ public async Task DeleteUser(Guid userId) {
455
+ await _dbContext.Users.Where(u => u.Id == userId).DeleteAsync();
456
+ }
457
+
458
+ ```
459
+ **問題**: 未考慮連鎖效應即直接實作。
460
+
461
+ ✅ **正確**:
462
+ ```
463
+ 使用者: 「新增一個刪除使用者帳號的功能」
464
+ 助理: 「在實作前,讓我先識別潛在副作用:
465
+
466
+ **潛在副作用**:
467
+ 1. **資料完整性**: 相關記錄(訂單、評論、工作階段)可能變成孤立資料
468
+ 2. **外部系統**: 可能需要通知第三方服務(支付提供者、電子郵件服務)
469
+ 3. **稽核軌跡**: 刪除可能違反合規要求(GDPR 被遺忘權 vs. 稽核日誌)
470
+
471
+ [需確認] 應如何處理:
472
+ - 相關使用者資料(級聯刪除 vs. 匿名化)?
473
+ - 活動中的工作階段?
474
+ - 用於報表的歷史記錄?
475
+
476
+ 一旦確認後,我會提供實作。」
477
+ ```
478
+
479
+ ---
480
+
481
+ ## 實施檢查清單
482
+
483
+ 在對程式碼、需求或架構做出任何陳述前,請驗證:
484
+
485
+ - [ ] **來源已驗證**
486
+ - 我是否已讀取實際的檔案/文件?
487
+
488
+ - [ ] **來源類型已標註**
489
+ - 我是否已指定來源類型?(`[來源: 程式碼]`、`[來源: 外部]`、`[來源: 知識]` 等)
490
+
491
+ - [ ] **引用已標註**
492
+ - 我是否已包含檔案路徑與行號(程式碼)?
493
+ - 我是否已包含 URL 與存取日期(外部文件)?
494
+
495
+ - [ ] **版本已標註**
496
+ - 我是否已包含適用的函式庫/框架版本?
497
+
498
+ - [ ] **確定性已分類**
499
+ - 我是否已標註為 [已確認]、[推測]、[假設]、[未知] 或 [需確認]?
500
+
501
+ - [ ] **AI 知識已標記**
502
+ - 我是否已對 `[來源: 知識]` 標記 ⚠️ 驗證警告?
503
+
504
+ - [ ] **無捏造**
505
+ - 我是否避免了捏造 API、設定或需求?
506
+
507
+ - [ ] **使用者澄清**
508
+ - 我是否對模糊點請求澄清?
509
+
510
+ - [ ] **包含推薦**
511
+ - 當提出選項時,我是否包含了推薦選項?
512
+
513
+ - [ ] **已識別副作用**
514
+ - 我是否在實作前列出至少 3 個潛在副作用?
515
+ - 我是否考慮了:狀態變更、相依性、外部系統、資料完整性?
516
+
517
+ ---
518
+
519
+ ## 審查情境
520
+
521
+ ### 情境 1: 程式碼分析
522
+
523
+ **使用者請求**: 「審查驗證邏輯」
524
+
525
+ **❌ 不良回應**:
526
+ ```
527
+ 您的驗證系統使用 JWT 搭配 RS256 簽名。
528
+ Token 在 1 小時後過期。
529
+ 您應該加入 refresh token 支援。
530
+ ```
531
+ **問題**: 未讀取程式碼即做出聲明,假設實作細節。
532
+
533
+ **✅ 良好回應**:
534
+ ```
535
+ [需確認] 哪個檔案包含驗證邏輯?
536
+ 可能的位置包括:
537
+ - src/auth/
538
+ - src/services/auth
539
+ - src/middleware/
540
+
541
+ 請引導我找到正確的檔案,以便我提供準確分析。
542
+
543
+ 或者,我可以搜尋程式碼庫中與驗證相關的檔案。
544
+ ```
545
+
546
+ ---
547
+
548
+ ### 情境 2: 架構建議
549
+
550
+ **使用者請求**: 「我應該如何架構新的付款模組?」
551
+
552
+ **❌ 不良回應**:
553
+ ```
554
+ 基於您現有的架構,您應該:
555
+ 1. 在 src/services/ 建立 PaymentService
556
+ 2. 使用 Stripe API
557
+ 3. 將交易儲存在 payments 資料表
558
+ ```
559
+ **問題**: 未經證據即假設架構、支付提供者和資料庫結構。
560
+
561
+ **✅ 良好回應**:
562
+ ```
563
+ 為了提供準確的建議,我需要了解您目前的架構:
564
+
565
+ [需確認]
566
+ 1. 您計劃使用哪個支付提供者?(Stripe、PayPal、自訂等)
567
+ 2. 您現有的服務層結構是什麼?
568
+ 3. 您使用什麼資料庫?
569
+
570
+ 能否分享:
571
+ - 專案結構(ls -R src/ 或類似)
572
+ - 現有服務範例
573
+ - 資料庫結構或 ORM 模型
574
+
575
+ 一旦我審查了這些,就能建議與您的模式一致的結構。
576
+ ```
577
+
578
+ ---
579
+
580
+ ### 情境 3: Bug 調查
581
+
582
+ **使用者請求**: 「登入失敗」
583
+
584
+ **❌ 不良回應**:
585
+ ```
586
+ 問題可能在您的 validateCredentials() 函式中。
587
+ 您可能需要在比對前對密碼進行雜湊。
588
+ ```
589
+ **問題**: 未看程式碼即猜測原因。
590
+
591
+ **✅ 良好回應**:
592
+ ```
593
+ 要調查登入失敗,我需要更多資訊:
594
+
595
+ [需確認]
596
+ 1. 您看到什麼錯誤訊息?(主控台日誌、錯誤回應)
597
+ 2. 哪個檔案包含登入邏輯?
598
+ 3. 能否分享相關的程式碼片段或日誌?
599
+
600
+ 建議的除錯步驟:
601
+ - 分享登入控制器/服務程式碼
602
+ - 提供主控台/伺服器的錯誤日誌
603
+ - 描述預期與實際行為
604
+
605
+ 一旦我審查了實際程式碼和錯誤,就能找出根本原因。
606
+ ```
607
+
608
+ ---
609
+
610
+ ### 情境 4: 技術選型
611
+
612
+ **使用者請求**: 「我應該使用什麼快取解決方案?」
613
+
614
+ **❌ 不良回應**:
615
+ ```
616
+ 您有幾個選項:
617
+ 1. Redis
618
+ 2. Memcached
619
+ 3. 記憶體快取
620
+
621
+ 讓我知道您想使用哪一個。
622
+ ```
623
+ **問題**: 列出選項但未推薦或考慮情境。
624
+
625
+ **✅ 良好回應**:
626
+ ```
627
+ 基於可用的選項:
628
+ 1. Redis - 分散式、持久化、豐富的資料結構
629
+ 2. Memcached - 簡單、快速、分散式
630
+ 3. 記憶體快取 - 僅本機、無需設定
631
+
632
+ **推薦: Redis**
633
+
634
+ [需確認] 在最終決定前,我想了解:
635
+ - 您需要跨多個實例共享快取嗎?
636
+ - 需要資料持久化嗎?
637
+ - 您現有的基礎設施是什麼?
638
+
639
+ 如果您已有 Redis 基礎設施或需要跨實例共享,
640
+ Redis 是最佳選擇。如果這是單實例應用程式且有
641
+ 簡單的快取需求,記憶體快取就足夠了。
642
+ ```
643
+
644
+ ---
645
+
646
+ ## AI 助理工作流程
647
+
648
+ ```
649
+ ┌─────────────────────────────────┐
650
+ │ 收到使用者請求 │
651
+ └─────────────┬───────────────────┘
652
+
653
+
654
+ ┌─────────────────────────────────┐
655
+ │ 識別所需資訊 │
656
+ │ - 程式碼檔案? │
657
+ │ - 設定? │
658
+ │ - 需求? │
659
+ └─────────────┬───────────────────┘
660
+
661
+
662
+ ┌─────────────────────────────────┐
663
+ │ 識別潛在副作用 │
664
+ │ - 狀態變更? │
665
+ │ - 受影響的相依性? │
666
+ │ - 外部系統影響? │
667
+ └─────────────┬───────────────────┘
668
+
669
+
670
+ ┌────┴────┐
671
+ │ 可取得? │
672
+ └────┬────┘
673
+
674
+ ┌───────┴───────┐
675
+ │ │
676
+ 是 否
677
+ │ │
678
+ ▼ ▼
679
+ ┌──────────┐ ┌─────────────┐
680
+ │ 讀取/ │ │ 向使用者 │
681
+ │ 分析 │ │ 詢問資訊 │
682
+ └────┬─────┘ └──────┬──────┘
683
+ │ │
684
+ ▼ ▼
685
+ ┌─────────────────────────────────┐
686
+ │ 為回應加上標籤: │
687
+ │ - [已確認] 用於事實 │
688
+ │ - [推測] 用於推論 │
689
+ │ - [需確認] 用於缺口 │
690
+ └─────────────┬───────────────────┘
691
+
692
+
693
+ ┌─────────────────────────────────┐
694
+ │ 引用來源(檔案:行號) │
695
+ └─────────────┬───────────────────┘
696
+
697
+
698
+ ┌─────────────────────────────────┐
699
+ │ 包含推薦 │
700
+ │ (如提出選項) │
701
+ └─────────────┬───────────────────┘
702
+
703
+
704
+ ┌─────────────────────────────────┐
705
+ │ 提供回應 │
706
+ └─────────────────────────────────┘
707
+ ```
708
+
709
+ ---
710
+
711
+ ## 語言無關應用
712
+
713
+ 本標準適用於任何程式語言、框架或領域:
714
+
715
+ - **Web 開發**: 未經證據不假設 Express/Django/Spring Boot
716
+ - **行動開發**: 未經證據不假設 React Native/Flutter
717
+ - **資料科學**: 未經證據不假設 TensorFlow/PyTorch
718
+ - **DevOps**: 未經證據不假設 Docker/Kubernetes
719
+
720
+ **通用規則**: 先讀取,再分析,永遠以證據報告。
721
+
722
+ ---
723
+
724
+ ## 與程式碼審查整合
725
+
726
+ 執行程式碼審查時,應用這些原則:
727
+
728
+ 1. **引用行號**: 所有審查評論必須引用特定行號
729
+ 2. **以證據分類嚴重性**:
730
+ - `[已確認 Bug]` - 程式碼明顯損壞
731
+ - `[潛在問題]` - 程式碼可能造成問題
732
+ - `[建議]` - 改善想法(非缺陷)
733
+ 3. **避免假設**: 如不確定設計意圖,詢問作者
734
+
735
+ **審查評論範本**:
736
+ ```
737
+ [檔案:行號] - [嚴重性]
738
+ [問題描述與程式碼摘錄]
739
+ [證據或推理]
740
+ [建議修正或澄清問題]
741
+ ```
742
+
743
+ ---
744
+
745
+ ## 相關標準
746
+
747
+ - [測試標準](../testing-standards.md) - 確保驗證 AI 分析結果(或使用 `/testing-guide` 技能)
748
+ - [程式碼審查清單](../code-review-checklist.md) - 審查 AI 生成內容
749
+ - [程式碼簽入標準](../checkin-standards.md) - AI 協作簽入流程
750
+
751
+ ---
752
+
753
+ ## 版本歷史
754
+
755
+ | 版本 | 日期 | 變更 |
756
+ |------|------|------|
757
+ | 1.4.0 | 2026-01-19 | 新增: 副作用分析規則(第 7 條禁止行為)、工作流程步驟及檢查清單項目 |
758
+ | 1.3.1 | 2025-12-24 | 新增: 相關標準章節 |
759
+ | 1.3.0 | 2025-12-22 | 增強: 禁止行為章節,新增詳細對比範例 |
760
+ | 1.2.0 | 2025-12-15 | 新增: AI 助手互動規範章節(對話語言、推薦原則) |
761
+ | 1.1.0 | 2025-12-10 | 增強來源標註,新增來源類型、版本敏感性與可靠度評級 |
762
+ | 1.0.0 | 2025-11-12 | 初版發布 |
763
+
764
+ ---
765
+
766
+ ## 授權
767
+
768
+ 本標準以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權發布。
769
+ 您可以自由調整用於您的專案,但需註明出處。
770
+
771
+ ---
772
+
773
+ **專案特定化**
774
+
775
+ 專案可透過以下方式擴充本標準:
776
+ - 領域特定驗證需求(如醫療領域的 HIPAA 合規檢查)
777
+ - 工具特定指引(如如何驗證 Terraform 設定)
778
+ - 團隊特定證據格式(如 JIRA ticket 引用)
779
+ - AI 助手對話的語言偏好