Agent-skills motherduck-share-data
Create and manage MotherDuck data shares for zero-copy data distribution. Use when sharing databases with team members, other organizations, or making data publicly available.
install
source · Clone the upstream repo
git clone https://github.com/motherduckdb/agent-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/motherduckdb/agent-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/motherduck-skills/skills/motherduck-share-data" ~/.claude/skills/motherduckdb-agent-skills-motherduck-share-data-3596f8 && rm -rf "$T"
manifest:
plugins/motherduck-skills/skills/motherduck-share-data/SKILL.mdsource content
Share Data with MotherDuck
Use this skill when you need to distribute a MotherDuck database without copying data. Shares are read-only, zero-copy database clones and should be treated as explicit provisioning operations.
Source Of Truth
- Prefer the current MotherDuck sharing docs and SQL reference first.
- If the MotherDuck MCP
feature is available, use it before falling back to public docs.ask_docs_question - Keep the sharing model aligned with the documented behavior:
- zero-copy and metadata-only
- database-granularity sharing
- read-only recipients
- owner-controlled update mode
Prerequisites
- MotherDuck connection established via
motherduck-connect - Source database identified via
motherduck-explore - Share SQL validated via
motherduck-query
Default Posture
- Default internal sharing to
,ACCESS ORGANIZATION
, andVISIBILITY DISCOVERABLE
.UPDATE AUTOMATIC - Use
when the recipient needs a stable snapshot or versioned delivery.UPDATE MANUAL - Use
orACCESS RESTRICTED
when distribution should stay tightly controlled.VISIBILITY HIDDEN - For write-heavy publishers, current clients with DuckDB 1.5+ reduce checkpoint blocking during share-update workflows; verify client versions before relying on concurrent checkpoint behavior.
- Never treat a share as row-level security. Shares operate at database granularity.
Workflow
- Identify the exact database to publish and who should consume it.
- Decide sensitivity, discoverability, and freshness requirements before writing SQL.
- Create the share with explicit access, visibility, and update settings.
- If access is restricted, grant readers explicitly. If the share is hidden or link-based, distribute the share URL directly.
- Have recipients
the shared database and query it read-only.ATTACH - If the share uses
, the owner runsUPDATE MANUAL
and consumers runUPDATE SHARE
when a new snapshot is ready.REFRESH DATABASE
Open Next
for the full SQL playbook, access/update decision matrix, consumer workflow, and common failure modesreferences/SHARE_PLAYBOOK.md
Related Skills
for MotherDuck authentication and connection setupmotherduck-connect
for discovering databases, tables, columns, and existing sharesmotherduck-explore
for validating share SQL and downstream queriesmotherduck-query
for DuckDB SQL syntax and lookup supportmotherduck-duckdb-sql