dashboard-filters
БесплатноБез исполняемых скриптовНе проверенDashboard parameters via dashboard_write — add_parameter types and value sources, the wire_parameter target grammar (target_field vs target_tag vs raw…
от metabase★ 50 742 звезды на GitHubОб этом скилле
Dashboard filters
A filter is a parameter plus a wire per card: add_parameter creates the widget, and it filters nothing until wire_parameter connects it to a card — the most common "my filter does nothing" cause. Both are dashboard_write ops in one atomic call:
dashboard_write {"method": "update", "id": 40,
"ops": [{"op": "add_parameter", "parameter_id": "category", "name": "Category",
"type": "string/=", "sectionId": "string"},
{"op": "wire_parameter", "parameter_id": "category", "dashcard_id": 7,
"target_field": 18, "autowire": true}]}
parameter_id is a short slug you choose and reuse in later ops; the server derives the URL slug from name. get_content on the dashboard lists each parameter's id, name, type, default, required, value source (values_source_type and values_source_config), and wired dashcard ids.
Parameter types
type, closed vocabulary: string/= string/!= string/contains string/does-not-contain string/starts-with string/ends-with; number/= number/!= number/between number/>= number/<=; date/all-options (fullest) date/single date/range date/relative date/month-year date/quarter-year; category, id, boolean/=, temporal-unit, location/city|state|zip_code|country. sectionId groups the widget in the editor: "string", "number", "date", "id", "location", "temporal-unit".
Other add_parameter/update_parameter fields: default (scalar, or array for multi-select), required (only with a default — without one viewers are blocked until they pick), isMultiSelect, temporal_units (for temporal-unit), values_query_type ("list" dropdown / "search" box / "none" free text), values_source_type + values_source_config, filteringParameters. To unset a default or link, name it in clear ("clear": ["default", "filteringParameters"]) — a null reads as omitted.
Wire targets
| Situation | Pass |
|---|---|
| Card exposes the column (MBQL card, or a native field-filter tag bound to that field) | target_field: <field id> — the usual choice; the server derives the mapping from the card's query |
| Native-SQL card, by tag name | target_tag: "<tag name>" — the server reads the tag's type (field filter vs variable) and emits the right mapping. Read tag names from the card's template_tags via get_content; a wrong name's error lists what exists |
{{placeholder}} in a text, heading, or iframe card's own content |
target: ["text-tag", "<name>"] — the name must appear as {{name}} in that card |
| Neither fits (advanced) | target: ["dimension", ["template-tag", "category"]] — the raw clause; hand-built targets are where wiring bugs live |
autowire: true (with target_field) also maps every other card exposing the same field, silently skipping those that don't; the named dashcard_id must expose it or the op fails. A target resolving to nothing on the card is rejected at compile time, on validate_only and real saves alike.
unwire_parameter disconnects one card (dashcard_id) or all (omit it). remove_parameter deletes the widget plus its mappings and linked-filter references.
Value sources
Omit values_source_type for live distinct values from the wired column — usually right. Or:
- Fixed list:
"values_source_type": "static-list", "values_source_config": {"values": ["active", "churned", "trial"]} - From a card:
"values_source_type": "card", "values_source_config": {"card_id": 42, "value_field": ["field", 18, null]}
Preview: get_parameter_values {"target": "dashboard", "id": 40, "parameter_id": "category"} — also takes query (search) and constraints (other filters' selections, chain filtering).
Linked (cascading) filters
A child (City) shows only values consistent with a parent (State) when the child's filteringParameters lists the parent's id:
{"op": "update_parameter", "parameter_id": "city", "filteringParameters": ["state"]}
Two hard constraints: linked filters read table-metadata foreign keys only — joins inside a saved question or model don't count; and a linked child is incompatible with a static-list or card source (a custom source overrides the cascade) — leave it live.
Placement and visibility
- Parameters live in the header.
move_parameterwithindexreorders; withdashcard_idit renders the widget on that card (inline).add_card'sinline_parametersdoes this at add time. - Tabs: a header filter appears on a tab only where it is wired to a card on that tab — a filter that "won't show" is usually wired only to another tab's cards.
- A
temporal-unitparameter binds only to a datetime column in the card query's last stage — after a time-bucketed summary it can't attach. - Two ops can drop connections:
replace_card, andwire_parameteron a card with series. The write response lists them in `dr
Установить dashboard-filters в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dashboard-filters?
Dashboard parameters via dashboard_write — add_parameter types and value sources, the wire_parameter target grammar (target_field vs target_tag vs raw target), autowire, linked filters, inline parameters, tab visibility. Read before your first add_parameter, remove_parameter or wire_parameter. Triggers — "add a filter to this dashboard", "wire a filter to these cards", "make a filter cascade", "filter dropdown values", "why isn't my filter showing / doing anything".
Как установить скилл dashboard-filters?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dashboard-filters запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic