/data-exploration:build-notebook [spec-path]from data-exploration
Assembles a marimo dashboard notebook from an analysis_plan.md artifact containing ibis queries and altair chart specs. Validates with marimo check and ensures dependencies are installed.
Ships in data-exploration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read a <date>_<pipeline_name>_analysis_plan.md artifact and assemble a marimo notebook with all charts.
Parse $ARGUMENTS:
spec-path (optional): path to the analysis_plan.md file. If omitted, look for *_analysis_plan.md in the working directory. If multiple found, ask the user and stop.Parse the analysis plan file for:
If the analysis plan file is missing or has no charts, tell the user to run explore-data first and stop.
Generate <pipeline_name>_dashboard.py. Read references/notebook-patterns.md for the complete notebook structure, cell templates, and naming conventions before generating. Every chart cell must end with _chart on a bare line, then return — without the bare expression line, nothing renders.
For general marimo cell structure, reactivity, and best practices, fetch https://github.com/marimo-team/skills/blob/main/skills/marimo-notebook/SKILL.md. For SQL-specific patterns in marimo, fetch https://github.com/marimo-team/skills/blob/main/skills/marimo-notebook/references/SQL.md. For dlt-dashboard-specific templates, see references/notebook-patterns.md.
Run marimo's linter to catch common mistakes:
uvx marimo check <pipeline_name>_dashboard.py
If validation fails:
uvx marimo check until it passes.The notebook requires pandas, numpy, and altair which are not installed by dlt[hub]. In a dlthub workspace (dlthub init) they are already declared in pyproject.toml — running uv sync installs them.
Before launching, check if they are available. If any are missing, ask the user how they want to install them:
pyproject.toml (workspace scaffolded by dlthub init): run uv sync.uv add pandas numpy altair to add them to pyproject.toml.Also add marimo if not already installed, and ibis-framework[duckdb] if any chart uses ibis.
Do NOT install packages without user confirmation.
After validation passes, offer to launch in browser or skip.
If yes:
uv run marimo edit <pipeline_name>_dashboard.py --no-token
Tell the user the notebook is running (default: localhost:2718).
When re-invoked after iteration (see workflow.md): re-read the full analysis_plan.md and regenerate the entire notebook file, then validate and relaunch.
Two cells export the same variable name. Fix: follow the naming conventions in references/notebook-patterns.md.
A dependency is missing from the environment. Install it with uv add <package> and re-check.
The SQL query returns no rows. Common causes:
where clauses.get_table_schema.get_row_counts (MCP).Pipeline name is wrong or pipeline hasn't been run. Run dlthub local pipeline info <name> to verify.
Input: 2026-03-10_orders_pipeline_analysis_plan.md with 2 charts (Monthly Revenue Trend + Revenue by Category)
Output: orders_pipeline_dashboard.py with 2 data cells + 2 chart cells, structured per references/notebook-patterns.md.
Validation: uvx marimo check orders_pipeline_dashboard.py → passes
Launch: uv run marimo edit orders_pipeline_dashboard.py --no-token
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin data-explorationOther plugins' skills for the same job