motherduck-build-cfa-a…
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Design or improve a MotherDuck Dive’s layout, responsive behavior, themes, filters, and visual accessibility.
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-design-dive --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/motherduck-design-diveContext preview
The summary Claude sees to decide when to auto-load this skill.
Design or improve a MotherDuck Dive’s layout, responsive behavior, themes, filters, and visual accessibility.
name: motherduck-design-dive description: Design or improve a MotherDuck Dive’s layout, responsive behavior, themes, filters, and visual accessibility. license: MIT
Use this skill for the visual system and interaction design of a Dive. Pair it with `motherduck-create-dive` for current React and `useSQLQuery` mechanics, and with `motherduck-build-dashboard` when the task also includes defining the analytical story and SQL.
For a new Dive or a full redesign, use these defaults unless the user's design requirements differ. For a scoped edit, preserve the existing visual system and check affected states.
Avoid ornamental gradients, glass effects, glowing accents, oversized hero metrics, decorative bento layouts, excessive pills, floating shapes, and prose that sounds like a marketing landing page.
1. Inspect the existing Dive, supplied design paper, screenshots, and live schema before proposing a layout. 2. If MotherDuck MCP is available, call `get_dive_guide` before writing Dive code and again before any save or update if the guide may have changed. Apply relevant conventions surfaced from the reserved `dives` Guide topic unless the user asks for a different direction. Use this skill for the responsive shell when generic styling examples conflict with the user's explicit design requirements. 3. Define the audience, primary decision, metric hierarchy, filter dimensions, and reuse boundary. 4. Sketch the 320 px composition first: header, filter trigger, compact one- or two-column KPI group, primary chart, supporting sections, and detail view. 5. Expand that composition into tablet and desktop grids without changing reading order. 6. Implement semantic design tokens, theme switching, reusable cards, responsive chart wrappers, and filter state. 7. Validate query correctness separately, then preview the complete Dive with loading, empty, error, long-label, and dense-data states. 8. Inspect the rendered result at affected viewports and themes. Use the full visual QA reference for a new design, broad redesign, or requested evidence handoff; a label or SQL edit does not require a new design report.
For answer, review, or planning requests, return the requested design artifact without changing a Dive. For build or redesign requests, implement and preview the in-scope Dive; save or update it only when the request includes that operation.
Return the implemented change or requested design, the checks performed, and any concrete limitation. For a full design handoff, include the hierarchy, filter behavior, responsive rules, theme tokens, component boundaries, and evidence described in the visual QA reference.
Do not call a design mobile-friendly based only on responsive CSS. Report the viewports and states actually checked.
Read only the reference sections needed for the current task.
Load related skills only for missing capabilities; reuse established context.
Opinionated AI agent skills for building applications with MotherDuck
Repo: motherduckdb/agent-skills
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Build a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries.
Build ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication.
Use the MotherDuck CLI for terminal queries, authentication, and file-based Dive or Flight workflows.
Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling.
Create, edit, publish, share, or embed MotherDuck Dives using their React and SQL runtime.