跳到正文
cccskills
免费在 GitHub 公开

motherduck-model-data

Design or implement MotherDuck analytical schemas and transformation models, including grain, types, and materialization.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.0 KB
  • references/MODELING_PLAYBOOK.md13.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Model Data in MotherDuck

Core Behavior

For multi-model work, keep transformations in reviewable SQL files using the project's existing dbt, SQLMesh, or local conventions. If none exist, use stage directories and a model_manifest.yml recording dependencies, materialization, and target database. A single-table request needs only the requested SQL or change.

Prerequisites

Use the known source schema and connection. Discover missing types, grain, and join keys before implementing; planning can use supplied schema without a live connection.

Default Posture

  • Design for analytical reads, not transactional writes.
  • Prefer wide denormalized tables and pre-aggregated serving tables over highly normalized OLTP-style schemas.
  • Use fully qualified names and add comments to tables and columns. Preserve stable object names so Guides can reference the intended catalog objects reliably.
  • Use NOT NULL aggressively; do not assume primary keys or foreign keys are enforced.
  • Reuse an existing dbt, SQLMesh, or repo-local modeling convention when one is already present; create the lightweight scaffold only when there is no established project shape.
  • Separate raw, staging, and analytics lifecycle stages when the project is non-trivial.

Workflow

  1. Inspect the current source tables and actual column types before designing new models.
  2. Choose the target lifecycle stage and grain for each modeled table. Map dependencies between models.
  3. Place SQL in the existing project, or use the scaffold reference for a new multi-model project.
  4. Author each model as a standalone SQL file. Use explicit types, nullability, comments, and fully qualified names. Decide between a table, CTAS rebuild, or view based on freshness and cost.
  5. Record dependencies and materializations in the project's framework or lightweight manifest, not both.
  6. For implementation, run the in-scope models and verify grain and row counts; MCP DDL and CTAS require query_rw. For an answer, review, or plan, return the requested explanation or SQL without creating a project or mutating the warehouse unless requested.

References

Read only the reference sections needed for the current task.

  • Read references/MODELING_PLAYBOOK.md for schema patterns, data-type guidance, CTAS/view decisions, complex types, constraints, project scaffold conventions, and common modeling mistakes.

Related Skills

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

  • motherduck-duckdb-sql for type syntax and function details
  • motherduck-query for executing DDL, rebuilds, and validation queries
  • motherduck-explore for understanding the source schema before remodeling
  • motherduck-load-data for ingestion paths that feed the modeled tables
  • motherduck-manage-guides for durable business definitions and join rules that do not belong in transformation code

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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 的全部技能

报告此技能的问题