motherduck-duckdb-sql

motherduck-duckdb-sql is a skill for Claude Code from motherduckdb/agent-skills. It costs 26 tokens per session (818 once invoked), scanned A, original, no licence file.

A reference for DuckDB SQL syntax and functions in MotherDuck. It also explains MotherDuck-specific commands and features, including shares, secrets, snapshots, and restoring dropped objects.

In plain words
What is it for?
Checking exact syntax, understanding function behavior, fixing failed queries, and using MotherDuck database-management features.
Why use it?
It helps resolve SQL errors and adapt queries written for PostgreSQL or other databases when their syntax does not work in MotherDuck. It also explains DuckDB conveniences such as QUALIFY and GROUP BY ALL.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the motherduck-skills plugin — 21 skills shipped together

Good fit Checking exact syntax, understanding function behavior, fixing failed queries, and using MotherDuck database-management features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/motherduckdb/agent-skills/motherduck-duckdb-sql
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add motherduckdb/agent-skills --skill motherduck-duckdb-sql
Clone the repo
git clone --depth 1 https://github.com/motherduckdb/agent-skills

Made for: Claude Code.

Or install motherduck-skills, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for motherduck-duckdb-sql

README.md
[![agentmods](https://agentmods.dev/badge/skills/motherduckdb/agent-skills/motherduck-duckdb-sql/github.svg)](https://agentmods.dev/skills/motherduckdb/agent-skills/motherduck-duckdb-sql)
Your own site
<a href="https://agentmods.dev/skills/motherduckdb/agent-skills/motherduck-duckdb-sql"><img src="https://agentmods.dev/badge/skills/motherduckdb/agent-skills/motherduck-duckdb-sql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for motherduck-duckdb-sql

Your own site · 80×15
<a href="https://agentmods.dev/skills/motherduckdb/agent-skills/motherduck-duckdb-sql"><img src="https://agentmods.dev/badge/skills/motherduckdb/agent-skills/motherduck-duckdb-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 7 May 2026
  • Snyk pass 7 May 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00818
Opus 5.5 $0.00010 $0.00327
Sonnet 5.5 $0.00005 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 3d ago against content hash a952538a08a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

motherduck-duckdb-sql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/motherduck-skills-claude/skills/motherduck-duckdb-sql/SKILL.md · 52 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +1 lines a952538a08a6
  2. 1mo ago Changed · +2 lines · -51 tokens per session 15cb620de4b8
  3. 1mo ago First seen · 49 lines · 77 tokens per session scan A 66d1bbcb0339

Subscribe to this mod's changes

motherduck-duckdb-sql is a skill published in the GitHub repository motherduckdb/agent-skills (62 stars, last pushed 2d ago), with no licence file. It adds 26 tokens to every session and 818 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

onboarding

Skill "onboarding" from knitli/toolshed, covering codeweaver first-run onboarding, your goal, setup flow, 1. welcome & overview and 2. embedding provider selection.

knitli/toolshed · 0 tokens

setup

Skill "setup" from knitli/toolshed, covering codeweaver setup / reconfiguration, your goal, setup flow, 1. welcome & context and 2. embedding provider selection.

knitli/toolshed · 0 tokens

querying-posthog-data

Explains how to query PostHog data, defaulting to typed runners for supported product analytics. Read it before you write HogQL/SQL. Also read it before you call execute-sql against PostHog. Use it to find or aggregate PostHog entities. These entities include insights, dashboards, cohorts, feature flags, experiments…

PostHog/ai-plugin · 195 tokens

tuning-incremental-sync-config

Change the sync configuration of an existing data warehouse schema — switch synctype, pick a different incrementalfield, set primarykeycolumns, choose cdctablemode, or change syncfrequency. Use when the user asks "switch my orders table from full refresh to incremental", "this table is syncing too slowly / too…

PostHog/ai-plugin · 109 tokens

auditing-warehouse-source-health

Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks "why are my imports failing?", "what's broken with my sources?", "why is my warehouse data stale?", or wants a one-shot triage of…

PostHog/ai-plugin · 129 tokens

setting-up-data-catalog

Populates and maintains a project's data catalog (semantic layer): canonical metrics, trust marks (certifications) on warehouse tables/views, and reviewed table relationships. Use when asked to set up / seed / bootstrap the data catalog or semantic layer, to catalog a project's metrics, to certify or deprecate data…

PostHog/ai-plugin · 135 tokens