
Data app filters
Builds filter controls for Metabase data apps, from option lists to date pickers
Data app filters is an open-source agent skill for analytics and data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 20
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Data app filters
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`.
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 (9 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-filters 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-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.
Copy the skill folder to ~/.agents/skills/data-app-filters 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-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.
Copy the skill folder to ~/.cursor/skills/data-app-filters 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-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.
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-filtersOr copy the folder to ~/.gemini/skills/data-app-filters yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/data-app-filters:
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.
Get the folder:
git clone --depth 1 https://github.com/metabase/metabase-cli.gitThen 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.
What it does
- 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
Data app filters 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.
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

