본문으로 건너뛰기
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(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고