motherduck-build-cfa-a…
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Administer MotherDuck service accounts, tokens, Ducklings, and Dive embed sessions through the control-plane REST API.
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-rest-api --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/motherduck-rest-apiContext preview
The summary Claude sees to decide when to auto-load this skill.
Administer MotherDuck service accounts, tokens, Ducklings, and Dive embed sessions through the control-plane REST API.
name: motherduck-rest-api description: Administer MotherDuck service accounts, tokens, Ducklings, and Dive embed sessions through the control-plane REST API. license: MIT
1. Identify whether the task is service-account provisioning, token management, Duckling sizing, active-account inspection, or Dive embedding. 2. Resolve the admin token from the existing environment and identify the target `username` or `dive_id`; ask only when a required value cannot be discovered, and never invent production identifiers. 3. Check token scope before calling token endpoints: users can create tokens for themselves, and admins can create tokens for service accounts, but admins cannot create tokens for other non-service-account members through the API. 4. For Duckling config changes, read the current config first, then update both `read_write` and `read_scaling` because the `PUT` payload requires both. 5. Preserve response fields that are only returned once, especially newly created token strings and embed session strings. 6. Surface API errors by status and response body; do not hide `400`, `401`, `403`, `404`, or `500` responses behind success-shaped fallbacks. 7. When the MotherDuck MCP server is connected, prefer its admin tools over raw HTTP. Call `get_user_admin_guide` first, or read the MCP column in `references/REST_API_GUIDE.md`.
For answer, review, or planning requests, inspect and report without mutating the control plane. For create or update requests, perform the requested in-scope operation and verify the response; retain confirmation for destructive deletes or broader administrative changes.
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.