Agent-skills motherduck-create-dive
Create interactive MotherDuck Dives with live SQL queries. Use when building, previewing, saving, styling, updating, or embedding a Dive, especially when the workflow depends on get_dive_guide, useSQLQuery, theme prompts, and live MotherDuck data.
install
source · Clone the upstream repo
git clone https://github.com/motherduckdb/agent-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/motherduckdb/agent-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/motherduck-skills-claude/skills/motherduck-create-dive" ~/.claude/skills/motherduckdb-agent-skills-motherduck-create-dive && rm -rf "$T"
manifest:
plugins/motherduck-skills-claude/skills/motherduck-create-dive/SKILL.mdsource content
Create MotherDuck Dives
Use this skill when the user needs a persistent, shareable Dive rather than a one-off chart or a full customer-facing analytics application.
Source Of Truth
- Prefer current MotherDuck Dive docs first.
- If MotherDuck MCP is available, call
before generating, saving, or updating a Dive.get_dive_guide - Keep theming, local-preview, code-management, and embedding guidance aligned with the current Dive docs.
Default Posture
- Validate the underlying SQL and schema first with
andmotherduck-explore
.motherduck-query - Keep Dive queries fully qualified and SQL-heavy; let React handle presentation, not data reshaping.
- When a Dive uses shared databases in
, always suffix theREQUIRED_DATABASES
(e.g.alias
) so it cannot collide with an existing database name. Never set_share
to conflict with an existing database name.alias - Start from a named theme direction such as
,Corporate Dashboard
, orTufte Minimal
instead of vague visual prompts.FT Salmon - Prefer one query per visual section rather than one giant cross-purpose query.
- Preview locally before saving when the environment supports it.
- Treat embedded Dives as the first-choice path when a product needs a live read-only Dive surface. Move to
when the app needs custom backend contracts, writes, non-Dive routing, or richer authorization.motherduck-build-cfa-app - For existing Dives, prefer reading version metadata before overwriting content; MCP
returnslist_dives
, andcurrent_version
can fetch historical versions.read_dive
Workflow
- Explore the live schema and validate the core SQL first.
- Decide the Dive story, sections, and interaction model.
- Call
if MCP is available.get_dive_guide - Build and preview the Dive locally when possible.
- Save or update the Dive only after the live queries, theme, and loading states are correct.
- If teammates need access, make sure the underlying data is shared appropriately.
Open Next
forreferences/DIVE_DESIGN_GUIDE.md
mechanics, theming prompts, chart-selection rules, loading/error states, layout patterns, and common Dive implementation gotchasuseSQLQuery
Related Skills
for discovering the real tables, views, and dimensions before visualizing themmotherduck-explore
for validating the SQL each Dive section will runmotherduck-query
when the work is really a multi-section dashboard composition problemmotherduck-build-dashboard
when the requirement is a fuller product surface with per-customer isolation or backend policy controlmotherduck-build-cfa-app