Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/twells89/sigma-migration-skillsnpx agentmods add skills/twells89/sigma-migration-skills/metabase-to-sigmaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/twells89/sigma-migration-skills/metabase-to-sigma)<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/metabase-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/metabase-to-sigma/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/metabase-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/metabase-to-sigma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00097 | $0.04787 |
| Opus 5.5 | $0.00039 | $0.01915 |
| Sonnet 5.5 | $0.00019 | $0.00957 |
| Haiku 4.5 | $0.00010 | $0.00479 |
Grade A, and why
metabase-to-sigma scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metabase → Sigma migration
Convert Metabase models + questions into a Sigma data model, then convert the dashboards that sit on them into matching Sigma workbooks. Translate what maps cleanly; flag what doesn't (cum-sum/offset windows, saved segment refs, progress viz, click behaviors) instead of emitting wrong logic.
Status: live-validated end to end. Extraction was proven against a live 7k-card / 1.5k-dashboard Metabase Cloud estate (v1.61.4 — 100% pMBQL); the Sigma build path was validated with exact query parity, including models, nested questions, combo charts, controls, and exact-grid layout (
refs/design-notes.md§9–§10d). The released wrapped/flat workbook code representation is covered by offline tests and corpus goldens; repeat the live POST/readback/PNG gate before extending the historical live claim to that payload.
This skill is customizable in plain language. Read
~/.metabase-to-sigma/preferences.mdif it exists at the start of every run, restate the active preferences briefly, and honor them throughout (they may override any default EXCEPT the verification gates). When the user corrects an output or states a preference mid-run, OFFER to persist it — seerefs/customization.mdfor the three tiers (preferences / learned formula rules / converter changes).
Before a run, read
refs/design-notes.md,refs/rest-api.md, andrefs/control-parity.md.
Load
refs/mbql-shapes.md,refs/expression-dsl.md, orrefs/template-tags.mdonly when that phase needs the detail. For canonical Sigma shapes, defer tosigma-data-modelsandsigma-workbooks.
Prerequisites
- Metabase REST access — an API key (v49+: Admin → Settings → Authentication →
API keys; preferred, durable) or a username/password session. Capture either with
scripts/get-metabase-session.sh. Open-source Metabase is fully sufficient — no Pro/EE features required (serialization export is EE-only; this skill doesn't use it). - Sigma API access: set
SIGMA_BASE_URL, then runeval "$(scripts/browser-login.sh)"once (preferred), or configureSIGMA_CLIENT_ID/SIGMA_CLIENT_SECRETin~/.sigma-migration/envas a headless fallback. The Node converter and live scripts reuse a caller token, refresh a known token after 50 minutes throughscripts/get_token.py(browser keychain first), and refresh/retry once on a 401. SetSIGMA_WORKDIRto the migration work directory when you want the shell-neutralauth.jsonhandoff there. - The same warehouse on both sides. Sigma reads the warehouse live; parity only means something when the Sigma connection reaches the database Metabase queries. (Metabase's bundled H2 Sample Database is NOT reachable from Sigma — pick content on a real warehouse, or land the data first.)
- Know your warehouse dialect. The converter auto-detects it from the Sigma connection
(
--connection <id>triggers aGET /v2/connections/<id>lookup), or pass--warehouseexplicitly:bigquery|snowflake|databricks|redshift|postgres|athena. Required for correct array-aggregation rewrites (BigQueryARRAY_AGG→array_to_string, Snowflake →LISTAGG, Databrickscollect_list→array_join, etc.). Without it, native SQL cards with array aggregations will render as blank cells in Sigma. - Node for the converter (
converter/:npm cionce).
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- converter/cli.ts 6.3 KB runs code
- converter/metabase-dashboard.ts 60 KB runs code
- converter/metabase.ts 57 KB runs code
- converter/package-lock.json 28 KB
- converter/package.json 687 B
- converter/pmbql-normalize.d.mts 98 B
- converter/pmbql-normalize.mjs 9.9 KB runs code
- converter/PROVENANCE.json 330 B
- converter/sigma-ids.ts 15 KB runs code
- converter/test.ts 39 KB runs code
- converter/tsconfig.json 265 B
- fixtures/bq-estate.card.json 2.0 KB
- fixtures/exec-overview.dashboard.json 8.9 KB
- fixtures/legacy-grid.dashboard.json 1.6 KB
- fixtures/metadata.json 3.3 KB
- fixtures/orders-model.card.json 1.9 KB
- fixtures/pmbql-expressions.card.json 1.6 KB
- fixtures/pmbql-joins.card.json 1.2 KB
- fixtures/pmbql-multistage.card.json 1.3 KB
- fixtures/pmbql-native-tags.card.json 2.0 KB
- fixtures/pmbql-native.card.json 798 B
- fixtures/pmbql-params.dashboard.json 5.5 KB
- fixtures/pmbql-structured.card.json 2.4 KB
- fixtures/revenue-trend.card.json 1.0 KB
- fixtures/top-customers-native.card.json 1.2 KB
- QUICKSTART.md 4.0 KB
- refs/control-parity.md 5.8 KB
- refs/customization.md 4.1 KB
- refs/design-notes.md 21 KB
- refs/expression-dsl.md 6.0 KB
- refs/layout-visual-qa.md 19 KB
- refs/mbql-shapes.md 9.1 KB
- refs/rest-api.md 4.5 KB
- refs/template-tags.md 5.9 KB
- scripts/apply_sigma_rls.py 18 KB runs code
- scripts/apply-layout.mjs 9.4 KB runs code
- scripts/assert-parity.mjs 4.4 KB runs code
- scripts/assert-phase6-ran.rb 24 KB runs code
- scripts/browser-login.sh 17 KB runs code
- scripts/escalate-gap.py 9.8 KB runs code
- scripts/find-or-pick-dm.rb 30 KB runs code
- scripts/gap-scout.md 3.4 KB
- scripts/get_token.py 20 KB runs code
- scripts/get-metabase-session.sh 2.3 KB runs code
- scripts/get-token.sh 4.4 KB runs code
- scripts/lib/auth.mjs 4.0 KB runs code
- scripts/lib/browser-login-platform.sh 2.9 KB runs code
- scripts/lib/code_rep.mjs 8.2 KB runs code
- scripts/lib/code_rep.rb 12 KB runs code
- scripts/lib/control_lint.rb 22 KB runs code
- scripts/lib/layout_lint.rb 15 KB runs code
- scripts/lib/preflight_lint.rb 30 KB runs code
- scripts/lib/sigma_rest.py 17 KB runs code
- scripts/lib/sigma_rest.rb 15 KB runs code
- scripts/lib/sigma-rest.d.mts 288 B
- scripts/lib/sigma-rest.mjs 3.5 KB runs code
- scripts/lib/test-auth.mjs 5.1 KB runs code
- scripts/metabase-discover.sh 2.4 KB runs code
- scripts/metabase-dm-signature.py 3.1 KB runs code
- scripts/pick-destination.mjs 2.7 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +6 lines dd842ea77425
- 1mo ago Changed · -11 lines 022a5a9f3d12
- 1mo ago First seen · 337 lines · 97 tokens per session scan A af6719ed20e5
metabase-to-sigma is a skill published in the GitHub repository twells89/sigma-migration-skills (17 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 4,787 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.
Other skills, from other repositories
story-readiness
Is a story implementation-ready? Checks clear acceptance criteria, open questions, ADR refs. READY/NEEDS WORK/BLOCKED/NOT ASSESSED.
recipe-create-meet-space
Create a Google Meet meeting space and share the join link.
atmos-config
Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.
workthreads
SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…
projects
List all managed projects with status, branch, open PRs, and open issue counts — portfolio-level view.
remove
Remove a deployed framework or addon from the current workspace.