Skip to content
Data
Skill

/motherduck-explore

Find and understand MotherDuck databases, tables, columns, shares, and sample data, including which tables hold a given kind of data. Use first when a MotherDuck workspace or schema is unfamiliar.

From plugin
agent-skills
6221 skills

Claude Code

$ npx -y skills add motherduckdb/agent-skills --skill motherduck-explore --agent claude-code

SKILL.md

motherduck-explore.SKILL.md
name: motherduck-explore
description: Find and understand MotherDuck databases, tables, columns, shares, and sample data, including which tables hold a given kind of data. Use first when a MotherDuck workspace or schema is unfamiliar.
license: MIT

Explore MotherDuck Data

Prerequisites

  • An established MotherDuck connection (or an active MotherDuck MCP server)

Default Posture

  • Start at the known catalog object; broaden to databases or shares only when the target is unknown.
  • Prefer fully qualified `"database"."schema"."table"` names; they are required once more than one database or share is attached.
  • Check shared databases before concluding that data is unavailable. A share with secure views can hide columns and rows: a missing column in an attached share may be policy, not schema drift.
  • Use the MotherDuck MCP tools (`list_databases`, `list_tables`, `list_views`, `list_columns`, `list_macros`, `search_catalog`) when available because they return structured results faster than ad hoc SQL. Check `list_macros` before reimplementing logic; table and scalar macros often encode governed definitions.
  • When MotherDuck MCP is available and the SQL answers a business question, call `get_query_guide` first, then read only the relevant Guide topics and validate their claims against the live schema. Follow `relatedGuides` returned by catalog tools when they govern the objects in scope.
  • Record whether a share is filtered and whether an existing Dive is Draft, Ready, Endorsed, or Archived; these attributes change what downstream agents should trust or expect to see.
  • Return a concise schema map with table grain, join keys, date columns, and likely measures before moving into modeling or dashboard work.

Workflow

1. List databases in scope. 2. Load relevant Guide context, then list tables and views in the target database. 3. Inspect columns, types, nullability, and comments before writing queries. 4. Use targeted profiling or `SUMMARIZE` when ranges, cardinality, or null rates affect the answer; avoid broad scans for a catalog lookup. 5. Preview rows with `SELECT * ... LIMIT n` or `USING SAMPLE`; on wide tables these read only the row groups they need. Capture grain and join assumptions, and only then move into analytical SQL or modeling work.

References

Read only the reference sections needed for the current task.

  • Read `references/EXPLORATION_PLAYBOOK.md` for the full SQL workflow, share discovery patterns, MCP tool guidance, and common exploration mistakes

Related Skills

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

  • `motherduck-connect` for session setup and authentication
  • `motherduck-query` for analytical SQL after the schema is understood
  • `motherduck-duckdb-sql` for DuckDB syntax patterns during exploration
  • `motherduck-share-data` for creating and consuming shares once shared datasets become part of the workflow
  • `motherduck-manage-guides` for reading or maintaining the context attached to discovered objects
Read more
@motherduckdb
Ships withagent-skills

Opinionated AI agent skills for building applications with MotherDuck

Stars on GitHub

Momentum

stars in total
62
Star history of motherduckdb/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem06d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog12d41k
@posthog@posthogInstall Skill

Questions about motherduck-explore.

Which coding agents can use motherduck-explore?
motherduck-explore installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.