AGENT SKILL

motherduck-share-data

Create and manage MotherDuck data shares for zero-copy, read-only data distribution. Use whenever someone wants to share a database with team members, another organization, or the public — covers CREATE SHARE, access/visibility/update modes, GRANT READ ON SHARE, attaching share URLs, UPDATE SHARE, and REFRESH DATABASE.

适用职业数据分析师
License 许可
MIT
最近更新
2026-10-12
Stars
★ 4
Forks
1

01 前言 Front Matter

name
motherduck-share-data
license
MIT
description
Create and manage MotherDuck data shares for zero-copy, read-only data distribution. Use whenever someone wants to share a database with team members, another organization, or the public — covers CREATE SHARE, access/visibility/update modes, GRANT READ ON SHARE, attaching share URLs, UPDATE SHARE, and REFRESH DATABASE.

02 资源文件 1

03 SKILL.md 正文

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 ask_docs_question feature is available, use it before falling back to public docs.
  • 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, VISIBILITY DISCOVERABLE, and UPDATE AUTOMATIC.
  • Use UPDATE MANUAL when the recipient needs a stable snapshot or versioned delivery.
  • Use ACCESS RESTRICTED or VISIBILITY HIDDEN when distribution should stay tightly controlled.
  • Confirm whether the recipient is an internal user, another organization, or public before choosing access and visibility.
  • For write-heavy publishers, verify the DuckDB client version is one MotherDuck supports before relying on checkpoint or concurrent-write behavior during share-update workflows.
  • Never treat a share as row-level security. Shares operate at database granularity.

Workflow

  1. Identify the exact database to publish and who should consume it.
  2. Decide sensitivity, discoverability, and freshness requirements before writing SQL.
  3. Create the share with explicit access, visibility, and update settings.
  4. If access is restricted, grant readers explicitly. If the share is hidden or link-based, distribute the share URL directly.
  5. Have recipients ATTACH the shared database and query it read-only.
  6. If the share uses UPDATE MANUAL, the owner runs UPDATE SHARE and consumers run REFRESH DATABASE when a new snapshot is ready.

Open Next

  • Read references/SHARE_PLAYBOOK.md for the full SQL playbook, access/update decision matrix, consumer workflow, and common failure modes.

Related Skills

  • motherduck-connect for MotherDuck authentication and connection setup
  • motherduck-explore for discovering databases, tables, columns, and existing shares
  • motherduck-query for validating share SQL and downstream queries
  • motherduck-duckdb-sql for DuckDB SQL syntax and lookup support

04 同仓库更多 Skills

cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

dagster-init

Initialize a dagster project using the create-dagster cli. Create a dagster project, uv virtual environment, and everything needed for a user to run dg dev or dg check defs successfully. (project)

★ 4
cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

create-custom-dagster-component

Create a custom Dagster Component with demo mode support, realistic asset structure, and optional custom scaffolder using the dg CLI. Use this skill if there is no Component included in an existing integration or if Dagster does not have the integration.

Skill与智能体开发
★ 4
cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

pydantic-ai-harness

Extend Pydantic AI agents with batteries-included capabilities from pydantic-ai-harness -- currently Code Mode, which collapses many tool calls into one sandboxed Python execution. Use when the user mentions pydantic-ai-harness, CodeMode, Monty, code mode, or tool sandboxing, when they want an agent to run agent-written Python, or when a Pydantic AI agent would benefit from orchestrating multiple tool calls in a single sandboxed script.

★ 4
cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

building-pydantic-ai-agents

Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydantic_ai, or asks to build an AI agent, add tools/capabilities, defer capability loading, stream output, define agents from YAML, or test agent behavior.

测试与质量Skill与智能体开发
★ 4
cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

motherduck-security-governance

Explain MotherDuck security, governance, and access-control patterns. Use for any question about SOC 2, GDPR, compliance, data residency, regions, SSO, service accounts, token handling, tenant isolation, sharing boundaries, snapshots and recovery, or governance posture — including when a security_compliance_owner, technical_owner, or application_builder is evaluating MotherDuck.

★ 4
cianfhoghlaim
cianfhoghlaim/cianfhoghlaim

motherduck-rest-api

MotherDuck REST API control-plane reference. Use when calling api.motherduck.com to provision service accounts, create, list, rotate, or revoke access tokens, configure Duckling instance sizes and read scaling, inspect active accounts, or mint Dive embed sessions. Not for SQL or data-plane query work.

开发工程师后端与接口
★ 4