/sigma-authoring:sigma-data-modelsfrom Sigma Authoring (Workbooks + Data Models)
Authors, retrieves, or modifies Sigma data model specs (JSON/YAML semantic-layer definitions) via the Sigma REST API. Use for building models from warehouse tables, adding metrics/relationships, or editing columns.
Ships in Sigma Authoring (Workbooks + Data Models). 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.
Build a Sigma data model spec — the JSON definition of pages, sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security — and round-trip it through the Sigma REST API.
This skill is for authoring from existing warehouse tables: a user knows their warehouse, wants to expose specific tables as a Sigma data model with the right joins, metrics, and governance, and needs help composing the spec. Conversions from other BI-tool formats (dbt schema.yml, LookML views, Tableau TDS, Power BI PBIT, Alteryx YXMD, etc.) are not in this skill — direct users to the Sigma data-model converter MCP / browser tool, which already handles those mappings.
Auth: Authenticate via the sigma-api skill first to set
$SIGMA_BASE_URL and $SIGMA_API_TOKEN. Its common get-token.sh path
prefers a saved interactive browser session and falls back to
SIGMA_CLIENT_ID / SIGMA_CLIENT_SECRET for unattended use. This skill
assumes the resulting token is already present.
Requirements: curl, jq, base64. Your Sigma API credentials must have permission to create or edit data models, plus "Can edit" access on the destination folder (for create) or the existing data model (for update). If a request returns 403, ask your Sigma admin to confirm the credential's permissions.
Feature-specific JSON patterns live in reference/. Load each file when you identify the corresponding feature in the user's request — don't read every file up-front.
| File | When to load |
|---|---|
reference/columns.md | Calculated columns, formula columns, derived columns; renaming a column, changing a formula, warehouse-column ID conventions, column reference rules. |
reference/metrics.md | Metrics, aggregate measures, metric timelines, time-series / trend metrics; adding a metric to an existing table or changing aggregation. |
reference/relationships.md | Relationships, foreign-key linking, related tables, cross-table lookups; adding a relationship between an existing element and a new one (mixed-ID rule — see workflows/crud.md). |
reference/sources.md | Custom SQL sources, join sources, union sources, transpose sources; swapping a model's source kind on an existing model. |
reference/filters.md | Row filters, where clauses, date range filters, top-N; adding/removing a filter on an existing model. |
reference/folders-groupings.md | Folders, column groupings, column ordering, sort, organize columns; reordering existing columns. |
reference/column-level-security.md | Column-level security (CLS), data masking, restrict columns by team / user attribute; applying CLS to an existing column. |
reference/controls.md | List/dropdown, text input, text area, number input, number range, date, date range, slider, range slider, segmented, switch, checkbox, top-N controls; adding a control to an existing page. |
reference/formatting.md | Column or metric formatting — currency, percentage, date format, decimals, datetime; reformatting a column or metric on an existing model. |
reference/calc-columns.md | Calculated / derived / formula columns on a DM element. Covers shape, formula references, and the window-function silent-error gotcha (CountOver/SumOver etc. fail in DM element calc cols → workarounds). |
| File | When to load |
|---|---|
reference/workflows/discover.md | Read first when starting a new model. Find the connection, resolve table paths, fetch every paginated column-metadata page, declare the expected grain, and prove source/join cardinality before drafting. Without this, columns after the API's default first 50 can appear missing and a spec can compile while every aggregate is wrong. |
reference/workflows/authoring.md | Composition judgment calls — one big model vs many small, SQL source vs warehouse-table, joins in the model vs in workbooks, naming conventions, where to put metrics, folder placement, when to materialize. |
reference/workflows/crud.md | POST / GET / PUT against /v2/dataModels endpoints. Always load before any API call. Contains the ID-semantics contrast (CREATE remap vs GET source-of-truth vs UPDATE preserve), full step-by-step recipes, and the mixed-ID rule for relationships in updates. |
reference/workflows/validate.md | Pre-submit checklist + decoding common errors (400 / 403 / 409) + the "pull a known-working model and diff" pattern when guessing isn't working. |
Cross-cutting rules. Per-workflow ID semantics (remap vs preserve vs mixed cross-references) live in reference/workflows/crud.md.
"page-1", "table-orders", "col-revenue"."inode-<tableId>/<COLUMN_NAME>" — use "<YOUR_TABLE_INODE>/<COL_NAME>" as a placeholder.id is the element ID; controlId is the formula reference name — keep them distinct.Call out any of these before presenting the final spec:
*Over window functions (CountOver / SumOver / RowNumberOver / RankOver / …) — invalid as a spec formula (a DM-spec POST 400s; workbook calc columns error Unknown function). The Sigma-native window family (CumulativeSum / MovingAvg / Rank / RowNumber / Lag / Lead / PercentOfTotal) DOES resolve in DM-element and workbook calc columns — use those. See reference/calc-columns.md.IsIn(...) in any formula — Sigma's formula language has no such function. Use chained or conditions instead. (See the sigma-workbooks skill's formulas.md for the full function reference.)sigma-workbooks skill. Its sources.md documents the { "kind": "data-model", "dataModelId": "...", "elementId": "..." } source shape.sigma-workbooks/reference/workflows/crud.md and the swap-sources endpoint.sigma-api skill rather than restating. For automatic 401-retry-with-refresh in Ruby long-running scripts (DM-build loops that outlive the 1-hour token TTL), see sigma-workbooks/SKILL.md "401 Unauthorized" — same pattern applies here.~/sigma-skills/.../sigma-data-model-manager and the sigma-data-model MCP) handles these. Don't re-implement converter logic in this skill.tableau-to-sigma skill.generated/cline/sigma-data-models.md (opens in a new tab)generated/codex/AGENTS.md (opens in a new tab)generated/continue/sigma-data-models.md (opens in a new tab)generated/cursor/rules/sigma-data-models.mdc (opens in a new tab)reference/calc-columns.md (opens in a new tab)reference/column-level-security.md (opens in a new tab)reference/columns.md (opens in a new tab)reference/controls.md (opens in a new tab)reference/filters.md (opens in a new tab)reference/folders-groupings.md (opens in a new tab)reference/formatting.md (opens in a new tab)reference/metrics.md (opens in a new tab)reference/relationships.md (opens in a new tab)reference/sources.md (opens in a new tab)reference/workflows/authoring.md (opens in a new tab)reference/workflows/crud.md (opens in a new tab)reference/workflows/discover.md (opens in a new tab)reference/workflows/validate.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sigmacomputing/sigma-migration-skills --plugin sigma-authoring2 plugins ship this exact skill · first indexed Oct 8, 2026
5 skills in this plugin
/custom-sql-to-data-modelScan Sigma workbooks for custom SQL elements, dedupe across workbooks, build or reuse Sigma data models, then repoint the workbooks via the v3alpha `:swapSources` endpoint. Use when you want to find ad-hoc SQL in workbooks and promote it to one reusable data model per unique query./sigma-apiAuthenticate against the Sigma Computing REST API and obtain a bearer token. Use whenever the user wants to call the Sigma API directly with curl/HTTP, exchange OAuth client credentials for an access token, sign in interactively via a browser OAuth login (authorization-code + PKCE), configure SIGMA_BASE_URL / SIGMA_CLIENT_ID / SIGMA_CLIENT_SECRET, troubleshoot 401/403 responses, or pick the right Sigma API hostname for their cloud. Use as a prerequisite when another Sigma skill needs an SIGMA_API_TOKEN./sigma-plugin-authoringOther plugins' skills for the same job