hex-to-canvas
Use Hex Threads through the Hex MCP search_projects/create_thread/get_thread/continue_thread tools to get concrete, canvas-ready metric values from Hex…
от CognitionAI★ 42 звезды на GitHub
Установить hex-to-canvas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Hex Thread to Cursor Canvas
Use this skill to turn a Hex Threads analysis into a Cursor canvas. Hex replies often start as narrative summaries, such as "trending up" or "in a 35-50% band", with charts that live inside Hex. A canvas needs exact values embedded inline, so ask for concrete numbers up front, verify them, and only then build the canvas.
Workflow
- Authenticate if needed. If the Hex MCP server is not authenticated, use Cursor's MCP authentication flow for the Hex server before invoking Hex tools.
- Find the right project or dashboard when relevant. If the user refers to an existing Hex dashboard, report, project, or metric that "lives in Hex", call
search_projectsto locate it. If more than one result is plausible, ask the user to confirm before proceeding. - Gather local context when relevant. If the canvas should combine Hex data with local information, collect that context before prompting Hex. Useful sources include repository files,
git log, feature flags, tickets, docs, or other MCP servers. - Create the Hex thread. Call
create_threadwith a prompt adapted from the canvas-ready template below. - Poll for completion. Call
get_threaduntil the thread is idle or complete. Hex Threads can take several minutes; share the thread URL with the user when useful. - Verify the numbers. Confirm the response contains exact values, periods, source names, and numerator/denominator counts for rates. If anything is missing or only qualitative, call
continue_threadfor the specific missing values. Do not infer or fabricate. - Build the canvas. Create one
.canvas.tsxfile using the Cursor canvas APIs. Embed the verified values inline, and cite sources in captions: Hex thread URL, Hex project/dashboard title, source table/model name, as-of date, and any local file paths or commit SHAs used.
Canvas-ready prompt template
Adapt this prompt when creating or continuing a thread:
Give me the top KPIs for <topic> as concrete numbers I can put on a dashboard.
For each metric, return:
- Exact current value
- Period covered
- Numerator and denominator for any rate
- Recent-period versus prior-period comparison and delta
- Source table, model, or Hex project used
- As-of date
- Data-coverage caveats, including empty or future periods, timezone, and small samples
Return the results as:
1. A concise list of metric name + value + period.
2. A markdown table with metric, current value, prior value, delta, period,
numerator, denominator, source, and caveats.
Why each clause matters:
- Exact current value blocks vague trend language.
- Period covered gives every canvas number a defensible time range.
- Numerator and denominator make rates auditable, for example
46.2% = 36 / 78. - Recent versus prior comparison gives a real MoM, QoQ, or other period-over-period stat instead of an eyeballed trend.
- Source table, model, or Hex project belongs in the canvas caption.
- Caveats prevent incomplete or noisy data from being presented as settled fact.
Pull from existing Hex dashboards
Hex Threads can read the data behind projects and dashboards that already exist in the workspace. Use this when the user wants the latest values from an existing Hex artifact instead of a new analysis.
- Call
search_projectswith the dashboard, project, metric, or topic name. - Review candidate results using their
title,description,generated_summary,url, orappUrl. - Ask the user to choose if multiple candidates are plausible.
- Name the selected project explicitly in the
create_threadprompt:
Using the data behind the Hex project "<project title>", give me the latest
values for <metrics>. Return exact current values, the period each covers,
the numerator and denominator behind any rate, the source table/model, caveats,
and the as-of date.
- Treat returned figures as point-in-time. Include the as-of date and Hex project link in the canvas caption.
Combine with local information
When the canvas should blend Hex data with local repo or external context:
- Collect local context before creating the thread so the Hex prompt can ask for values that line up with the canvas story.
- Keep Hex-sourced values separate from locally derived values in your notes until final assembly.
- Cite local sources with file paths, line references when available, branch names, commit SHAs, or MCP result links.
- If local context changes the interpretation of a Hex metric, explain that in a
Calloutor short narrative card rather than modifying the Hex number.
Data-coverage caveats to preserve
Carry caveats from Hex into the canvas honestly:
- Empty or future periods. Use the latest complete period with data and label it clearly.
- Timezone. Note the project timezone, especially for daily, weekly, or monthly windows.
- Small-sample noise. Flag low-count periods instead of presenting swings as durable trends.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hex-to-canvas?
Use Hex Threads through the Hex MCP search_projects/create_thread/get_thread/continue_thread tools to get concrete, canvas-ready metric values from Hex projects or dashboards, then build a Cursor canvas that can combine those figures with local repo, git, or other MCP context. Use when querying Hex for KPIs, data analysis, metrics, trends, dashboard values, or when blending Hex data with local information into a Cursor canvas or structured dashboard.
Как установить скилл hex-to-canvas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hex-to-canvas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…