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.
Claude Code
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-rest-api --agent claude-code
Codex
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a codex -y
Cursor
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a cursor -y
Gemini CLI
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a gemini-cli -y
GitHub Copilot
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a github-copilot -y
OpenCode
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a opencode -y
Windsurf
$ npx skills add motherduckdb/agent-skills --skill motherduck-rest-api -a windsurf -y
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. If the connected MotherDuck MCP server lists user-admin tools (such as `create_service_account`), prefer them over raw HTTP and call `get_user_admin_guide` first when it is listed. Many MCP setups do not expose them; then use the REST API directly. The MCP column in `references/REST_API_GUIDE.md` maps the names.
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.
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 for any…
Use the MotherDuck CLI for terminal queries, authentication, and file-based Dive or Flight workflows.
Set up or troubleshoot MotherDuck connections, the MotherDuck MCP server in AI clients, authentication, client runtimes, and read…
Create, edit, design, publish, share, or embed MotherDuck Dives, including responsive layout, light/dark themes, and buttons that…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…