sigma-api

sigma-api is a cursor rule for coding agents from twells89/sigma-migration-skills. It costs 103 tokens per session (2,396 once invoked), scanned A, original, MIT.

Instructions for signing in to Sigma's REST API, the web interface that lets programs access Sigma, and obtaining a bearer token for requests.

In plain words
What is it for?
Use them for client-credential or browser-based OAuth login, configuring Sigma connection settings, and troubleshooting 401 or 403 responses.
Why use it?
They handle the authentication setup needed before other tools can read or change Sigma resources and help diagnose access errors.

Cursor rule

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/twells89/sigma-migration-skills/sigma-api
Clone the repo
git clone --depth 1 https://github.com/twells89/sigma-migration-skills

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sigma-api

README.md
[![agentmods](https://agentmods.dev/badge/rules/twells89/sigma-migration-skills/sigma-api.svg)](https://agentmods.dev/rules/twells89/sigma-migration-skills/sigma-api)
Your own site
<a href="https://agentmods.dev/rules/twells89/sigma-migration-skills/sigma-api"><img src="https://agentmods.dev/badge/rules/twells89/sigma-migration-skills/sigma-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.02396
Opus 5 $0.00051 $0.01198
Sonnet 5 $0.00021 $0.00479
Haiku 4.5 $0.00010 $0.00240

Measured 5d ago against content hash 8f6e15190b93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

sigma-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: "Authenticate 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,
plugins/sigma-authoring/skills/sigma-api/generated/cursor/rules/sigma-api.mdc · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authenticate 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 REST API Authentication

Authenticate against the Sigma Computing REST API and obtain a bearer token. This skill is a prerequisite for any skill that calls the Sigma API directly with curl.

curl, jq, and base64 must be available. curl and base64 ship with macOS and most Linux distros; jq usually does not — install with brew install jq (macOS) or apt install jq (Debian/Ubuntu).

Reference Index

File When to load
reference/browser-oauth-login.md The user wants an interactive browser sign-in (OAuth authorization-code + PKCE) instead of a client ID/secret — the discovery-driven flow, code exchange, and encrypted refresh-token storage.

Base URL Selection

The host depends on the user's Sigma cloud and region. Confirm with the user before exporting. The user can also look up their base URL in Administration → Developer Access in the Sigma app.

Read the full file on GitHub · 148 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 148 lines · 103 tokens per session scan A 8f6e15190b93

Subscribe to this mod's changes

sigma-api is a cursor rule published in the GitHub repository twells89/sigma-migration-skills (14 stars, last pushed yesterday), licensed MIT. It adds 103 tokens to every session and 2,396 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.