本文へ移動
cccskills
無料GitHub で公開

motherduck-duckdb-sql

Look up or repair DuckDB SQL syntax and verify MotherDuck-specific command and feature support.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.2 KB
  • references/SYNTAX_REFERENCE.md18.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

DuckDB SQL Reference for MotherDuck

Source Of Truth

  • Prefer current DuckDB SQL docs for language features and function semantics.
  • Use current MotherDuck SQL docs for MotherDuck-only commands such as shares, secrets, snapshots, and Dive operations.
  • MotherDuck can lag upstream DuckDB releases for client compatibility; check MotherDuck version-lifecycle docs before promising newly released DuckDB syntax or types are available.
  • If the connection path matters, verify behavior against the current Postgres-endpoint docs before promising server-mode support.

Default Posture

  • Write DuckDB SQL, not PostgreSQL SQL, even when the client connects through the Postgres endpoint.
  • Use fully qualified "database"."schema"."table" names once more than one database or share is in scope.
  • Prefer DuckDB-native constructs when they simplify the query: GROUP BY ALL, QUALIFY, UNION BY NAME, arg_max, EXCLUDE, and REPLACE.
  • When porting SQL from another engine, translate functions, date arithmetic, identifier quoting, and type casts explicitly instead of assuming compatibility.
  • Verify current MotherDuck support before relying on recently released upstream DuckDB features such as VARIANT, native GEOMETRY, MERGE INTO, or date_trunc return-type changes.
  • Check whether the statement depends on local files, extension install/load, temporary-table behavior, or other client-only features before claiming it will work in MotherDuck.
  • Treat snapshot, restore, and UNDROP DATABASE statements as operational SQL with plan-specific retention behavior, not ordinary analytical syntax.
  • Treat INCLUDE_PATTERN as whole-table/view filtering on a Share, not row-level or column-level security. Use ALTER SHARE only for include-pattern changes.
  • Distinguish physical import (CREATE DATABASE ... FROM '<file-url>') from zero-copy clone sources, and reject filtered shares as clone sources.
  • Use role/grant SQL for governed access and audit it with SHOW ... statements; do not preserve ACCESS ORGANIZATION as the preferred RBAC pattern.
  • Treat MotherDuck SQL as an additional surface on top of DuckDB SQL, not a replacement for it.

Workflow

  1. Confirm the connection path and whether the question is about syntax, feature support, or a specific error.
  2. Write or repair the statement in DuckDB SQL first.
  3. Verify any MotherDuck-only command or server-mode limitation against the current docs.
  4. If the user needs exact syntax or function details, open references/SYNTAX_REFERENCE.md.

References

Read only the reference sections needed for the current task.

  • Read references/SYNTAX_REFERENCE.md for DuckDB data types, friendly SQL features, functions, complex types, and common MotherDuck-specific gotchas.

Related Skills

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

  • motherduck-query for writing and validating analytical SQL against live MotherDuck data
  • motherduck-connect when syntax support depends on PG endpoint versus native DuckDB behavior
  • motherduck-explore when the problem is really missing schema context rather than missing syntax knowledge

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Build MotherDuck analytics into customer-facing applications with tenant isolation, backend routing, and serving APIs.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

Build a MotherDuck dashboard as a Dive, choosing the analytical story, metrics, and section queries.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

Build ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

Use the MotherDuck CLI for terminal queries, authentication, and file-based Dive or Flight workflows.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

Set up or troubleshoot MotherDuck connections, authentication, client runtimes, and read scaling.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

Create, edit, publish, share, or embed MotherDuck Dives using their React and SQL runtime.

日本語の概要は準備中です。原文の説明を表示しています。

motherduckdb/agent-skills622026年9月6日 更新

motherduckdb のスキルをすべて見る

このスキルの問題を報告する