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