Testing Strategy

Designs a test plan for your project: what to test and how (unit, integration, end-to-end), what to skip, coverage targets and example test cases, plus gaps in what you have today.

Original by Anthropic · Apache-2.0 license · Source on GitHub

Added by chris · Nov 23, 2026 · Works with Claude, ChatGPT and Gemini

Be the first to copy it

Free, no account needed. How do I add it to my AI?

SKILL.mdRead it before you use it
---
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.

---

Original: https://github.com/anthropics/knowledge-work-plugins/blob/2baf6d1eded3cd7aeff0b5c5918601a5799189b4/engineering/skills/testing-strategy/SKILL.md

Copyright Anthropic

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.

How to add it to your AI

Copy the skill first, then:

Claude
Paste it into a Project's instructions. Or install it as a skill: put SKILL.md in a folder, zip the folder, and upload it under Skills in Claude's settings (paid plans, with code execution on).
ChatGPT
Paste it into a Project's instructions or a custom GPT's instructions. Some plans can also upload it as a skill.
Gemini
Make a new Gem, paste the skill into its instructions, and save. Then chat with that Gem.
Claude Code
Save it as ~/.claude/skills/testing-strategy/SKILL.md. Claude Code uses it whenever a task fits.

Or skip the copying: add the Upskill AI connector to Claude or ChatGPT and ask your AI for this skill by name.

See all