
Transform test plan
Plans fixtures, expectations and coverage for testing a transform's logic on known rows
Transform test plan is an open-source agent skill for analytics and data. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 20
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Transform test plan
This skill helps an agent plan tests for a data transform by starting from the model's declared design rather than generic rules. It walks through a checklist that classifies the model and its tables, then derives checks from the grain, joins, aggregates and null conventions it finds in the SQL. The result is a small fixture cast of named edge-case rows, hand-derived expected output, and a coverage matrix that shows which output columns are checked and which are deliberately left open.
The workflow profiles the real input data for row counts, value ranges and orphaned keys so that fixture edge cases reflect actual conditions. It also covers how to name expectations after the invariant they enforce, how to record tolerated quirks, and how to check that a test would actually fail when its expected values are corrupted. Tests are written for one transform at a time, and the skill points to a companion transform skill for the test command syntax and body format.
It expects access to the transform's SQL and a Metabase CLI environment with the transform and transform-test tooling available, and it relies on the reference files bundled in its folder.
When your agent uses it
Derive a comprehensive test plan for a transform — the fixture cast, the expectations, hand-derived expected rows, and a coverage matrix — from the model's declared design. Covers input partitioning (zero-case, multiplicity, dirty rows), grain / conservation / recomputation / conformance checks, and known-quirk conventions. Load when the user wants tests planned or written for transforms — "write tests for my transforms", "is my model right", "test plan for this pipeline", "add data quality checks" — whether the model is mid-build or already deployed. The `mb transform-test` command and body shapes live in the `transform` skill; this one decides what to test.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Edit, Bash, AskUserQuestion(see the files on GitHub)
- License: AGPL-3.0(see the files on GitHub)
From a static check of its 3 files (32 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/transform-test-plan to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/transform-test-plan &&
cp -R "$tmp/packages/cli/skill-data/transform-test-plan" ~/.claude/skills/transform-test-plan &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/transform-test-plan inside it instead.
Copy the skill folder to ~/.agents/skills/transform-test-plan to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/transform-test-plan &&
cp -R "$tmp/packages/cli/skill-data/transform-test-plan" ~/.agents/skills/transform-test-plan &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/transform-test-plan inside it instead.
Copy the skill folder to ~/.cursor/skills/transform-test-plan to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/transform-test-plan &&
cp -R "$tmp/packages/cli/skill-data/transform-test-plan" ~/.cursor/skills/transform-test-plan &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/transform-test-plan inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/metabase/metabase-cli.git --path packages/cli/skill-data/transform-test-planOr copy the folder to ~/.gemini/skills/transform-test-plan yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/transform-test-plan:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/transform-test-plan &&
cp -R "$tmp/packages/cli/skill-data/transform-test-plan" ~/.copilot/skills/transform-test-plan &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/transform-test-plan inside it instead.
Get the folder:
git clone --depth 1 https://github.com/metabase/metabase-cli.gitThen copy metabase-cli/packages/cli/skill-data/transform-test-plan into your agent's skills folder as transform-test-plan. Agents that support SKILL.md read one folder per skill.
What it does
- Fixture cast design
- Builds small sets of named literal rows that cover zero-case, multiplicity, dirty and boundary-date edges.
- Hand-derived expectations
- Works out expected output rows by hand from the fixture story rather than copying the transform's output.
- Coverage matrix
- Maps each output column against check classes and marks uncovered cells with a stated reason.
- Grain and conservation checks
- Derives uniqueness, row and amount conservation checks from the declared grain and joins.
- Known-quirk recording
- Pins tolerated data oddities in expected rows and records them with real-data counts.
- Test sensitivity validation
- Corrupts expected cells and perturbs inputs to confirm that tests fail when they should.
Good for
- Write tests for my transforms
- Check whether my dbt-style model's grain and joins are correct
- Plan a test suite for this data pipeline
- Add data quality checks to a deployed transform
- Find which output columns my tests leave uncovered
Transform test plan FAQ
When does Transform test plan load?
When the user asks to plan or write tests for transforms, check whether a model is right, or add data quality checks, whether the model is still being built or already deployed.
Does Transform test plan contain the test command syntax?
No. The command and body shapes live in the separate transform skill, which this one tells the agent to load before authoring.
Does Transform test plan test against the transform's real output?
No. Expected rows are derived by hand from the fixture and business meaning, because capturing output would only confirm the transform equals itself.
What does Transform test plan need to run?
It needs the transform's SQL and the Metabase CLI with transform-test support, and it reads its reference files from its own folder.
How do I install Transform test plan in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/transform-test-plan to use it in all your projects, or to .claude/skills/transform-test-plan in one project.
Does Transform test plan 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 Transform test plan?
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 Transform test plan?
The closest alternatives to Transform test plan are Transform, Data pipeline work, Data app migration and Ab test designer.
Where this comes from
- Description: from the skill's own SKILL.md.
More from metabase/metabase-cli

Guides an agent to write end-to-end tests that run the built CLI against real Metabase
- Open source
- 20 GitHub stars
- Developer tools

Writes unit and Playwright tests for a Metabase data app with mocked queries and actions
- Open source
- 20 GitHub stars
- Developer tools

Guides an agent to add a Metabase API resource across client, CLI and e2e tests
- Open source
- 20 GitHub stars
- Analytics and data

Sweeps a whole repository for architectural drift using parallel read-only review passes
- Open source
- 20 GitHub stars
- Developer tools

Runs a strict end-of-task review that flags architectural drift before work is marked done
- Open source
- 20 GitHub stars
- Developer tools

Gives agents the foundations for operating Metabase from the mb CLI
- Open source
- 20 GitHub stars
- Analytics and data



