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-CN
|
|
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-CN
|
|
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-CN
|
|
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]
|