/omni-to-sigma:omni-to-sigmafrom Omni → Sigma
Convert an Omni topic (YAML views, relationships) and a dashboard export into a Sigma data model and workbook. Offline fixture path plus optional read-only Omni query/run parity.
Ships in Omni → 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.
Foundation converter. One topic → one Sigma data model; one dashboard export → one workbook. Query views, custom Vega, and spreadsheet uploads are skipped with a warning, not guessed.
Read before converting:
refs/omni-source-contract.mdrefs/chart-map.mdrefs/security-rls.mdAuth (live only): OMNI_BASE_URL, OMNI_API_TOKEN (org key for YAML). Sigma:
SIGMA_BASE_URL, SIGMA_CLIENT_ID, SIGMA_CLIENT_SECRET via
eval "$(scripts/get-token.sh)". Offline runs need neither.
End-to-end live orchestrator (sequences C2 → C9 and aborts on the first gate failure):
ruby scripts/migrate-omni.rb --document <doc-id> \
--connection-id <uuid> --folder-id <uuid> --workdir <dir>
Feature-gap scan is the assessment skill (omni-assessment). Do not start a
convert until the shortlist names one topic and one document.
Offline: a model directory plus dashboard-export.json (see the source
contract). Live: GET /api/v1/models/{id}/yaml?mode=combined and
GET /api/unstable/documents/{id}/export via scripts/omni-discover.rb:
ruby scripts/omni-discover.rb --probe
ruby scripts/omni-discover.rb --document <doc-id> --out-dir discovery
Keep exportVersion "0.1".
convert-dm.rb writes omni-signature.json (warehouse tables, columns,
measures). Before creating a DM, score existing Sigma DMs:
ruby scripts/find-or-pick-dm.rb --workbook-signature omni-signature.json --auto-pick --refresh --out dm-match.json
Exit 0 = a recommended match, exit 1 with dm-match.json = no match (create a
new DM); anything else is a failed scan. migrate-omni.rb runs this scan on
every run (a previous run's dm-mode.json / dm-match.json is never the
answer) and writes dm-mode.json from the result:
{"mode":"create"}, the run continues.reuse-check and names the candidate. Re-run
with --reuse-dm <id> to build on it ({"mode":"reuse"}: nothing is POSTed
or PUT; post-omni-dm.rb reads it back and pairs elements/columns by name,
failing if any converted element or column is missing), or --new-dm [REASON]
to create one anyway (recorded as a skip-flag-waived record in
offramps.jsonl, so the verdict is never GREEN on that waiver).ruby scripts/convert-dm.rb --model-dir <dir> --topic <name> \
--connection-id <uuid> --folder-id <uuid> --out dm.json
Supports view/topic extends:, aliases:, dimension groups: and
bin_boundaries:, date timeframes, filtered measures (SumIf/CountIf/
CountDistinctIf/AvgIf/MinIf/MaxIf), ratio measures, compound on_sql
joins, topic fields: curation (5-level selector precedence), and
workbookModel merging (--export dashboard.json). The envelope is
{sigmaDataModel, stats, warnings}.
POST sigmaDataModel to /v2/dataModels/spec, then read back
GET /v2/dataModels/{id}/spec and pass the server element id to the workbook
(--dm-elements dm-elements.json or --dm-id + --dm-element-id). Never wire
the workbook to the client ids in dm.json after a live POST:
ruby scripts/post-omni-dm.rb --spec dm.json --mode dm-mode.json --out dm-elements.json
ruby scripts/build-omni-workbook.rb --export dashboard.json --model-dir <dir> \
--dm-id <read-back-dm> --dm-element-id <read-back-element> \
--dm-element-name Orders --folder-id <uuid> --out wb.json
Hidden data element plus one chart per mapped tile. Unknown chartTypes land
in chart-gaps.json.
build-omni-workbook.rb attaches layout XML as the last write, after element
ids are final. A later spec PUT that omits layout wipes it — resend the
layout (or scripts/put-layout.rb when that helper is on the skill). Then
visual-QA (refs/layout-visual-qa.md, scripts/sigma-export-png.py).
ruby scripts/omni-query-oracle.rb --export dashboard.json --out oracle-plan.json
ruby scripts/verify-omni-parity.rb --workbook-id <id> --plan parity-plan.json --out parity-final.json
ruby scripts/assert-phase6-ran.rb --workdir <dir>
Offline, the oracle writes the POST /api/v1/query/run bodies and exits 0.
Live, verify-omni-parity.rb runs those queries against Omni and compares
the exported Sigma chart CSVs. Compare to Sigma (and the warehouse when the
connection is the same one Omni uses). A migration is not done until parity
is green.
ruby scripts/detect-rls.rb --model-dir <dir> --out rls.json
ruby scripts/apply-sigma-rls.rb --detect rls.json --out rls-plan.json
Detect always (--strict exits 2 when anything is present). Apply is opt-in
(--apply --confirm plus SIGMA_API_TOKEN) and still does not invent
attribute values. Details: refs/security-rls.md.
Unsupported source features → python3 scripts/escalate-gap.py (opt-in).
Never fake a feature. v0 gaps: query views, omni_dimensionalize, Mustache
attribute SQL, per-tile filter exclusion, custom Vega, spreadsheet uploads.
QUICKSTART.md (opens in a new tab)fixtures/orders-overview/dashboard-export.json (opens in a new tab)fixtures/orders-overview/model.yaml (opens in a new tab)fixtures/orders-overview/orders.topic (opens in a new tab)fixtures/orders-overview/public/orders.view (opens in a new tab)fixtures/orders-overview/public/scratch.query.view (opens in a new tab)fixtures/orders-overview/public/users.view (opens in a new tab)fixtures/orders-overview/relationships.yaml (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/chart-map.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/omni-source-contract.md (opens in a new tab)refs/phase-e-enhance.md (opens in a new tab)refs/security-rls.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/apply-sigma-rls.rb (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sigmacomputing/sigma-migration-skills --plugin omni-to-sigma