360 Secure SkillHub
360 安全技能中心

testing-strategy

该 Skill 提供测试策略设计指导,按组件类型区分单元、集成、契约、前端和基础设施等测试方式,说明覆盖重点与可跳过项,并输出包含测试范围、测试类型、覆盖率目标和示例测试用例的测试计划,同时识别现有覆盖缺口。

anthropics
热度 0.00
最近更新 2026-10-19 02:07:10
分类:开发依赖:纯提示词应用场景:代码审查 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add anthropics/knowledge-work-plugins/testing-strategy
Metadata
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.