Agent Skills
› anthropics/knowledge-work-plugins
› testing-strategy
testing-strategy
GitHub设计平衡覆盖率、速度与维护性的测试策略与计划。根据组件类型(API、数据管道、前端、基础设施)推荐具体测试方法,明确测试重点与排除项,输出包含覆盖目标及示例的测试方案。
触发场景
用户询问如何测试或需要测试策略建议
用户请求编写特定功能的测试计划或测试用例
安装
npx skills add anthropics/knowledge-work-plugins --skill testing-strategy -g -y
SKILL.md
Frontmatter
{
"name": "testing-strategy",
"description": "Design test strategies and test plans. Trigger with \"how should we test\", \"test strategy for\", \"write tests for\", \"test plan\", \"what tests do we need\", or when the user needs help with testing approaches, coverage, or test architecture."
}
Testing Strategy
Design effective testing strategies balancing coverage, speed, and maintenance.
Testing Pyramid
/ E2E \ Few, slow, high confidence
/ Integration \ Some, medium speed
/ Unit Tests \ Many, fast, focused
Strategy by Component Type
- API endpoints: Unit tests for business logic, integration tests for HTTP layer, contract tests for consumers
- Data pipelines: Input validation, transformation correctness, idempotency tests
- Frontend: Component tests, interaction tests, visual regression, accessibility
- Infrastructure: Smoke tests, chaos engineering, load tests
What to Cover
Focus on: business-critical paths, error handling, edge cases, security boundaries, data integrity.
Skip: trivial getters/setters, framework code, one-off scripts.
Output
Produce a test plan with: what to test, test type for each area, coverage targets, and example test cases. Identify gaps in existing coverage.
版本历史
- 6f13415 当前 2026-07-05 18:28


