hex-to-sigma

hex-to-sigma is a skill for Claude Code from twells89/sigma-migration-skills. It costs 72 tokens per session (4,496 once invoked), scanned A, original, MIT.

A migration tool that recreates a Hex project—a data application built from SQL, metrics, charts, and a visual layout—in Sigma, another analytics platform. It converts the project’s calculations and builds a matching data model and workbook.

In plain words
What is it for?
It reads a Hex project export, translates calculations, creates Sigma models and workbook elements, checks the layout, exports a visual preview, and verifies warehouse and KPI parity.
Why use it?
It avoids rebuilding a Hex app by hand and includes checks for formula references, layout, visual output, and matching numeric results.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is bash ../../../sigma-authoring/skills/sigma-workbooks/scripts/verify-workbook.sh <workbookId>.

Part of the hex-to-sigma plugin — 2 skills shipped together

Good fit It reads a Hex project export, translates calculations, creates Sigma models and workbook elements, checks the layout, exports a visual preview, and verifies warehouse and KPI parity.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Claude Code.

Or install hex-to-sigma, the plugin that ships this one along with the rest of its 2 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 hex-to-sigma

README.md
[![agentmods](https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/hex-to-sigma/github.svg)](https://agentmods.dev/skills/twells89/sigma-migration-skills/hex-to-sigma)
Your own site
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/hex-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/hex-to-sigma/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hex-to-sigma

Your own site · 80×15
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/hex-to-sigma"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/hex-to-sigma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.04496
Opus 5 $0.00036 $0.02248
Sonnet 5 $0.00014 $0.00899
Haiku 4.5 $0.00007 $0.00450

Measured 12d ago against content hash 2a5a6b93d9f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hex-to-sigma scanned grade A with 0 findings 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 12d ago.

The scan reads SKILL.md. This mod also ships 41 executable files (converter/convert_dm.py, converter/convert_workbook.py, converter/hex_yaml.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/hex-to-sigma/skills/hex-to-sigma/SKILL.md · 337 lines

How it starts

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

Hex → Sigma

Status: live-validated through Phase 6 (2026-07-30). DM POST + readback, workbook POST + readback, layout lint, the deeper compiled-SQL check (sigma-workbooks/scripts/verify-workbook.sh), a visual PNG export, AND numeric parity all passed clean against a real Sigma org — 8/8 DM columns, 10/10 workbook columns, 6/6 elements, zero type=error, zero unresolved/circular formula refs, KPI values confirmed exact ($39,759,625.52 / 91,206), and the visual layout matches the original Hex app (verified via PNG export, not just eyeballing the live UI). corpus/hex/commerce/ covers the structural regression test (no live org needed to re-run it). That live run predates the released wrapper/flat-element payload; the migrated payload is offline-tested and still requires a fresh live POST/readback/PNG pass before extending the live-validation claim to it.

Phase numbering is local to this skill; the canonical Assess→Discover→ Reuse→Convert→Post-DM→Build→Layout→Parity→Security→Enhance arc and this skill's mapping live in docs/phase-schema.md (full clone only — see repo docs/phase-schema.md).

Read refs/hex-file-schema.json (the vendored public JSON Schema for Hex's .hex.yaml format) before relying on a cell shape not covered below — it's the actual source of truth, not this document.


Why discovery is different here

Hex's public REST API (learn.hex.tech/docs/api/api-overview) covers projects/runs/users/collections/data-connections — it does not return cell content (no SQL text, no chart config). There is no endpoint equivalent to Metabase's GET /api/card/{id} or Cognos's data-module JSON.

The actual source of truth for a project's full logic is Hex's .hex.yaml project export — a full-fidelity file (every cell + the app layout), obtained via a one-click manual Export from the project dropdown (any plan, no credentials) or continuous Git Sync (Team/Enterprise — same format, synced to a repo instead of a one-off download). There's a public, versioned JSON Schema for it at https://static.hex.site/hex-file-schema.json (registered on SchemaStore), vendored locally at refs/hex-file-schema.json.

Read the full file on GitHub · 337 lines

Files

What ships with it

50 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 337 lines · 72 tokens per session scan A 2a5a6b93d9f0

Subscribe to this mod's changes

hex-to-sigma is a skill published in the GitHub repository twells89/sigma-migration-skills (16 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 4,496 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens