/motherduck-skills:motherduck-queryfrom motherduck-skills
Writes, runs, optimizes, and troubleshoots DuckDB SQL targeting MotherDuck, including AI classification with prompt_jev. Covers MotherDuck-specific dialect, naming rules, and workflow.
Ships in motherduck-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
get_query_guide first, then read only the relevant Guide topics and validate their claims against the live schema."database"."schema"."table" names; they are required once more than one database or share is attached.ATTACH, DETACH, recovery commands such as CREATE SNAPSHOT, ALTER DATABASE ... SET SNAPSHOT, UNDROP DATABASE, and lifecycle commands such as SHUTDOWN as writes. Use the MotherDuck MCP query_rw tool when the user's change request authorizes the write. Ask for confirmation only when the action is destructive, externally visible, or outside the stated scope.custom_user_agent when the connection path supports it; the tag appears per query in the Duckling Overview and in query history.prompt_jev(): it returns typed probabilities and labels, bills input tokens only, and batches rows. Use prompt() for generated text or open extraction with struct or json_schema. Both are per-row billable calls: test on a small LIMIT, store results in a table, and rerun only NULL rows.EXPLAIN ANALYZE and md_information_schema.query_history (wait_time, bytes_spilled_to_disk, instance_type) before changing the query or the Duckling size.Read only the reference sections needed for the current task.
references/QUERY_PLAYBOOK.md for DuckDB query patterns, exploration SQL, performance rules, common analytical shapes, and common mistakesreferences/AI_FUNCTIONS.md when a query calls prompt_jev(), prompt(), or embedding()references/PERFORMANCE.md when a query is slow, spills, runs out of memory, or a Duckling looks undersizedLoad related skills only for missing capabilities; reuse established context.
motherduck-connect for session setupmotherduck-duckdb-sql for syntax and function referencemotherduck-explore for understanding the source schema before writing queriesmotherduck-manage-guides when semantic definitions or reusable query rules need to be read or maintainedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
motherduck, duckdb-sql, database-querying, ai-classification
npx claudepluginhub motherduckdb/agent-skills --plugin motherduck-skills23 skills in this plugin
/motherduck-build-cfa-appBuild MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs./motherduck-build-dashboardBuild a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries./motherduck-build-data-pipelineBuild ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication. Use for any recurring ingestion from an API, SaaS app, or database into MotherDuck.Other plugins' skills for the same job