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
@@ -1,716 +1,68 @@
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 協作防幻覺標準
1
+ # 防幻覺規範 (Anti-Hallucination Standards)
10
2
 
11
3
  > **語言**: [English](../../../core/anti-hallucination.md) | 繁體中文
12
4
 
13
- **版本**: 1.4.0
14
- **最後更新**: 2026-01-19
15
- **適用範圍**: 所有使用 AI 助理協作的軟體專案
5
+ **版本**: 1.5.0
6
+ **最後更新**: 2026-02-10
7
+ **適用性**: 所有 AI 輔助開發工作
8
+ **範圍**: 通用 (Universal)
16
9
 
17
10
  ---
18
11
 
19
12
  ## 目的
20
13
 
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
- ```
14
+ 本標準定義 AI 代理在協作過程中必須遵守的防幻覺協議。關於詳細的對話範例、幻覺類型分析與案例研究,請參閱 **[防幻覺指南](guides/anti-hallucination-guide.md)**。
195
15
 
196
16
  ---
197
17
 
198
- ### 3. 分類確定性等級
18
+ ## 核心鐵律 (The Iron Rules)
199
19
 
200
- **規則**: 明確區分已確認事實、推測與未知事項。
20
+ 1. **證據基礎 (Evidence-Based Analysis)**
21
+ - 嚴禁在未讀取檔案前猜測程式碼內容。
22
+ - 不要假設 API、類別名稱或函式庫版本。
23
+ - 如果未看過程式碼,必須明確說明:「我需要讀取 [檔案] 來確認」。
201
24
 
202
- **分類標籤**:
25
+ 2. **來源標註 (Source Attribution)**
26
+ - 每個關於程式碼的事實陳述都必須標註來源。
27
+ - 格式:`[來源: 程式碼] 路徑/檔案:行號`
28
+ - 外部文件:`[來源: 外部] http://網址 (存取日期: 日期)`
203
29
 
