Skip to main content

data-modeling

Guides warehouse data modeling with a Kimball/wide-table/Data Vault decision tree, medallion dbt layering, and fact table templates; use when designing a warehouse schema, choosing a modeling approach, or refactoring an existing model.

소스 정보

저장소
sawrus/agent-guides
최근 소스 활동
2026년 10월 16일 19:08
감지된 SKILL.md 언어
영어
스타
19
포크
4

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
data-modeling
description
Guides warehouse data modeling with a Kimball/wide-table/Data Vault decision tree, medallion dbt layering, and fact table templates; use when designing a warehouse schema, choosing a modeling approach, or refactoring an existing model.
# Skill: Data Modeling ## When to load When designing a warehouse schema, choosing between modeling approaches, or refactoring an existing model. ## Approach Decision Tree ``` Primary consumer? → BI tools + analysts: Kimball (dimensional) → Data science + ML: Wide denormalized tables → Multiple teams: Data Vault History tracking? → Never/rarely: Type 1 SCD (overwrite) → Track current + previous: Type 2 SCD (versioned rows) Scale? → < 100 GB: Simple star schema → 100 GB – 10 TB: Partitioned star schema → > 10 TB: Data Vault or Lakehouse (Delta/Iceberg) ``` ## dbt Layering (Medallion Architecture) ``` sources/ ← Raw data as-is from source systems staging/ ← Cleaned, renamed, typed. 1:1 with source tables. intermediate/ ← Business logic, joins. Not exposed directly. marts/ ← Dimensional models for specific use cases ├── core/ ← fct_*, dim_* └── finance/ ← rpt_* ``` ## Fact Table Template ```sql CREATE TABLE fct_orders ( order_key BIGINT PRIMARY KEY, -- surrogate key order_id VARCHAR NOT NULL, -- natural key user_key BIGINT REFERENCES dim_users(user_key), date_key INT REFERENCES dim_date(date_key), quantity INT NOT NULL, total_amount NUMERIC(10,2) NOT NULL, loaded_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, source_system VARCHAR DEFAULT 'orders-api' ); ```
GitHub에서 보기