In short.
DuckDB SQL Reference for MotherDuck is an AI assistant skill for analysts and developers using DuckDB on MotherDuck, but it depends on current documentation to establish compatibility. It pairs SQL repair instructions with a reference covering data types, functions and query patterns. Its distinctive guidance separates DuckDB syntax, MotherDuck additions and restrictions associated with the PostgreSQL connection endpoint. Supported assistant hosts, installation commands and service costs are unspecified. Neither the skill nor its SQL examples were run.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete captured folder plugins/motherduck-skills/skills/motherduck-duckdb-sql: SKILL.md and references/SYNTAX_REFERENCE.md, plus the repository-level LICENSE at commit a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b. Related skills, surrounding plugin configuration, live documentation and service terms are outside this scope. No installation, assistant behavior, SQL execution, extension availability, runtime compatibility, performance or costs were tested.
The overview
Identity
The resource is the motherduck-duckdb-sql skill in motherduckdb/agent-skills. Its selected folder contains SKILL.md and references/SYNTAX_REFERENCE.md. SKILL.md describes its purpose as looking up or repairing DuckDB SQL and checking MotherDuck command and feature support.
It supplies instructions and reference material for an AI assistant. The captured folder contains no database connector, query execution program or model.
Assessment
Its strongest feature is the explicit distinction between DuckDB language rules, MotherDuck additions and connection restrictions. In particular, it warns that using a PostgreSQL endpoint does not make PostgreSQL SQL the appropriate dialect.
The content supports use as a specialist reference for SQL writing and migration. It provides no measured evidence of improved assistant accuracy, successful repairs or production compatibility.
Users
Analysts and developers translating queries from another database can use its guidance on functions, date arithmetic, identifier quoting and casts. Developers working across attached databases or shares also get guidance on fully qualified database, schema and table names.
Beginners get examples of common functions and query patterns, but the material assumes some understanding of SQL, tables and connections. Experienced users get additional cautions about shares, access control, cloning and recovery operations.
Capabilities
The reference covers data types, string and numeric functions, dates, aggregates, windows, JSON, lists, spatial and H3 functions, file readers, PIVOT, UNPIVOT and common query patterns. The instructions encourage DuckDB constructs such as GROUP BY ALL, QUALIFY, UNION BY NAME and arg_max.
MotherDuck guidance addresses shares and secure views, role and grant SQL, imports versus zero-copy clones, snapshots and recovery. It also names prompt(), embedding() and prompt_jev(), while directing their usage and cost questions to the separate motherduck-query skill.
Using it
Requirements
Using the skill as intended requires an assistant environment that can read SKILL.md and its relative reference file. Supported hosts, model requirements and minimum versions are not specified.
Its verification approach requires access to current DuckDB and MotherDuck documentation. Running any resulting SQL separately requires an appropriate database connection, schema context and permissions; these files do not supply them.
Mechanism
The skill guides the assistant to identify the connection method and whether the problem concerns syntax, feature support or a specific error. It then describes writing or repairing DuckDB SQL, checking MotherDuck additions and connection limitations, and consulting the bundled reference for details.
This mechanism depends on the assistant following textual guidance and consulting documentation. The selected files provide no automatic compatibility checker or query validation runner.
Setup
Keep SKILL.md alongside references/SYNTAX_REFERENCE.md with that relative path intact, then follow the chosen assistant host's documented method for loading skills. The selected folder provides no installer, activation command or host configuration example, so exact installation steps are unknown.
For a useful first request, supply the connection method, relevant database and schema names, the SQL statement and any exact error. Establish the supported DuckDB version before depending on recently introduced features.
Example
The reference gives this deduplication pattern: SELECT * FROM raw_events QUALIFY ROW_NUMBER() OVER (PARTITION BY event_id ORDER BY ingested_at DESC) = 1;
The pattern expresses keeping one row per event_id, ordered by the latest ingested_at. Equal timestamps have no additional tie-breaker in this example. For an actual database, substitute the real table name and apply the skill's guidance on database and schema qualification. This example was not executed.
Assessment & evidence
Limitations
The reference describes itself as complete, but the captured material does not establish exhaustive or correct coverage. Several entries combine alternative expressions on one line, so the document needs to be read as a reference rather than pasted as a single SQL script.
Feature availability remains dependent on versions, connection method, extensions and access to files. Claims about preinstalled extensions and individual function signatures were not independently verified. Operational commands such as shutdown, restore and database recovery also depend on permissions, retention and plan limits.
Fit rationale
The practical value comes from pairing concrete SQL examples with reminders about where compatibility assumptions fail. The separation of upstream DuckDB features, MotherDuck commands and PostgreSQL endpoint behavior directly addresses the resource's stated SQL repair purpose.
It fits work where an assistant can consult current documentation and receive accurate connection and schema context. Its usefulness is less established when the requirement is automatic query validation, guaranteed feature support or a complete installation package.
Alternatives
The skill identifies current DuckDB SQL documentation as the direct reference for language semantics and MotherDuck SQL documentation for MotherDuck additions. It also identifies version lifecycle and PostgreSQL endpoint documentation for compatibility questions.
For adjacent needs, it names motherduck-query for live analytical SQL validation, motherduck-connect for connection questions and motherduck-explore for schema discovery. Those skills are outside the selected folder, so their implementation, setup and effectiveness are unknown here.
Evidence
The original skill instructions are captured at [https://raw.githubusercontent.com/motherduckdb/agent-skills/a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b/plugins/motherduck-skills/skills/motherduck-duckdb-sql/SKILL.md]. The bundled reference is captured at [https://raw.githubusercontent.com/motherduckdb/agent-skills/a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b/plugins/motherduck-skills/skills/motherduck-duckdb-sql/references/SYNTAX_REFERENCE.md].
These files establish the instructions and examples supplied by the resource. They contain no execution receipts, benchmark results or supported host matrix. The associated repository LICENSE establishes the captured redistribution terms.
Access & freshness
Costs
The captured files state no purchase price for the skill and provide no assistant usage prices, MotherDuck service rates or usage allowances. Total operating cost is unknown.
The instructions defer cost rules for MotherDuck AI SQL functions to motherduck-query, which is outside this folder. No cost estimate for those functions can be established from this resource.
Rights
SKILL.md declares MIT licensing, and the repository LICENSE names Copyright (c) 2026 MotherDuck. The licence permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain with copies or substantial portions.
The software is supplied without warranty. These terms do not establish the terms of using the MotherDuck service or external documentation. The captured licence is available at [https://raw.githubusercontent.com/motherduckdb/agent-skills/a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b/LICENSE].
Freshness
The source snapshot is pinned to commit a9c8107e92adcf75c04ac0a8aa7692fb9b9e091b and was captured on 2026-11-16 at 00:16:07.759 UTC. That timestamp does not establish when the instructions were last substantively updated.
The resource itself warns that MotherDuck support can lag upstream DuckDB releases. It specifically calls for verification of features such as MERGE INTO, FILL(), VARIANT, native GEOMETRY and date_trunc return behavior. The supported version matrix and current availability of those features remain unknown from these files.
Next steps
Confirm that your assistant host can load the two files, then identify the database version and connection method relevant to your query. Check exact syntax and feature availability in the current documentation before relying on generated SQL.
For sharing or recovery work, establish the applicable permissions, retention and plan limits first. If you need live validation, connection setup or schema discovery, inspect the related skill named for that task; the selected SQL reference does not establish those capabilities.
