Skip to content
Skills Library
Data & analytics · Tool integration

sigma-data-models

/sigma-data-models

Create, retrieve, or modify a Sigma data model spec (the JSON/YAML semantic-layer definition with sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security) by calling the Sigma REST API directly. Use when the user wants to author a new data model from a description, export/inspect/download an existing model's spec, edit columns or metrics, change a model's source, add relationships or row-level filters, or otherwise round-trip a data model through code. Requires an SIGMA_API_TOKEN — obtain via the sigma-api skill first.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
12
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Create, retrieve, or modify a Sigma data model spec (the JSON/YAML semantic-layer definition with sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security) by calling the Sigma REST API directly. Use when the user wants to author a new data model from a description, export/inspect/download an existing model's spec, edit columns or metrics, change a model's source, add relationships or row-level filters, or otherwise round-trip a data model through code. Requires an SIGMA_API_TOKEN — obtain via the sigma-api skill first.

Triggers from the description

s spec, edit columns or metrics, change a model
Original author description

Create, retrieve, or modify a Sigma data model spec (the JSON/YAML semantic-layer definition with sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security) by calling the Sigma REST API directly. Use when the user wants to author a new data model from a description, export/inspect/download an existing model's spec, edit columns or metrics, change a model's source, add relationships or row-level filters, or otherwise round-trip a data model through code. Requires an SIGMA_API_TOKEN — obtain via the sigma-api skill first.

How it works

  1. Reference Index
  2. Workflows Index
  3. ID Conventions
  4. Unsupported Features
Original SKILL.md headings · 49 lines, 645 words
SKILL.md preview
---
name: sigma-data-models
description: >-
  Create, retrieve, or modify a Sigma data model spec (the JSON/YAML
  semantic-layer definition with sources, columns, metrics, relationships,
  filters, controls, folder groupings, and column-level security) by calling
  the Sigma REST API directly. Use when the user wants to author a new data
  model from a description, export/inspect/download an existing model's spec,
  edit columns or metrics, change a model's source, add relationships or
  row-level filters, or otherwise round-trip a data model through code.
  Requires an SIGMA_API_TOKEN — obtain via the sigma-api skill first.
---

# Sigma Data Models (Create / Get / Update)

Round-trip a Sigma data model spec — the JSON definition of pages, sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security — through the Sigma REST API.

**Auth:** Authenticate via the `sigma-api` skill first to set `$SIGMA_BASE_URL` and `$SIGMA_API_TOKEN`. This skill assumes both are already exported. If neither is set but the `sigma` CLI is installed and `sigma auth status 2>&1` reports a valid token, set `SIGMA_API_TOKEN=$(sigma auth token)` and set `SIGMA_BASE_URL` to `https://` plus the API host that `sigma auth status` prints (see the `sigma-cli` skill). Tokens are short-lived, so re-read the token in each new shell.

**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.

## Reference Index

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/modeling.md` | **Any new model that combines tables or defines metrics.** Grain, fan-out, joining facts to dimensions, per-entity or lifetime totals with `Rollup`, ratio metrics ("per square foot", "per employee"), metric vs. column, "define it once" requests, and when custom SQL is warranted. |
| `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**. |

## Workflows Index

| File | When to load |
|------|--------------|
| `reference/workflows/crud.md` | Authoring a new model, retrieving an existing model's spec, or modifying / editing / adding to / changing the source of an existing model. Always load before any POST / GET / PUT against `/v2/dataModels` endpoints. Contains the ID-semantics table (GET is the source of truth), full step-by-step CREATE / GET / UPDATE recipes including the verify step and how to get the model's link, and the mixed-ID rule for relationships in updates. |

## ID Conventions

Cross-cutting rules. Per-workflow ID semantics (what's stored on create, what to preserve on update, mixed cross-references) live in `reference/workflows/crud.md`.

- Short alphanumeric IDs for generated entities: `"page-1"`, `"table-orders"`, `"col-revenue"`.
- Warehouse column IDs follow `"inode-<tableId>/<COLUMN_NAME>"` — use `"<YOUR_TABLE_INODE>/<COL_NAME>"` as a placeholder.
- Control `id` is the element ID; `controlId` is the formula reference name — keep them distinct.

## Unsupported Features

Call out any of these before presenting the final spec:

- Multiple tables with identical names in the same data model
- Input tables, Python elements, and UI elements
- Referencing Sigma elements in custom SQL
- Partial updates — the create and update endpoints both require the full representation
Files in this package (12)
  • SKILL.md 5 KB
  • reference/column-level-security.md 2 KB
  • reference/columns.md 7 KB
  • reference/controls.md 7 KB
  • reference/filters.md 2 KB
  • reference/folders-groupings.md 2 KB
  • reference/formatting.md 1 KB
  • reference/metrics.md 2 KB
  • reference/modeling.md 7 KB
  • reference/relationships.md 2 KB
  • reference/sources.md 11 KB
  • reference/workflows/crud.md 15 KB

Versions

RepositoryScoreLicence
This page · sigmacomputing/sigma-agent-skills90Apache-2.0
twells89/sigma-skills100Apache-2.0

Database snapshot: 13.11.2026 · package version 8cec120979c2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sigma-cli
    Drive the full Sigma Computing REST API surface from the local `sigma` binary (Sigma CLI) and its OpenAPI-generated command tree. Use whenever the user wants to call any Sigma endpoint from the command line, needs a uniform `--params` / `--json` shape across resources, wants to…
  • 100dv-metadata
    Dataverse schema authoring and inspection — tables, columns, relationships, forms, and views. Use when the user wants to define, evolve, or inspect the data model — add a column, create a table, set up a lookup, customize a form, build a view, or list existing columns and relationships.
  • 95custom-sql-to-data-model
    Scan 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.
  • 90sigma-workbook-qa
    QA a Sigma Computing workbook before a client sees it: render every page, tie out KPIs, test controls. Use when asked to review, audit, fix or sign off a Sigma workbook.
  • 100sigma-plan
    /sigma-plan plans the solution for a Sigma work repo and writes the confirmed sections of docs/requirements/REQUIREMENTS.md. Use when the user invokes /sigma-plan, or when /sigma-feedback hands a note whose behavior is not in the requirements yet. Filling the scaffold is…
  • 100sigma-plugin-authoring
    Build, register, host, embed, and data-bind a bespoke Sigma custom plugin (@sigmacomputing/plugin) to recreate a source visualization for which Sigma has no native chart/KPI/table equivalent — a radial gauge, a custom heatmap, a sankey, or any bespoke viz kind outside Sigma's…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.