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.
Claude Code
$ npx -y skills add motherduckdb/agent-skills --skill motherduck-share-data --agent claude-code
Codex
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a codex -y
Cursor
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a cursor -y
Gemini CLI
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a gemini-cli -y
GitHub Copilot
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a github-copilot -y
OpenCode
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a opencode -y
Windsurf
$ npx skills add motherduckdb/agent-skills --skill motherduck-share-data -a windsurf -y
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. For secure views, run `SHOW SECURE VIEWS ON SHARE <name>` and attach the share as a consumer to check the result; identity functions evaluate as whoever runs the test. 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 and `ALTER SHARE ... ADD|DROP SECURE VIEW` for policy changes (not both in one statement). Avoid `CREATE OR REPLACE SHARE` on a share with secure views; it drops any view it does not restate. 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.
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,…