# Metadata

> Metadata is an open-source agent skill for analytics and data. Guides an agent to set Metabase field and table metadata that drives joins, filters. 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/metabase/metabase-cli/tree/main/packages/cli/skill-data/metadata
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** metadata
- **Collection:** https://github.com/metabase/metabase-cli
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

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".

## What it can access

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

- [Instructions only, no scripts](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skill-data/metadata)
- [Asks for: Read, Write, Edit, Bash, AskUserQuestion](https://github.com/metabase/metabase-cli/blob/HEAD/packages/cli/skill-data/metadata/SKILL.md)
- [License: AGPL-3.0](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skill-data/metadata)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/metadata` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/metadata` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/metadata` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/metabase/metabase-cli.git --path packages/cli/skill-data/metadata
```

Or copy the folder to `~/.gemini/skills/metadata` yourself.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

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

Then 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.

## 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.

## Alternatives

- [Core](https://ai-powered.com/skills/core-metabase): Core is an open-source agent skill for analytics and data.
- [Dashboard](https://ai-powered.com/skills/dashboard): Dashboard is an open-source agent skill for analytics and data.
- [Metabase CLI](https://ai-powered.com/skills/metabase-cli): Metabase CLI is an open-source agent skill for analytics and data.
- [Data workflow](https://ai-powered.com/skills/data-workflow): Data workflow is an open-source agent skill for analytics and data.
- [Mbql](https://ai-powered.com/skills/mbql): Mbql is an open-source agent skill for analytics and data.
- [Native SQL](https://ai-powered.com/skills/native-sql): Native SQL is an open-source agent skill for databases.
- [Visualization](https://ai-powered.com/skills/visualization-metabase): Visualization is an open-source agent skill for analytics and data.
- [Transform](https://ai-powered.com/skills/transform-metabase): Transform is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/metadata
