metabase-react-sdk-setup
БесплатноБез исполняемых скриптовНе проверенFirst-time setup for the Metabase React SDK — instance detection, API key, dashboard discovery, JWT auth, SDK installation, and initial embedding code.
от metabase★ 60 звёзд на GitHubОб этом скилле
Use this skill for any task involving @metabase/embedding-sdk-react — whether that's initial setup, embedding dashboards, theming, or plugins.
Communication style: Be concise. Do one step at a time. When asking the user for input, output only the question — do not explain upcoming steps, implementation details, or what you plan to do next. The user does not need a roadmap.
CRITICAL — YOU MUST GET AN API KEY BEFORE DOING ANYTHING ELSE
Step 1 asks the user for a Metabase URL and API key. You CANNOT proceed without both. Do NOT detect the Metabase version, fetch
llms.txt, install packages, or write ANY code until the user has given you an API key. Do NOT attempt to call any Metabase API endpoint without an API key — it will return 401 and you will be guessing. If any Metabase API call returns 401, STOP everything and ask the user for an API key.
Step 1 — Get the Metabase URL and API key
You need a Metabase instance URL and an admin API key before anything else.
.env.metabase is only for admin tasks within this skill (API calls to Metabase). It is NOT the app's runtime config. Never import, read, or reference .env.metabase from the user's application code or build config. The app's instance URL goes in the user's own .env file (e.g., VITE_METABASE_URL, NEXT_PUBLIC_METABASE_URL) — set that up in Step 4.
Check if .env.metabase exists in the project root and already has both METABASE_INSTANCE_URL (non-empty) and METABASE_ADMIN_API_KEY (non-empty). If so, skip to Step 2.
Otherwise, create the file and gitignore it:
grep -qxF '.env.metabase' .gitignore 2>/dev/null || echo '.env.metabase' >> .gitignore
printf 'METABASE_INSTANCE_URL=\nMETABASE_ADMIN_API_KEY=\n' > .env.metabase
Then output only this message — no preamble, no explanation of what comes next, no implementation details:
I created
.env.metabasein the project root. Please fill in both values:
- Set
METABASE_INSTANCE_URLto your Metabase URL (e.g.http://localhost:3000)- Open
{your URL}/admin/settings/authentication/api-keys, create a new API key- Set
METABASE_ADMIN_API_KEYto that key- Let me know when you're done
Do not guess or assume the instance URL. Do not pre-fill localhost:3000. Do not ask the user to paste the key in the chat — it should only go in .env.metabase. Wait for the user to confirm, then proceed to Step 2.
Step 2 — Detect version and discover dashboards
Now that you have an API key, detect the version and find dashboards.
2a — Detect version
source .env.metabase && \
curl -s "$METABASE_INSTANCE_URL/api/session/properties" \
-H "X-API-Key: $METABASE_ADMIN_API_KEY" | grep -o '"tag":"[^"]*"'
Parse both the edition and the major version from the tag:
| Tag format | Edition | Example |
|---|---|---|
v0.X.Y |
OSS (Community) | v0.60.1 → major 60, OSS |
v1.X.Y |
Enterprise (EE) | v1.60.1 → major 60, EE |
If major version < 49, tell the user the Embedding SDK requires Metabase 49+ and stop.
If the tag starts with v1., the instance is Enterprise Edition — use full JWT SSO embedding. Do not fall back to guest embedding or any OSS-only auth path.
Remember the major version number — you will need it in Step 3.
2b — Enable the Embedding SDK
Automatically enable the SDK so the user doesn't have to toggle it manually in the admin panel:
source .env.metabase && \
curl -s -X PUT "$METABASE_INSTANCE_URL/api/setting/enable-embedding-sdk" \
-H "X-API-Key: $METABASE_ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"value": true}'
If this returns an error (e.g., 403), tell the user to enable it manually at
Do NOT fetch llms.txt yet. You need dashboard IDs first.
2c — Find dashboards and table candidates
Run both of these:
source .env.metabase && \
curl -s "$METABASE_INSTANCE_URL/api/search?models=dashboard&archived=false" \
-H "X-API-Key: $METABASE_ADMIN_API_KEY"
source .env.metabase && \
curl -s "$METABASE_INSTANCE_URL/api/automagic-dashboards/database/1/candidates" \
-H "X-API-Key: $METABASE_ADMIN_API_KEY"
Filter and prioritize the results:
- Exclude any dashboards from the "Usage analytics" collection — those are internal Metabase admin dashboards, not user content.
- Deprioritize anything from the "Sample Database" — prefer the user's own databases and dashboards.
- Pick the top 5 most relevant to what the user asked for from each category. Do not dump every result.
Format like this:
Existing dashboards:
- Sales Overview (ID 3)
- Customer Analysis (ID 7) ...
Or I can create a new dashboard from your data: A. Orders table B. Products table ...
Which ones should I embed? (e.g. "1 and 3" or "A")
Wait for
Установить metabase-react-sdk-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metabase-react-sdk-setup?
First-time setup for the Metabase React SDK — instance detection, API key, dashboard discovery, JWT auth, SDK installation, and initial embedding code.
Как установить скилл metabase-react-sdk-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabase-react-sdk-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic