# Data app UI

> Data app UI is an open-source agent skill for developer tools. Guides building a Metabase data app's UI: theme, layout, charts, pages and sandbox limits. 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/data-app-ui
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** data-app-ui
- **Collection:** https://github.com/metabase/metabase-cli
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

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

## Features

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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/data-app-ui` 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/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.

### Codex

Copy the skill folder to `~/.agents/skills/data-app-ui` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/data-app-ui` 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/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.

### 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/data-app-ui
```

Or copy the folder to `~/.gemini/skills/data-app-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/data-app-ui`:

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

### 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/data-app-ui` into your agent's skills folder as `data-app-ui`. Agents that support SKILL.md read one folder per skill.

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

## Alternatives

- [Data app](https://ai-powered.com/skills/data-app): Data app is an open-source agent skill for developer tools.
- [Data app testing](https://ai-powered.com/skills/data-app-testing): Data app testing is an open-source agent skill for developer tools.
- [Data app actions](https://ai-powered.com/skills/data-app-actions): Data app actions is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering): Frontend UI engineering is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering-ajyadav013-2): Frontend UI engineering is an open-source agent skill for developer tools.
- [Frontend patterns](https://ai-powered.com/skills/frontend-patterns-fmarzochi): Frontend patterns is an open-source agent skill for developer tools.
- [API integration](https://ai-powered.com/skills/api-integration-ajyadav013): API integration is an open-source agent skill for developer tools.
- [Computesdk](https://ai-powered.com/skills/computesdk): Computesdk is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/data-app-ui