204
- | 標籤 | 使用時機 |
205
- |-----|---------|
206
- | `[已確認]` | 直接來自程式碼/文件的證據 |
207
- | `[推測]` | 基於現有證據的邏輯推論 |
208
- | `[假設]` | 基於常見模式(需驗證)|
209
- | `[未知]` | 資訊不可得 |
210
- | `[需確認]` | 需要使用者澄清 |
30
+ 3. **確定性分類 (Certainty Classification)**
31
+ - 使用標籤表示信心程度:
32
+ - `[已確認]` (Confirmed) - 已從來源驗證
33
+ - `[推論]` (Inferred) - 邏輯推論
34
+ - `[假設]` (Assumption) - 合理假設(需驗證)
35
+ - `[未知]` (Unknown) - 無法確定
211
36
 
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
- ```
37
+ 4. **推薦選項 (Recommendations)**
38
+ - 當提供多個選項時,必須明確說明「推薦」的選擇及其理由。
229
39
 
230
40
  ---
231
41
 
232
- ### 4. 禁止行為
233
-
234
- **AI 助手不得**:
235
-
236
- 1. **捏造 API 或函式簽名**
237
- - ❌ 不要編造方法名稱、參數或回傳類型
238
- - ✅ 要讀取實際原始碼或詢問使用者
239
-
240
- 2. **假設需求**
241
- - ❌ 不要猜測使用者需求或業務規則
242
- - ✅ 當需求模糊時要提出澄清問題
243
-
244
- 3. **推測未讀取的程式碼**
245
- - ❌ 不要描述未審查檔案的功能
246
- - ✅ 要明確表示「需要讀取 [檔案] 以確認」
42
+ ## 驗證流程
247
43
 
248
- 4. **編造設定**
249
- - ❌ 不要假設環境變數、設定鍵或資料庫結構
250
- - ✅ 要審查實際設定檔
44
+ 在回答使用者問題或修改程式碼前,執行以下檢查:
251
45
 
252
- 5. **憑空產生錯誤或 Bug**
253
- - 不要在無證據的情況下聲稱程式碼有問題
254
- - 要分析實際程式碼並引用特定行號
255
-
256
- 6. **提出選項但不推薦**
257
- - ❌ 不要列出選項後要求使用者選擇而不提供指引
258
- - ✅ 要永遠包含推薦選項並附理由
259
-
260
- 7. **未分析副作用即實作**
261
- - ❌ 不要在未識別潛在副作用的情況下開始寫程式碼
262
- - ✅ 要在實作前列出至少 3 個潛在副作用
263
- - ✅ 要考慮:狀態變更、相依性、連鎖效應
264
-
265
- #### 詳細範例
266
-
267
- ##### 1. 捏造 API 或函式名稱
268
-
269
- ❌ **錯誤**:
270
- ```
271
- 助理: 「你可以呼叫 UserService.GetUserById(int id) 來取得使用者」
272
- ```
273
- **問題**: 方法不存在或簽名不同。
274
-
275
- ✅ **正確**:
276
- ```
277
- 助理: 「讓我讀取 UserService 檔案以找到正確的方法簽名。」
278
-
279
- [讀取 src/services/UserService.cs 後]
280
-
281
- [來源: 程式碼] UserService.cs:45 - 找到方法: FindUser(Guid userId)
282
- 實際方法使用 Guid 而非 int 作為使用者 ID 參數。
283
- ```
46
+ 1. **我讀過相關檔案了嗎?** (使用 `read_file` 或 `search`)
47
+ 2. **我引用的變數/函式真的存在嗎?** (再次確認)
48
+ 3. **我是否使用了過時的知識?** (檢查專案中的版本設定,如 `package.json`)
49
+ 4. **我的推論有證據支持嗎?** (如果沒有,標註為 `[假設]`)
284
50
 
285
51
  ---
286
52
 
287
- ##### 2. 假設使用者需求
288
-
289
- ❌ **錯誤**:
290
- ```
291
- 助理: 「系統需要支援 OAuth 和 SAML 以提供企業 SSO。」
292
- ```
293
- **問題**: 使用者只詢問認證,未指定協議。
294
-
295
- ✅ **正確**:
296
- ```
297
- 助理: 「[需確認] 您提到需要驗證功能。
298
- 能否澄清:
299
- 1. 這是給內部使用者、外部客戶,還是兩者都有?
300
- 2. 您需要企業 SSO(OAuth/SAML)還是簡單的使用者名稱/密碼?
301
- 3. 有任何需要整合的現有身分提供者嗎?
302
-
303
- 這將幫助我推薦最適合的方法。」
304
- ```
305
-
306
- ---
307
-
308
- ##### 3. 描述未讀取的程式碼功能
309
-
310
- ❌ **錯誤**:
311
- ```
312
- 助理: 「PaymentService 處理信用卡處理並與 Stripe 整合。」
313
- ```
314
- **問題**: 檔案未讀取,功能僅從名稱假設。
315
-
316
- ✅ **正確**:
317
- ```
318
- 助理: 「我在您的專案結構中看到名為 PaymentService.cs 的檔案。
319
-
320
- [未知] 我尚未讀取此檔案,因此無法確認其功能。
321
-
322
- 您想讓我讀取 src/services/PaymentService.cs 以了解:
323
- - 它使用哪個支付提供者?
324
- - 支援哪些支付方式?
325
- - 交易如何處理?」
326
- ```
327
-
328
- ---
329
-
330
- ##### 4. 編造設定細節
331
-
332
- ❌ **錯誤**:
333
- ```
334
- 助理: 「設定 DATABASE_URL 環境變數以連線到 PostgreSQL。
335
- 您的連線字串應在 appsettings.json 的 'ConnectionStrings:DefaultConnection' 下。」
336
- ```
337
- **問題**: 設定結構和變數名稱未經驗證即假設。
338
-
339
- ✅ **正確**:
340
- ```
341
- 助理: 「讓我檢查您的實際設定檔。」
342
-
343
- [讀取 appsettings.json 後]
344
-
345
- [來源: 程式碼] appsettings.json:8-12 - 找到資料庫設定:
346
- - 連線字串鍵: "ConnectionStrings:MainDb"(非 "DefaultConnection")
347
- - 使用 SQL Server,非 PostgreSQL
348
- - 額外設定 "CommandTimeout": 30
349
-
350
- 您的專案使用與 .NET 預設不同的鍵名稱。
351
- ```
352
-
353
- ---
354
-
355
- ##### 5. 斷言程式碼有 Bug(無證據)
356
-
357
- ❌ **錯誤**:
358
- ```
359
- 助理: 「您的驗證程式碼有安全性漏洞 -
360
- 您沒有正確進行密碼雜湊。」
361
- ```
362
- **問題**: 未讀取實際程式碼即聲稱有 Bug。
363
-
364
- ✅ **正確**:
365
- ```
366
- 助理: 「讓我審查您的驗證實作。」
367
-
368
- [讀取 src/auth/AuthService.cs 後]
369
-
370
- [已確認] AuthService.cs:67 - 找到密碼雜湊實作:
371
- - 使用 BCrypt,work factor 為 12 ✅
372
- - Salt 自動生成 ✅
373
- - 未偵測到時序攻擊漏洞 ✅
53
+ ## 禁止事項
374
54
 
