/thoughtspot-to-sigma:thoughtspot-to-sigmafrom ThoughtSpot → Sigma
Convert a ThoughtSpot model/worksheet and its Liveboards into a Sigma data model and matching dashboards. Use when the user has a ThoughtSpot instance (or exported TML) and wants to recreate it in Sigma. Covers discovery (TML export), data-model conversion, workbook build, layout, and parity verification driven by scripts/.
Ships in ThoughtSpot → 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 SIGMA_FOLDER_ID), ASK before building:
python3 scripts/pick_destination.py 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: python3 scripts/pick_destination.py create --name "<name>" [--parent <workspace-or-folder-id>]SIGMA_FOLDER_ID=<id>. folderId accepts a workspace id or a folder id.If SIGMA_FOLDER_ID is already set, 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.
Recreate a ThoughtSpot model/worksheet as a Sigma data model, and its Liveboards as Sigma workbooks, with parity verified against the live warehouse.
ThoughtSpot REST v2 needs TS_HOST + TS_TOKEN. On an SSO trial with no local
password, open ${TS_HOST}/api/rest/2.0/auth/session/token in the logged-in
browser tab (or Develop → REST Playground) and copy the token. For a service
identity, enable Trusted Auth (Develop → Customizations → Security Settings) and
POST username+secret_key to auth/token/full. Sigma side uses
SIGMA_BASE_URL plus a valid caller bearer, a browser refresh session stored
by one-time eval "$(scripts/browser-login.sh)" (preferred), or
SIGMA_CLIENT_ID / SIGMA_CLIENT_SECRET as the unattended fallback. The
Python migration, parity, scout, visual-compare, layout, and RLS paths use the
co-located scripts/lib/sigma_rest.py: known-age tokens refresh proactively,
the browser keychain is tried before client credentials, and one HTTP 401 is
refreshed and retried. No manual token mint is required for those scripts.
Trials often sit behind corp TLS — the Python helpers prefer the OS trust store,
then certifi, and disable verification only when the user explicitly sets the
corresponding insecure-TLS override.
Before parity, capture the WHOLE source Liveboard as one image and transcribe its
printed values. This arms the Phase-6 measured gates (step 6 + refs/source-anchors.md):
python3 scripts/thoughtspot-render-source.py <LIVEBOARD_ID> --workdir <WORK>
# → <WORK>/dashboards/source.png
# POST /api/rest/2.0/report/liveboard {file_format:"PNG", png_options:{...}} with NO
# visualization_identifiers = the WHOLE Liveboard; the response IS the PNG bytes
# (synchronous — no async task / S3). Reuses TS_HOST/TS_TOKEN (same auth as ts_lib);
# older orgs fall back to whole-Liveboard PDF→PNG. Blank/placeholder renders fail loudly.
For a multi-Liveboard run, use that Liveboard's parity dir (<WORK>/parity-<n>) as
--workdir so the image lands where its gate runs. --tab <guid> renders one tab.<WORK>/source-anchors.json, EXACTLY as
printed (keep the raw string: "12,345B", never 12345): every KPI value, the top 3 values
of every ranked list/table, one representative bucket value per chart, and 2–3 text roster
anchors per ranked tile (include one from the BOTTOM half). Schema + canonicalization rules:
refs/source-anchors.md.Skipping either step leaves the migration UNVERIFIED (gates 13/14 SKIP), not "done".
⛔ THE ONE PATH (do not improvise a workbook)
Use
migrate-thoughtspot.py— it runs theassert-phase6-ranhard gate, so it only reaches GREEN with real charts. Rules:
- Prefer the one command over the manual
migrate.pyper-phase path (below): the manual path does not run the completion gate, so it can leave an unverified or empty result. If you must run phases by hand, you MUST still finish with parity +assert-phase6-ran.rbandverify-complete.rb.- Never hand-drive the per-phase scripts as a cold shortcut, never hand-author a DM/workbook JSON and
curl-POST it, and never lay out empty "placeholder" pages. If ThoughtSpot isn't reachable (noTS_HOST/TS_TOKEN), STOP and tell the user to authenticate — do not build a shell.- "Done" is a file on disk. Complete only when
ruby scripts/verify-complete.rb --workdir <WORK>prints ✅ DONE (the gate stampedphase6-success.json). An empty workbook is never done.
The whole pipeline — discover → DM-reuse check → convert → DM → workbooks →
layout → source-freshness preflight → scripted parity + hard gate — as a
single command (mirrors qlik-to-sigma's migrate-qlik.rb). Gates are never
bypassed: the command exits non-zero if parity or assert-phase6-ran.rb fails.
export TS_HOST TS_TOKEN SIGMA_BASE_URL SIGMA_CONNECTION_ID TS_DB TS_SCHEMA
python3 scripts/migrate-thoughtspot.py --model <TS_MODEL_ID> [--liveboard <ID> ...] \
[--name PREFIX] [--workdir DIR]
# offline (fixtures, no TS instance):
python3 scripts/migrate-thoughtspot.py --model-tml fixtures/retail-analytics-model.tml \
--liveboard-tml fixtures/retail-analytics-liveboard.tml --workdir /tmp/ts-run
--no-reuse (always build new)
or pin a specific model with --reuse-dm <id>. The Sigma folder is
auto-resolved and printed when SIGMA_FOLDER_ID is unset.searchdata aggregate probe vs a live warehouse
snapshot (offline runs note the TS side unavailable), so staleness/model drift
never masquerades as a conversion bug.ts_lib.searchdata ground truth (live) or a source-TML-derived re-aggregation
of the master's warehouse rows (offline — agg from the TML's own
headline_aggregation, independent of the builder). Then
phase6-parity-thoughtspot.rb --finalize + assert-phase6-ran.rb run
automatically.0 GREEN · 3 MCP convert request emitted (call the tool, re-run
with --converted <workdir>/converted.json) · 2 built but a gate FAILED ·
10-free (no interactive checkpoint; RLS is reported by the converter and
ported post-model via apply_sigma_rls.py as below). --dry-run = no Sigma
POSTs (discovery + reuse scan + local convert / MCP request only).export TS_HOST TS_TOKEN SIGMA_BASE_URL \
SIGMA_CONNECTION_ID SIGMA_FOLDER_ID TS_DB TS_SCHEMA
python3 scripts/migrate.py --model <TS_MODEL_ID> [--liveboard <ID> ...] \
[--name PREFIX] [--workdir DIR] [--reuse-dm <dataModelId>]
migrate.py runs the whole pipeline with no hardcoded ids or paths and
migrates every Liveboard that reads the model (or just the --liveboard ones).
Liveboard selection used to export every Liveboard TML in the org serially and grep for the model name — O(org-size), measured 19.2s on a 33-liveboard trial org and linear from there (a 200-liveboard org ≈ 2 min per model). Re-engineered 2026-06-11:
ts_lib.dependents(model_id) asks metadata/search
(include_dependent_objects) which liveboards READ the model — verified live
(13 candidates of 33 org liveboards) — so only candidates are exported.ts_lib.export_tml_many() exports
candidates on a ThreadPool(4) with a disk cache keyed
(metadata_id, modified-epoch-ms) ($TS_TML_CACHE, default
~/.sigma-migration/ts-tml-cache; hits/misses logged). Measured:
19.2s → 1.7s cold / 0.2s warm, and re-runs after the MCP-converter
exit-3 resume are all cache hits.migrate.py (joined before workbook builds), so on warm paths it
costs ~0 wall-clock.http.client): no per-request TLS
handshake. (The TS Cloud edge WAF rejects UA-less requests with an HTML 403
— ts_lib always sends a User-Agent.)dependents() returns None (older TS
builds without dependent_objects in metadata/search), migrate.py
falls back to export-all-then-grep — still parallel + cached, but
O(org-size), and it SAYS so. If a customer estate hits this, extend
ts_lib.dependents() for their TS version (the patch point is marked in
collect_liveboards, scripts/migrate.py).
All artifacts (manifest, TML, parity files) land in --workdir
(default $TS_WORKDIR or ./ts-migration, created if missing). --name is a
prefix applied to BOTH the data model and every workbook; workbooks and pages
are named after the Liveboard's display name (resolved from its TML, never
the UUID).Converter — local by default, MCP is a fallback. Conversion runs locally
by default: the skill ships a self-contained converter bundle at
converter/thoughtspot.mjs, and both migrate.py and migrate-thoughtspot.py
default CONVERTER_PATH to it, so convert_model.mjs runs the bundle
in-process via node — no clone, no npm install, no network, no MCP, no
data egress. A dev's own build (build/thoughtspot.js) still wins via an
explicit CONVERTER_PATH. Refresh the bundle with tools/vendor-converters.sh
(see converter/PROVENANCE.json). The hosted sigma-data-model MCP is
only a manual fallback: if the bundle is also missing AND
CONVERTER_PATH is unset, migrate.py writes <workdir>/model.tml +
<workdir>/convert-request.json (the exact
mcp__sigma-data-model__convert_thoughtspot_to_sigma arguments) and exits 3 —
call the tool yourself, save its JSON to <workdir>/converted.json, and re-run
with --converted <workdir>/converted.json.
Offline mode (no live ThoughtSpot needed): --model-tml <file> +
--liveboard-tml <file> read exported TML from disk — fixtures/ ships a real
exported pair (retail-analytics-model.tml + retail-analytics-liveboard.tml,
the DEMO_DB.DEMO retail star) so the full convert→post→build→layout path can be
exercised end-to-end without a TS trial:
python3 scripts/migrate.py --model-tml fixtures/retail-analytics-model.tml \
--liveboard-tml fixtures/retail-analytics-liveboard.tml --workdir /tmp/ts-offline
Discover — ts_discover.py [<id> <type>] lists models + Liveboards or
summarizes one (chart types, search queries, lineage). metadata/search +
metadata/tml/export.
Convert the model — export the model TML and convert it locally by
default: convert_model.mjs runs the vendored converter bundle
(converter/thoughtspot.mjs) in-process via node — no clone, no npm install, no network, no MCP, no data egress. Only if that bundle (and
any dev-supplied CONVERTER_PATH) is unavailable does it fall back to the
convert_thoughtspot_to_sigma MCP tool, called manually. ThoughtSpot
exports the model: format
(joins inline on model_tables[].joins[], [TABLE::COL] formula refs,
col.properties.column_type) — the converter handles it. POST to
/v2/dataModels/spec; then read back the posted DM spec to resolve real
element/column ids and find the denormalized
" View" element (surfaces joined-dim columns via [base/REL/Field]).
Resolve columns — ts_common.build_resolver(model_root) derives the
ThoughtSpot-column → Sigma-denorm-column map from the model TML itself
(replicates the converter's sigmaDisplayName; joined dims get a (TABLE)
suffix, fact columns don't). No hardcoded registry → works for any model.
Build workbooks — per Liveboard, map each visualization
(answer.search_query + chart.type) to a Sigma element off the master table.
Workbook writes use outer metadata plus
contents:{schemaVersion,kind,pages,elements,layout}: pages are metadata-only,
elements are flat, and authoritative layout places every element exactly once
with the live <Element> / <Container> tag vocabulary (data-model specs
keep their existing page-nested shape).
Chart map: KPI→kpi-chart, COLUMN/BAR/STACKED→bar-chart, LINE→line-chart, PIE/DONUT→
donut-chart (ThoughtSpot renders pies as donuts), PIVOT_TABLE→pivot-table,
TABLE→grouped table, AREA→area-chart, SCATTER/BUBBLE→scatter-chart (x/y measures
client_state map to the
chart's published legend fields. Do not emit standalone legend controls:
Answer TML has no such artifact. Likewise, multiple axis_configs.x columns
are axis assignments, not a persisted drill hierarchy; retain the first
x-axis level and flag the interaction gap instead of inventing undocumented
drill control source/target fields.
Search-query filters ([Col]='v') → element list-filters. TML sorts
(sort by [Col] tokens + client_state sortInfo) carry into the specs, and
table column ORDER follows the answer's ordered_column_ids (never the
alphabetical answer_columns or the chart's chart_columns).
Aggregate formulas (sum(x)/sum(y), sqrt(sum())) become DM metrics; column
formats come from the TML format_pattern/currency_type. KPI value uses
{"columnId": c}; donut value/color use {"id": c}; grouped tables need
groupings:[{groupBy, calculations}]. Full spec shapes:
refs/liveboard-to-workbook.md (charts) + refs/model-conversion-rules.md (DM).
DM metric references (leverage the semantic layer, don't duplicate it): a
measure column prefers a governed [Metrics/<name>] reference over re-deriving
the aggregate inline, when its inline aggregate matches a metric referenceable on
the master (formula-equivalence match via the shared binder
scripts/lib/metric_binding.py — strip the OFV prefix so Sum([OFV/Net Revenue])
equals a metric's Sum([Net Revenue])). migrate.py resolves the metrics off the
denorm " View" element (0 own metrics; it inherits the base fact's via
source.elementId) and stashes them on the resolver. SAFE: synthesized
timeshift/growth/window measures, dim-grain KPIs, ratios, and any non-match fall
back to inline; the DM-reuse path (no conv) stays inline, byte-identical. Verified:
tests/test_metric_reference.py.Layout — apply_layouts.py maps the Liveboard's OWN
layout.tabs[].tiles (or legacy layout.tiles) geometry onto Sigma's 24-col
grid (cols ×2, rows ×ROW_SCALE min 2 so axis/KPI labels render). Source tabs
become metadata-only pages with native auto navigation. Layout is assembled
before POST and is authoritative; every flat element is placed exactly once.
The manifest persists every page's source tiles and element membership so a
later apply_layouts.py --workdir pass preserves multi-tab geometry.
Existing-workbook edits preserve the full document and PUT only
{contents:...}. Falls back loudly to a clean auto grid when TML has no tiles.
Parity (HARD GATE) — phase6-parity-thoughtspot.rb two-pass: PASS 1
reads the workbook spec and emits per-chart fetch instructions (Sigma ACTUAL
via mcp__sigma-mcp-v2__query; EXPECTED via ts_lib.searchdata ground
truth, or warehouse SQL when offline); PASS 2 --finalize runs
verify-parity.rb and writes the parity-final.json sentinel. Then run
ruby scripts/assert-phase6-ran.rb --workdir <dir> --workbook-id <wb> —
it must exit 0 before declaring the migration GREEN.
Measured value + visual gates (13 & 14). Once the source PNG (see the Source
dashboard PNG + value anchors section) is on disk, assert-phase6-ran.rb arms two
measured gates. Verify the transcribed anchors against the LIVE workbook first, then let
the hard gate run:
ruby scripts/verify-anchors.rb --workdir <dir> --workbook-id <wb> # → anchors-verdict.json
ruby scripts/assert-phase6-ran.rb --workdir <dir> --workbook-id <wb>
source-anchors.json
(≥ 5) must appear in the live element exports at printed precision (anchors-verdict.json
pass:true, all anchors checked — a stale verdict fails). Catches the 10x / wrong-member /
collapsed-bucket failures a visual verdict misses. No source PNG → stated SKIP; genuine
escape only via --skip-anchors-gate "<reason>".assert-phase6-ran.rb runs
scripts/visual-similarity.py --source <dir>/dashboards/source.png --render <sigma render>
and requires visual-similarity.json pass:true. Below the floor → fix layout/kind/palette
in the visual-QA loop (step 7) and re-render; escape --skip-visual-similarity "<reason>"
(counts against the waiver budget). Details: refs/source-anchors.md, refs/visual-similarity.md.Visual QA (HARD GATE) — never skip, never declare done on HTTP 200. A
workbook that POSTs cleanly and passes parity can still be visually broken
(overlapping tiles, clipped KPI titles, dead zones, orphaned filters; Sigma's
grid has no z-order — the build de-overlaps bands via _decollide_bands, but
this visual gate is the safety net). After compare.py renders the Sigma
element/page PNGs (side-by-side vs the TS viz):
refs/layout-visual-qa.md (no
overlaps/stacking, no dead zones, controls placed in-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.Before step 2 POSTs a NEW data model, check whether an existing Sigma DM already covers the same warehouse tables (don't add a 4th near-identical DM for the same star):
python3 scripts/ts-dm-signature.py --tml model.tml \
--database $TS_DB --schema $TS_SCHEMA --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
ts-dm-signature.py derives {warehouse_tables, referenced_columns, measures} from the
exported model TML (model_tables[].fqn is a TS guid, so pass the same TS_DB/TS_SCHEMA
you export for migrate.py). migrate.py does all of this automatically (Phase 2.5 via
auto_pick_dm) before convert — it auto-reuses when the top candidate covers ALL the model's
warehouse tables (table_match 1.0), taking a column-superset match even through a score
tie (the tie is duplicate-DM sprawl to collapse, not an ambiguity), and PRINTS the choice +
inherited-column warning. Opt out with --no-reuse; pin one with --reuse-dm <id>. When
driving the picker by hand:
table_match 1.0), score ≥ 0.6 → reuse: run a
shape preflight first — read the candidate DM's spec back and confirm every column the
Liveboards reference resolves on the element you'll wire to (no type=error columns;
the denormalized " View" element vs separate dims) — then skip the DM POST and
build the workbooks (step 4) against the matched recommended_dm_id + its element ids.
WARN about inherited columns/RLS/metrics. (A DM that does NOT cover every table is never
auto-reused — its denorm view can't satisfy the missing column refs.)migrate-thoughtspot.py — ONE-COMMAND orchestrator (preferred entry):
chains discovery, the DM-reuse check, migrate.py, the freshness preflight,
and the scripted parity + hard gate; exit 0 only when every gate is GREENmigrate.py — the per-phase pipeline the one-command wraps: model → DM →
migrate its Liveboards (parameterized: --workdir, --name prefix,
--converted MCP output, offline --model-tml/--liveboard-tml,
--reuse-dm to skip convert+POST and build against an existing DM)convert_model.mjs — model TML → Sigma DM spec (imports a local converter
build via CONVERTER_PATH; without one, migrate.py emits the MCP request instead)phase6-parity-thoughtspot.rb — parity orchestrator (two-pass; writes the
parity-final.json sentinel) + verify-parity.rb (comparator)assert-phase6-ran.rb — hard gate (vendored byte-identical across the 5
plugins): parity ran + PASS, no orphan workbooks, no type=error
columns, layout applied, layout lint (gate 6), control lint (gate 7 — dead
controls / ghost targets / partial same-page reach / control-scope.json
coverage; --skip-control-lint; see refs/control-parity.md). Run with
--workdir <dir> --workbook-id <wb>; exit 0 required before GREENprobe-controls.rb — optional flip test for Liveboard-filter→control
wiring: in-closure export must change under a non-default parameters
value, out-of-closure must not (--check-out-of-closure). Shared, vendored
byte-identicalts-dm-signature.py — step 2.5: model TML → DM-reuse signature for find-or-pick-dm.rbfind-or-pick-dm.rb — step 2.5: scan existing Sigma DMs, recommend reuse (0.7·column +
0.2·table + 0.1·metric overlap; --auto-pick w/ tie-window). Shared vendor-neutral copy
(canonical: tableau-to-sigma; needs scripts/lib/sigma_rest.rb). Non-destructive.ts_lib.py — ThoughtSpot REST v2 (whoami/search/export_tml/import_tml/searchdata)ts_discover.py — inventory / per-object summaryts_common.py — build_resolver (from model TML), viz↔element mappers, format/currency mappingapply_layouts.py — layout pass (run LAST): TML tile geometry → Sigma 24-col
grid, auto-grid fallback; --workdir reads the manifestcompare.py — visual + structural compare (TS viz PNG vs Sigma element PNG → HTML); mandatory visual-QA gate — read each rendered Sigma PNG against refs/layout-visual-qa.md and loop until cleants_screenshot.py — per-viz PNG export from ThoughtSpot; detects blank /
connection-error placeholder renders (near-uniform image or non-PNG error
body) and reports them as ✗ failures, never ✓thoughtspot-render-source.py — source-side WHOLE-Liveboard PNG for the
measured Phase-6 gates: POST /api/rest/2.0/report/liveboard (file_format PNG,
no visualization_identifiers) → synchronous bytes → <workdir>/dashboards/source.png
(blank-render guarded via ts_screenshot.png_health; whole-Liveboard PDF→PNG fallback for
older orgs). Reuses TS_HOST/TS_TOKENverify-anchors.rb — gate 13: checks the ≥ 5 anchors transcribed from the source PNG appear
in the live workbook element exports at printed precision → anchors-verdict.jsonvisual-similarity.py — gate 14: scores dashboards/source.png vs the Sigma render →
visual-similarity.json (invoked by assert-phase6-ran.rb)gap-scout.md + scout-validate.py + learned-rules.py — formula gap-scout (validate + persist unhandled-TML translations)browser-login.sh — preferred one-time interactive Sigma login; stores the
refresh session in the OS keychainget-token.sh — browser-first Sigma token helper for raw shell/curl use;
Python migration scripts call the same provider through lib/sigma_rest.pyget-ts-token.sh — ThoughtSpot Trusted-Auth service tokenThe DEMO_DB.DEMO retail star (ORDER_FACT + 5 dims) → ThoughtSpot model "Retail Analytics"
→ converted Sigma DM (6-table star + Order Fact View) → 11 themed Liveboards
migrated to 11 Sigma workbooks, parity exact (Net Revenue 108,797.85; by-category,
region, quarter all match to the cent). Per-run ids land in <workdir>/migrate_out.json.
refs/model-conversion-rules.md — model TML → DM rules (joins/formulas/display
names/formats, TS_DB/TS_SCHEMA fqn gotcha, MCP request shape)refs/liveboard-to-workbook.md — workbook spec shapes (KPI {columnId} vs
donut {id}, groupings, pivot rowsBy/columnsBy, sorts, layout geometry math,
rename gotcha)fixtures/ — real exported TML pair from a live trial org
(retail-analytics-model.tml 6-table star + retail-analytics-liveboard.tml
5-viz Liveboard with layout.tiles) — drives the offline mode above and the
converter's regression diet.converter/thoughtspot.mjs) is the local, default path for
conversion. It's built from the same convert_thoughtspot_to_sigma logic as the
hosted MCP (github.com/sigmacomputing/converter-source) and the browser
sigma-data-model-manager — keep all three in lockstep; the MCP tool itself is only
a manual fallback when the local bundle is unavailable.PATCH /v2/workbooks/{id} silently no-ops for renames
(200, name unchanged) — rename via PATCH /v2/files/{id} {"name": …}
(delete and unarchive are files-side too).json.loads(..., strict=False).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_thoughtspot_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 ThoughtSpot: rls_rules on the model/worksheet or per table (ts_username to CurrentUserEmail(), ts_groups to CurrentUserInTeam), multiple rules OR-combined. The converter emits each as a result.security[] entry {kind:'rls', name, expression, table?}.
⚠️ The
rls_rulesTML shape + thets_username/ts_groupsmapping are validated against a synthetic rule (no Liveboard in the trial org uses RLS). Treat the auto-mapping as best-effort and use Customize to review each rule against the real source before applying.
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
This Python path uses the browser-first provider and one-401 retry contract
described above.
--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/thoughtspot.mjs (opens in a new tab)fixtures/retail-analytics-liveboard.tml (opens in a new tab)fixtures/retail-analytics-model.tml (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/liveboard-to-workbook.md (opens in a new tab)refs/model-conversion-rules.md (opens in a new tab)refs/modeling-strategy.md (opens in a new tab)refs/operating-contract.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 thoughtspot-to-sigma2 skills in this plugin