
Data app UI
Guides building a Metabase data app's UI: theme, layout, charts, pages and sandbox limits
Data app UI is an open-source agent skill for developer tools. 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 Data app UI
This skill covers the interface side of a Metabase data app. It explains what the sandboxed runtime blocks, such as raw fetch to non-allowed origins, storage, and native navigation, and what replaces each one. It walks through external API access via an allowed_hosts list, layout and sizing rules for SDK question components, and how to build a single SDK theme that covers brand colors, chart palettes and text contrast.
The skill also helps decide when to render a question as a Metabase chart with StaticQuestion or InteractiveQuestion versus drawing it by hand from query rows, and when visualization settings are worth adding. It includes routing with DataAppRouter, a custom error component, and a pre-handoff checklist that runs a typecheck and searches for common mistakes such as percent misuse and UTC date parsing.
The agent is expected to work in a React and TypeScript project with the Metabase embedding SDK and to verify changes in the dev preview and its diagnostics feed.
When your agent uses it
Write a Metabase data app's UI — what the sandbox blocks and what replaces it, external APIs through `allowed_hosts`, layout and sizing, the SDK theme, a custom error state, the SDK components on offer, a Metabase chart versus a hand-drawn one and its visualization settings, pages with `DataAppRouter`, and what the app may show. Triggers — "change the layout", "theme the app", "add a page", "link between pages", "call an external API from the app", "the chart overflows", "invisible chart labels", "make it look like our brand". Creating and publishing is `data-app`; its data is `data-app-data`.
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 1 file (15 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/data-app-ui 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/data-app-ui &&
cp -R "$tmp/packages/cli/skill-data/data-app-ui" ~/.claude/skills/data-app-ui &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/data-app-ui inside it instead.
Copy the skill folder to ~/.agents/skills/data-app-ui 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/data-app-ui &&
cp -R "$tmp/packages/cli/skill-data/data-app-ui" ~/.agents/skills/data-app-ui &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/data-app-ui inside it instead.
Copy the skill folder to ~/.cursor/skills/data-app-ui 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/data-app-ui &&
cp -R "$tmp/packages/cli/skill-data/data-app-ui" ~/.cursor/skills/data-app-ui &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/data-app-ui 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/data-app-uiOr copy the folder to ~/.gemini/skills/data-app-ui yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/data-app-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/data-app-ui &&
cp -R "$tmp/packages/cli/skill-data/data-app-ui" ~/.copilot/skills/data-app-ui &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/data-app-ui inside it instead.
Get the folder:
git clone --depth 1 https://github.com/metabase/metabase-cli.gitThen copy metabase-cli/packages/cli/skill-data/data-app-ui into your agent's skills folder as data-app-ui. Agents that support SKILL.md read one folder per skill.
What it does
- Sandbox limits and replacements
- Lists blocked browser APIs such as storage, alerts and clipboard reads, with the approved alternative for each.
- External API allowlist
- Explains how to permit outbound calls to specific origins through allowed_hosts in the app config.
- Layout and sizing rules
- Covers root sizing, flex regions and explicit heights so SDK questions render correctly.
- Theme and error state
- Shows how to set SDK theme colors for contrast and add a custom error component.
- Chart or custom decision
- Guides when a Metabase question fits a visual and when hand-drawn SVG or a library is needed.
- Page routing
- Describes DataAppRouter, in-app links and location handling without a router library.
- Pre-handoff checks
- Lists typecheck and code searches to run before release, such as percent and date pitfalls.
Good for
- Theme a data app to match our brand colors
- Add a second page and link it from the navigation
- Call an external API from a data app
- Fix a chart that overflows its panel
- Make chart labels readable against the background
- Replace a browser alert with an in-app modal
Data app UI FAQ
Which Metabase version does the React guidance target?
On Metabase 65 or earlier the host runs React 18, so code must run on both React 18 and 19 without React 19-only APIs.
How do I let the app fetch data from an outside service?
List the origin in allowed_hosts inside data_app.yaml, restart the dev server after changing it, and Metabase applies it once the app is released.
Can the skill's pages use a router library?
No. It uses DataAppRouter and DataAppLink because router libraries call history.pushState, which the sandbox blocks.
Does Data app UI cover creating or publishing the app?
No, the skill says creation and publishing are handled by the separate data-app skill and its data by data-app-data.
How do I install Data app UI in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/data-app-ui to use it in all your projects, or to .claude/skills/data-app-ui in one project.
Does Data app UI 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 Data app UI?
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 Data app UI?
The closest alternatives to Data app UI are Data app, Data app testing, Data app actions, Frontend UI engineering and Frontend UI engineering.
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