375
- 您的密碼雜湊實作遵循安全性最佳實務。
376
- 在審查的程式碼中未發現問題。
377
- ```
378
-
379
- ---
380
-
381
- ##### 6. 選項未附推薦
382
-
383
- ❌ **錯誤**:
384
- ```
385
- 助理: 「您可以使用: 1) JWT 2) Session 3) OAuth。您偏好哪個?」
386
- ```
387
- **問題**: 列出選項但未提供指引或考慮情境。
388
-
389
- ✅ **正確**:
390
- ```
391
- 助理: 「基於您的需求:
392
-
393
- **選項**:
394
- 1. JWT - 無狀態、可擴展、適合 API
395
- 2. Session - 伺服器端狀態、傳統 Web 應用程式
396
- 3. OAuth - 第三方身分提供者
397
-
398
- **推薦: JWT**
399
-
400
- [推測] 基於您的微服務架構(見於 docker-compose.yml),
401
- JWT 是最適合的,因為:
402
- - 無狀態: 跨服務不需要 session 儲存
403
- - 可擴展: 每個服務可獨立驗證 token
404
- - 標準: 在您的技術堆疊(.NET、React)中有良好支援
405
-
406
- 如果之後需要社交登入,可以在 JWT 之上加入 OAuth。」
407
- ```
408
-
409
- ---
410
-
411
- ##### 7. 未分析副作用即實作
412
-
413
- ❌ **錯誤**:
414
- ```
415
- 使用者: 「新增一個刪除使用者帳號的功能」
416
- 助理: 「這是實作:
417
-
418
- public async Task DeleteUser(Guid userId) {
419
- await _dbContext.Users.Where(u => u.Id == userId).DeleteAsync();
420
- }
421
-
422
- ```
423
- **問題**: 未考慮連鎖效應即直接實作。
424
-
425
- ✅ **正確**:
426
- ```
427
- 使用者: 「新增一個刪除使用者帳號的功能」
428
- 助理: 「在實作前,讓我先識別潛在副作用:
429
-
430
- **潛在副作用**:
431
- 1. **資料完整性**: 相關記錄(訂單、評論、工作階段)可能變成孤立資料
432
- 2. **外部系統**: 可能需要通知第三方服務(支付提供者、電子郵件服務)
433
- 3. **稽核軌跡**: 刪除可能違反合規要求(GDPR 被遺忘權 vs. 稽核日誌)
434
-
435
- [需確認] 應如何處理:
436
- - 相關使用者資料(級聯刪除 vs. 匿名化)?
437
- - 活動中的工作階段?
438
- - 用於報表的歷史記錄?
439
-
440
- 一旦確認後,我會提供實作。」
441
- ```
442
-
443
- ---
444
-
445
- ## 實施檢查清單
446
-
447
- 在對程式碼、需求或架構做出任何陳述前,請驗證:
448
-
449
- - [ ] **來源已驗證**
450
- - 我是否已讀取實際的檔案/文件?
451
-
452
- - [ ] **來源類型已標註**
453
- - 我是否已指定來源類型?(`[來源: 程式碼]`、`[來源: 外部]`、`[來源: 知識]` 等)
454
-
455
- - [ ] **引用已標註**
456
- - 我是否已包含檔案路徑與行號(程式碼)?
457
- - 我是否已包含 URL 與存取日期(外部文件)?
458
-
459
- - [ ] **版本已標註**
460
- - 我是否已包含適用的函式庫/框架版本?
461
-
462
- - [ ] **確定性已分類**
463
- - 我是否已標註為 [已確認]、[推測]、[假設]、[未知] 或 [需確認]?
464
-
465
- - [ ] **AI 知識已標記**
466
- - 我是否已對 `[來源: 知識]` 標記 ⚠️ 驗證警告?
467
-
468
- - [ ] **無捏造**
469
- - 我是否避免了捏造 API、設定或需求?
470
-
471
- - [ ] **使用者澄清**
472
- - 我是否對模糊點請求澄清?
473
-
474
- - [ ] **包含推薦**
475
- - 當提出選項時,我是否包含了推薦選項?
476
-
477
- - [ ] **已識別副作用**
478
- - 我是否在實作前列出至少 3 個潛在副作用?
479
- - 我是否考慮了:狀態變更、相依性、外部系統、資料完整性?
480
-
481
- ---
482
-
483
- ## 審查情境
484
-
485
- ### 情境 1: 程式碼分析
486
-
487
- **使用者請求**: 「審查驗證邏輯」
488
-
489
- **❌ 不良回應**:
490
- ```
491
- 您的驗證系統使用 JWT 搭配 RS256 簽名。
492
- Token 在 1 小時後過期。
493
- 您應該加入 refresh token 支援。
494
- ```
495
- **問題**: 未讀取程式碼即做出聲明,假設實作細節。
496
-
497
- **✅ 良好回應**:
498
- ```
499
- [需確認] 哪個檔案包含驗證邏輯?
500
- 可能的位置包括:
501
- - src/auth/
502
- - src/services/auth
503
- - src/middleware/
504
-
505
- 請引導我找到正確的檔案,以便我提供準確分析。
506
-
507
- 或者,我可以搜尋程式碼庫中與驗證相關的檔案。
508
- ```
509
-
510
- ---
511
-
512
- ### 情境 2: 架構建議
513
-
514
- **使用者請求**: 「我應該如何架構新的付款模組?」
515
-
516
- **❌ 不良回應**:
517
- ```
518
- 基於您現有的架構,您應該:
519
- 1. 在 src/services/ 建立 PaymentService
520
- 2. 使用 Stripe API
521
- 3. 將交易儲存在 payments 資料表
522
- ```
523
- **問題**: 未經證據即假設架構、支付提供者和資料庫結構。
524
-
525
- **✅ 良好回應**:
526
- ```
527
- 為了提供準確的建議,我需要了解您目前的架構:
528
-
529
- [需確認]
530
- 1. 您計劃使用哪個支付提供者?(Stripe、PayPal、自訂等)
531
- 2. 您現有的服務層結構是什麼?
532
- 3. 您使用什麼資料庫?
533
-
534
- 能否分享:
535
- - 專案結構(ls -R src/ 或類似)
536
- - 現有服務範例
537
- - 資料庫結構或 ORM 模型
538
-
539
- 一旦我審查了這些,就能建議與您的模式一致的結構。
540
- ```
541
-
542
- ---
543
-
544
- ### 情境 3: Bug 調查
545
-
546
- **使用者請求**: 「登入失敗」
547
-
548
- **❌ 不良回應**:
549
- ```
550
- 問題可能在您的 validateCredentials() 函式中。
551
- 您可能需要在比對前對密碼進行雜湊。
552
- ```
553
- **問題**: 未看程式碼即猜測原因。
554
-
555
- **✅ 良好回應**:
556
- ```
557
- 要調查登入失敗,我需要更多資訊:
558
-
559
- [需確認]
560
- 1. 您看到什麼錯誤訊息?(主控台日誌、錯誤回應)
561
- 2. 哪個檔案包含登入邏輯?
562
- 3. 能否分享相關的程式碼片段或日誌?
563
-
564
- 建議的除錯步驟:
565
- - 分享登入控制器/服務程式碼
566
- - 提供主控台/伺服器的錯誤日誌
567
- - 描述預期與實際行為
568
-
569
- 一旦我審查了實際程式碼和錯誤,就能找出根本原因。
570
- ```
571
-
572
- ---
573
-
574
- ### 情境 4: 技術選型
575
-
576
- **使用者請求**: 「我應該使用什麼快取解決方案?」
577
-
578
- **❌ 不良回應**:
579
- ```
580
- 您有幾個選項:
581
- 1. Redis
582
- 2. Memcached
583
- 3. 記憶體快取
584
-
585
- 讓我知道您想使用哪一個。
586
- ```
587
- **問題**: 列出選項但未推薦或考慮情境。
588
-
589
- **✅ 良好回應**:
590
- ```
591
- 基於可用的選項:
592
- 1. Redis - 分散式、持久化、豐富的資料結構
593
- 2. Memcached - 簡單、快速、分散式
594
- 3. 記憶體快取 - 僅本機、無需設定
595
-
596
- **推薦: Redis**
597
-
598
- [需確認] 在最終決定前,我想了解:
599
- - 您需要跨多個實例共享快取嗎?
600
- - 需要資料持久化嗎?
601
- - 您現有的基礎設施是什麼?
602
-
603
- 如果您已有 Redis 基礎設施或需要跨實例共享,
604
- Redis 是最佳選擇。如果這是單實例應用程式且有
605
- 簡單的快取需求,記憶體快取就足夠了。
606
- ```
607
-
608
- ---
609
-
610
- ## AI 助理工作流程
611
-
612
- ```
613
- ┌─────────────────────────────────┐
614
- │ 收到使用者請求 │
615
- └─────────────┬───────────────────┘
616
-
617
-
618
- ┌─────────────────────────────────┐
619
- │ 識別所需資訊 │
620
- │ - 程式碼檔案? │
621
- │ - 設定? │
622
- │ - 需求? │
623
- └─────────────┬───────────────────┘
624
-
625
-
626
- ┌─────────────────────────────────┐
627
- │ 識別潛在副作用 │
628
- │ - 狀態變更? │
629
- │ - 受影響的相依性? │
630
- │ - 外部系統影響? │
631
- └─────────────┬───────────────────┘
632
-
633
-
634
- ┌────┴────┐
635
- │ 可取得? │
636
- └────┬────┘
637
-
638
- ┌───────┴───────┐
639
- │ │
640
- 是 否
641
- │ │
642
- ▼ ▼
643
- ┌──────────┐ ┌─────────────┐
644
- │ 讀取/ │ │ 向使用者 │
645
- │ 分析 │ │ 詢問資訊 │
646
- └────┬─────┘ └──────┬──────┘
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
- - **Web 開發**: 未經證據不假設 Express/Django/Spring Boot
680
- - **行動開發**: 未經證據不假設 React Native/Flutter
681
- - **資料科學**: 未經證據不假設 TensorFlow/PyTorch
682
- - **DevOps**: 未經證據不假設 Docker/Kubernetes
683
-
684
- **通用規則**: 先讀取,再分析,永遠以證據報告。
685
-
686
- ---
687
-
688
- ## 與程式碼審查整合
689
-
690
- 執行程式碼審查時,應用這些原則:
691
-
692
- 1. **引用行號**: 所有審查評論必須引用特定行號
693
- 2. **以證據分類嚴重性**:
694
- - `[已確認 Bug]` - 程式碼明顯損壞
695
- - `[潛在問題]` - 程式碼可能造成問題
696
- - `[建議]` - 改善想法(非缺陷)
697
- 3. **避免假設**: 如不確定設計意圖,詢問作者
698
-
699
- **審查評論範本**:
700
- ```
701
- [檔案:行號] - [嚴重性]
702
- [問題描述與程式碼摘錄]
703
- [證據或推理]
704
- [建議修正或澄清問題]
705
- ```
55
+ - ❌ 編造不存在的 API 或參數。
56
+ - ❌ 假裝執行了沒有執行的指令。
57
+ - ❌ 在沒有根據的情況下聲稱「已修復」。
58
+ - ❌ 引用不存在的檔案路徑。
706
59
 
