motherduck-build-cfa-a…
Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.
Create, consume, or manage MotherDuck data shares, including audience grants, table filters, and refresh policy.
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-share-data --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/motherduck-share-dataContext preview
The summary Claude sees to decide when to auto-load this skill.
Create, consume, or manage MotherDuck data shares, including audience grants, table filters, and refresh policy.
name: motherduck-share-data description: Create, consume, or manage MotherDuck data shares, including audience grants, table filters, and refresh policy. license: MIT
A working connection, the source database, and the intended audience. Reuse these from context; related skills are available for missing setup or SQL details.
1. Identify the exact database to publish and who should consume it. 2. Decide the audience, visible table/view subset, discoverability, and freshness requirements before writing SQL. 3. Preview and validate any include pattern against the live source catalog, then create the share with explicit access, visibility, update mode, and optional `INCLUDE_PATTERN`. 4. If access is restricted, grant users or roles explicitly. If the share is hidden or link-based, distribute the share URL directly. 5. Read the share back with `LIST SHARES` or `MD_INFORMATION_SCHEMA.OWNED_SHARES`; for filtered shares, verify the stored pattern and consumer-visible catalog. 6. Have recipients `ATTACH` the shared database and query it read-only. 7. Use `ALTER SHARE ... SET|RESET INCLUDE_PATTERN` for table/view scope changes. If the share uses `UPDATE MANUAL`, the owner runs `UPDATE SHARE` and consumers run `REFRESH DATABASE` when a new snapshot is ready.
For answer, review, or planning requests, return the sharing design and SQL without provisioning. For create, update, grant, or revoke requests, perform the requested in-scope operation and validate the resulting access; ask before public exposure, destructive revocation, or unrelated grants.
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.