/mode-to-sigma:mode-to-sigmafrom Mode → Sigma
Converts Mode Reports (queries, charts, filters) into Sigma data models and workbooks via REST APIs. Automates discovery, reuse check, DM creation, layout, and parity verification.
Ships in Mode → Sigma. 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.
Read when SKILL.md points to them; scripts run unread.
Phase numbering is local to this skill; the canonical Assess→Discover→Reuse→ Convert→Post-DM→Build→Layout→Parity→Security→Enhance arc and this skill's mapping live in
docs/phase-schema.md(full clone only — see repodocs/phase-schema.md).
Assessment is a separate skill and isn't installable yet. Tenant-level inventory, dedup, and a value/cost migration shortlist are
mode-assessment's job — it exists in this plugin'sskills/directory but is a scaffold and is not registered inmarketplace.json/AGENTS.mdfor this release (SP1 ships the converter only). Pick the Report to migrate some other way (the Report's URL/token) and run this skill directly.
Run the phases below in order, via the one-command orchestrator —
ruby scripts/migrate-mode.rb --report <token> --connection-id <id> --folder-id <id>
— which shells out to each phase script and stops at the first hard-gate
failure rather than leaving a skipped gate for a human to notice.
ruby scripts/mode-discover.rb --report <token> pulls the Report's Queries,
Charts, and Filters, and samples each Query's live output columns by
triggering a fresh run (Mode has no static schema endpoint for a query's
result set).
build-dm.rb builds a mode-signature.json (same shape find-or-pick-dm.rb
expects from every converter) and calls it with --auto-pick before
building a new Data Model — if a prior Sigma DM already wraps the same
warehouse tables, extend it instead of creating a new one.
Every Mode Query becomes one sql-kind Sigma table element, wrapping its
raw SQL verbatim — no formula translation, since the SQL already runs
against the target warehouse.
post-dm.rb POSTs a new Data Model (or PUTs the existing one Phase 1 chose
to extend) and reads back the server-assigned element ids. Hard gate: no
workbook-building step runs before this.
build-mode-workbook.rb builds a hidden Data page (one element per Query)
and a visible Report page stacking one chart per Mode Chart in Report
order — a notebook-flow layout, applied as the last write before POST
(not a separate layout PUT).
verify-parity.rb re-runs each source Mode Query and compares its value
against the Sigma chart, writing parity-final.json for
assert-phase6-ran.rb to gate on. Never skipped.
migrate-mode.rb's call to assert-phase6-ran.rb does pass
--skip-visual-gate 'mode-to-sigma v1 — no Mode UI render capability' — an
honest waiver of the separate visual-render sub-gate (gate 8: a rendered
screenshot of the built workbook), since this converter has no
browser-automation access to render Mode's own UI for a side-by-side
comparison. That waiver never touches the parity check above: it still
runs against every Query, and is never skipped.
No row- or column-level security construct was found on the one account
this skill was built and tested against: the single Space inspected during
discovery reports restricted: false in its own metadata, and Mode's
public API surface exposes no per-user row/column filtering endpoint to
discover in the first place. That is evidence about one account's one
Space — not a general proof that Mode has no RLS/CLS feature anywhere
(e.g. a paid-tier row-level feature this account's plan doesn't have); the
design doc's own open question here ("confirm there isn't a paid-tier
row-level feature we're missing") was never actually closed. Practical
conclusion for v1 is unchanged: nothing is built for RLS/CLS, since none
was observed — but if a customer's Mode account turns out to carry a row-
security feature this discovery missed, that is a real gap to fix, not a
silent omission this note already covers.
Read this before running against real Mode content — several things below are detected/partially built but not finished, and the parity gate is expected to fail honestly until they land:
kind + source — no axis/value/
rowsBy fields are set yet, so charts will not render real data until this
is completed. Finishing this needs to see a real Mode chart's view JSON
shape from a live Report — nobody has seen one yet, since no Mode content
has been seeded live. Guessing the shape now would repeat the mistake
this plan already made once elsewhere; it is deliberately left open
rather than built on a guess.detect_simple_param_filter, param-gaps.json) but nothing is actually
built from it — no Sigma control is created, no element filter is wired.verify-parity.rb compares a chart's FULL source query result against
its Sigma export column-for-column. This will show false FAILs for any
chart that aggregates or selects a subset of the query's columns — only a
degenerate 1:1 chart (every query column, no aggregation) compares
correctly today.Because of the above, the C8 parity hard gate is expected to genuinely FAIL on real content until this follow-up work lands — that is correct, honest behavior, not a bug to suppress.
Unsupported source features → python3 scripts/escalate-gap.py (opt-in issue filer). Never fake a feature; flag it.
QUICKSTART.md (opens in a new tab)refs/app-recommendation-signals.md (opens in a new tab)refs/blind-grader-brief.md (opens in a new tab)refs/fidelity-rubric.md (opens in a new tab)refs/layout-visual-qa.md (opens in a new tab)refs/phase-e-enhance.md (opens in a new tab)refs/sigma-platform-differences-history.json (opens in a new tab)refs/sigma-platform-differences.json (opens in a new tab)schemas/app-plan.schema.json (opens in a new tab)scripts/assert-phase6-ran.rb (opens in a new tab)scripts/browser-login.sh (opens in a new tab)scripts/build-dm.rb (opens in a new tab)scripts/build-mode-workbook.rb (opens in a new tab)scripts/cleanup-orphan-workbooks.rb (opens in a new tab)scripts/enhance-app-plan.rb (opens in a new tab)scripts/enhance-apply.rb (opens in a new tab)scripts/enhance-scan.rb (opens in a new tab)scripts/enhance-select.rb (opens in a new tab)scripts/escalate-gap.py (opens in a new tab)scripts/find-or-pick-dm.rb (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mode-to-sigma, data-migration, bi-migration, sigma, mode, rest-api
2 skills in this plugin
npx claudepluginhub sigmacomputing/sigma-migration-skills --plugin mode-to-sigmaOther plugins' skills for the same job