/wire:metabasefrom wire
Connects to a Metabase instance to enumerate collections, dashboards, cards/questions with SQL, database connections, and permission groups. Activates for Metabase audits and reporting-layer migrations.
Ships in wire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Connection details and object hierarchy for cataloguing and migrating a Metabase reporting layer. Used by /wire:metabase-audit-* and /wire:metabase-migration-*, and by any reporting-layer work that reads Metabase content.
Two kinds of migration use it. In platform_migration, Metabase stays and moves to a new warehouse (/wire:metabase-audit-*, /wire:metabase-migration-*). In bi_migration with bi_pair: metabase_to_looker (experimental), Metabase is replaced by Looker (/wire:metabase-source-audit-*); see "Replacing Metabase with Looker" below. Tell the consultant that pair is experimental at the start of that work.
This skill builds on the official metabase/agent-skills (https://github.com/metabase/agent-skills). Install them once per machine:
npx skills add metabase/agent-skills
The three relevant to Wire migration work:
mb) over every Metabase resource: collections, dashboards, cards, database connections, permission groups. Preferred for enumeration and for serialization export/import.dataset_query field — native SQL under dataset_query.native.query, otherwise MBQL. Placement is by field (collection_id, parent_id), not file location.The other upstream skills (embedding/SSO upgrades) are not relevant to migration and can be ignored.
Mirror the hightouch skill's source-priority pattern.
Option 1 — metabase-cli / serialization export (preferred). If the mb CLI is installed and configured against the instance, use it to export the workspace to YAML (the representation format above) and parse collections, dashboards, cards, databases, and permission groups from the export. Set data_source: serialization.
Option 2 — Metabase REST API. If MB_HOST and an API key (MB_API_KEY) or session token are available, enumerate via the REST API (stable, public endpoints):
| Object | Endpoint |
|---|---|
| Collections | GET /api/collection, GET /api/collection/:id/items |
| Cards / questions | GET /api/card, GET /api/card/:id (SQL in dataset_query.native.query; MBQL otherwise) |
| Dashboards | GET /api/dashboard, GET /api/dashboard/:id (dashcards reference card IDs) |
| Database connections | GET /api/database, GET /api/database/:id (engine + connection details) |
| Permission groups | GET /api/permissions/group, GET /api/permissions/graph |
Set data_source: api. Use read-only credentials for audit.
Option 3 — client-supplied query inventory (CSV / export). If neither the CLI nor API is reachable, use a client-supplied inventory of cards and their SQL. Set data_source: csv. This is the required input for /wire:metabase-migration-generate — that command cannot proceed on inference alone (see its spec).
If none of the three is available, stop and ask the client for one.
Collection (folders; nest via parent_id)
└─ Dashboard (grid of dashcards + filter parameters)
└─ Card / question (dataset_query: native SQL or MBQL)
Database connection (engine + details — the pivot for a warehouse migration)
Permission group (data + collection permissions, via the permission graph)
dataset_query.native.query. Native SQL cards carry source-warehouse dialect and need translation; MBQL cards are dialect-neutral and re-map to a new database connection without SQL rewriting.PUT /api/database/:id with the new engine and details), not a per-card edit. Cards follow the connection they reference.Wire's scripts read Metabase through the API with an API key (the x-api-key header) and convert deterministically, with no AI call:
source ~/.wire/metabase.env # exports MB_HOST and MB_API_KEY; mode 600, outside the repo
python3 <plugin-root>/scripts/metabase_export.py api --out <snapshot> [--dashboard <id> ...]
python3 <plugin-root>/scripts/mb_to_lookml.py audit --snapshot <snapshot> --out <audit>
python3 <plugin-root>/scripts/mb_to_lookml.py convert --snapshot <snapshot> --out <batch> --model <m> \
--connection <c> --database <id> [--include-root <folder>]
python3 <plugin-root>/scripts/mb_to_lookml.py lint <batch>
python3 <plugin-root>/scripts/metabase_export.py card-data --card <id> [--dashboard <id> --dashcard <id>] --out rows.csv
What to know before running them:
stages, clauses [op, {options}, ...], fields by id, a model's or earlier stage's columns by name, aggregations referenced by lib/uuid. Legacy MBQL is also read.sqlglot).12 months ago for 12 months; "including the current month" adds a unit (13 months). Checked on a live instance.2026-10-01T00:00:00Z) where Looker returns 2026-10: declare the grain in each parity contract.--database).wire/bi_pairs/metabase_to_looker/.bi_pair: metabase_to_omni uses the same snapshot and audit, then writes an Omni model and Omni document bodies from the Metabase reader's converted model, with Omni naming (a column dimension takes the column's name, no LookML on the way):
python3 <plugin-root>/scripts/bi_to_omni.py convert --source metabase --snapshot <snapshot> --out <batch> \
--database <id> [--dashboards <ids>] --prefix <prefix> [--bind query|schema]
python3 <plugin-root>/scripts/bi_to_omni.py lint <batch>
Views are query views by default. Write the files to a model branch, append to the model's shared relationships file rather than replacing it, and patch each document's draft with the branch id. The rules are in wire/bi_pairs/metabase_to_omni/.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
metabase, bi-migration, reporting-layer, warehouse-migration
npx claudepluginhub rittmananalytics/wire-plugin --plugin wire74 skills in this plugin
/add-analytics-instrumentationEnd-to-end analytics instrumentation workflow for a PR, branch, file, directory, or feature. Reads the code, discovers what events should be tracked, and produces a concrete instrumentation plan — all in one shot. Use this skill whenever a user wants to add analytics to a PR, asks "instrument this PR", "add tracking to this branch", "what analytics does this file need", "instrument the checkout flow", "run the full instrumentation workflow", or any request that implies going from code changes to a tracking plan. Also trigger when the user gives you a PR link, branch name, file path, or feature description and mentions analytics, events, or instrumentation. This is the main entry point for the analytics workflow — prefer it over calling the individual steps (diff-intake, discover-event-surfaces, instrument-events) separately.
/agents-schemaPublish and read warehouse metadata through dbt Labs' Agents Schema (the AGENTS schema inside Snowflake, Databricks or BigQuery, written by the agents-schema CLI from a dbt manifest, LookML, Omni, OSI, Sigma and markdown skills). Activates when the user mentions Agents Schema, agents_schema, AGENTS.ROOT, the agents-schema CLI or its GitHub workflows, warehouse-delivered skills, or asks how an AI agent should find governed context for a warehouse. Used by /wire:agents_schema-generate, -validate and -review, and for ad-hoc work against an AGENTS schema.Other plugins' skills for the same job