# Visualization

> Visualization is an open-source agent skill for analytics and data. Guides an agent to pick a Metabase chart type and set its visualization options. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/metabase/metabase-cli/tree/main/packages/cli/skill-data/visualization
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** visualization
- **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 helps an agent decide how a Metabase card should render: which chart type fits the shape of the data, and how to write the card's visualization settings through the mb CLI. It walks through matching a question to a chart such as bar, line, pie, scalar, map, or table, then lists the minimum keys each chart needs.

The central rule it teaches is that visualization settings refer to the output column names produced by the query, not to field IDs. It also covers the JSON-encoded string keys used by column formatting, where inner quotes must be escaped. Because the server accepts unknown display values and ignores unrelated keys silently, the skill recommends reading the card back after each create or update to confirm the result.

The skill expects the mb CLI and access to a Metabase instance. Fuller per-chart key references, including column formatting, series settings, conditional formatting and pivot splits, are loaded on demand from a references file.

## When your agent uses it

> Choose a card's `display` (chart type) and author its `visualization_settings` for the `mb` CLI — which chart fits which data shape, the required keys per chart, the rule that settings name OUTPUT columns, and the `column_settings` JSON-string-key footgun; the full per-chart key catalog is in references. Use when deciding or fixing how a card renders — "what chart should I use", "make this a bar/line/pie chart", "map this by state", "format this column as currency", "add conditional formatting", "the card renders as a table instead of a chart", or any `display` / `visualization_settings` work.

## 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/visualization)
- [Asks for: Read, Write, Edit, Bash, AskUserQuestion](https://github.com/metabase/metabase-cli/blob/HEAD/packages/cli/skill-data/visualization/SKILL.md)
- [License: AGPL-3.0](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skill-data/visualization)

## Features

- **Chart type selection:** Matches the relationship in the data, such as trend, comparison, part-to-whole or geography, to a suitable chart type.
- **Required settings per chart:** Lists the minimum visualization keys each chart type needs to render as a chart rather than a fallback prompt.
- **Output column binding:** Explains that settings reference the names of query output columns rather than numeric field identifiers.
- **Column formatting keys:** Shows how to format columns such as currency and dates using JSON-string column_settings keys.
- **Read-back verification:** Recommends checking a saved card with the mb CLI because the API does not validate visualization settings.
- **Copy from UI-built cards:** Suggests pulling working settings from a card built in the Metabase interface for complex charts.

## Good for

- Pick the right chart for a monthly revenue trend
- Format a column as currency on an existing card
- Make a card show a map of sales by US state
- Fix a card that renders as a table instead of a chart
- Set up a pie chart with a limited number of slices

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

For one project only, put the folder in `.cursor/skills/visualization` 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/visualization
```

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

### VS Code

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

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

For one project only, put the folder in `.github/skills/visualization` 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/visualization` into your agent's skills folder as `visualization`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses the mb CLI with Metabase, and its instructions call for commands such as mb card get and mb skills get visualization.

### Does Visualization change anything in Metabase?

It guides card create and update commands that set display and visualization_settings, so the agent makes those changes when asked.

### Why does a card sometimes render blank?

According to the skill, a misspelled display value is accepted by the API and renders as nothing, which is a common cause.

### Where are the full per-chart key details?

They are in a references file that is loaded on demand with mb skills get visualization --full.

### How do I install Visualization in Claude Code?

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

### Does Visualization 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 Visualization?

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 Visualization?

The closest alternatives to Visualization are Dashboard, Build charts with typed params, Metabase CLI, Create chart and Create dashboard.

## Where this comes from

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

## Alternatives

- [Dashboard](https://ai-powered.com/skills/dashboard): Dashboard is an open-source agent skill for analytics and data.
- [Build charts with typed params](https://ai-powered.com/skills/build-charts-with-typed-params): Build charts with typed params 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.
- [Create chart](https://ai-powered.com/skills/create-chart): Create chart is an open-source agent skill for analytics and data.
- [Create dashboard](https://ai-powered.com/skills/create-dashboard): Create dashboard is an open-source agent skill for analytics and data.
- [Metadata](https://ai-powered.com/skills/metadata): Metadata is an open-source agent skill for analytics and data.
- [Core](https://ai-powered.com/skills/core-metabase): Core 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.

---
Source: https://ai-powered.com/skills/visualization-metabase
