/quicksight-to-sigma:quicksight-to-sigmafrom QuickSight → Sigma
Convert an Amazon QuickSight analysis or dashboard into a Sigma data model and matching dashboard. Use when the user has a QuickSight analysis/dashboard and wants to recreate it in Sigma. Covers AWS-CLI extraction of the analysis definition + datasets + data sources, calc-field / data-prep translation via the local vendored converter (the convert_quicksight_to_sigma MCP tool is a manual fallback only), posting the data model + workbook via the Sigma REST API, layout, and parity verification against the same warehouse.
Ships in QuickSight → 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.
Windows / first run — run the environment doctor before anything else:
bash scripts/doctor.sh(macOS/Linux/Git Bash) orpowershell -ExecutionPolicy Bypass -File scripts\doctor.ps1(Windows). It checks Ruby/Python/Node/bash and flags the Python "Store stub" + CRLF with exact fixes. Details:refs/environment.md.
Before POSTing any workbook spec, run ruby scripts/lib/preflight_lint.rb <spec.json> — it exits 1 with a precise message on the two migration-killer bugs: a table with aggregate columns + dimensions but no groupings (renders raw detail rows), and a malformed control (missing id/controlId/controlType or nesting value fields under a value object instead of flat, a non-double-nested source, or a list control wired to neither source nor filters — a filters-only list control is valid). Fix every violation first — never POST past it, and never conclude a feature is "unsupported" from an Invalid kind error (it means the inner fields are wrong). Verified shapes: sigma-workbooks controls.md / tables.md.
Don't silently land the migrated data model + workbook in an auto-picked folder.
If the user didn't supply a destination (no --folder <id-or-name>), ASK before building:
ruby scripts/pick-destination.rb list → { workspaces, folders (editable, with parentName), myDocuments }id lands content in the workspace root),
an existing folder, My Documents (when non-null — null for service tokens), or
create a new folder: ruby scripts/pick-destination.rb create --name "<name>" [--parent <workspace-or-folder-id>]--folder <id> (the downstream --fixup step requires a folderId).If a destination is already supplied, honor it silently — don't ask.
READ FIRST —
refs/operating-contract.md: the fidelity guardrails (render + value-check EVERY page against the source; never ship empty or silently drop a tile; don't spin — surface blockers). Modeling strategy —refs/modeling-strategy.md: faithful reproduction of the source model is the DEFAULT (parity is the gate); an upstream OBT or Sigma-native materialization is an OPT-IN optimization for hot, join-heavy dashboards, re-verified against the same parity oracle. The converter never auto-flattens. Status: foundation (converter MCP + browser shipped 2026-05-28). Beads: converter =[bead]; CustomSql/DIRECT_QUERY fixup =[bead]. Defers to:sigma-workbooks(canonical workbook spec),sigma-data-models(DM spec), the local vendored converter (converter/quicksight.mjs, exportingconvertQuickSightToSigma— theconvert_quicksight_to_sigmaMCP tool is a manual fallback only), and the shared vendor-neutral Sigma-side scripts (post-and-readback.rb,put-layout.rb,find-or-pick-dm.rb,verify-parity.rb) reused across the migration skills.
1. AUTH AWS CLI → QuickSight (unchanged); Sigma via browser-first shared provider
2. DISCOVER describe-analysis-definition + describe-data-set(s) + describe-data-source(s) → quicksight-discover.py → signals.json
3. CONVERT local vendored converter (converter/quicksight.mjs via node) — analysis.json + dataset jsons + connectionId → Sigma DM JSON [MCP only as manual fallback]
4. POST DM fixup (name elements + passthrough cols, rewrite sql refs, schemaVersion=1) → validate → POST /v2/dataModels/spec
5. WORKBOOK master tables per DM element + chart elements mirroring the QS visuals → POST /v2/workbooks
6. LAYOUT QS grid x,y,w,h → 24-col layout XML → put-layout.rb
7. VERIFY sigma-mcp-v2 query each element returns real rows; Phase 6 parity vs the QuickSight aggregation [hard gate]
See refs/migration-test-slate.md for the complexity taxonomy + 20-dashboard test slate that grounds the converter's coverage and known gaps.
scripts/intake.rb)Resolve the Sigma warehouse connection a SINGLE time up front so no phase free-searches
/v2/connections (the token sink):
ruby scripts/intake.rb --workdir <WORK> --tool quicksight-to-sigma --mode live \
[--connection <id>] [--name <connection-name-substring>]
Caches <WORK>/connection.json (the orchestrator reads it when --connection is omitted —
point --out at the same <WORK>) and writes intake.json (run-start + mode for
run-duration / audit). Multiple connections + no id/name → it lists them and asks you to pick;
never guesses.
scripts/migrate-quicksight.rb⛔ THE ONE PATH (do not improvise a workbook)
migrate-quicksight.rbis the single entry point; it only exits 0 when theassert-phase6-ranhard gate passes with real charts. Rules:
- NEVER hand-drive the per-phase scripts, hand-author a DM/workbook JSON, or
curl-POST to/v2/workbooks/ lay out empty "placeholder" pages — that bypasses parity + the gate and ships an EMPTY workbook (the #1 failure mode). If you can't reach QuickSight (no AWS creds / wrong--profile/--region), STOP and tell the user to authenticate — do not build a shell.- "Done" is a file on disk, not "pages exist." Complete only when
ruby scripts/verify-complete.rb --workdir <WORK>prints ✅ DONE (the gate stampedphase6-success.json). An empty workbook is never done.
The single-process orchestrator chains every phase below — discover (live AWS or --from-fixtures <dir>), convert (zero-config: the self-contained converter/quicksight.mjs bundle vendored in the skill runs convertQuickSightToSigma locally via node — no clone, no npm, no MCP; a dev's --mcp-dir/$QS_MCP_DIR build still wins; refresh with tools/vendor-converters.sh; only if the bundle is also absent does convert-model.rb --emit-mcp gate + --converted resume apply), the Phase 3.5 DM-reuse check (qs-dm-signature.py + find-or-pick-dm.rb; reuse-first — auto-reuses an existing DM covering all the analysis's source tables, --reuse-dm <id> pins one, --skip-reuse-check forces build new), fixup --folder-id → validate → post-and-readback, workbook build, layout, then the two-pass Phase 7 parity (phase6-parity-quicksight.rb emits the per-chart query list and gates; write parity-expected.json + parity-actuals.json and re-run the SAME command — phases 1–5 skip automatically) and the assert-phase6-ran.rb --workdir hard gate:
ruby scripts/migrate-quicksight.rb \
--analysis-id <ID> --account-id <ACCT> --region us-east-1 --profile <P> \
--connection <SIGMA_CONN_UUID> --folder <FOLDER_ID> \
[--database DB --schema SCH] [--name "My Dashboard"] [--out DIR] [--yes]
# offline / fixtures: swap the first line for --from-fixtures fixtures/
Exit 0 = parity + hard gate green; exit 10 = a gate (converter MCP / parity collection / OPEN QUESTIONS) printed its exact resume command; exit 3 = parity fail. Each phase prints a visible header — it is not a black box. The per-script phases below remain the reference for running any stage by hand.
--folder accepts a folder id or exact name (name is looked up via /v2/files; ambiguous names abort with candidates). Re-running the same command with the same --out after a mid-run crash is idempotent: a DM/workbook already posted by that workdir is detected (dm-readback.json / wb-id.txt), verified live, and reused — never duplicated. Use a fresh --out for a fresh build.
QuickSight (AWS CLI).
describe-analysis-definition, describe-dashboard-definition, and describe-data-set APIs are Enterprise-edition only. A Standard-edition account rejects them — there is no extraction path on Standard. Confirm the edition first.us-east-1 even when the data lives elsewhere; the analysis/dataset/data-source resources are read from the identity region. Pass --region us-east-1 unless you know the account is regionalized differently.--profile, SSO (aws sso login), or — for Okta-fronted orgs — gimme-aws-creds writing a profile. The discovery script uses an in-process boto3 client when boto3 is importable (one session for the whole run) and only falls back to shelling out to aws quicksight ... when it isn't — boto3 is NOT a hard dependency, and QS_FORCE_CLI=1 forces the CLI path.aws sts get-caller-identity) and the analysis (or dashboard) id.Sigma. Set SIGMA_BASE_URL, then run
eval "$(bash scripts/browser-login.sh)" once from an interactive terminal
(preferred). The orchestrator and plugin-local RLS, scout, post, layout, reuse,
cleanup, parity, and render paths use the co-located lib/sigma_rest.rb /
lib/sigma_rest.py: they reuse a current bearer, proactively refresh known-age
tokens, use the browser keychain without reopening the browser, fall back to
SIGMA_CLIENT_ID / SIGMA_CLIENT_SECRET for unattended runs, and refresh/retry
exactly once on HTTP 401. Manual eval "$(scripts/get-token.sh)" is only needed
to expose a short-lived bearer for raw curl. You also need a Sigma connection
that reaches the same warehouse the QuickSight datasets query (its
connection_id feeds the converter), and a target folder id. This does not
change AWS / QuickSight authentication.
python3 scripts/quicksight-discover.py \
--account-id <ACCOUNT_ID> --region <REGION> --profile <PROFILE> \
--analysis-id <ANALYSIS_ID> \
--out-dir ~/quicksight-migration/<name>
# (or --dashboard-id <DASHBOARD_ID> instead of --analysis-id)
Pulls describe-analysis-definition (or -dashboard-definition) + describe-data-set for every DataSetIdentifierDeclarations entry + describe-data-source for each referenced source, and writes into the out-dir:
analysis.json — the full describe-*-definition response (the converter's primary input).datasets/<id>.json — one per dataset (PhysicalTableMap, LogicalTableMap/transforms, calc fields, output columns).datasources/<id>.json — one per source (the Type tells you Snowflake / Redshift / Athena / S3 / SaaS).signals.json — normalized: per-sheet visuals (type + VisualId + title + referenced ColumnNames), calc fields, parameters, datasets, sources. Drives the convert + workbook + layout phases.timings.json — per-call wall clock + transport; always written.QuickSight has no server-side PNG render, so the source image comes from the async
Snapshot Export job (StartDashboardSnapshotJob → PDF → poll → presigned S3 → PDF→PNG
stitch). Capture it into the SAME workdir right after discovery — it reuses
quicksight-discover.py's boto3/AWS-CLI auth (same --profile/--region):
python3 scripts/quicksight-render-source.py \
--account-id <ACCOUNT_ID> --region <REGION> --profile <PROFILE> \
--dashboard-id <DASHBOARD_ID> --workdir <WORK>
# → <WORK>/dashboards/source.png (the exact path the Phase-6 gate scans to arm gates 13/14)
brew install poppler / apt-get install poppler-utils / pip install pymupdf). If the job genuinely can't run (Standard edition, no add-on, anonymous-snapshot capacity not enabled), drop a customer screenshot at <WORK>/dashboards/source.png instead — the gate accepts any PNG there.Then Read <WORK>/dashboards/source.png and, in that same pass, transcribe the printed
numbers into <WORK>/source-anchors.json — EXACTLY as printed (keep the raw string:
"12,345B", never 12345; "(12.3%)", never -0.123). Minimum ≥ 5 anchors: every KPI
value, the top 3 values of each ranked list/table, one representative bucket value per chart,
and 2–3 text roster anchors (include at least one from the BOTTOM of any ranked list — top
members survive a wrong ranking, bottom members don't). Also write png-read.json
({"source_png": "dashboards/source.png", ...}) if you keep a per-tile read. Schema,
canonicalization rules, and a worked example: refs/source-anchors.md.
aws CLI subprocess pays a 0.4-0.7s interpreter-startup tax (measured ~0.7s wall); a 1-analysis discovery makes 4-5 calls and an estate re-pays it per dashboard. With boto3 importable, ONE session serves every call; the CLI fallback keeps zero-dependency installs working (identical call/response shapes — boto3 responses are normalized: datetimes → ISO strings, ResponseMetadata stripped)./tmp/qs-estate-cache/<acct>__<region>/, override QS_ESTATE_CACHE): describe responses cached keyed DataSetArn + LastUpdatedTime — shared datasets are described ONCE per estate, not per dashboard. Freshness is validated against ONE list-data-sets call per process; any LastUpdatedTime mismatch (or a denied/empty listing) re-describes. Data sources are described once, lazily and cached without a probe (they change rarely). --no-cache bypasses, --refresh-cache forces re-describe.--analysis-ids a,b,c --pool 4 (cap 8) runs per-analysis discovery in parallel into <out-dir>/<id>/, sharing the estate cache with single-flight de-duplication (concurrent threads needing the same dataset trigger exactly one describe).python3 scripts/tests/test-quicksight-discover.py — 11 tests covering both transports (fake-boto3 injection + stubbed CLI), datetime normalization, cache hit/invalidation/single-flight, batch mode, and the offline fixture path. Still awaiting live-AWS validation: real boto3 session/profile auth, real list-data-sets pagination + permissions, Enterprise-edition describe-*-definition latency, and measured before/after numbers on a real estate. The mocked harness + the --from-fixtures E2E (migrate-quicksight.rb, parity 5/5 strict) are the offline proof.The conversion runs locally by default: migrate-quicksight.rb executes the vendored
converter bundle (converter/quicksight.mjs, convertQuickSightToSigma) in-process via a
node shim over analysis.json + each datasets/*.json — no clone, no npm install, no
network, no MCP, no data egress. A dev's own build wins via --mcp-dir / $QS_MCP_DIR.
Only if the bundle is also absent does it gate (exit 10):
ruby scripts/convert-model.rb --emit-mcp \
--discover-dir ~/quicksight-migration/<name> \
--connection-id <SIGMA_CONNECTION_ID> \
[--database <DB> --schema <SCHEMA>]
This prints the exact convert_quicksight_to_sigma MCP-tool call — files = analysis.json + each datasets/*.json, plus connection_id (and database/schema overrides if a dataset's source path is incomplete). Run that MCP tool manually — it is a fallback, not the default path — save its result, and resume with --converted <mcp-tool-result.json> (e.g. converter-out.json).
What the converter handles vs. what it doesn't (see refs/migration-test-slate.md for the full taxonomy):
ifelse→If, switch→nested If), parameters → Sigma controls. KPI / bar / line / donut/pie visuals on the workbook side./* TODO */ placeholder or skipped): window / table-calc functions (sumOver, runningSum, rank, percentOfTotal, periodOverPeriod*, window*, percentile*Over); S3Source & SaaSTable physical sources; analysis-level FilterGroups; ColumnConfigurations (formatting); dataset-of-datasets. Un-migratable visuals (Insight ML, CustomContent, Plugin, Sankey, map family) → emit a partial migration + warning manifest; never call these "failed".For an untranslated calc-field expression, spawn the gap-scout subagent (see scripts/gap-scout.md): it proposes a Sigma formula, validates it against the live DM via scripts/scout-validate-and-persist.rb, and on success persists a rule to ~/.quicksight-to-sigma/learned-rules.yaml (customer home — git pull can't clobber; the build script auto-applies it next run via LearnedRules.load). On failure the scout returns an opt-in escalate-gap.py command — filing a tracking issue is never automatic: run the returned escalation.dry_run_cmd to draft the issue (shows target repo + dedupe), show the user, and only re-run with --yes if they accept. Calc-field gaps route to the converter repos (sigma-data-model-manager + converter-source, mirrored) with a cross-linked bead.
Before Phase 4 POSTs a NEW data model, check whether an existing Sigma DM already covers the same warehouse tables (don't add a 4th near-identical "Orders" DM):
python3 scripts/qs-dm-signature.py --discover-dir ~/quicksight-migration/<name> \
--out dm-signature.json
ruby scripts/find-or-pick-dm.rb --workbook-signature dm-signature.json \
--out dm-match.json --auto-pick # exit 0 = candidate ≥ min-score
qs-dm-signature.py derives {warehouse_tables, referenced_columns} from the Phase-2
dataset JSONs (RelationalTable FQNs; CustomSql tables lifted from the SQL's FROM/JOIN;
calc columns from CreateColumnsOperation). Decision:
dm-match.json. If they reuse, run a
shape preflight first — read the candidate DM's spec back and confirm every column
the analysis references resolves on the element you'll wire to (no error columns; fact
vs separate-dim location) — then skip Phase 4 and point Phase 5's masters at the
matched recommended_dm_id + its element ids. With --auto-pick a clear winner (no tie
within 0.05) skips the prompt — still WARN about inherited columns/RLS/metrics.The converter output needs fixups before POST /v2/dataModels/spec (gap [bead]: CustomSql / DIRECT_QUERY elements come back nameless, and sql refs need rewriting):
ruby scripts/convert-model.rb --fixup \
--in converter-out.json \
--discover-dir ~/quicksight-migration/<name> \
--folder-id <FOLDER_ID> \
--out dm-spec.json
ruby scripts/validate-spec.rb --type datamodel dm-spec.json
ruby scripts/post-and-readback.rb --type datamodel --spec dm-spec.json --out dm-readback.json
--fixup forces schemaVersion: 1, names every element + its passthrough columns (so workbook masters can reference them), rewrites sql refs to [Custom SQL/<ALIAS>] form, and injects folderId. post-and-readback.rb confirms every column resolved to a concrete type — no error columns (the /columns listing is paginated, so a column past #50 is audited too) — and stamps each element's columnLabels + columnTypes into dm-readback.json; --reuse-dm stamps the same index from the reused model's /columns. The workbook builder reads it to pick the master element, to resolve every dataset column to the label the model gives it (source reference / column id first, display label second, ignoring case and punctuation — never fuzzy; unresolved columns are UnresolvedColumn items in the manual list of wb-spec.warnings.json, printed at the end of the build, and validate-spec.rb --dm-context fails on a master [element/column] that does not exist), and to choose control kinds: the column type decides (data-model type, then dataset OutputColumns, then a warned name guess) — datetime → date-range, anything else → list.
DM metric references (emit-first — leverage the semantic layer, don't duplicate it). QuickSight has no source-side metrics, so --fixup also EMITS a governed metric per field-well aggregation (reads analysis.json, resolves the aggregation via the same aggregation.json catalog the builder uses, and attaches {name, formula:"<Agg>([<Col>])"} to the element(s) that carry the column). Then build-workbook-from-quicksight.rb prefers a [Metrics/<name>] reference over its inline aggregate when they match by formula equivalence (strip the master prefix so Sum([Master/Net Revenue]) equals the metric's Sum([Net Revenue])) — via the shared binder scripts/lib/metric_binding.rb. SAFE: an unmapped aggregation is skipped (the builder loudly neutralizes it), window/calc/no-match measures fall back to inline, and no emitted metrics is byte-identical. Verified: scripts/test-metric-reference.rb.
ruby scripts/build-workbook-from-quicksight.rb \
--analysis ~/quicksight-migration/<name>/analysis.json \
--dm-readback dm-readback.json \
--folder-id <FOLDER_ID> \
--out wb-spec.json
ruby scripts/post-and-readback.rb --type workbook --spec wb-spec.json --out wb-readback.json
The workbook spec is
document-wrapped, not flat:schemaVersion/pages/kind/layout/settings/agentsall nest under a top-leveldocumentkey (confirmed live 2026-08-03, including on/verify2026-08-04). The theme is workbook content, so it travels insidedocumenttoo — atdocument.settings.theme, not the request root. Data-model specs are unaffected and stay flat.
Color + style fidelity (theme). QuickSight visual colors AND its card/big-number chrome are theme-driven and NOT in the definition export, so the builder reads signals.json.theme (resolved in Phase 2) and applies:
settings.theme.overrides.categoricalScheme = the QS data-color palette (the ONLY spec path to pie/donut slice colors, and the palette for every categorical chart), plus color:{by:single, value:<primaryColor>} on single-measure bar/line/area (QuickSight paints those in the theme's primary data color), and settings.theme.name:Dark when the QS theme is dark.settings.theme.overrides.hasCards:shown + borderRadius:round + a subtle elementBorder (light border skipped on dark themes) mirror that look theme-agnostically.kpi-chart gets value.fontSize:24 + layout.anchor:middle (Sigma's default is a small top-anchored number). 24 fits the scaled QS KPI row height without clipping; card bg/border come from hasCards (not per-element) so they stay theme-aware.No theme in signals (e.g. offline --from-fixtures) → colors + card chrome fall to Sigma defaults, unchanged. Limitations: (1) categoricalScheme is one global, positional palette applied in Sigma's category sort order — the color SET matches QuickSight but a pie's slice→label assignment can differ (QS assigns by value-descending); per-slice label parity isn't expressible via Sigma's single global scheme. (2) build-quicksight-layout.rb ports grid geometry faithfully but flattens QS SectionBasedLayout headers and approximates exact spacing/padding; inline chrome hexes (title color) aren't mapped.
Mirrors the QuickSight visuals as Sigma elements off Data-page master tables, and emits a wb-spec.map.json (visualId → element-id) the layout phase consumes. Element shapes:
[<source element name>/<col>] (the source element name comes from the DM element name set in Phase 4).xAxis:{columnId}, yAxis:{columnIds:[...]}.color:{id} + value:{id} (NOT xAxis/yAxis).ruby scripts/build-quicksight-layout.rb \
--analysis ~/quicksight-migration/<name>/analysis.json \
--map wb-spec.map.json \
--out layout.xml
ruby scripts/put-layout.rb --workbook <WORKBOOK_ID> --layout layout.xml
Maps each QuickSight visual's grid cell → a 24-col Sigma layout. QuickSight grid lines are 1-based — ColumnIndex/RowIndex start at 1, so subtract 1 before scaling to the 0-based Sigma grid. Free-form / section-based QS layouts are approximated to the grid.
A workbook that POSTs 200 and passes parity can still be visually broken — overlapping tiles, clipped KPI titles, dead zones, filters over charts. QuickSight FreeForm pixel coords can overlap and Sigma's grid has no z-order; the build collapses collisions, but this visual gate is the safety net.
python3 scripts/sigma-export-png.py --workbook <id> --page <pageId> --out /tmp/<page>.png --w 1600refs/layout-visual-qa.md (no overlaps/stacking, no dead zones, controls in their own band, no clipped titles, even heights, right chart kind/format).scripts/wb-rep.rb (full-clone: plugins/sigma-authoring/skills/sigma-workbooks/scripts/wb-rep.rb; pull → edit → push) — then re-render and re-read.# PASS 1 — plan + per-chart fetch instructions (reads the live workbook spec)
ruby scripts/phase6-parity-quicksight.rb --workdir /tmp/<name> --workbook-id <WORKBOOK_ID>
# ... run the printed mcp__sigma-mcp-v2__query calls (Sigma ACTUAL rows) and
# compute EXPECTED rows from the warehouse with the same dim+aggregation,
# writing parity-actuals.json + parity-expected.json into the workdir ...
# PASS 2 — verify + write the parity-final.json sentinel
ruby scripts/phase6-parity-quicksight.rb --workdir /tmp/<name> --finalize
# MEASURED value bar (gate 13) — Phase-1d anchors must appear in the live element exports
ruby scripts/verify-anchors.rb --workdir /tmp/<name> --workbook-id <WORKBOOK_ID>
# MEASURED visual floor (gate 14) — the Sigma render must be structurally like the source PNG
python3 scripts/visual-similarity.py --source /tmp/<name>/dashboards/source.png \
--render /tmp/<name>/sigma-render.png --json-out /tmp/<name>/visual-similarity.json
# hard gate — must exit 0 before declaring GREEN
ruby scripts/assert-phase6-ran.rb --workdir /tmp/<name> --workbook-id <WORKBOOK_ID>
POST success ≠ working. You MUST query-verify the built elements:
sigma-mcp-v2 query each element → confirm real rows (not blank / not all error).assert-phase6-ran.rb is a hard gate — a subagent must run it and it must pass before reporting success.document.elements (layout owns page membership; the hidden Data page is skipped). Plain tables get a profile check (kind: table-profile — row count + per-column non-null/distinct; expected side = warehouse counts with the QuickSight dataset filters/FilterGroups applied) that is weaker than value parity and is counted separately (profile_checks vs value_parity_checks in parity-final.json). Content elements with no plan (pivot-table, progress, maps) are listed under not_planned in parity-plan.json — query-verify those manually and name them in the report.VisualNotBuilt item in the manual list of wb-spec.warnings.json (printed at the end of the build) and is absent from visualToElement; an unaggregated TableVisual builds a detail table (no groupings) and table FieldOptions (label / hidden / order) are applied — unmapped table options are warned, not dropped. FilterGroups: only ONE static CategoryFilter on selected visuals becomes element filters; QuickSight ORs the filters inside a group and Sigma's element filters AND, so every other enabled group (2+ filters, parameter-bounded or static ranges, sheet-wide statics) is a FilterGroupNotMigrated manual item (scope, conditions, parameters + defaults) and the parameter controls feeding it are manual too. Controls: a FilterControl keeps its FilterGroup's scope — when every in-scope element is a table that can carry the column the control is re-wired to exactly those tables (hidden helper column where missing; value list still from the master; control-scope.json asserts the QuickSight scope), otherwise it stays on the shared master and a ControlScope manual item names what it over-reaches (Sigma controls cannot target charts/KPIs). Controls follow SheetControlLayouts order (not reversed), wrap by ColumnSpan below the navigation band, and an untitled visual is named after its sheet.assert-phase6-ran.rb runs 7 gates incl. layout lint (gate 6) and control lint (gate 7 — dead controls / ghost targets / partial same-page reach / control-scope.json coverage; --skip-control-lint escape; see refs/control-parity.md).<WORK>/dashboards/source.png — or views/*.png / png-read.json.source_png — exists): gate 13 (exit 18) requires source-anchors.json with ≥ 5 anchors AND a passing anchors-verdict.json (from verify-anchors.rb) — every printed source value must appear in the live element exports at its printed precision (catches the 10x/wrong-unit/collapsed-bucket failures a visual verdict misses); it also fires if --skip-parity-gate is used without a passing anchors verdict (the anchors oracle replaces parity, never nothing). Gate 14 (exit 20) runs the deterministic visual-similarity.py floor (source PNG vs Sigma render); exit 2 (missing Pillow/numpy) is a hard stop, never a pass. No source PNG → both gates state a SKIP. Escapes (each counts against the waiver budget, exit 19 at >2): --skip-anchors-gate "<reason>", --skip-visual-similarity "<reason>". See refs/source-anchors.md + refs/visual-similarity.md.ruby scripts/probe-controls.rb --workbook-id <wb> --check-out-of-closure — runtime proof controls actually filter (export API parameters is the only way to set a control programmatically; MCP queries see saved defaults only).SELECT … FROM DB.SCHEMA.TABLE fails): with type=connection the table must
be addressed as "connection"."<inodeId>", where <inodeId> is the table's
inode from GET /v2/connections/{connectionId}/lookup?path=… (or a prior DM
spec's source.path). The Sigma-ACTUAL side (type=workbook →
"workbook"."<elementId>") follows the same quoting pattern.describe-*-definition APIs. Standard rejects them outright — there's no fallback extraction.us-east-1 — resources read from the identity region, not the data region.[bead]): those elements come back nameless and with raw sql refs; the --fixup step names them + rewrites refs to [Custom SQL/<ALIAS>]. Don't post the converter output unfixed.[<source element name>/<col>], where the source element name is the DM element name set during fixup.color:{id} + value:{id}, not the bar/line xAxis/yAxis shape./* TODO */ placeholder; verify the graceful degradation rather than treating it as a failure, and surface it in the migration warning manifest.refs/rca-quicksight-2026-06-17.md)PUT /v2/workbooks/{id}/contents WIPES the applied layout. Layout is applied separately by put-layout.rb, so always re-run put-layout after every contents PUT. Worse: a failed contents PUT (4xx) followed by a layout PUT leaves the workbook referencing layout elements that don't exist in the spec → the whole page renders N/A / blank. If metrics show N/A after an edit, check spec/layout consistency first — query the element (it usually still returns data).body rejects a bare <p> — <p> carries no non-default block style or alignment. Use <p class="p-small">, <p style="text-align: …">, or a # heading / plain paragraph.{{Max([El/Col]) | %B %-d, %Y}} → "June 17, 2026". Quoted formats leak the quotes; DateFormat() echoes the pattern literally; Date() doesn't strip the time.*_FLAG columns are often warehouse BOOLEAN even when QS types them INTEGER — [flag] = 1 throws Argument 2 invalid for '=' at query time. Verify via /v2/connections/tables/{inode}/columns and emit a boolean-safe predicate.describe-dashboard-definition omits). Resolve it via POST /v2/connection/{connectionId}/lookup (singular connection) with {"path":[DB,SCHEMA,TABLE]}, probing candidate DBs until 200. A schema not granted to the connection's role 404s even when the DB resolves.Organization = "Acme Demo Organization" — 0 occurrences in the definition). Capture which control values are active before comparing, and request a screenshot + describe-theme <id> up front (the theme — hence the categorical color palette — is not in the definition export; discovery now auto-resolves it into signals.json.theme and the builder applies it — see Phase 5 color fidelity).sigma-mcp-v2, query an element with POST /v2/workbooks/{wb}/export {elementId, format:{type:csv}} → poll GET /v2/query/{queryId}/download. This is how you confirm real values (and filtered parity) on any org.These vendor-agnostic Sigma-side scripts are reused across the migration skills: browser-login.sh, get-token.sh, lib/sigma_rest.rb, lib/sigma_rest.py, post-and-readback.rb, put-layout.rb, find-or-pick-dm.rb, validate-spec.rb, verify-parity.rb, cleanup-orphan-workbooks.rb. The live helpers delegate authentication and one-401 retry to the co-located Sigma clients; get-token.sh remains the raw-shell/curl bridge. Only the QuickSight-specific stages (quicksight-discover.py, quicksight-render-source.py, convert-model.rb, build-workbook-from-quicksight.rb, build-quicksight-layout.rb, phase6-parity-quicksight.rb, qs-dm-signature.py) are new. scripts/sigma-export-png.py renders a workbook page to PNG for the mandatory Visual QA gate (read each image against refs/layout-visual-qa.md); scripts/quicksight-render-source.py renders the SOURCE dashboard to <WORK>/dashboards/source.png (Snapshot Export PDF→PNG) so the measured Phase-6 gates 13/14 (verify-anchors.rb + visual-similarity.py) can run.
Row/column security is never silently dropped and never silently ported — and it is handled by the skill, not baked into the converted model. The converter (convert_quicksight_to_sigma) only detects and reports security in result.security[]; it does not inject it into the data-model spec (a stateless converter can't create Sigma user attributes or assign members, so an injected CurrentUserAttributeText filter would fail-closed to 0 rows). This skill provisions + applies it after the model is posted.
What is detected for QuickSight: RowLevelPermissionTagConfiguration (tag-based RLS to a user-attribute), ColumnLevelPermissionRules (to CLS). A RowLevelPermissionDataSet is flagged (its grant rows live in a separate dataset not in the export — recreate as a user attribute).
Flow (only runs when result.security is non-empty — zero overhead otherwise):
dataModelId and the converter's result.security[] (write it to security.json).python3 scripts/apply_sigma_rls.py --from-security security.json --dm-id <dataModelId> # plan only (default)
python3 scripts/apply_sigma_rls.py --from-security security.json --dm-id <dataModelId> --provision --apply
The helper resolves the same valid-bearer → browser-keychain → unattended
client fallback automatically and retries one HTTP 401; no manual token
export is required.
--provision creates missing user attributes / teams; --apply PATCHes the boolean RLS calc column + fail-closed filters entry and the columnSecurities (CLS) onto the matching element.Skip is loud: opting out leaves the migrated model with NO RLS — all rows visible to everyone. Confirm before skipping.
QUICKSTART.md (opens in a new tab)converter/PROVENANCE.json (opens in a new tab)converter/quicksight.mjs (opens in a new tab)fixtures/dataset-orders-enriched.json (opens in a new tab)fixtures/orders-overview-analysis.json (opens in a new tab)refs/GAP-LEDGER.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/catalogs/aggregation.json (opens in a new tab)refs/catalogs/control.json (opens in a new tab)refs/catalogs/number-format.json (opens in a new tab)refs/catalogs/viz-kind.json (opens in a new tab)refs/catalogs/workbook-feature.json (opens in a new tab)refs/control-parity.md (opens in a new tab)refs/environment.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/migration-results.md (opens in a new tab)refs/migration-test-slate.md (opens in a new tab)refs/modeling-strategy.md (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 quicksight-to-sigma2 skills in this plugin