Data Model

👤 clawkk 📦 v1.0.0 ⭐ 4.1 ⬇️ 872 下載
📊 資料分析 免費

📖 技能介紹


name: data-model description: Deep data modeling workflow—grain, facts and dimensions, keys, slowly changing dimensions, normalization trade-offs, and analytics query patterns. Use when designing warehouse/analytics models or reviewing star/snowflake schemas.


Data Model

Analytics models succeed when grain is explicit, keys are stable, and slowly changing dimensions are chosen deliberately—not “star schema by default.”

When to Offer This Workflow

Trigger conditions:

  • Designing a warehouse, lakehouse, or BI layer
  • Confusion on one row per what; duplicate counts in reports
  • Refactoring dimensional models for performance or clarity

Initial offer:

小蔥技能站7w4.net每天更新,海量AI技能等你發現。

Use six stages: (1) business questions & grain, (2) conformed dimensions, (3) facts & measures, (4) dimensions & SCD types, (5) keys & integrity, (6) performance & evolution). Confirm tooling (dbt, dimensional DW, BigQuery, etc.).


Stage 1: Business Questions & Grain

Goal: Grain = the atomic row: e.g., “one line item per order per day” not “sort of per order.”

Practices

  • List questions the model must answer; derive grain from smallest needed detail

Exit condition: One sentence grain per fact table.


Stage 2: Conformed Dimensions

Goal: Same customer/product definitions across facts—shared dimension tables or SCD policy aligned.


Stage 3: Facts & Measures

Goal: Additive vs semi-additive vs non-additive measures documented (balances, distinct counts).

Practices

  • Degenerate dimensions vs junk dimensions—avoid wide fact sprawl without reason

Stage 4: Dimensions & SCD Types

Goal: SCD1 overwrite vs SCD2 history with valid_from/valid_to vs SCD3 limited history—match compliance and reporting needs.


Stage 5: Keys & Integrity

Goal: Surrogate keys in facts; natural keys preserved as attributes; referential integrity strategy in the warehouse layer.


Stage 6: Performance & Evolution

Goal: Partition and cluster keys for large facts; late-arriving facts policy; version dims when schema evolves.


Final Review Checklist

  • [ ] Grain explicit per fact table
  • [ ] Conformed dimensions planned
  • [ ] Measure additivity documented
  • [ ] SCD strategy per critical dimension
  • [ ] Keys and late-arriving data handled

Tips for Effective Guidance

  • Fan traps and chasm traps in BI—flag when joining across facts incorrectly.
  • Snapshot fact tables for point-in-time balances vs transaction facts.

Handling Deviations

  • Event-only pipelines: still model curated dimensions for analysis, not only raw JSON.

🤖 AI 評測

這個 Skill 質量較好,內容專業且邏輯清晰,能有效指導資料建模工作。不過作為技能外掛來說還比較基礎,缺少使用說明和示例,實際使用時需要自己摸索。適合有一定經驗的資料工程師使用。

📊 多維度評分

適應性4.2
規範性4
有效性4.7
可靠性3.5
可信度4.3

📁 包含檔案 (2 個)

📄 SKILL.md 2.8 KB
📄 _meta.json 129 B