# Data app filters

> Data app filters is an open-source agent skill for analytics and data. Builds filter controls for Metabase data apps, from option lists to date pickers. 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/data-app-filters
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** data-app-filters
- **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 guides an agent through building the filter controls of a Metabase data app. It starts with a contract that maps each filter to its options question, the raw value it passes, and which panels it reaches, so every control changes only the panels it should. Filter state is kept as an All value that sends no clause, and options are loaded at runtime from their own question rather than hardcoded.

The guidance covers entity filters as searchable comboboxes, preset date ranges ending in a custom option, and the Metabase embedding SDK's date range popover and calendar with locale-aware labels. It also explains how to build preset ranges from local dates to avoid off-by-one day errors, and when to use a single-date picker library instead.

The skill expects a Metabase data app built with the embedding SDK in React, and it refers to companion skills for the query side and for testing. Writing tests for each filter, with mocked options and panel clauses, is part of the workflow.

## When your agent uses it

> Build the filter controls of a Metabase data app — the filter contract, which cards a filter reaches, All by default, options from their own question, a searchable combobox for entities, date presets, `DateRangePopover` and `DateRangeCalendar` with labels from `useDateFormatter`, and a single-date picker. Triggers — "add a filter to the app", "filter the chart by date", "a date range picker", "filter by customer", "a dropdown of categories", "the filter doesn't change the chart", "the date shows the previous day". The query side — runtime clauses and their limits — is in `data-app-data`; tests are `data-app-testing`.

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

## Features

- **Filter contract planning:** Maps each filter to its options question, raw value, and the panels it reaches.
- **Searchable entity combobox:** Guidance for id-backed filters with search by label and an All option.
- **Date range presets:** Preset ranges built from local dates, ending in a custom range option.
- **Metabase date range components:** Uses DateRangePopover and DateRangeCalendar with locale-aware labels.
- **Single date picker:** Covers a single date or date-time input using a dedicated picker library.
- **Filter testing checklist:** Checks each filter's options, panel reach and date controls before release.

## Good for

- Add a filter to a Metabase data app
- Filter a chart by a date range
- Add a dropdown of customers that filters the dashboard
- Fix a date that shows the previous day in a filter
- Make a filter stop changing the wrong panels

## Install

### Claude Code

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

For one project only, put the folder in `.claude/skills/data-app-filters` inside it instead.

### Codex

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

For one repository only, put the folder in `.agents/skills/data-app-filters` inside it instead.

### Cursor

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

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

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

### VS Code

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

```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-filters &&
cp -R "$tmp/packages/cli/skill-data/data-app-filters" ~/.copilot/skills/data-app-filters &&
rm -rf "$tmp"
```

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

## FAQ

### What does Data app filters need to work?

It expects a Metabase data app built with the embedding SDK in React, and it relies on the companion skills data-app-data and data-app-testing for the query side and tests.

### Does Data app filters hardcode filter options?

No. Options come at runtime from their own question broken out on the filtered column, unless the user supplied a closed list.

### When does the date picker library get used?

Only for a single date or date-time value. Date ranges use the SDK's DateRangePopover or DateRangeCalendar instead.

### How do I install Data app filters in Claude Code?

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

### Does Data app filters 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 filters?

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 Data app filters?

The closest alternatives to Data app filters are Dashboard, Data app data, Data app migration, Native SQL and Metadata.

## 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.
- [Data app data](https://ai-powered.com/skills/data-app-data): Data app data is an open-source agent skill for analytics and data.
- [Data app migration](https://ai-powered.com/skills/data-app-migration): Data app migration 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.
- [Metadata](https://ai-powered.com/skills/metadata): Metadata 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.
- [Visualization](https://ai-powered.com/skills/visualization-metabase): Visualization 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.

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