一键导入
write-tests
Use when adding or improving test coverage for KimPay - guides choosing the right test level and writing meaningful payment/concurrency/security tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding or improving test coverage for KimPay - guides choosing the right test level and writing meaningful payment/concurrency/security tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when reviewing a KimPay change or PR - applies a payment-gateway-specific checklist covering correctness, security, concurrency, and module hygiene.
Use when building, packaging, or deploying KimPay - covers the build, container image, required environment/secrets, migrations, and health verification.
Use when investigating a bug, test failure, or unexpected behavior in KimPay - enforces root-cause analysis and a regression test before any fix.
Use when adding a new feature or endpoint to KimPay - guides spec-driven, TDD implementation that respects module boundaries and payment security rules.
Use when restructuring KimPay code without changing behavior - enforces green-tests-before-and-after and respect for module boundaries.
基于 SOC 职业分类
| name | write-tests |
| description | Use when adding or improving test coverage for KimPay - guides choosing the right test level and writing meaningful payment/concurrency/security tests. |
Write tests that prove behavior and protect money-correctness. See .claude/rules/testing-strategy.md for the full strategy.
@DataJpaTest: repository query methods and mappings.@SpringBootTest + MockMvc: controller wiring, validation, security filters. Runs on H2 (PostgreSQL mode).authenticateRejectsWrongSecret).@BeforeEach (delete in FK-safe order for integration tests).{ code } envelope, persisted state) — not internal exception text.addFilters = false.