# Test data strategy

> Test data strategy is an open-source agent skill for developer tools. Guides an agent to build realistic, privacy-safe test data where production data cannot be. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-core/skills/test-data-strategy
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 20
- **License:** MIT
- **Skill name:** test-data-strategy
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill walks the agent through getting usable test data in organizations where production records are off limits. It starts by establishing what data use is permitted and whether an approved masking pipeline or synthetic dataset already exists, then analyzes the shape of production data using aggregate-only queries that return counts, null rates and value distributions rather than personal records.

The workflow covers choosing between hand-written fixtures, generated synthetic data, masked production subsets, recorded traffic and shared seeded environments, and preserving referential integrity, realistic cardinality, temporal consistency and state validity in generated data. It also pushes for deliberate edge cases such as Unicode, apostrophes, empty versus null values, legacy record formats, dead enum values and timezone boundaries. Guidance on seeding generators, committing scripts instead of large datasets, and versioning data alongside schema migrations is included.

The skill expects a workspace with requirements and system map artifacts, and it produces a test data strategy document that records the policy position, shape analysis, generated dataset and explicit coverage limits. It is written for a database-backed system and assumes SQL access to aggregate data.

## When your agent uses it

> Get realistic test data in an organization where production data cannot be copied - synthesis, subsetting, masking with referential integrity preserved, and fixtures for the awkward edge cases that only real systems produce. Use when tests need data you do not have, when verification is blocked because no usable dataset exists, when someone suggests copying production data, when a staging environment is empty or unrealistic, or when a bug only reproduces against real-shaped data. In regulated organizations this is frequently the actual bottleneck to shipping, not the code.

## What it can access

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

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/test-data-strategy)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-core/skills/test-data-strategy)

## Features

- **Permission and policy check:** Establishes whether production data may be used in lower environments and whether masking or synthetic datasets already exist.
- **Aggregate-only shape analysis:** Provides SQL queries that reveal null rates, distributions and legacy values without returning personal records.
- **Approach selection:** Compares hand-written fixtures, generated synthetic data, masked subsets, recorded traffic and shared environments.
- **Referential integrity rules:** Describes generating dependent records in order with valid keys, realistic cardinality and consistent states.
- **Awkward edge case catalogue:** Lists deliberate inputs such as apostrophes, emoji, boundary values, legacy formats and extreme customers.
- **Reproducible generation:** Covers seeding generators, committing scripts rather than data, and keeping them aligned with schema migrations.
- **Coverage limitation record:** Documents what a dataset does not represent so verification gaps are not overstated.

## Good for

- Create test data for a system where production copies are forbidden
- Analyze production data shape without exposing customer records
- Generate a dataset with edge cases like apostrophes and null postcodes
- Reproduce a bug that only appears with real-shaped data volumes
- Document the gaps in a test dataset before verification sign-off

## Install

### Claude Code

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

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-core@fde-skills
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/test-data-strategy &&
cp -R "$tmp/fde-core/skills/test-data-strategy" ~/.claude/skills/test-data-strategy &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/test-data-strategy &&
cp -R "$tmp/fde-core/skills/test-data-strategy" ~/.agents/skills/test-data-strategy &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/test-data-strategy &&
cp -R "$tmp/fde-core/skills/test-data-strategy" ~/.cursor/skills/test-data-strategy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/test-data-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/rpraharaj/forward-deployed-engineer.git --path fde-core/skills/test-data-strategy
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/test-data-strategy &&
cp -R "$tmp/fde-core/skills/test-data-strategy" ~/.copilot/skills/test-data-strategy &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then copy `forward-deployed-engineer/fde-core/skills/test-data-strategy` into your agent's skills folder as `test-data-strategy`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Test data strategy starts?

It expects a workspace with a requirements document and a system map describing where data lives and its shape, and it says to understand the organization's data policy first.

### Does Test data strategy copy production data?

No. It explicitly forbids copying production data as an interim measure and instead uses aggregate queries that return counts and distributions only.

### What output does Test data strategy produce?

It writes a test data strategy document covering policy position, shape analysis, the generated dataset with its edge cases, and what the dataset does not represent.

### Does Test data strategy run scripts?

The skill folder contains only its SKILL.md file and no scripts; it directs the agent to write a generator script rather than shipping one.

### How do I install Test data strategy in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/test-data-strategy to use it in all your projects, or to .claude/skills/test-data-strategy in one project. Or install the fde-core plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-core@fde-skills.

### Which AI agents can use Test data strategy?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Test data strategy?

The closest alternatives to Test data strategy are Dummy dataset, API compliance checker, Data throughput accelerator, Testing strategy and Planning oracle to postgres migration integration testing.

## Where this comes from

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

## Alternatives

- [Dummy dataset](https://ai-powered.com/skills/dummy-dataset): Dummy dataset is an open-source agent skill for developer tools.
- [API compliance checker](https://ai-powered.com/skills/api-compliance-checker): API compliance checker is an open-source agent skill for security.
- [Data throughput accelerator](https://ai-powered.com/skills/data-throughput-accelerator): Data throughput accelerator is an open-source agent skill for developer tools.
- [Testing strategy](https://ai-powered.com/skills/testing-strategy): Testing strategy is an open-source agent skill for developer tools.
- [Planning oracle to postgres migration integration testing](https://ai-powered.com/skills/planning-oracle-to-postgres-migration-integration-testing): Planning oracle to postgres migration integration testing is an open-source agent skill for databases.
- [Property based testing](https://ai-powered.com/skills/property-based-testing): Property based testing 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.
- [TDD](https://ai-powered.com/skills/tdd): TDD is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/test-data-strategy
