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.
Files changed (433) hide show
  1. package/bin/uds.js +2 -0
  2. package/bundled/core/ai-instruction-standards.md +205 -0
  3. package/bundled/core/anti-hallucination.md +684 -0
  4. package/bundled/core/changelog-standards.md +556 -0
  5. package/bundled/core/checkin-standards.md +935 -0
  6. package/bundled/core/code-review-checklist.md +684 -0
  7. package/bundled/core/commit-message-guide.md +915 -0
  8. package/bundled/core/documentation-structure.md +1117 -0
  9. package/bundled/core/documentation-writing-standards.md +487 -0
  10. package/bundled/core/error-code-standards.md +382 -0
  11. package/bundled/core/git-workflow.md +859 -0
  12. package/bundled/core/logging-standards.md +323 -0
  13. package/bundled/core/project-structure.md +354 -0
  14. package/bundled/core/refactoring-standards.md +636 -0
  15. package/bundled/core/spec-driven-development.md +207 -0
  16. package/bundled/core/test-completeness-dimensions.md +536 -0
  17. package/bundled/core/test-driven-development.md +995 -0
  18. package/bundled/core/testing-standards.md +3061 -0
  19. package/bundled/core/versioning.md +902 -0
  20. package/bundled/locales/README.md +88 -0
  21. package/bundled/locales/zh-CN/CHANGELOG.md +705 -0
  22. package/bundled/locales/zh-CN/CLAUDE.md +213 -0
  23. package/bundled/locales/zh-CN/MAINTENANCE.md +689 -0
  24. package/bundled/locales/zh-CN/README.md +707 -0
  25. package/bundled/locales/zh-CN/STANDARDS-MAPPING.md +177 -0
  26. package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +392 -0
  27. package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +302 -0
  28. package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +332 -0
  29. package/bundled/locales/zh-CN/adoption/checklists/minimal.md +141 -0
  30. package/bundled/locales/zh-CN/adoption/checklists/recommended.md +272 -0
  31. package/bundled/locales/zh-CN/ai/MAINTENANCE.md +739 -0
  32. package/bundled/locales/zh-CN/ai/options/changelog/auto-generated.ai.yaml +76 -0
  33. package/bundled/locales/zh-CN/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
  34. package/bundled/locales/zh-CN/ai/options/code-review/automated-review.ai.yaml +120 -0
  35. package/bundled/locales/zh-CN/ai/options/code-review/pair-programming.ai.yaml +109 -0
  36. package/bundled/locales/zh-CN/ai/options/code-review/pr-review.ai.yaml +104 -0
  37. package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +105 -0
  38. package/bundled/locales/zh-CN/ai/options/commit-message/english.ai.yaml +79 -0
  39. package/bundled/locales/zh-CN/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
  40. package/bundled/locales/zh-CN/ai/options/documentation/api-docs.ai.yaml +140 -0
  41. package/bundled/locales/zh-CN/ai/options/documentation/markdown-docs.ai.yaml +89 -0
  42. package/bundled/locales/zh-CN/ai/options/documentation/wiki-style.ai.yaml +119 -0
  43. package/bundled/locales/zh-CN/ai/options/git-workflow/gitflow.ai.yaml +133 -0
  44. package/bundled/locales/zh-CN/ai/options/git-workflow/github-flow.ai.yaml +73 -0
  45. package/bundled/locales/zh-CN/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
  46. package/bundled/locales/zh-CN/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
  47. package/bundled/locales/zh-CN/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
  48. package/bundled/locales/zh-CN/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
  49. package/bundled/locales/zh-CN/ai/options/project-structure/dotnet.ai.yaml +108 -0
  50. package/bundled/locales/zh-CN/ai/options/project-structure/go.ai.yaml +115 -0
  51. package/bundled/locales/zh-CN/ai/options/project-structure/java.ai.yaml +113 -0
  52. package/bundled/locales/zh-CN/ai/options/project-structure/kotlin.ai.yaml +123 -0
  53. package/bundled/locales/zh-CN/ai/options/project-structure/nodejs.ai.yaml +101 -0
  54. package/bundled/locales/zh-CN/ai/options/project-structure/php.ai.yaml +147 -0
  55. package/bundled/locales/zh-CN/ai/options/project-structure/python.ai.yaml +116 -0
  56. package/bundled/locales/zh-CN/ai/options/project-structure/ruby.ai.yaml +140 -0
  57. package/bundled/locales/zh-CN/ai/options/project-structure/rust.ai.yaml +117 -0
  58. package/bundled/locales/zh-CN/ai/options/project-structure/swift.ai.yaml +143 -0
  59. package/bundled/locales/zh-CN/ai/options/testing/contract-testing.ai.yaml +254 -0
  60. package/bundled/locales/zh-CN/ai/options/testing/e2e-testing.ai.yaml +116 -0
  61. package/bundled/locales/zh-CN/ai/options/testing/industry-pyramid.ai.yaml +144 -0
  62. package/bundled/locales/zh-CN/ai/options/testing/integration-testing.ai.yaml +90 -0
  63. package/bundled/locales/zh-CN/ai/options/testing/istqb-framework.ai.yaml +108 -0
  64. package/bundled/locales/zh-CN/ai/options/testing/performance-testing.ai.yaml +272 -0
  65. package/bundled/locales/zh-CN/ai/options/testing/security-testing.ai.yaml +160 -0
  66. package/bundled/locales/zh-CN/ai/options/testing/system-testing.ai.yaml +101 -0
  67. package/bundled/locales/zh-CN/ai/options/testing/unit-testing.ai.yaml +82 -0
  68. package/bundled/locales/zh-CN/ai/standards/anti-hallucination.ai.yaml +145 -0
  69. package/bundled/locales/zh-CN/ai/standards/changelog.ai.yaml +146 -0
  70. package/bundled/locales/zh-CN/ai/standards/checkin-standards.ai.yaml +170 -0
  71. package/bundled/locales/zh-CN/ai/standards/code-review.ai.yaml +148 -0
  72. package/bundled/locales/zh-CN/ai/standards/commit-message.ai.yaml +175 -0
  73. package/bundled/locales/zh-CN/ai/standards/documentation-structure.ai.yaml +124 -0
  74. package/bundled/locales/zh-CN/ai/standards/documentation-writing-standards.ai.yaml +190 -0
  75. package/bundled/locales/zh-CN/ai/standards/error-codes.ai.yaml +139 -0
  76. package/bundled/locales/zh-CN/ai/standards/git-workflow.ai.yaml +95 -0
  77. package/bundled/locales/zh-CN/ai/standards/logging.ai.yaml +128 -0
  78. package/bundled/locales/zh-CN/ai/standards/project-structure.ai.yaml +134 -0
  79. package/bundled/locales/zh-CN/ai/standards/spec-driven-development.ai.yaml +169 -0
  80. package/bundled/locales/zh-CN/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
  81. package/bundled/locales/zh-CN/ai/standards/testing.ai.yaml +137 -0
  82. package/bundled/locales/zh-CN/ai/standards/versioning.ai.yaml +211 -0
  83. package/bundled/locales/zh-CN/core/ai-instruction-standards.md +213 -0
  84. package/bundled/locales/zh-CN/core/anti-hallucination.md +691 -0
  85. package/bundled/locales/zh-CN/core/changelog-standards.md +147 -0
  86. package/bundled/locales/zh-CN/core/checkin-standards.md +943 -0
  87. package/bundled/locales/zh-CN/core/code-review-guide.md +693 -0
  88. package/bundled/locales/zh-CN/core/commit-message-guide.md +129 -0
  89. package/bundled/locales/zh-CN/core/documentation-structure.md +173 -0
  90. package/bundled/locales/zh-CN/core/documentation-writing-standards.md +495 -0
  91. package/bundled/locales/zh-CN/core/error-code-standards.md +180 -0
  92. package/bundled/locales/zh-CN/core/git-workflow.md +193 -0
  93. package/bundled/locales/zh-CN/core/logging-standards.md +174 -0
  94. package/bundled/locales/zh-CN/core/project-structure.md +184 -0
  95. package/bundled/locales/zh-CN/core/refactoring-standards.md +642 -0
  96. package/bundled/locales/zh-CN/core/spec-driven-development.md +215 -0
  97. package/bundled/locales/zh-CN/core/test-completeness-dimensions.md +544 -0
  98. package/bundled/locales/zh-CN/core/test-driven-development.md +1002 -0
  99. package/bundled/locales/zh-CN/core/testing-standards.md +170 -0
  100. package/bundled/locales/zh-CN/core/versioning.md +177 -0
  101. package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +303 -0
  102. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +990 -0
  103. package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +1064 -0
  104. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +333 -0
  105. package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +215 -0
  106. package/bundled/locales/zh-CN/integrations/codex/AGENTS.md +115 -0
  107. package/bundled/locales/zh-CN/integrations/codex/README.md +67 -0
  108. package/bundled/locales/zh-CN/integrations/gemini-cli/GEMINI.md +102 -0
  109. package/bundled/locales/zh-CN/integrations/gemini-cli/README.md +140 -0
  110. package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
  111. package/bundled/locales/zh-CN/integrations/github-copilot/README.md +167 -0
  112. package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +263 -0
  113. package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +192 -0
  114. package/bundled/locales/zh-CN/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
  115. package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +84 -0
  116. package/bundled/locales/zh-CN/integrations/opencode/AGENTS.md +111 -0
  117. package/bundled/locales/zh-CN/integrations/opencode/README.md +176 -0
  118. package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +396 -0
  119. package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +301 -0
  120. package/bundled/locales/zh-CN/integrations/openspec/README.md +43 -0
  121. package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +184 -0
  122. package/bundled/locales/zh-CN/integrations/spec-kit/README.md +43 -0
  123. package/bundled/locales/zh-CN/options/commit-message/bilingual.md +161 -0
  124. package/bundled/locales/zh-CN/options/commit-message/english.md +137 -0
  125. package/bundled/locales/zh-CN/options/commit-message/traditional-chinese.md +162 -0
  126. package/bundled/locales/zh-CN/options/git-workflow/gitflow.md +147 -0
  127. package/bundled/locales/zh-CN/options/git-workflow/github-flow.md +124 -0
  128. package/bundled/locales/zh-CN/options/git-workflow/merge-commit.md +124 -0
  129. package/bundled/locales/zh-CN/options/git-workflow/rebase-ff.md +160 -0
  130. package/bundled/locales/zh-CN/options/git-workflow/squash-merge.md +117 -0
  131. package/bundled/locales/zh-CN/options/git-workflow/trunk-based.md +125 -0
  132. package/bundled/locales/zh-CN/options/project-structure/dotnet.md +183 -0
  133. package/bundled/locales/zh-CN/options/project-structure/go.md +226 -0
  134. package/bundled/locales/zh-CN/options/project-structure/java.md +213 -0
  135. package/bundled/locales/zh-CN/options/project-structure/nodejs.md +185 -0
  136. package/bundled/locales/zh-CN/options/project-structure/python.md +229 -0
  137. package/bundled/locales/zh-CN/options/testing/e2e-testing.md +207 -0
  138. package/bundled/locales/zh-CN/options/testing/integration-testing.md +230 -0
  139. package/bundled/locales/zh-CN/options/testing/system-testing.md +183 -0
  140. package/bundled/locales/zh-CN/options/testing/unit-testing.md +165 -0
  141. package/bundled/locales/zh-CN/skills/INTEGRATION-GUIDE.md +218 -0
  142. package/bundled/locales/zh-CN/skills/README.md +134 -0
  143. package/bundled/locales/zh-CN/skills/_shared/README.md +68 -0
  144. package/bundled/locales/zh-CN/skills/claude-code/CONTRIBUTING.template.md +151 -0
  145. package/bundled/locales/zh-CN/skills/claude-code/README.md +174 -0
  146. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  147. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
  148. package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
  149. package/bundled/locales/zh-CN/skills/claude-code/changelog-guide/SKILL.md +237 -0
  150. package/bundled/locales/zh-CN/skills/claude-code/checkin-assistant/SKILL.md +407 -0
  151. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/SKILL.md +154 -0
  152. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
  153. package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
  154. package/bundled/locales/zh-CN/skills/claude-code/commands/bdd.md +142 -0
  155. package/bundled/locales/zh-CN/skills/claude-code/commands/methodology.md +274 -0
  156. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/SKILL.md +191 -0
  157. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/conventional-commits.md +264 -0
  158. package/bundled/locales/zh-CN/skills/claude-code/commit-standards/language-options.md +172 -0
  159. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/SKILL.md +421 -0
  160. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
  161. package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/readme-template.md +412 -0
  162. package/bundled/locales/zh-CN/skills/claude-code/error-code-guide/SKILL.md +269 -0
  163. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
  164. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
  165. package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
  166. package/bundled/locales/zh-CN/skills/claude-code/logging-guide/SKILL.md +285 -0
  167. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/SKILL.md +131 -0
  168. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/create-methodology.md +350 -0
  169. package/bundled/locales/zh-CN/skills/claude-code/methodology-system/runtime.md +279 -0
  170. package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  171. package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
  172. package/bundled/locales/zh-CN/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
  173. package/bundled/locales/zh-CN/skills/claude-code/release-standards/SKILL.md +191 -0
  174. package/bundled/locales/zh-CN/skills/claude-code/release-standards/changelog-format.md +247 -0
  175. package/bundled/locales/zh-CN/skills/claude-code/release-standards/release-workflow.md +345 -0
  176. package/bundled/locales/zh-CN/skills/claude-code/release-standards/semantic-versioning.md +250 -0
  177. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/SKILL.md +227 -0
  178. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
  179. package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
  180. package/bundled/locales/zh-CN/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
  181. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/SKILL.md +332 -0
  182. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/language-examples.md +639 -0
  183. package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
  184. package/bundled/locales/zh-CN/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
  185. package/bundled/locales/zh-CN/skills/claude-code/testing-guide/SKILL.md +234 -0
  186. package/bundled/locales/zh-CN/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
  187. package/bundled/locales/zh-CN/skills/cline/README.md +58 -0
  188. package/bundled/locales/zh-CN/skills/copilot/README.md +61 -0
  189. package/bundled/locales/zh-CN/skills/copilot/copilot-instructions.md +79 -0
  190. package/bundled/locales/zh-CN/skills/cursor/README.md +58 -0
  191. package/bundled/locales/zh-CN/skills/windsurf/README.md +59 -0
  192. package/bundled/locales/zh-TW/CHANGELOG.md +707 -0
  193. package/bundled/locales/zh-TW/CLAUDE.md +213 -0
  194. package/bundled/locales/zh-TW/MAINTENANCE.md +683 -0
  195. package/bundled/locales/zh-TW/README.md +687 -0
  196. package/bundled/locales/zh-TW/STANDARDS-MAPPING.md +177 -0
  197. package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +392 -0
  198. package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +299 -0
  199. package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +332 -0
  200. package/bundled/locales/zh-TW/adoption/checklists/minimal.md +141 -0
  201. package/bundled/locales/zh-TW/adoption/checklists/recommended.md +272 -0
  202. package/bundled/locales/zh-TW/ai/MAINTENANCE.md +754 -0
  203. package/bundled/locales/zh-TW/ai/options/changelog/auto-generated.ai.yaml +76 -0
  204. package/bundled/locales/zh-TW/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
  205. package/bundled/locales/zh-TW/ai/options/code-review/automated-review.ai.yaml +120 -0
  206. package/bundled/locales/zh-TW/ai/options/code-review/pair-programming.ai.yaml +109 -0
  207. package/bundled/locales/zh-TW/ai/options/code-review/pr-review.ai.yaml +104 -0
  208. package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +105 -0
  209. package/bundled/locales/zh-TW/ai/options/commit-message/english.ai.yaml +79 -0
  210. package/bundled/locales/zh-TW/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
  211. package/bundled/locales/zh-TW/ai/options/documentation/api-docs.ai.yaml +140 -0
  212. package/bundled/locales/zh-TW/ai/options/documentation/markdown-docs.ai.yaml +89 -0
  213. package/bundled/locales/zh-TW/ai/options/documentation/wiki-style.ai.yaml +119 -0
  214. package/bundled/locales/zh-TW/ai/options/git-workflow/gitflow.ai.yaml +133 -0
  215. package/bundled/locales/zh-TW/ai/options/git-workflow/github-flow.ai.yaml +73 -0
  216. package/bundled/locales/zh-TW/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
  217. package/bundled/locales/zh-TW/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
  218. package/bundled/locales/zh-TW/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
  219. package/bundled/locales/zh-TW/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
  220. package/bundled/locales/zh-TW/ai/options/project-structure/dotnet.ai.yaml +108 -0
  221. package/bundled/locales/zh-TW/ai/options/project-structure/go.ai.yaml +115 -0
  222. package/bundled/locales/zh-TW/ai/options/project-structure/java.ai.yaml +113 -0
  223. package/bundled/locales/zh-TW/ai/options/project-structure/kotlin.ai.yaml +123 -0
  224. package/bundled/locales/zh-TW/ai/options/project-structure/nodejs.ai.yaml +101 -0
  225. package/bundled/locales/zh-TW/ai/options/project-structure/php.ai.yaml +147 -0
  226. package/bundled/locales/zh-TW/ai/options/project-structure/python.ai.yaml +116 -0
  227. package/bundled/locales/zh-TW/ai/options/project-structure/ruby.ai.yaml +140 -0
  228. package/bundled/locales/zh-TW/ai/options/project-structure/rust.ai.yaml +117 -0
  229. package/bundled/locales/zh-TW/ai/options/project-structure/swift.ai.yaml +143 -0
  230. package/bundled/locales/zh-TW/ai/options/testing/contract-testing.ai.yaml +254 -0
  231. package/bundled/locales/zh-TW/ai/options/testing/e2e-testing.ai.yaml +116 -0
  232. package/bundled/locales/zh-TW/ai/options/testing/industry-pyramid.ai.yaml +144 -0
  233. package/bundled/locales/zh-TW/ai/options/testing/integration-testing.ai.yaml +90 -0
  234. package/bundled/locales/zh-TW/ai/options/testing/istqb-framework.ai.yaml +108 -0
  235. package/bundled/locales/zh-TW/ai/options/testing/performance-testing.ai.yaml +272 -0
  236. package/bundled/locales/zh-TW/ai/options/testing/security-testing.ai.yaml +160 -0
  237. package/bundled/locales/zh-TW/ai/options/testing/system-testing.ai.yaml +101 -0
  238. package/bundled/locales/zh-TW/ai/options/testing/unit-testing.ai.yaml +82 -0
  239. package/bundled/locales/zh-TW/ai/standards/anti-hallucination.ai.yaml +145 -0
  240. package/bundled/locales/zh-TW/ai/standards/changelog.ai.yaml +146 -0
  241. package/bundled/locales/zh-TW/ai/standards/checkin-standards.ai.yaml +170 -0
  242. package/bundled/locales/zh-TW/ai/standards/code-review.ai.yaml +148 -0
  243. package/bundled/locales/zh-TW/ai/standards/commit-message.ai.yaml +175 -0
  244. package/bundled/locales/zh-TW/ai/standards/documentation-structure.ai.yaml +124 -0
  245. package/bundled/locales/zh-TW/ai/standards/documentation-writing-standards.ai.yaml +190 -0
  246. package/bundled/locales/zh-TW/ai/standards/error-codes.ai.yaml +139 -0
  247. package/bundled/locales/zh-TW/ai/standards/git-workflow.ai.yaml +95 -0
  248. package/bundled/locales/zh-TW/ai/standards/logging.ai.yaml +128 -0
  249. package/bundled/locales/zh-TW/ai/standards/project-structure.ai.yaml +134 -0
  250. package/bundled/locales/zh-TW/ai/standards/spec-driven-development.ai.yaml +169 -0
  251. package/bundled/locales/zh-TW/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
  252. package/bundled/locales/zh-TW/ai/standards/testing.ai.yaml +137 -0
  253. package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +211 -0
  254. package/bundled/locales/zh-TW/core/ai-instruction-standards.md +213 -0
  255. package/bundled/locales/zh-TW/core/anti-hallucination.md +691 -0
  256. package/bundled/locales/zh-TW/core/changelog-standards.md +564 -0
  257. package/bundled/locales/zh-TW/core/checkin-standards.md +943 -0
  258. package/bundled/locales/zh-TW/core/code-review-checklist.md +693 -0
  259. package/bundled/locales/zh-TW/core/commit-message-guide.md +809 -0
  260. package/bundled/locales/zh-TW/core/documentation-structure.md +1125 -0
  261. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +495 -0
  262. package/bundled/locales/zh-TW/core/error-code-standards.md +384 -0
  263. package/bundled/locales/zh-TW/core/git-workflow.md +860 -0
  264. package/bundled/locales/zh-TW/core/logging-standards.md +325 -0
  265. package/bundled/locales/zh-TW/core/project-structure.md +362 -0
  266. package/bundled/locales/zh-TW/core/refactoring-standards.md +642 -0
  267. package/bundled/locales/zh-TW/core/spec-driven-development.md +215 -0
  268. package/bundled/locales/zh-TW/core/test-completeness-dimensions.md +544 -0
  269. package/bundled/locales/zh-TW/core/test-driven-development.md +1004 -0
  270. package/bundled/locales/zh-TW/core/testing-standards.md +2158 -0
  271. package/bundled/locales/zh-TW/core/versioning.md +909 -0
  272. package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +303 -0
  273. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +990 -0
  274. package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +1064 -0
  275. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +333 -0
  276. package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +215 -0
  277. package/bundled/locales/zh-TW/integrations/codex/AGENTS.md +115 -0
  278. package/bundled/locales/zh-TW/integrations/codex/README.md +113 -0
  279. package/bundled/locales/zh-TW/integrations/gemini-cli/GEMINI.md +102 -0
  280. package/bundled/locales/zh-TW/integrations/gemini-cli/README.md +140 -0
  281. package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
  282. package/bundled/locales/zh-TW/integrations/github-copilot/README.md +167 -0
  283. package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +263 -0
  284. package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +192 -0
  285. package/bundled/locales/zh-TW/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
  286. package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +84 -0
  287. package/bundled/locales/zh-TW/integrations/opencode/AGENTS.md +111 -0
  288. package/bundled/locales/zh-TW/integrations/opencode/README.md +176 -0
  289. package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +396 -0
  290. package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +301 -0
  291. package/bundled/locales/zh-TW/integrations/openspec/README.md +43 -0
  292. package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +184 -0
  293. package/bundled/locales/zh-TW/integrations/spec-kit/README.md +43 -0
  294. package/bundled/locales/zh-TW/options/commit-message/bilingual.md +161 -0
  295. package/bundled/locales/zh-TW/options/commit-message/english.md +137 -0
  296. package/bundled/locales/zh-TW/options/commit-message/traditional-chinese.md +162 -0
  297. package/bundled/locales/zh-TW/options/git-workflow/gitflow.md +147 -0
  298. package/bundled/locales/zh-TW/options/git-workflow/github-flow.md +124 -0
  299. package/bundled/locales/zh-TW/options/git-workflow/merge-commit.md +124 -0
  300. package/bundled/locales/zh-TW/options/git-workflow/rebase-ff.md +160 -0
  301. package/bundled/locales/zh-TW/options/git-workflow/squash-merge.md +117 -0
  302. package/bundled/locales/zh-TW/options/git-workflow/trunk-based.md +125 -0
  303. package/bundled/locales/zh-TW/options/project-structure/dotnet.md +183 -0
  304. package/bundled/locales/zh-TW/options/project-structure/go.md +226 -0
  305. package/bundled/locales/zh-TW/options/project-structure/java.md +213 -0
  306. package/bundled/locales/zh-TW/options/project-structure/nodejs.md +185 -0
  307. package/bundled/locales/zh-TW/options/project-structure/python.md +229 -0
  308. package/bundled/locales/zh-TW/options/testing/e2e-testing.md +207 -0
  309. package/bundled/locales/zh-TW/options/testing/integration-testing.md +230 -0
  310. package/bundled/locales/zh-TW/options/testing/system-testing.md +183 -0
  311. package/bundled/locales/zh-TW/options/testing/unit-testing.md +165 -0
  312. package/bundled/locales/zh-TW/skills/INTEGRATION-GUIDE.md +218 -0
  313. package/bundled/locales/zh-TW/skills/README.md +132 -0
  314. package/bundled/locales/zh-TW/skills/_shared/README.md +68 -0
  315. package/bundled/locales/zh-TW/skills/claude-code/CONTRIBUTING.template.md +151 -0
  316. package/bundled/locales/zh-TW/skills/claude-code/README.md +174 -0
  317. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  318. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
  319. package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
  320. package/bundled/locales/zh-TW/skills/claude-code/changelog-guide/SKILL.md +237 -0
  321. package/bundled/locales/zh-TW/skills/claude-code/checkin-assistant/SKILL.md +407 -0
  322. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/SKILL.md +154 -0
  323. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
  324. package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
  325. package/bundled/locales/zh-TW/skills/claude-code/commands/bdd.md +142 -0
  326. package/bundled/locales/zh-TW/skills/claude-code/commands/methodology.md +274 -0
  327. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/SKILL.md +191 -0
  328. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/conventional-commits.md +264 -0
  329. package/bundled/locales/zh-TW/skills/claude-code/commit-standards/language-options.md +172 -0
  330. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/SKILL.md +421 -0
  331. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
  332. package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/readme-template.md +412 -0
  333. package/bundled/locales/zh-TW/skills/claude-code/error-code-guide/SKILL.md +269 -0
  334. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
  335. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
  336. package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
  337. package/bundled/locales/zh-TW/skills/claude-code/logging-guide/SKILL.md +285 -0
  338. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/SKILL.md +131 -0
  339. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/create-methodology.md +350 -0
  340. package/bundled/locales/zh-TW/skills/claude-code/methodology-system/runtime.md +279 -0
  341. package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  342. package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
  343. package/bundled/locales/zh-TW/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
  344. package/bundled/locales/zh-TW/skills/claude-code/release-standards/SKILL.md +191 -0
  345. package/bundled/locales/zh-TW/skills/claude-code/release-standards/changelog-format.md +247 -0
  346. package/bundled/locales/zh-TW/skills/claude-code/release-standards/release-workflow.md +345 -0
  347. package/bundled/locales/zh-TW/skills/claude-code/release-standards/semantic-versioning.md +250 -0
  348. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/SKILL.md +227 -0
  349. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
  350. package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
  351. package/bundled/locales/zh-TW/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
  352. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/SKILL.md +332 -0
  353. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/language-examples.md +639 -0
  354. package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
  355. package/bundled/locales/zh-TW/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
  356. package/bundled/locales/zh-TW/skills/claude-code/testing-guide/SKILL.md +234 -0
  357. package/bundled/locales/zh-TW/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
  358. package/bundled/locales/zh-TW/skills/cline/README.md +58 -0
  359. package/bundled/locales/zh-TW/skills/copilot/README.md +61 -0
  360. package/bundled/locales/zh-TW/skills/copilot/copilot-instructions.md +79 -0
  361. package/bundled/locales/zh-TW/skills/cursor/README.md +58 -0
  362. package/bundled/locales/zh-TW/skills/windsurf/README.md +59 -0
  363. package/bundled/skills/claude-code/CONTRIBUTING.template.md +141 -0
  364. package/bundled/skills/claude-code/README.md +196 -0
  365. package/bundled/skills/claude-code/ai/standards/checkin.ai.yaml +21 -0
  366. package/bundled/skills/claude-code/ai/standards/commit.ai.yaml +20 -0
  367. package/bundled/skills/claude-code/ai/standards/refactoring.ai.yaml +34 -0
  368. package/bundled/skills/claude-code/ai/standards/testing.ai.yaml +41 -0
  369. package/bundled/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
  370. package/bundled/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +215 -0
  371. package/bundled/skills/claude-code/ai-collaboration-standards/certainty-labels.md +124 -0
  372. package/bundled/skills/claude-code/changelog-guide/SKILL.md +232 -0
  373. package/bundled/skills/claude-code/checkin-assistant/SKILL.md +402 -0
  374. package/bundled/skills/claude-code/code-review-assistant/SKILL.md +220 -0
  375. package/bundled/skills/claude-code/code-review-assistant/checkin-checklist.md +249 -0
  376. package/bundled/skills/claude-code/code-review-assistant/review-checklist.md +238 -0
  377. package/bundled/skills/claude-code/commands/README.md +78 -0
  378. package/bundled/skills/claude-code/commands/bdd.md +142 -0
  379. package/bundled/skills/claude-code/commands/changelog.md +57 -0
  380. package/bundled/skills/claude-code/commands/check.md +91 -0
  381. package/bundled/skills/claude-code/commands/commit.md +48 -0
  382. package/bundled/skills/claude-code/commands/config.md +97 -0
  383. package/bundled/skills/claude-code/commands/coverage.md +58 -0
  384. package/bundled/skills/claude-code/commands/docs.md +75 -0
  385. package/bundled/skills/claude-code/commands/init.md +88 -0
  386. package/bundled/skills/claude-code/commands/methodology.md +268 -0
  387. package/bundled/skills/claude-code/commands/release.md +50 -0
  388. package/bundled/skills/claude-code/commands/requirement.md +54 -0
  389. package/bundled/skills/claude-code/commands/review.md +50 -0
  390. package/bundled/skills/claude-code/commands/spec.md +69 -0
  391. package/bundled/skills/claude-code/commands/tdd.md +86 -0
  392. package/bundled/skills/claude-code/commands/update.md +122 -0
  393. package/bundled/skills/claude-code/commit-standards/SKILL.md +249 -0
  394. package/bundled/skills/claude-code/commit-standards/conventional-commits.md +256 -0
  395. package/bundled/skills/claude-code/commit-standards/language-options.md +164 -0
  396. package/bundled/skills/claude-code/documentation-guide/SKILL.md +416 -0
  397. package/bundled/skills/claude-code/documentation-guide/documentation-structure.md +349 -0
  398. package/bundled/skills/claude-code/documentation-guide/readme-template.md +404 -0
  399. package/bundled/skills/claude-code/error-code-guide/SKILL.md +264 -0
  400. package/bundled/skills/claude-code/git-workflow-guide/SKILL.md +226 -0
  401. package/bundled/skills/claude-code/git-workflow-guide/branch-naming.md +212 -0
  402. package/bundled/skills/claude-code/git-workflow-guide/git-workflow.md +313 -0
  403. package/bundled/skills/claude-code/logging-guide/SKILL.md +280 -0
  404. package/bundled/skills/claude-code/methodology-system/SKILL.md +215 -0
  405. package/bundled/skills/claude-code/methodology-system/create-methodology.md +450 -0
  406. package/bundled/skills/claude-code/methodology-system/runtime.md +271 -0
  407. package/bundled/skills/claude-code/project-structure-guide/SKILL.md +143 -0
  408. package/bundled/skills/claude-code/project-structure-guide/language-patterns.md +263 -0
  409. package/bundled/skills/claude-code/refactoring-assistant/SKILL.md +205 -0
  410. package/bundled/skills/claude-code/release-standards/SKILL.md +191 -0
  411. package/bundled/skills/claude-code/release-standards/changelog-format.md +239 -0
  412. package/bundled/skills/claude-code/release-standards/release-workflow.md +337 -0
  413. package/bundled/skills/claude-code/release-standards/semantic-versioning.md +242 -0
  414. package/bundled/skills/claude-code/requirement-assistant/SKILL.md +222 -0
  415. package/bundled/skills/claude-code/requirement-assistant/requirement-checklist.md +317 -0
  416. package/bundled/skills/claude-code/requirement-assistant/requirement-writing.md +391 -0
  417. package/bundled/skills/claude-code/spec-driven-dev/SKILL.md +238 -0
  418. package/bundled/skills/claude-code/tdd-assistant/SKILL.md +384 -0
  419. package/bundled/skills/claude-code/tdd-assistant/language-examples.md +1276 -0
  420. package/bundled/skills/claude-code/tdd-assistant/tdd-workflow.md +659 -0
  421. package/bundled/skills/claude-code/test-coverage-assistant/SKILL.md +277 -0
  422. package/bundled/skills/claude-code/testing-guide/SKILL.md +317 -0
  423. package/bundled/skills/claude-code/testing-guide/testing-pyramid.md +440 -0
  424. package/package.json +4 -2
  425. package/src/commands/check.js +38 -6
  426. package/src/commands/init.js +20 -6
  427. package/src/commands/list.js +7 -2
  428. package/src/commands/skills.js +0 -2
  429. package/src/commands/update.js +271 -0
  430. package/src/i18n/messages.js +161 -11
  431. package/src/utils/copier.js +63 -10
  432. package/src/utils/skills-installer.js +47 -11
  433. 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]