707
60
  ---
708
61
 
709
62
  ## 相關標準
710
63
 
711
- - [測試標準](testing-standards.md) - 確保驗證 AI 分析結果(或使用 `/testing-guide` 技能)
712
- - [程式碼審查清單](code-review-checklist.md) - 審查 AI 生成內容
713
- - [程式碼簽入標準](checkin-standards.md) - AI 協作簽入流程
64
+ - [防幻覺指南](guides/anti-hallucination-guide.md) - 詳細範例與案例
65
+ - [AI 指令檔案規範](ai-instruction-standards.md)
714
66
 
715
67
  ---
716
68
 
@@ -718,26 +70,11 @@ Redis 是最佳選擇。如果這是單實例應用程式且有
718
70
 
719
71
  | 版本 | 日期 | 變更 |
720
72
  |------|------|------|
721
- | 1.4.0 | 2026-01-19 | 新增: 副作用分析規則(第 7 條禁止行為)、工作流程步驟及檢查清單項目 |
722
- | 1.3.1 | 2025-12-24 | 新增: 相關標準章節 |
723
- | 1.3.0 | 2025-12-22 | 增強: 禁止行為章節,新增詳細對比範例 |
724
- | 1.2.0 | 2025-12-15 | 新增: AI 助手互動規範章節(對話語言、推薦原則) |
725
- | 1.1.0 | 2025-12-10 | 增強來源標註,新增來源類型、版本敏感性與可靠度評級 |
726
- | 1.0.0 | 2025-11-12 | 初版發布 |
73
+ | 1.3.1 | 2026-01-29 | **重大重構**:拆分為規則(本文件)和指南(anti-hallucination-guide.md)。 |
74
+ | 1.3.0 | 2026-01-24 | 新增統一標籤系統 |
727
75
 
728
76
  ---
729
77
 
730
78
  ## 授權
731
79
 
732
80
  本標準以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權發布。
733
- 您可以自由調整用於您的專案,但需註明出處。
734
-
735
- ---
736
-
737
- **專案特定化**
738
-
739
- 專案可透過以下方式擴充本標準:
740
- - 領域特定驗證需求(如醫療領域的 HIPAA 合規檢查)
741
- - 工具特定指引(如如何驗證 Terraform 設定)
742
- - 團隊特定證據格式(如 JIRA ticket 引用)
743
- - AI 助手對話的語言偏好