/motherduck-skills:motherduck-rest-apifrom motherduck-skills
Administers MotherDuck service accounts, tokens, Ducklings, and Dive embed sessions via the control-plane REST API. Useful for org admin tasks like provisioning and access reviews.
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.
https://api.motherduck.com/docs/specs, or an explicit OpenAPI spec supplied by the user.ask_docs_question feature is available, use it to check whether public REST API guidance has changed.https://api.motherduck.com as the base URL unless the user provides another environment.Authorization: Bearer ${MOTHERDUCK_ADMIN_TOKEN} and keep admin read-write tokens in backend-managed secrets.POST /v1/users as service-account creation unless current docs explicitly broaden the API. GET /v1/users lists every user and service account in the org; filter with is_service_account and is_deprovisioned and page with limit/offset. Use it for access reviews and to find a service account before creating a duplicate.references/ACCESS_CONTROL_SETUPS.md in motherduck-security-governance.motherduckdb/motherduck over scripted REST calls. It authenticates with MOTHERDUCK_TOKEN, plus MOTHERDUCK_ADMIN_TOKEN for service accounts, tokens, and Duckling configuration.motherduck new or the public signup flow) as separate from the organization Admin REST API. Never create an account because an admin token is unavailable.initial_state JSON-serializable and within the documented size limits; validate iframe state, navigation, and export messages in the host application.username or dive_id; ask only when a required value cannot be discovered, and never invent production identifiers.read_write and read_scaling because the PUT payload requires both.400, 401, 403, 404, or 500 responses behind success-shaped fallbacks.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.
references/REST_API_GUIDE.md for endpoint summaries, MCP tool mapping, curl examples, validation limits, and operational gotchas.Load related skills only for missing capabilities; reuse established context.
motherduck-query for SQL and data-plane query workmotherduck-connect for connection tokens and application connection posturemotherduck-security-governance for admin-token handling, service-account posture, and access-boundary questionsmotherduck-create-dive for designing Dives before minting embed sessionsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
motherduck, rest-api, admin, service-accounts, duckling, dive
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