motherduck-build-cfa-a…
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling.
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-connect --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/motherduck-connectContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling.
name: motherduck-connect description: Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling. license: MIT
Pick the connection method (above) and the runtime separately. The runtime is what actually executes queries: MotherDuck MCP, the MotherDuck CLI, a Python or Node process, or the DuckDB CLI.
For answer, review, or planning requests, inspect the available runtimes and recommend a path without installing anything. Install or configure a runtime only when the user asks to connect, build, or change the application.
Reuse the project’s language, dependencies, and working connection. Prefer MCP for chat-only exploration and the MotherDuck CLI for file-shaped Dive/Flight work or large output. For application code, use its existing runtime; choose a new runtime only when none is established.
Before installing a DuckDB client, check `https://motherduck.com/docs/duckdb-versions.json` and pin a MotherDuck-supported version. Keep an existing compatible pin unless the task requires an upgrade. See the runtime reference for installation examples.
1. Choose the connection path for the workload; keep ingestion and serving paths distinct when their needs differ. 2. Put the MotherDuck token in environment-managed secrets, not in source code. 3. Establish the connection with explicit SSL settings where required. 4. Verify the connection with `SELECT 1 AS connected` and then list reachable tables. 5. If the workload is read-heavy and concurrent, evaluate read scaling and `session_hint`.
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.
Create, edit, publish, share, or embed MotherDuck Dives using their React and SQL runtime.
Create, run, schedule, or debug MotherDuck Flights, Python jobs executed on MotherDuck compute.