# Testing strategy

> Testing strategy is an open-source agent skill for developer tools. Guides an agent to decide what to test and how before any test file is written. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/xD4O/praxis/tree/main/skills/testing-strategy
- **Repository:** https://github.com/xd4o/praxis
- **GitHub stars:** 28
- **License:** MIT
- **Skill name:** testing-strategy
- **Collection:** https://github.com/xD4O/praxis
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill walks the agent through a fixed sequence of gates for test design. The agent classifies each unit as pure logic, an I/O boundary, an integration, or a regression, then ranks the ways the code could fail by damage and likelihood so tests follow that ranking rather than coverage numbers.

For bug fixes it requires a regression test that is run against the unfixed code to confirm it fails, then against the fixed code to confirm it passes. It also includes a flakiness audit covering timing, shared state, ordering and external calls, and it requires an explicit list of what the tests do not cover. The workflow ends with a structured strategy report and a confidence rating.

The skill is written as a pure instruction document with no scripts or reference files. It hands off to a test-driven development skill when Superpowers is installed, and otherwise has the agent write the tests directly.

## When your agent uses it

> MANDATORY test design protocol. You MUST invoke this skill before writing tests for new code, deciding test scope for a feature, or declaring any bug fixed. Do NOT chase coverage percentages. Do NOT call a bug fixed without a regression test that fails on the old code. Invoke this BEFORE writing the first test, not after the suite exists.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/xD4O/praxis/tree/HEAD/skills/testing-strategy)
- [License: MIT](https://github.com/xD4O/praxis/tree/HEAD/skills/testing-strategy)

## Features

- **Unit classification:** Sorts each unit of work into pure logic, I/O boundary, integration or regression before choosing a test type.
- **Failure mode ranking:** Orders possible failures by damage and likelihood so the most harmful cases are tested first.
- **Regression test gate:** Requires a test that fails on the old code and passes after the fix, with both runs observed.
- **Flakiness audit:** Checks new tests for timing, shared state, ordering and external call problems before accepting them.
- **Explicit coverage gaps:** Requires a written list of what the test suite does not protect against.
- **Strategy report format:** Produces a structured summary of classification, covered failure modes and a confidence level.

## Good for

- Plan which tests a new feature needs before writing any test code
- Confirm a bug is fixed with a regression test that fails on the old code
- Audit a new test for flakiness caused by timing or shared state
- Decide the test scope for a module that mixes logic with file or network I/O
- List what a test suite leaves unprotected

## Install

### Claude Code

This skill ships in the `praxis` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add xD4O/praxis
/plugin install praxis@praxis
```

Or copy only this skill to `~/.claude/skills/testing-strategy`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xD4O/praxis.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/testing-strategy &&
cp -R "$tmp/skills/testing-strategy" ~/.claude/skills/testing-strategy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/testing-strategy` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/testing-strategy` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xD4O/praxis.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/testing-strategy &&
cp -R "$tmp/skills/testing-strategy" ~/.agents/skills/testing-strategy &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/testing-strategy` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/testing-strategy` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xD4O/praxis.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/testing-strategy &&
cp -R "$tmp/skills/testing-strategy" ~/.cursor/skills/testing-strategy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/testing-strategy` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/xD4O/praxis.git --path skills/testing-strategy
```

Or copy the folder to `~/.gemini/skills/testing-strategy` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/testing-strategy`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/xD4O/praxis.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/testing-strategy &&
cp -R "$tmp/skills/testing-strategy" ~/.copilot/skills/testing-strategy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/testing-strategy` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/xD4O/praxis.git
```

Then copy `praxis/skills/testing-strategy` into your agent's skills folder as `testing-strategy`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

Its description says the agent must invoke it before writing tests for new code, deciding test scope for a feature, or declaring a bug fixed, and before writing the first test.

### Does Testing strategy write the tests itself?

Not necessarily. If Superpowers is installed it hands the strategy to the test-driven-development skill to write the tests; otherwise the agent writes them in failure-mode rank order.

### Does Testing strategy need any scripts or external tools?

No scripts are included and no allowed tools are set. The skill is a single SKILL.md file.

### Does Testing strategy target a specific language or framework?

The SKILL.md does not name a language or test framework.

### How do I install Testing strategy in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/testing-strategy to use it in all your projects, or to .claude/skills/testing-strategy in one project. Or install the praxis plugin, which includes it: /plugin marketplace add xD4O/praxis, then /plugin install praxis@praxis.

### Does Testing strategy run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Testing strategy?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Testing strategy?

The closest alternatives to Testing strategy are TDD, TDD, Breakdown test, Property based testing and Ci.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [TDD](https://ai-powered.com/skills/tdd-michael-denyer): TDD is an open-source agent skill for developer tools.
- [TDD](https://ai-powered.com/skills/tdd): TDD is an open-source agent skill for developer tools.
- [Breakdown test](https://ai-powered.com/skills/breakdown-test): Breakdown test is an open-source agent skill for developer tools.
- [Property based testing](https://ai-powered.com/skills/property-based-testing): Property based testing is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Principle test behavior not implementation](https://ai-powered.com/skills/principle-test-behavior-not-implementation): Principle test behavior not implementation is an open-source agent skill for developer tools.
- [Cpp testing](https://ai-powered.com/skills/cpp-testing): Cpp testing is an open-source agent skill for developer tools.
- [Unittest skill](https://ai-powered.com/skills/unittest-skill): Unittest skill is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/testing-strategy
