# Prd v07 test planning

> Prd v07 test planning is an open-source agent skill for developer tools. Writes Given-When-Then test cases from PRD specs before implementation begins. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/mattgierhart/PRD-driven-context-engineering/tree/main/.claude/skills/prd-v07-test-planning
- **Repository:** https://github.com/mattgierhart/prd-driven-context-engineering
- **GitHub stars:** 179
- **License:** MIT
- **Skill name:** prd-v07-test-planning
- **Collection:** https://github.com/mattgierhart/PRD-driven-context-engineering
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill guides an agent to define test cases before any code is written, deriving each test from existing EPIC, API, business rule, data model and user journey IDs in a PRD workflow. Each test is recorded with its type, the upstream IDs it covers, a Given-When-Then body, a validation method, a priority and an intended automation path.

The skill sets coverage expectations: each API endpoint should have a happy path and at least one error case, each business rule needs positive, negative and boundary tests, and each core user journey gets an end-to-end test. It also asks the agent to produce a coverage matrix per EPIC and to flag gaps or ambiguous specs in the EPIC's assumptions table instead of guessing response shapes or error codes.

It expects the PRD v0.7 document structure to be present, with EPIC-, API-, DBT-, BR- and UJ- entries already written. It has no bundled scripts and works through the agent's file read, write, search and shell tools.

## When your agent uses it

> Define test cases BEFORE implementation, ensuring every API, business rule, and user journey has verifiable acceptance criteria during PRD v0.7 Build Execution. Triggers on requests to define tests, plan test coverage, create test cases, or when user asks "define tests", "test planning", "what to test?", "test cases", "test coverage", "TEST-", "test-first". Consumes EPIC- (scope), API-, DBT-, BR-, UJ-. Outputs TEST- entries with Given-When-Then format. Feeds v0.7 Implementation Loop.

## What it can access

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

- [Instructions only, no scripts](https://github.com/mattgierhart/PRD-driven-context-engineering/tree/HEAD/.claude/skills/prd-v07-test-planning)
- [Asks for: Read, Write, Edit, Glob, Grep, Bash](https://github.com/mattgierhart/PRD-driven-context-engineering/blob/HEAD/.claude/skills/prd-v07-test-planning/SKILL.md)
- [License: MIT](https://github.com/mattgierhart/PRD-driven-context-engineering/tree/HEAD/.claude/skills/prd-v07-test-planning)

## Features

- **Test-first planning:** Defines acceptance criteria before code is written, so the spec becomes the contract for done.
- **Coverage requirements:** Sets minimum test counts per endpoint, business rule, data constraint and user journey.
- **Given-When-Then format:** Writes each test with preconditions, action and expected outcome in a testable structure.
- **Traceability to specs:** Links every test back to the upstream API, rule, journey or data model IDs it verifies.
- **Coverage matrix and gaps:** Produces a per-epic matrix showing which specs have tests and which are missing.
- **Ambiguity flagging:** Logs unclear requirements as ambiguities rather than inventing details in tests.

## Good for

- Plan test cases for a new login and signup epic before development starts
- Write Given-When-Then tests for a pricing or usage-limit business rule
- Check which API endpoints in a specification lack error-case tests
- Create end-to-end test specs for an onboarding user journey
- Turn a PRD's test-planning phase into a test automation file list

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/prd-v07-test-planning` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/prd-v07-test-planning &&
cp -R "$tmp/.claude/skills/prd-v07-test-planning" ~/.claude/skills/prd-v07-test-planning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/prd-v07-test-planning` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/prd-v07-test-planning` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/prd-v07-test-planning &&
cp -R "$tmp/.claude/skills/prd-v07-test-planning" ~/.agents/skills/prd-v07-test-planning &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/prd-v07-test-planning` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/prd-v07-test-planning` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/prd-v07-test-planning &&
cp -R "$tmp/.claude/skills/prd-v07-test-planning" ~/.cursor/skills/prd-v07-test-planning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/prd-v07-test-planning` 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/mattgierhart/PRD-driven-context-engineering.git --path .claude/skills/prd-v07-test-planning
```

Or copy the folder to `~/.gemini/skills/prd-v07-test-planning` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/prd-v07-test-planning`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/prd-v07-test-planning &&
cp -R "$tmp/.claude/skills/prd-v07-test-planning" ~/.copilot/skills/prd-v07-test-planning &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/prd-v07-test-planning` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering.git
```

Then copy `PRD-driven-context-engineering/.claude/skills/prd-v07-test-planning` into your agent's skills folder as `prd-v07-test-planning`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Prd v07 test planning need to run?

It expects PRD v0.7 specifications to exist first, including EPIC scope entries and the API, data model, business rule and user journey IDs they reference.

### When does Prd v07 test planning trigger?

It triggers on requests such as define tests, plan test coverage, create test cases, test-first, or mentions of TEST- identifiers.

### Does Prd v07 test planning run any tests or scripts?

No. The skill bundles no scripts and only writes test specifications; it does not execute tests.

### What output does Prd v07 test planning create?

TEST- entries in Given-When-Then format, a per-epic coverage matrix and a test automation specification mapping critical tests to file paths.

### How do I install Prd v07 test planning in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/prd-v07-test-planning to use it in all your projects, or to .claude/skills/prd-v07-test-planning in one project.

### Does Prd v07 test planning 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 Prd v07 test planning?

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 Prd v07 test planning?

The closest alternatives to Prd v07 test planning are Prd v07 implementation loop, Prd v07 epic scoping, Prd v08 release planning, Prd v06 technical specification and Prd v08 runbook creation.

## Where this comes from

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

## Alternatives

- [Prd v07 implementation loop](https://ai-powered.com/skills/prd-v07-implementation-loop): Prd v07 implementation loop is an open-source agent skill for developer tools.
- [Prd v07 epic scoping](https://ai-powered.com/skills/prd-v07-epic-scoping): Prd v07 epic scoping is an open-source agent skill for developer tools.
- [Prd v08 release planning](https://ai-powered.com/skills/prd-v08-release-planning): Prd v08 release planning is an open-source agent skill for developer tools.
- [Prd v06 technical specification](https://ai-powered.com/skills/prd-v06-technical-specification): Prd v06 technical specification is an open-source agent skill for developer tools.
- [Prd v08 runbook creation](https://ai-powered.com/skills/prd-v08-runbook-creation): Prd v08 runbook creation 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.
- [Prd v06 architecture design](https://ai-powered.com/skills/prd-v06-architecture-design): Prd v06 architecture design is an open-source agent skill for design and media.
- [Prd v06 environment setup](https://ai-powered.com/skills/prd-v06-environment-setup): Prd v06 environment setup is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/prd-v07-test-planning
