metabase-custom-viz
БесплатноБез исполняемых скриптовНе проверенBuild, change, debug, and package Metabase custom visualizations — React plugins made with `@metabase/custom-viz` and uploaded to Metabase as a `.tgz`. Use…
от metabase★ 60 звёзд на GitHubОб этом скилле
Metabase custom visualizations
You orchestrate. You talk to the user, pick the flow, run phases, and carry state between them. You do not write viz code outside a phase.
Paths: phases/… and references/… are under <skill-dir>, the
directory holding this SKILL.md. <sdk> is
node_modules/@metabase/custom-viz/dist in the project. Other paths are
relative to the project root. Phase files hold the full instructions for
their executor, including their Input:; knowledge lives in
references/. Never restate either in a handoff — pass only the phase's
input and the paths above.
Setup
Project: the working directory has
metabase-plugin.jsonand@metabase/custom-vizinpackage.json→ use it. Otherwise take a name from the request (ask only if there is none) as<name>, runnpx @metabase/custom-viz@latest init "<name>", and work in the directory it prints.initlowercases<name>and turns spaces into-for the directory and"name"inpackage.jsonandmetabase-plugin.json;<name>as given becomes the display name. Keep<name>to letters, digits, spaces and-:initrejects most other characters.node_modules/missing →npm install.<version>isversioninnode_modules/@metabase/custom-viz/package.json. Its major is below the major ofnpm view @metabase/custom-viz version→ tell the user this skill targets the latest@metabase/custom-vizmajor, offer to upgrade it, and stop.Metabase source: the host rules (sandbox, colors, column types) live in the public Metabase repo.
<ref>iscustom-viz-v<version>, the tag the installed SDK was released from..claude/metabase-src/.refholds<ref>→ the files are cached, skip the download. Otherwise delete.claude/metabase-src/(an older SDK's copy), then download each file below, keeping its path, withcurl(never a web fetch tool: it summarizes); a file missing at<ref>comes frommaster:curl -fsSL --create-dirs -o .claude/metabase-src/<path> https://raw.githubusercontent.com/metabase/metabase/<ref>/<path> || curl -fsSL --create-dirs -o .claude/metabase-src/<path> https://raw.githubusercontent.com/metabase/metabase/master/<path>frontend/src/metabase/utils/scripts-sandbox/distortions-dom-mutate.tsfrontend/src/metabase/utils/scripts-sandbox/distortions-event.tsfrontend/src/metabase/utils/scripts-sandbox/distortions-blocked-apis.tsfrontend/src/metabase/utils/scripts-sandbox/distortions.tsfrontend/src/metabase/ui/colors/types/color-keys.tsfrontend/src/metabase/ui/colors/constants/accents.tsfrontend/src/metabase-lib/v1/types/utils/isa.ts
Every file downloaded → write
<ref>to.claude/metabase-src/.ref.<mb>is.claude/metabase-src. Add.claude/metabase-src/to the project.gitignorewhen the line is missing. Now read the fourscripts-sandboxfiles,color-keys.tsandaccents.ts, each whole with theReadtool — nevergrep,head,sedorcat | …. The blocked lists sit mid-file; a partial read misses entries and the viz breaks at runtime.isa.tson demand.
Then read references/project.md and references/operations.md.
Phases
phases/refine.md— youphases/build.md— a subagent: spawn it with theAgenttool and tell it to read and follow that file. Never writesrc/index.tsxyourself: build needs a fresh context holding only the build statement and its references.phases/verify.md— a subagent, spawned like build; read-only. It reviews the code fresh, without this session's view of itphases/iterate.md— youphases/debug.md— youphases/ship.md— you
When executing a phase yourself, follow that file only; skip reading
files whose content is still in your context. Only when the Agent tool
is unavailable, run build yourself.
References
project.md— files, build statement format, libraries, defaults, checksapi-contract.md— host behavior the types cannot expressknown-mistakes.md— bugs with symptoms, fixes, detectorssandbox-restrictions.md— what the sandbox blocks at runtimeoperations.md— dev server, connecting Metabase, reading a question, renaming, user editsfix-log-rules.md— format and rules of.claude/fix-log.md
State
.claude/build-statement.md— the build statement; written by refine, kept current by iterate and debug. Missing whilesrc/index.tsxis already a viz → reconstruct it from the code in theproject.mdformat, confirm with the user, write it.
Start
Route:
src/index.tsxis still the scaffold's thumbs-up/down template (no viz built yet) and the user wants a viz → Create- Change, new setting, restyle, rename → iterate
- Misbehavior report → debug
- "ship it", "package it", "build the archive" → Ship
- Question about the viz, the API or the setup → answer from the references and the code; no phase
Установить metabase-custom-viz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл metabase-custom-viz?
Build, change, debug, and package Metabase custom visualizations — React plugins made with `@metabase/custom-viz` and uploaded to Metabase as a `.tgz`. Use when the user asks to create a custom visualization or chart type for Metabase, scaffold one with `npx @metabase/custom-viz init`, change its look, settings, drills or tooltips, fix it when it renders wrong or the host console shows `blocked API call` or `blocked createElement`, connect it to a local Metabase, or package it for upload.
Как установить скилл metabase-custom-viz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabase-custom-viz запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic