Skip to main content

Build

Motherduck Load Data

MotherDuck Agent SkillsOfficialCertified

Load files, object storage, dataframes, or external databases into MotherDuck with bulk ingestion. Use for any import of data into MotherDuck.

  • New
  • v1.0.51
  • Reviewed Jul 21
  • No reviews yet

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.51

Load Data into MotherDuck

Source Of Truth

  • Prefer current MotherDuck loading, cloud-storage, and Postgres-endpoint loading docs first.
  • Use CREATE SECRET and cloud-storage docs for protected-object-store workflows.
  • Use the DuckDB database upload docs when the source is an existing local .duckdb, .ddb, or attached DuckDB database.
  • Keep the loading advice aligned with MotherDuck's documented posture:
    • batch over streaming
    • Parquet over CSV when you control the format
    • dataframe, COPY, CTAS, or INSERT ... SELECT over row-by-row inserts
    • native MotherDuck storage first unless DuckLake is explicitly required

Default Posture

  • Start by classifying the source: object storage or HTTPS, local file or local DuckDB, in-memory rows, or an external database.
  • Prefer CREATE TABLE AS SELECT for first loads and INSERT INTO ... SELECT for appends.
  • For whole DuckDB databases, use CREATE OR REPLACE DATABASE remote_name FROM CURRENT_DATABASE(), an attached local database, a local file path from a native client, or a remote .duckdb file URL such as S3. Remote and local file imports physically copy data into MotherDuck; database/share clone sources are zero-copy.
  • Use Parquet for durable bulk movement whenever you control the source format.
  • Treat the Postgres endpoint as a thin-client path for server-side remote reads, not for local-file or extension-driven ingestion.
  • Bootstrap the target MotherDuck database first when the ingestion tool does not create it automatically.
  • Keep raw landing minimally transformed; do typing, deduplication, and business logic in staging or modeling steps.
  • Keep source storage close to the MotherDuck region when you control placement: S3 for AWS organizations, Azure Blob Storage or ADLS for Azure organizations (eastus, uksouth).
  • For an Iceberg REST catalog (including Microsoft Fabric OneLake), attach it as a database with CREATE DATABASE ... (TYPE ICEBERG, ...) and copy tables in with CTAS; read loose Iceberg or Delta folders with iceberg_scan or delta_scan. See the reference's Iceberg section.

Workflow

  1. Identify where the source data actually lives.
  2. Choose the loading path:
    • object storage or HTTPS: remote read into MotherDuck
    • local file or local DuckDB: use a DuckDB client path
    • remote DuckDB database file: use CREATE DATABASE ... FROM '<cloud-url>' with the required cloud secret
    • in-memory rows: Arrow or dataframe bulk load first, batched inserts only as a fallback
    • external database: use the appropriate scan or replication path from a DuckDB-capable environment
  3. Land the data into a raw or staging table with minimal transformation.
  4. Validate row counts, types, and a few business aggregates immediately after the load.
  5. Promote into modeled tables only when the request includes transformation; a load request is complete after its destination data is validated.

For answer, review, or planning requests, recommend the loading path without mutating data. For load or implementation requests, perform the requested in-scope write and validation; ask before destructive replacement or a broader external write.

References

Read only the reference sections needed for the current task.

  • Read references/INGESTION_PATTERNS.md for format-specific options, cloud-storage secrets, Postgres-endpoint loading tradeoffs, Python dataframe paths, and advanced ingestion patterns.

Load related skills only for missing capabilities; reuse established context.

  • motherduck-connect for choosing between the Postgres endpoint and a DuckDB client path
  • motherduck-explore for inspecting destination databases and validating landed tables
  • motherduck-query for writing CTAS, append, and validation SQL
  • motherduck-model-data for promoting landed data into staging and analytics tables
  • motherduck-ducklake only when object-storage-backed lakehouse storage is an explicit requirement
  • motherduck-cli when a shell-based load should stream structured output to files

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from MotherDuck Agent Skills

View source →

Frequently asked questions about motherduck-load-data

What does the motherduck-load-data skill do?

Load files, object storage, dataframes, or external databases into MotherDuck with bulk ingestion. Use for any import of data into MotherDuck. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the motherduck-load-data skill?

Run `npx @skills-hub-ai/cli install motherduck-load-data` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/motherduck-load-data/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does motherduck-load-data work with?

motherduck-load-data runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the motherduck-load-data skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use motherduck-load-data after installing it?

In Claude Code, type `/motherduck-load-data` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the motherduck-load-data skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/motherduck-load-data)](https://skills-hub.ai/skills/motherduck-load-data)
HTML
<a href="https://skills-hub.ai/skills/motherduck-load-data"><img src="https://skills-hub.ai/api/badges/skill/motherduck-load-data" alt="Install on Skills Hub"></a>

More options in the badge docs.