Przejdź do treści
Biblioteka skilli
Dane i analityka · Budowanie i kod

data-modeling

/data-modeling

Projektuje hurtownię i warstwę semantyczną: strukturę od źródła do marta, modelowanie wymiarowe, ziarno, wolno zmieniające się wymiary i warstwę metryk, z diagnozą wolnych lub błędnych zapytań.

Repozytorium
headcount ↗
Licencja
MIT
Ostatnia zmiana repozytorium
18.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 18.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje hurtownię i warstwę semantyczną: strukturę od źródła do marta, modelowanie wymiarowe, ziarno, wolno zmieniające się wymiary i warstwę metryk, z diagnozą wolnych lub błędnych zapytań.

Oryginalny opis (EN)

Designs the warehouse and semantic layer — source-to-mart structure, dimensional modeling, grain, slowly changing dimensions, and the metric layer analytics reads through. Use this to design or restructure a warehouse, model a new source, decide on grain or table structure, build a semantic or metric layer, or diagnose why queries are slow, wrong, or impossible to write.

Jak działa

  1. Layers, and why the middle one matters
  2. Grain is the decision everything follows from
  3. Dimensional structure
  4. The semantic layer
  5. Performance
  6. Sources
  7. Never
Sekcje z nagłówków SKILL.md, w oryginale · 79 linii, 569 słów
Podgląd SKILL.md
---
name: data-modeling
description: Designs the warehouse and semantic layer — source-to-mart structure, dimensional modeling, grain, slowly changing dimensions, and the metric layer analytics reads through. Use this to design or restructure a warehouse, model a new source, decide on grain or table structure, build a semantic or metric layer, or diagnose why queries are slow, wrong, or impossible to write.
---

# Data modeling

## Layers, and why the middle one matters

Three layers, each with one job:

1. **Raw** — source data, append-only, otherwise unmodified. Do not apply *business* logic on
   ingest: you cannot recover what you discarded, and the logic will need to change retroactively.

   **Privacy and security transformations are the exception, and belong at ingest.** Credentials and
   secrets should never land in the warehouse at all. Personal data that is not needed should be
   dropped rather than stored and governed later, and identifiers you must keep but rarely need in
   the clear should be tokenized or encrypted on arrival. Retention and deletion apply from ingest,
   not from the marts.

   The distinction: strip what you must not hold, keep everything you are entitled to hold, and
   leave interpretation for later.
2. **Staging** — cleaned and conformed: consistent types, standardized names, deduplicated, no
   business logic yet.
3. **Marts** — business-facing models shaped for how questions are asked.

The discipline that pays is keeping business logic out of layers 1 and 2. Logic embedded in ingestion
cannot be changed retroactively, and it will need to change.

## Grain is the decision everything follows from

State the grain of every table in one sentence: *one row per what*. "One row per order line per day"
is a grain. "Order data" is not.

Most modeling errors are grain errors, and they surface as fan-out — a join multiplying rows so every
downstream sum is inflated. If a number is mysteriously too high, check the grain before checking the
logic.

## Dimensional structure

Facts for events and measurements; dimensions for the things being described. Keep facts narrow and
long, dimensions wide and short.

Conform dimensions across facts — one customer dimension, used everywhere. Separate customer tables
per domain is how the same customer gets counted differently in two reports.

**Handle history deliberately.** Overwriting a dimension attribute rewrites the past: last year's
revenue silently re-attributes to this year's segment. Decide per attribute whether history matters,
and where it does, keep versions with valid-from and valid-to.

## The semantic layer

Define metrics once, above the marts, and have every consumer read through it. Without it, the same
metric is reimplemented in each dashboard and they drift — not because anyone is careless, but
because a filter differs.

The semantic layer is where the metric dictionary becomes executable rather than documentary.

## Performance

Model for the query pattern you actually have. Pre-aggregate what is queried constantly; leave the
long tail to compute on demand.

Partition and cluster on what people filter by — usually time, then a tenant or entity key. Most slow
warehouse queries are full scans of a table that could have been partitioned by date.

Denormalize deliberately, and write down why. Undocumented denormalization is indistinguishable from
a modeling error six months later.

## Sources

`references/sources.md` in this skill lists the outside authorities that settle the questions
here — what each one is authoritative for, and what you may do with it. Check them before
answering on anything they cover, and cite what you used. Most are free to read and not free
to reproduce; the use note on each is binding.

## Never

- Build a mart directly on raw. The coupling means every source change breaks the business layer.
- Mix grains in one table.
- Let a dashboard contain business logic the warehouse does not. That logic is invisible and
  unversioned.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • references/sources.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · cbrock84/headcount90MIT
nimadorostkar/Claude-Skills-collection100MIT
khuynh22/agent-dev-team100MIT
Tyler-R-Kendrick/agent-skills100MIT
microsoft/rayfin95MIT
j4flmao/agent-skills95MIT
agentscope-ai/qwenpaw-data90Apache-2.0
brrritscold/compainy90MIT

Migawka bazy z 13.11.2026 · wersja paczki 2988ba1a637f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100modeling-dimensional-data
    Projektuje modele danych analitycznych metodą wymiarową: schematy gwiazdy i płatka śniegu, tabele faktów i wymiarów, deklaracja ziarna, klucze zastępcze i wolno zmieniające się wymiary (SCD typu 1, 2, 3).
  • 90data-dimensional-modeling
    Projektuje modele wymiarowe: schematy gwiazdy Kimballa, Data Vault 2.0, wolno zmieniające się wymiary i tabele faktów.
  • 95data-mart
    Projektuje i optymalizuje data marty: schematy gwiaździste, wymiary zmieniające się w czasie (SCD) oraz strategie ładowania.
  • 90data-model-design
    Projektuje modele danych: schematy gwiazdy, wolno zmieniające się wymiary i decyzje o denormalizacji dla produktów danych.
  • 90semantic-layer-and-metric-governance
    Prowadzi przez projektowanie warstwy semantycznej i wspólnych metryk: definicje metryk biznesowych, współdzielone wymiary i zarządzane kontrakty metryk dla dashboardów i innych zespołów.
  • 90powerbi-data-modeling
    Projektuje i poprawia modele wymiarowe dla Power BI i Fabric: ziarnistość, tabele faktów i wymiarów, SCD, mosty i tabelę dat.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.