Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

metabase-representation-format

БесплатноБез исполняемых скриптовНе проверен

Understands the Metabase Representation Format — a YAML-based serialization format for Metabase content (collections, cards, dashboards, documents, segments…

metabaseот metabase★ 60 звёзд на GitHub

Об этом скилле

Metabase Representation Format

Metabase represents user-created content as a tree of YAML files. Each file is one entity (a collection, card, dashboard, etc.). The format is portable across Metabase instances: numeric database IDs are replaced with human-readable names and entity IDs.

The format is defined by a spec that the @metabase/representations npm package ships (see Reading the spec). The same package ships a CLI (npx @metabase/representations validate-schema) that validates a tree of YAML files against the format.

Entities

The format defines 14 entity types.

Entity SerDes Model Description
Collection Collection Folder-like container for organizing content. Hierarchy via parent_id. Namespaces: null (main), "snippets", "transforms", "data-actions", "data-apps".
Card Card Question, model, or metric. Holds an MBQL or native dataset_query. Display types: table, bar, line, pie, scalar, etc. Card types: "question", "model", "metric".
Dashboard Dashboard Grid layout (24 columns) of cards with filter parameters and optional tabs. Contains dashcards array for card placement and parameters array for filter controls.
Document Document Rich text page using ProseMirror AST. Can embed cards via cardEmbed nodes and link to entities via smartLink nodes.
Segment Segment Saved filter definition scoped to a table. Definition is a pMBQL query with a single stage containing only source-table and filters.
Measure Measure Saved aggregation definition scoped to a table. Definition is a pMBQL query with a single stage containing only source-table and exactly one aggregation.
Snippet NativeQuerySnippet Reusable SQL fragment referenced in native queries via {{snippet: Name}}.
Transform Transform Materializes query or Python script results into a database table. Source is either MBQL/native query or Python script.
TransformTag TransformTag Label for categorizing transforms. Built-in types: "hourly", "daily", "weekly", "monthly", or null for custom.
TransformJob TransformJob Scheduled job (cron) that executes transforms matching specific tags.
TransformTest TransformTest Runs a transform against test inputs and checks its output against expectations. Stored next to its transform: collections/transforms/{transform_slug}/{test_slug}.yaml.
PythonLibrary PythonLibrary Shared Python source file available to Python-based transforms.
Action Action Writes to a database. type is "query" (parameterized native SQL) or "implicit" (one row of the table its implicit entry names); model_id is deprecated. Without a model_id it lives in the data-actions namespace (its root or a data actions collection) or in a data app's collection, set by collection_id; a data app runs only the implicit actions in its own collection. Exactly one of the nested query and implicit arrays holds the definition its type names; the other is [].
Data App DataApp A custom React app that runs inside Metabase, in data_apps/<slug>/: a data_app.yaml manifest (with serdes/meta [{model: DataApp}], and slug equal to the directory name), its built bundle beside it, and a root Collection of the data-apps namespace under collections/data_apps/ holding the Cards and Actions it runs.

Ownership and hierarchy

Critical — folder layout is decorative. Where an entity lands in Metabase is decided entirely by its fields, not by where its YAML file sits in the tree. Moving a file without updating the fields changes nothing. Updating the fields without moving the file still works correctly. Always treat the fields below as the source of truth.

The fields that actually determine placement:

  • collection_id (entity_id of a collection) — places the entity in that collection. null or omitted → root collection.
  • parent_id on a collection — this, and only this, sets the collection's own parent. A collection's position in the folder tree is ignored on import; without parent_id (or with parent_id: null) the collection becomes a root-level collection, no matter how deep its folder is nested. To nest one collection under another, set parent_id to the parent collection's entity_id.
  • dashboard_id / document_id on a card — nests a card under a dashboard or document. Such a card must also set collection_id to match the parent's collection_id. A card never sets both.

On disk, cards nested under a dashboard or document live in a subfolder next to the parent YAML (e.g. my_dashboard/card.yaml sitting next to my_dashboard.yaml) — but again, this is purely for human navigation; the fields are what Metabase reads.

Import paths

Metabase only imports YAML from these top-level d

Полный SKILL.md на GitHub

Установить metabase-representation-format в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Glob
Grep
Bash

Вложенные файлы

README.md

FAQ

Что делает скилл metabase-representation-format?

Understands the Metabase Representation Format — a YAML-based serialization format for Metabase content (collections, cards, dashboards, documents, segments, measures, snippets, transforms, actions, and data apps). Use when the user needs to create, edit, understand, or validate Metabase representation YAML files, or when working with Metabase serialization/deserialization (serdes). Covers entity schemas, MBQL and native queries, visualization settings, parameters, and folder structure.

Как установить скилл metabase-representation-format?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл metabase-representation-format запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить metabase-representation-format с