/motherduck-skills:motherduck-create-divefrom motherduck-skills
Creates, edits, designs, publishes, shares, or embeds MotherDuck Dives with responsive layout, themes, and SQL-backed interactive buttons.
Ships in motherduck-skills. 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.
get_dive_guide before writing Dive code and before every save_dive, update_dive, or edit_dive_content. The guide defines the current component API and runtime libraries.get_dive_guide also surfaces relevant conventions from the reserved dives Guide topic. Apply those conventions when they do not conflict with the user's explicit requirements.motherduck-explore and motherduck-query; a good Dive starts with a correct query.useSQLQuery, a default export, supported runtime libraries, explicit loading/empty/error states, and no browser-side secrets.REQUIRED_DATABASES, keep the export on one line and mirror the real share dependencies in metadata or save/update inputs. Avoid aliases that collide with existing database names.list_dives returns current_version, and read_dive can fetch historical versions. Use edit_dive_content (exact text replacements) for focused edits and update_dive for a full rewrite. Use view_dive to show the user a saved Dive, and delete_dive only after explicit confirmation; deletion is permanent.exportAs on a query result or the useExport hook (CSV, JSON, Parquet, XLSX), started from a click. Do not build Blob URLs, hidden anchors, or COPY TO exports.useRunFlight and track it with useFlightRun (from @motherduck/react-sql-query). Hardcode the Flight ID, pass only string config values, disable the control while a run is pending, render the hook's error, and rerun the affected queries when the run succeeds. Viewers need a run grant: recommend the grantees and grant only after the user confirms. Embedded Dives cannot run Flights.motherduck-build-cfa-app when the app needs custom API contracts, writes, non-Dive routing, tenant policy enforcement, or richer authorization.get_dive_guide owns the runtime contract and the MotherDuck visual rules (palette, chart sizing, no card chrome, static Tailwind only); do not restate them. A new Dive or full redesign should also ship with these on the first save. Start from artifacts/feature_complete_dive.tsx, which implements all of them, and delete what the Dive does not need. For a scoped edit, preserve the existing design and check only the affected states.
ResponsiveContainer width="100%", no fixed widths or page-level horizontal scroll.style, starting from the viewer's system preference.useDiveState so they survive refresh and travel with a shared link.role="alert" error.exportAs when people will take the data elsewhere.get_dive_guide if MCP is available, then design the story, sections, interactions, and theme.save_dive, update_dive, or deploy only after queries, loading states, required resources, and visual behavior are correct.REQUIRED_DATABASES entry is a share they can read, and they hold a run grant on each Flight the Dive runs. Prefer an existing share of an owned database (MD_INFORMATION_SCHEMA.OWNED_SHARES). When the user asks to share the Dive's data with the whole organization, share_dive_data creates org-scoped shares and updates the Dive in one call; use motherduck-share-data for restricted audiences, and the embed-session flow for application users.For answer, review, or planning requests, stop at the requested design or code artifact. For create, update, or deploy requests, carry the requested in-scope operation through preview and validation; ask before destructive replacement or a broader external rollout that the request did not authorize. Before save_dive or update_dive, follow the review step that get_dive_guide sets for your client: when it asks you to show the final source or preview and get the user's go-ahead, do that once, unless the user already said to save without review.
Read only the reference sections needed for the current task.
artifacts/feature_complete_dive.tsx as the starting component for a new Dive.references/RESPONSIVE_DIVE_DESIGN_SYSTEM.md for the layout grid, component anatomy, theme tokens, filter model, and design anti-patterns of a new Dive or redesign.references/VISUAL_QA_PLAYBOOK.md for the screenshot and review loop when a full design handoff or evidence is requested.references/DIVE_DESIGN_GUIDE.md for authoring workflows, useSQLQuery mechanics, Dives-as-code, editing/version history, sharing, embedding, write-back with Flights, Agent Chat, SQL functions, theming prompts, chart-selection rules, loading/error states, layout patterns, and implementation gotchasLoad related skills only for missing capabilities; reuse established context.
motherduck-explore for discovering the real tables, views, and dimensions before visualizing themmotherduck-query for validating the SQL each Dive section will runmotherduck-build-dashboard when the work is really a multi-section dashboard composition problemmotherduck-build-cfa-app when the requirement is a fuller product surface with per-customer isolation or backend policy controlmotherduck-cli when the agent has a shell and should keep Dive source in local filesmotherduck-create-flight for the Flight a write-back button runsmotherduck-manage-guides for reusable personal or organization Dive conventionsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub motherduckdb/agent-skills --plugin motherduck-skills23 skills in this plugin
/motherduck-build-cfa-appBuild MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs./motherduck-build-dashboardBuild a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries./motherduck-build-data-pipelineBuild ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication. Use for any recurring ingestion from an API, SaaS app, or database into MotherDuck.Other plugins' skills for the same job