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,272 @@
|
|
|
1
|
+
# 效能測試 - AI 優化選項
|
|
2
|
+
# 父層: testing
|
|
3
|
+
|
|
4
|
+
id: performance-testing
|
|
5
|
+
meta:
|
|
6
|
+
parent: testing
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 效能測試標準與實踐
|
|
9
|
+
references:
|
|
10
|
+
- "ISTQB Performance Testing"
|
|
11
|
+
- "Google SRE Book"
|
|
12
|
+
|
|
13
|
+
best_for:
|
|
14
|
+
- 高流量應用程式
|
|
15
|
+
- 即時系統
|
|
16
|
+
- 電子商務平台
|
|
17
|
+
- API 與微服務
|
|
18
|
+
- 資料庫密集型應用
|
|
19
|
+
|
|
20
|
+
testing_types:
|
|
21
|
+
load_testing:
|
|
22
|
+
name: 負載測試
|
|
23
|
+
description: 測試系統在預期負載下的行為
|
|
24
|
+
purpose: 驗證系統能處理正常流量
|
|
25
|
+
metrics:
|
|
26
|
+
- 回應時間 (P50, P95, P99)
|
|
27
|
+
- 吞吐量 (TPS/RPS)
|
|
28
|
+
- 錯誤率
|
|
29
|
+
tools:
|
|
30
|
+
- name: k6
|
|
31
|
+
type: 開源
|
|
32
|
+
language: JavaScript
|
|
33
|
+
- name: JMeter
|
|
34
|
+
type: 開源
|
|
35
|
+
language: Java/XML
|
|
36
|
+
- name: Gatling
|
|
37
|
+
type: 開源
|
|
38
|
+
language: Scala
|
|
39
|
+
- name: Locust
|
|
40
|
+
type: 開源
|
|
41
|
+
language: Python
|
|
42
|
+
|
|
43
|
+
stress_testing:
|
|
44
|
+
name: 壓力測試
|
|
45
|
+
description: 測試系統超出正常負載的行為
|
|
46
|
+
purpose: 找出系統極限與故障模式
|
|
47
|
+
metrics:
|
|
48
|
+
- 最大容量
|
|
49
|
+
- 效能衰退曲線
|
|
50
|
+
- 恢復時間
|
|
51
|
+
approach:
|
|
52
|
+
- 逐步增加負載
|
|
53
|
+
- 監控錯誤與延遲
|
|
54
|
+
- 識別瓶頸
|
|
55
|
+
- 記錄故障閾值
|
|
56
|
+
|
|
57
|
+
spike_testing:
|
|
58
|
+
name: 尖峰測試
|
|
59
|
+
description: 測試流量突然增加的情況
|
|
60
|
+
purpose: 驗證系統處理流量尖峰的能力
|
|
61
|
+
scenarios:
|
|
62
|
+
- 限時搶購
|
|
63
|
+
- 病毒式傳播內容
|
|
64
|
+
- 行銷活動
|
|
65
|
+
- 定時事件
|
|
66
|
+
|
|
67
|
+
soak_testing:
|
|
68
|
+
name: 耐久測試
|
|
69
|
+
abbreviation: 穩定性測試
|
|
70
|
+
description: 測試系統長時間運行的穩定性
|
|
71
|
+
purpose: 發現記憶體洩漏和效能衰退
|
|
72
|
+
duration: 數小時至數天
|
|
73
|
+
watch_for:
|
|
74
|
+
- 記憶體洩漏
|
|
75
|
+
- 連線池耗盡
|
|
76
|
+
- 日誌檔案增長
|
|
77
|
+
- 漸進式效能衰退
|
|
78
|
+
|
|
79
|
+
capacity_testing:
|
|
80
|
+
name: 容量測試
|
|
81
|
+
description: 確定系統最大容量
|
|
82
|
+
purpose: 規劃擴展和基礎設施
|
|
83
|
+
output:
|
|
84
|
+
- 使用者容量上限
|
|
85
|
+
- 資源需求
|
|
86
|
+
- 擴展閾值
|
|
87
|
+
|
|
88
|
+
key_metrics:
|
|
89
|
+
latency:
|
|
90
|
+
name: 延遲
|
|
91
|
+
description: 回應請求所需時間
|
|
92
|
+
percentiles:
|
|
93
|
+
- name: P50
|
|
94
|
+
description: 中位數回應時間
|
|
95
|
+
target: 基準值
|
|
96
|
+
- name: P95
|
|
97
|
+
description: 第 95 百分位
|
|
98
|
+
target: 基準值的 2-3 倍
|
|
99
|
+
- name: P99
|
|
100
|
+
description: 第 99 百分位
|
|
101
|
+
target: 最大不超過基準值 5 倍
|
|
102
|
+
note: "P99 對使用者體驗的影響通常比平均值更重要"
|
|
103
|
+
|
|
104
|
+
throughput:
|
|
105
|
+
name: 吞吐量
|
|
106
|
+
description: 單位時間處理的請求數
|
|
107
|
+
measurements:
|
|
108
|
+
- TPS (每秒交易數)
|
|
109
|
+
- RPS (每秒請求數)
|
|
110
|
+
- QPS (每秒查詢數)
|
|
111
|
+
considerations:
|
|
112
|
+
- 尖峰 vs 持續負載
|
|
113
|
+
- 併發使用者 vs 請求數
|
|
114
|
+
|
|
115
|
+
error_rate:
|
|
116
|
+
name: 錯誤率
|
|
117
|
+
description: 失敗請求的百分比
|
|
118
|
+
targets:
|
|
119
|
+
acceptable: "<0.1%"
|
|
120
|
+
degraded: "<1%"
|
|
121
|
+
critical: ">1%"
|
|
122
|
+
|
|
123
|
+
resource_utilization:
|
|
124
|
+
name: 資源使用率
|
|
125
|
+
description: 系統資源消耗
|
|
126
|
+
measurements:
|
|
127
|
+
- CPU 使用率
|
|
128
|
+
- 記憶體使用率
|
|
129
|
+
- 網路 I/O
|
|
130
|
+
- 磁碟 I/O
|
|
131
|
+
- 連線池使用率
|
|
132
|
+
|
|
133
|
+
service_level_objectives:
|
|
134
|
+
name: 服務等級目標
|
|
135
|
+
description: 定義可量測的效能目標
|
|
136
|
+
template:
|
|
137
|
+
latency_slo: "P99 延遲 < 200ms"
|
|
138
|
+
availability_slo: "99.9% 可用性"
|
|
139
|
+
throughput_slo: "持續 1000 RPS"
|
|
140
|
+
error_slo: "錯誤率 < 0.1%"
|
|
141
|
+
note: "SLO 應基於使用者需求,而非系統能力"
|
|
142
|
+
|
|
143
|
+
rules:
|
|
144
|
+
- id: baseline-first
|
|
145
|
+
trigger: 開始效能測試
|
|
146
|
+
instruction: 在優化前先建立基準指標
|
|
147
|
+
priority: required
|
|
148
|
+
|
|
149
|
+
- id: realistic-data
|
|
150
|
+
trigger: 設置測試環境
|
|
151
|
+
instruction: 使用接近生產環境的資料量和模式
|
|
152
|
+
priority: required
|
|
153
|
+
|
|
154
|
+
- id: isolate-environment
|
|
155
|
+
trigger: 執行效能測試
|
|
156
|
+
instruction: 使用隔離環境避免干擾
|
|
157
|
+
priority: required
|
|
158
|
+
|
|
159
|
+
- id: gradual-load
|
|
160
|
+
trigger: 執行負載測試
|
|
161
|
+
instruction: 逐步增加負載以識別閾值
|
|
162
|
+
priority: recommended
|
|
163
|
+
|
|
164
|
+
- id: monitor-resources
|
|
165
|
+
trigger: 測試執行期間
|
|
166
|
+
instruction: 監控所有系統資源 (CPU、記憶體、I/O)
|
|
167
|
+
priority: required
|
|
168
|
+
|
|
169
|
+
- id: percentile-focus
|
|
170
|
+
trigger: 分析結果
|
|
171
|
+
instruction: 關注 P95/P99 延遲,而非平均值
|
|
172
|
+
priority: required
|
|
173
|
+
|
|
174
|
+
- id: regression-testing
|
|
175
|
+
trigger: 程式碼變更後
|
|
176
|
+
instruction: 在 CI/CD 中包含效能回歸測試
|
|
177
|
+
priority: recommended
|
|
178
|
+
|
|
179
|
+
test_phases:
|
|
180
|
+
phase_1_baseline:
|
|
181
|
+
name: 第一階段:基準測試
|
|
182
|
+
description: 建立當前效能基準
|
|
183
|
+
activities:
|
|
184
|
+
- 以最小負載執行測試
|
|
185
|
+
- 記錄當前指標
|
|
186
|
+
- 識別現有問題
|
|
187
|
+
duration: 1-2 天
|
|
188
|
+
|
|
189
|
+
phase_2_load:
|
|
190
|
+
name: 第二階段:負載測試
|
|
191
|
+
description: 正常負載測試
|
|
192
|
+
activities:
|
|
193
|
+
- 模擬預期流量
|
|
194
|
+
- 驗證 SLO 合規性
|
|
195
|
+
- 監控資源使用
|
|
196
|
+
duration: 2-3 天
|
|
197
|
+
|
|
198
|
+
phase_3_stress:
|
|
199
|
+
name: 第三階段:壓力測試
|
|
200
|
+
description: 超出正常容量測試
|
|
201
|
+
activities:
|
|
202
|
+
- 增加負載直到故障
|
|
203
|
+
- 記錄故障點
|
|
204
|
+
- 測試恢復程序
|
|
205
|
+
duration: 1-2 天
|
|
206
|
+
|
|
207
|
+
phase_4_soak:
|
|
208
|
+
name: 第四階段:耐久測試
|
|
209
|
+
description: 長時間測試
|
|
210
|
+
activities:
|
|
211
|
+
- 運行 24-72 小時
|
|
212
|
+
- 監控效能衰退
|
|
213
|
+
- 檢查記憶體洩漏
|
|
214
|
+
duration: 1-3 天
|
|
215
|
+
|
|
216
|
+
ci_integration:
|
|
217
|
+
approach: 在 CI 中執行輕量級效能測試
|
|
218
|
+
example_k6: |
|
|
219
|
+
import http from 'k6/http';
|
|
220
|
+
import { check, sleep } from 'k6';
|
|
221
|
+
|
|
222
|
+
export const options = {
|
|
223
|
+
stages: [
|
|
224
|
+
{ duration: '30s', target: 10 },
|
|
225
|
+
{ duration: '1m', target: 10 },
|
|
226
|
+
{ duration: '30s', target: 0 },
|
|
227
|
+
],
|
|
228
|
+
thresholds: {
|
|
229
|
+
http_req_duration: ['p(95)<500'],
|
|
230
|
+
http_req_failed: ['rate<0.01'],
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export default function () {
|
|
235
|
+
const res = http.get('https://api.example.com/health');
|
|
236
|
+
check(res, { 'status 200': (r) => r.status === 200 });
|
|
237
|
+
sleep(1);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
github_actions: |
|
|
241
|
+
name: Performance Test
|
|
242
|
+
on:
|
|
243
|
+
pull_request:
|
|
244
|
+
branches: [main]
|
|
245
|
+
jobs:
|
|
246
|
+
k6:
|
|
247
|
+
runs-on: ubuntu-latest
|
|
248
|
+
steps:
|
|
249
|
+
- uses: actions/checkout@v4
|
|
250
|
+
- name: Run k6 test
|
|
251
|
+
uses: grafana/k6-action@v0.3.1
|
|
252
|
+
with:
|
|
253
|
+
filename: tests/performance/load-test.js
|
|
254
|
+
|
|
255
|
+
quick_reference:
|
|
256
|
+
test_types:
|
|
257
|
+
columns: [類型, 目的, 時長, 時機]
|
|
258
|
+
rows:
|
|
259
|
+
- [負載測試, 正常流量, 分鐘, 每次發布]
|
|
260
|
+
- [壓力測試, 找出極限, 小時, 主要發布]
|
|
261
|
+
- [尖峰測試, 突發流量, 分鐘, 視需求]
|
|
262
|
+
- [耐久測試, 長期穩定性, 天, 每季]
|
|
263
|
+
- [容量測試, 最大容量, 小時, 規劃時]
|
|
264
|
+
|
|
265
|
+
key_metrics:
|
|
266
|
+
columns: [指標, 測量內容, 目標]
|
|
267
|
+
rows:
|
|
268
|
+
- [P50 延遲, 中位數回應, 基準值]
|
|
269
|
+
- [P95 延遲, 典型最差情況, "基準值 2-3 倍"]
|
|
270
|
+
- [P99 延遲, 極端情況, "最大基準值 5 倍"]
|
|
271
|
+
- [吞吐量, 每秒請求數, SLO 定義]
|
|
272
|
+
- [錯誤率, 失敗請求, "<0.1%"]
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# 安全測試 - AI 優化選項
|
|
2
|
+
# 父項: testing
|
|
3
|
+
|
|
4
|
+
id: security-testing
|
|
5
|
+
meta:
|
|
6
|
+
parent: testing
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 安全測試標準和實踐
|
|
9
|
+
language: zh-TW
|
|
10
|
+
references:
|
|
11
|
+
- "OWASP 測試指南"
|
|
12
|
+
- "NIST SP 800-115"
|
|
13
|
+
|
|
14
|
+
best_for:
|
|
15
|
+
- 處理敏感資料的應用程式
|
|
16
|
+
- 金融服務
|
|
17
|
+
- 醫療應用程式
|
|
18
|
+
- 電子商務平台
|
|
19
|
+
- 任何面向公眾的應用程式
|
|
20
|
+
|
|
21
|
+
testing_types:
|
|
22
|
+
static_analysis:
|
|
23
|
+
abbreviation: SAST
|
|
24
|
+
full_name: 靜態應用程式安全測試
|
|
25
|
+
description: 不執行程式碼分析原始碼
|
|
26
|
+
when_to_use: 開發早期、CI/CD 管線
|
|
27
|
+
tools:
|
|
28
|
+
- name: SonarQube
|
|
29
|
+
languages: 多語言
|
|
30
|
+
- name: Semgrep
|
|
31
|
+
languages: 多語言
|
|
32
|
+
- name: CodeQL
|
|
33
|
+
languages: 多語言
|
|
34
|
+
- name: Bandit
|
|
35
|
+
languages: Python
|
|
36
|
+
|
|
37
|
+
dynamic_analysis:
|
|
38
|
+
abbreviation: DAST
|
|
39
|
+
full_name: 動態應用程式安全測試
|
|
40
|
+
description: 測試執行中的應用程式以找出漏洞
|
|
41
|
+
when_to_use: 預備環境、正式上線前
|
|
42
|
+
tools:
|
|
43
|
+
- name: OWASP ZAP
|
|
44
|
+
type: 開源
|
|
45
|
+
- name: Burp Suite
|
|
46
|
+
type: 商業
|
|
47
|
+
- name: Nuclei
|
|
48
|
+
type: 開源
|
|
49
|
+
|
|
50
|
+
dependency_scanning:
|
|
51
|
+
abbreviation: SCA
|
|
52
|
+
full_name: 軟體組成分析
|
|
53
|
+
description: 檢查相依套件的已知漏洞
|
|
54
|
+
when_to_use: 每次建置、持續監控
|
|
55
|
+
tools:
|
|
56
|
+
- name: Snyk
|
|
57
|
+
type: SaaS/CLI
|
|
58
|
+
- name: Dependabot
|
|
59
|
+
type: GitHub 整合
|
|
60
|
+
- name: npm audit
|
|
61
|
+
type: CLI
|
|
62
|
+
- name: OWASP Dependency-Check
|
|
63
|
+
type: 開源
|
|
64
|
+
|
|
65
|
+
penetration_testing:
|
|
66
|
+
abbreviation: Pentest
|
|
67
|
+
full_name: 滲透測試
|
|
68
|
+
description: 由安全專業人員進行的模擬攻擊
|
|
69
|
+
when_to_use: 重大版本發布前、每年
|
|
70
|
+
types:
|
|
71
|
+
- 黑箱(無事先知識)
|
|
72
|
+
- 白箱(完整存取)
|
|
73
|
+
- 灰箱(部分知識)
|
|
74
|
+
|
|
75
|
+
secret_scanning:
|
|
76
|
+
full_name: 機密掃描
|
|
77
|
+
description: 偵測暴露的憑證和機密
|
|
78
|
+
tools:
|
|
79
|
+
- name: GitLeaks
|
|
80
|
+
type: 開源
|
|
81
|
+
- name: TruffleHog
|
|
82
|
+
type: 開源
|
|
83
|
+
- name: GitHub Secret Scanning
|
|
84
|
+
type: GitHub 整合
|
|
85
|
+
|
|
86
|
+
owasp_top_10:
|
|
87
|
+
description: OWASP 十大網路應用程式安全風險
|
|
88
|
+
version: "2021"
|
|
89
|
+
risks:
|
|
90
|
+
- id: A01
|
|
91
|
+
name: 存取控制失效
|
|
92
|
+
test_focus: 授權檢查、權限提升
|
|
93
|
+
- id: A02
|
|
94
|
+
name: 加密失效
|
|
95
|
+
test_focus: 加密、金鑰管理、資料暴露
|
|
96
|
+
- id: A03
|
|
97
|
+
name: 注入攻擊
|
|
98
|
+
test_focus: SQL、NoSQL、OS、LDAP 注入
|
|
99
|
+
- id: A04
|
|
100
|
+
name: 不安全的設計
|
|
101
|
+
test_focus: 安全需求、威脅建模
|
|
102
|
+
- id: A05
|
|
103
|
+
name: 安全設定錯誤
|
|
104
|
+
test_focus: 預設設定、不必要的功能
|
|
105
|
+
- id: A06
|
|
106
|
+
name: 易受攻擊的元件
|
|
107
|
+
test_focus: 過時的相依套件、已知 CVE
|
|
108
|
+
- id: A07
|
|
109
|
+
name: 身分驗證失效
|
|
110
|
+
test_focus: 會話管理、憑證填充
|
|
111
|
+
- id: A08
|
|
112
|
+
name: 軟體和資料完整性失效
|
|
113
|
+
test_focus: CI/CD 管線安全、序列化
|
|
114
|
+
- id: A09
|
|
115
|
+
name: 安全日誌和監控失效
|
|
116
|
+
test_focus: 稽核日誌、警報
|
|
117
|
+
- id: A10
|
|
118
|
+
name: 伺服器端請求偽造
|
|
119
|
+
test_focus: URL 驗證、網路隔離
|
|
120
|
+
|
|
121
|
+
rules:
|
|
122
|
+
- id: sast-in-ci
|
|
123
|
+
trigger: 設定 CI/CD 時
|
|
124
|
+
instruction: 在每個建置管線中包含 SAST
|
|
125
|
+
priority: required
|
|
126
|
+
|
|
127
|
+
- id: dependency-scanning
|
|
128
|
+
trigger: 新增相依套件時
|
|
129
|
+
instruction: 掃描所有相依套件的漏洞
|
|
130
|
+
priority: required
|
|
131
|
+
|
|
132
|
+
- id: secret-scanning
|
|
133
|
+
trigger: 提交程式碼時
|
|
134
|
+
instruction: 推送前掃描暴露的機密
|
|
135
|
+
priority: required
|
|
136
|
+
|
|
137
|
+
- id: dast-staging
|
|
138
|
+
trigger: 部署到預備環境時
|
|
139
|
+
instruction: 對預備環境執行 DAST
|
|
140
|
+
priority: recommended
|
|
141
|
+
|
|
142
|
+
- id: pentest-annually
|
|
143
|
+
trigger: 年度安全審查時
|
|
144
|
+
instruction: 每年至少進行一次滲透測試
|
|
145
|
+
priority: recommended
|
|
146
|
+
|
|
147
|
+
- id: owasp-checklist
|
|
148
|
+
trigger: 安全測試規劃時
|
|
149
|
+
instruction: 測試計畫涵蓋所有 OWASP 十大風險
|
|
150
|
+
priority: required
|
|
151
|
+
|
|
152
|
+
quick_reference:
|
|
153
|
+
testing_types:
|
|
154
|
+
columns: [類型, 縮寫, 時機, 工具]
|
|
155
|
+
rows:
|
|
156
|
+
- [靜態分析, SAST, CI/CD, SonarQube/Semgrep]
|
|
157
|
+
- [動態分析, DAST, 預備環境, OWASP ZAP/Burp]
|
|
158
|
+
- [相依套件掃描, SCA, 每次建置, Snyk/Dependabot]
|
|
159
|
+
- [滲透測試, Pentest, 每年, 人工/專業]
|
|
160
|
+
- [機密掃描, -, 提交前, GitLeaks/TruffleHog]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# 系統測試 - AI 優化選項
|
|
2
|
+
# 父項: testing
|
|
3
|
+
|
|
4
|
+
id: system-testing
|
|
5
|
+
meta:
|
|
6
|
+
parent: testing
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 測試完整系統作為黑盒
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
characteristics:
|
|
12
|
+
scope: 完整系統
|
|
13
|
+
speed: "<10 秒每個測試"
|
|
14
|
+
isolation: 最小(類正式環境)
|
|
15
|
+
pyramid_percentage: 7%
|
|
16
|
+
|
|
17
|
+
rules:
|
|
18
|
+
- id: production-like-environment
|
|
19
|
+
trigger: 設定系統測試時
|
|
20
|
+
instruction: 使用盡可能接近正式環境的設定
|
|
21
|
+
priority: required
|
|
22
|
+
|
|
23
|
+
- id: test-complete-flows
|
|
24
|
+
trigger: 設計系統測試時
|
|
25
|
+
instruction: 測試完整的業務流程,而非個別元件
|
|
26
|
+
priority: required
|
|
27
|
+
|
|
28
|
+
- id: external-service-stubs
|
|
29
|
+
trigger: 處理外部服務時
|
|
30
|
+
instruction: 只對無法控制的外部服務使用 stub
|
|
31
|
+
priority: recommended
|
|
32
|
+
|
|
33
|
+
- id: data-cleanup
|
|
34
|
+
trigger: 測試執行後
|
|
35
|
+
instruction: 確保測試資料在測試後清理
|
|
36
|
+
priority: required
|
|
37
|
+
|
|
38
|
+
when_to_write:
|
|
39
|
+
- 測試完整業務工作流程
|
|
40
|
+
- 測試系統行為
|
|
41
|
+
- 測試元件互動
|
|
42
|
+
- 驗證配置
|
|
43
|
+
- 測試非功能需求
|
|
44
|
+
|
|
45
|
+
environment_setup:
|
|
46
|
+
- name: Docker Compose
|
|
47
|
+
description: 編排所有服務
|
|
48
|
+
example: |
|
|
49
|
+
# docker-compose.test.yml
|
|
50
|
+
services:
|
|
51
|
+
app:
|
|
52
|
+
build: .
|
|
53
|
+
db:
|
|
54
|
+
image: postgres:15
|
|
55
|
+
redis:
|
|
56
|
+
image: redis:7
|
|
57
|
+
|
|
58
|
+
- name: Testcontainers
|
|
59
|
+
description: 程式化容器管理
|
|
60
|
+
example: |
|
|
61
|
+
const postgres = await new PostgreSqlContainer().start();
|
|
62
|
+
const redis = await new GenericContainer('redis:7').start();
|
|
63
|
+
|
|
64
|
+
test_patterns:
|
|
65
|
+
- name: API 契約測試
|
|
66
|
+
description: 驗證 API 行為符合契約
|
|
67
|
+
example: |
|
|
68
|
+
describe('User API Contract', () => {
|
|
69
|
+
it('POST /users returns 201 with valid data', async () => {
|
|
70
|
+
const res = await api.post('/users').send(validUser);
|
|
71
|
+
expect(res.status).toBe(201);
|
|
72
|
+
expect(res.body).toMatchSchema(userSchema);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
- name: 工作流程測試
|
|
77
|
+
description: 測試完整業務流程
|
|
78
|
+
example: |
|
|
79
|
+
describe('Order Workflow', () => {
|
|
80
|
+
it('completes purchase flow', async () => {
|
|
81
|
+
await createUser();
|
|
82
|
+
await addToCart(product);
|
|
83
|
+
await checkout();
|
|
84
|
+
await verifyOrder();
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
tools:
|
|
89
|
+
orchestration:
|
|
90
|
+
- Docker Compose
|
|
91
|
+
- Kubernetes (minikube)
|
|
92
|
+
- Testcontainers
|
|
93
|
+
api_testing:
|
|
94
|
+
- Postman/Newman
|
|
95
|
+
- REST Assured
|
|
96
|
+
- Supertest
|
|
97
|
+
contract_testing:
|
|
98
|
+
- Pact
|
|
99
|
+
- Spring Cloud Contract
|
|
100
|
+
|
|
101
|
+
coverage_target: "關鍵業務工作流程"
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# 單元測試 - AI 優化選項
|
|
2
|
+
# 父項: testing
|
|
3
|
+
|
|
4
|
+
id: unit-testing
|
|
5
|
+
meta:
|
|
6
|
+
parent: testing
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 隔離測試個別函式和方法
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
characteristics:
|
|
12
|
+
scope: 單一函式或方法
|
|
13
|
+
speed: "<100ms 每個測試"
|
|
14
|
+
isolation: 完全隔離(無外部相依性)
|
|
15
|
+
pyramid_percentage: 70%
|
|
16
|
+
|
|
17
|
+
rules:
|
|
18
|
+
- id: test-one-thing
|
|
19
|
+
trigger: 撰寫單元測試時
|
|
20
|
+
instruction: 每個測試應只驗證一個行為
|
|
21
|
+
priority: required
|
|
22
|
+
|
|
23
|
+
- id: isolate-dependencies
|
|
24
|
+
trigger: 測試有相依性時
|
|
25
|
+
instruction: 對外部相依性使用 stub/mock
|
|
26
|
+
priority: required
|
|
27
|
+
|
|
28
|
+
- id: fast-execution
|
|
29
|
+
trigger: 撰寫單元測試時
|
|
30
|
+
instruction: 單元測試必須在 100ms 內執行完成
|
|
31
|
+
priority: required
|
|
32
|
+
|
|
33
|
+
- id: naming-convention
|
|
34
|
+
trigger: 命名單元測試時
|
|
35
|
+
instruction: 使用模式 methodName_scenario_expectedResult
|
|
36
|
+
priority: recommended
|
|
37
|
+
examples:
|
|
38
|
+
good:
|
|
39
|
+
- "calculateTotal_withEmptyCart_returnsZero"
|
|
40
|
+
- "validateEmail_withInvalidFormat_returnsFalse"
|
|
41
|
+
bad:
|
|
42
|
+
- "test1"
|
|
43
|
+
- "testCalculate"
|
|
44
|
+
|
|
45
|
+
- id: arrange-act-assert
|
|
46
|
+
trigger: 組織測試結構時
|
|
47
|
+
instruction: 在測試內文中遵循 AAA 模式
|
|
48
|
+
priority: required
|
|
49
|
+
|
|
50
|
+
structure:
|
|
51
|
+
pattern: "Arrange-Act-Assert"
|
|
52
|
+
example: |
|
|
53
|
+
// Arrange - 準備
|
|
54
|
+
const calculator = new Calculator();
|
|
55
|
+
const input = 5;
|
|
56
|
+
|
|
57
|
+
// Act - 執行
|
|
58
|
+
const result = calculator.square(input);
|
|
59
|
+
|
|
60
|
+
// Assert - 驗證
|
|
61
|
+
expect(result).toBe(25);
|
|
62
|
+
|
|
63
|
+
when_to_write:
|
|
64
|
+
- 測試純函式
|
|
65
|
+
- 測試商業邏輯
|
|
66
|
+
- 測試資料轉換
|
|
67
|
+
- 測試驗證規則
|
|
68
|
+
- 測試邊緣案例和邊界
|
|
69
|
+
|
|
70
|
+
when_not_to_write:
|
|
71
|
+
- 測試框架程式碼
|
|
72
|
+
- 測試簡單的 getter/setter
|
|
73
|
+
- 測試第三方函式庫
|
|
74
|
+
|
|
75
|
+
coverage_target: "商業邏輯的 80%"
|
|
76
|
+
|
|
77
|
+
tools:
|
|
78
|
+
javascript: [Jest, Vitest, Mocha]
|
|
79
|
+
python: [pytest, unittest]
|
|
80
|
+
java: [JUnit, TestNG]
|
|
81
|
+
csharp: [xUnit, NUnit, MSTest]
|
|
82
|
+
go: [testing package, testify]
|