
Metadata
Guides an agent to set Metabase field and table metadata that drives joins, filters
Metadata is an open-source agent skill for analytics and data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 20
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Metadata
This skill covers editing the metadata layer that Metabase places over warehouse columns, using the mb command-line tool. It explains which field and table keys to change, such as semantic types, foreign-key targets, dropdown and search behavior, and visibility, and what each change unlocks in queries and dashboards. Values are set with PATCH-style updates that send only the changed keys.
The skill is opinionated about cause and effect. It stresses that semantic types are labels that change formatting and widgets rather than casts, and it points to coercion strategies for real type changes. It also describes when to re-sync structure, rescan distinct values, or check the sync state before concluding a column is wrong, and it covers bulk table edits, data sensitivity labels and glossary terms.
It expects the mb CLI to be installed and authenticated against a Metabase instance, with a profile where needed. Some operations, such as bulk sync and rescans, need an admin or data analyst role.
When your agent uses it
Set Metabase field and table metadata via the `mb` CLI — semantic types, foreign-key targets, dropdown/scan behavior, column visibility, and display names. The point is the causal chain — one metadata edit unlocks a downstream feature (a FK target enables joins and linked filters; `has_field_values` picks the filter widget; `visibility_type` can block queries). Covers `field update` / `table update`, the writable-vs-read-only split, the semantic-type catalog, why semantic types are labels not casts (and how to actually cast), and sync-vs-scan-vs-fingerprint. Triggers — "set this column as currency / email / a category", "mark this as a foreign key", "make this column a dropdown", "why doesn't the query builder suggest a join", "hide this column", "set the entity key".
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 2 files (20 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/metadata 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/metadata &&
cp -R "$tmp/packages/cli/skill-data/metadata" ~/.claude/skills/metadata &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/metadata inside it instead.
Copy the skill folder to ~/.agents/skills/metadata 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/metadata &&
cp -R "$tmp/packages/cli/skill-data/metadata" ~/.agents/skills/metadata &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/metadata inside it instead.
Copy the skill folder to ~/.cursor/skills/metadata 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/metadata &&
cp -R "$tmp/packages/cli/skill-data/metadata" ~/.cursor/skills/metadata &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/metadata 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/metadataOr copy the folder to ~/.gemini/skills/metadata yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/metadata:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/metadata &&
cp -R "$tmp/packages/cli/skill-data/metadata" ~/.copilot/skills/metadata &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/metadata inside it instead.
Get the folder:
git clone --depth 1 https://github.com/metabase/metabase-cli.gitThen copy metabase-cli/packages/cli/skill-data/metadata into your agent's skills folder as metadata. Agents that support SKILL.md read one folder per skill.
What it does
- Foreign key setup
- Explains how to link a column to a target field so joins and linked filters work.
- Semantic type editing
- Guides assigning types like currency, email or city so formatting and widgets match.
- Filter widget selection
- Covers choosing dropdown, search box or plain input for a column's filter.
- Column visibility control
- Describes hiding, retiring or detail-only settings and what each blocks.
- Type coercion
- Shows how to actually cast a column's type using coercion strategies.
- Sync and rescan guidance
- Distinguishes schema sync, value rescans and fingerprints for stale metadata.
- Glossary and sensitivity labels
- Covers defining business terms and labeling columns with data sensitivity.
Good for
- Mark a column as a foreign key so the query builder can suggest joins
- Make a category column show a dropdown filter widget on a dashboard
- Hide an internal column from the query builder
- Set a numeric string column to be read as a number
- Find out why a dashboard linked filter shows the wrong values
- Define a business term like churn in the instance glossary
Metadata FAQ
Does setting a semantic type change the stored data type?
No. A semantic type is a label that changes formatting and widget choice. To change the actual type, use coercion_strategy.
Does hiding a column with visibility hidden secure Metadata?
No. It only removes the column from the query builder and data reference; native SQL can still read it.
What do I run when a new column or table is missing?
Usually a database schema sync with mb db sync-schema and the wait option, before concluding anything is wrong.
Which fields can be edited?
name, base_type and effective_type are read-only and come from warehouse sync; the other metadata keys can be set through field update.
How do I install Metadata in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/metadata to use it in all your projects, or to .claude/skills/metadata in one project.
Does Metadata 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 Metadata?
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 Metadata?
The closest alternatives to Metadata are Core, Dashboard, Metabase CLI, Data workflow and Mbql.
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

Plans fixtures, expectations and coverage for testing a transform's logic on known rows
- Open source
- 20 GitHub stars
- Analytics and data

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

