/sigma-computing:sigma-data-modelsfrom sigma-computing
Create, retrieve, or modify Sigma data model specs (JSON/YAML semantic-layer definitions with sources, columns, metrics, relationships, filters, controls, folder groupings, and column-level security) via the Sigma REST API. Requires SIGMA_API_TOKEN from the sigma-api skill.
Ships in sigma-computing. 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.
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.
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. |
| 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. |
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.
"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:
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/modeling.md (opens in a new tab)reference/relationships.md (opens in a new tab)reference/sources.md (opens in a new tab)reference/workflows/crud.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-agent-skills --plugin sigma-computing5 skills in this plugin
/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-cliDrive 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 install or configure the CLI, or asks about `sigma api …`, `sigma auth login`, `list-prefixes`, or `schema`. Prefer this skill over raw `curl` when the user has the `sigma` binary installed; fall back to `sigma-api` for OAuth fundamentals and direct HTTP./sigma-reportsBuild, validate, retrieve, and safely update Sigma report code representations through /v2/reports. Use for fixed-layout or pixel-perfect reports, executive board packets, wide operational tables, invoices, statements, regulatory documents, and PDF delivery. Covers reusable report scaffolds, report pages, absolute pixel layout, header/footer panels, common elements, verification, full-contents replacement, and workbook conversion to reports. Do not use for responsive dashboards; use sigma-workbooks instead. Requires SIGMA_API_TOKEN from the sigma-api skill.Other plugins' skills for the same job