OpenParable
Skip to content
← Back to skills

Create Dive

Apps & Automation
create-dive

Create Dive is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/create-dive-motherduckdb-agent-skills-2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/create-dive, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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 get_dive_guide before generating, saving, or updating a Dive.
  • 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 explore and query.
  • Keep Dive queries fully qualified and SQL-heavy; let React handle presentation, not data reshaping.
  • When a Dive uses shared databases in REQUIRED_DATABASES, always suffix the alias (e.g. _share) so it cannot collide with an existing database name. Never set alias to conflict with an existing database name.
  • Start from a named theme direction such as Corporate Dashboard, Tufte Minimal, or FT Salmon instead of vague visual prompts.
  • 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 a lightweight read-only surface; for per-customer serving and policy control, move to build-cfa-app.

Workflow

  1. Explore the live schema and validate the core SQL first.
  2. Decide the Dive story, sections, and interaction model.
  3. Call get_dive_guide if MCP is available.
  4. Build and preview the Dive locally when possible.
  5. Save or update the Dive only after the live queries, theme, and loading states are correct.
  6. If teammates need access, make sure the underlying data is shared appropriately.

Open Next

  • references/DIVE_DESIGN_GUIDE.md for useSQLQuery mechanics, theming prompts, chart-selection rules, loading/error states, layout patterns, and common Dive implementation gotchas

Related Skills

  • explore for discovering the real tables, views, and dimensions before visualizing them
  • query for validating the SQL each Dive section will run
  • build-dashboard when the work is really a multi-section dashboard composition problem
  • build-cfa-app when the requirement is a fuller product surface with per-customer isolation or backend policy control