Skip to content
Skill

Transform

Lets an agent create, run, test and schedule Metabase transforms via the mb CLI

Transform 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

This skill teaches an agent to build transforms in Metabase, which persist the result of a native SQL or MBQL query into a warehouse table. It covers the body shape with source and target, creating a transform and running it with a wait, inspecting runs, cancelling an in-flight run, and dropping or deleting materialized tables.

It also guides iteration on a failing transform by patching the existing transform rather than recreating it, and explains which fields the update endpoint accepts. Transform tests run fixtures against temporary tables and check expectations, and transform tags drive which transforms a scheduled transform job executes.

The workflow relies on the mb command-line tool with a configured Metabase profile, jq for building JSON bodies, and a database id from the target instance. Admin rights are needed for some actions such as linting and toggling jobs.

When your agent uses it

Author and run Metabase transforms via `mb` — body shape (native SQL or structured MBQL), create + run-with-wait, run inspection, dependencies, cancel, the `update`-vs-recreate iteration rule, the writable-keys-only PATCH contract, transform tests (fixtures and expectations run against temp tables), plus transform tags and tag-driven transform-job schedules. Load when the user touches transforms — "create a transform", "run a transform", "fix a failing transform", "test a transform", "list transform runs", "cancel a running transform", "manage transform tags", "run a transform job", or anything `mb transform …` / `mb transform-job …` / `mb transform-tag …` / `mb transform-test …`.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (22 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 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 &&
cp -R "$tmp/packages/cli/skill-data/transform" ~/.claude/skills/transform &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/transform inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/transform 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 &&
cp -R "$tmp/packages/cli/skill-data/transform" ~/.agents/skills/transform &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/transform inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/transform 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 &&
cp -R "$tmp/packages/cli/skill-data/transform" ~/.cursor/skills/transform &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/transform inside it instead.

Cursor docs on skills

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

Or copy the folder to ~/.gemini/skills/transform yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/transform:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/transform &&
cp -R "$tmp/packages/cli/skill-data/transform" ~/.copilot/skills/transform &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/transform inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/metabase/metabase-cli.git

Then copy metabase-cli/packages/cli/skill-data/transform into your agent's skills folder as transform. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Transform body authoring
Explains the source and target structure for native SQL and structured queries, with formatting tips for stored SQL.
Run and inspect
Covers running transforms with waiting, listing and fetching runs, and syncing output tables for query building.
Safe iteration
Describes patching transforms in place with writable keys only, avoiding round-tripped server fields.
Transform tests
Covers fixtures, expectations and the rules for cast types and referenced tables in tests.
Tags and job schedules
Explains transform tags and how transform jobs run every transform carrying a job's tags.
Cancel and cleanup
Describes cancelling runs, cancel semantics by source, and deleting transforms or their tables with confirmation.

Good for

  • Create a transform that aggregates a table into a warehouse table and run it
  • Fix a failing transform by updating its SQL and re-running it
  • Write tests with fixture rows and expectations for a transform
  • Tag transforms so a scheduled transform job picks them up
  • List recent transform runs and inspect why one failed
  • Cancel a long-running transform run

Transform FAQ

Which Metabase tool does Transform rely on?

It relies on the mb command-line tool, using a configured profile and jq for building JSON bodies.

Should I recreate a transform to fix it?

The skill recommends transform update with a changed body instead of delete and create, so the same row, entity id and output table are kept.

Does cancelling a native SQL transform stop the warehouse query?

No. For native SQL, cancel marks the run as canceling, the query runs to completion, and the run then lands as canceled or succeeded.

How does a transform job choose which transforms to run?

A job runs every transform carrying one of its tags, so you add a transform to a job by tagging the transform.

How do I install Transform in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/transform to use it in all your projects, or to .claude/skills/transform in one project.

Does Transform 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?

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?

The closest alternatives to Transform are Transform test plan, Mbql, Metadata, Data workflow and Metabase CLI.

Where this comes from

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

More from metabase/metabase-cli

  1. Guides an agent to write end-to-end tests that run the built CLI against real Metabase

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

    • Open source
    • 20 GitHub stars
    • Developer tools
  3. Plans fixtures, expectations and coverage for testing a transform's logic on known rows

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

    • Open source
    • 20 GitHub stars
    • Analytics and data
  5. Sweeps a whole repository for architectural drift using parallel read-only review passes

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

    • Open source
    • 20 GitHub stars
    • Developer tools