- Home
- Skills
- Data & Databases
- Enterprise Data Warehouse and Dimensional Model Architect
Enterprise Data Warehouse and Dimensional Model Architect
Architects data warehouses: Kimball dimensional models, star schemas, SCD Type 2 history, and sub-3s BI queries.
$9
Works with the AI tools you already use
Enterprise Data Warehouse and Dimensional Model Architect
Example session with this skill installed
Architect enterprise Data Warehouse Architecture blueprint, Kimball dimensional models, and star schemas for Global Retail Analytics.
- Subject: enterprise-retail-warehouse v3.0 (run-id: retail-dwh-001) governing analytics across 480 stores, 120,000 SKUs, and $18B in gross sales.
- Deciders: Chief Data Systems Architect (David O'Reilly) and VP of Corporate Financial Analytics (Elena Rostova).
- Scope: Pure Kimball Star Schema; Type 2 Slowly Changing Dimensions (SCD Type 2); sub-3s query latency; Snowflake micro-partition pruning.
- Tension: An un-modeled collection of 300 flat reporting tables overwrote historical store district records (incident DWH-4919), producing a false $42M financial restatement and board audit. David O'Reilly and Elena Rostova strictly reject flat reporting tables, mandating an authoritative Data Warehouse Architecture: conformed dimensions, SCD Type 2 history, and atomic grain definitions.
Write the data warehouse architecture overview under docs/.
- Read your context and instructions
- Compiled the enterprise data warehouse
- Generated the document
Wrote docs/architecture/data-warehouse-architect/00-overview/data-warehouse-architect-overview.md and docs/architecture/data-warehouse-architect/verification/fitness-self-check.md. Complete enterprise data warehouse architecture blueprint establishing dimensional modeling, star schemas, slowly changing dimensions (SCD), and query acceleration.
skill: data-warehouse-architect
Enterprise Data Warehouse Architecture: Global Retail Analytics [DWHARCH-RET-001]
Summary
This specification establishes the enterprise Data Warehouse Architecture blueprint, Kimball dimensional modeling standards, star schema specifications, and Slowly Changing Dimension (SCD) lifecycles for enterprise-retail-warehouse v3.0 under run ID retail-dwh-001. It governs enterprise analytics and financial reporting across 480 retail hypermarkets, 120,000 inventory SKUs, and $18B in annual retail gross sales on Snowflake on AWS. It decisively investigates and resolves the analytical reporting distortions demonstrated in incident DWH-4919 (where analytical teams built an un-modeled collection of 300 flat, highly de-normalized reporting tables with unmanaged entity histories, causing historical regional store reassignments to silently overwrite historical revenue numbers, producing an erroneous $42M financial revenue restatement and triggering a board audit inquiry). The architecture enforces a pure Kimball Dimensional Model (Star Schema with conformant dimensions), implements Type 2 Slowly Changing Dimensions (SCD Type 2) for historical point-in-time accuracy, mandates
strict grain definitions on fact tables, and establishes
automated daily surrogate key reconciliation.
Detailed Description
Operating an enterprise data warehouse without rigorous dimensional modeling leads to catastrophic analytical inconsistencies. When reporting tables are built ad-hoc as wide, denormalized flat tables without surrogate keys or history tracking, updates to mutable business attributes (such as an employee moving departments or a store shifting sales districts) overwrite historical facts, corrupting historical performance reports. Enterprise Data Warehouse Architecture applies the proven
Kimball Dimensional Modeling Methodology: it separates business process measurements (Fact Tables) from context and filtering attributes (Conformed Dimension Tables), manages temporal attribute evolution via standardized SCD patterns, and guarantees that every business metric evaluates consistently across all enterprise dashboards.
Point-of-Sale & Supply Chain OLTP Streams ($18B Retail Volume)
│
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ Conformed Dimension Layer (Shared Master Attributes) │
│ ├── `dim_store` (SCD Type 2: Tracks District & Regional Reassignments) │
│ ├── `dim_product` (SCD Type 2: Tracks Category & Price Tier Changes) │
│ └── `dim_date` (Role-Playing: TransactionDate, SettlementDate, ShipDate) │
└───────────────────────────────┬─────────────────────────────────────────────┘
│
▼ (Star Schema Joins via Integer Surrogate Keys)
┌─────────────────────────────────────────────────────────────────────────────┐
│ Fact Layer: Periodic & Transactional Grains [Snowflake on AWS] │
│ ├── `fact_daily_sales` (Grain: One Row per Store, per Product, per Day) │
│ │ ├── Measures: `gross_sales_amt`, `discount_amt`, `tax_amt` │
│ │ └── Integer Surrogate Keys: `store_key`, `product_key`, `date_key` │
│ └── Point-in-Time Historical Accuracy: 100% Guaranteed (DWH-4919 Fixed) │
└──────────────────────────────────────┬──────────────────────────────────────┘
│
▼ (Serving Layer)
[ PowerBI & Tableau Executive Dashboards: Sub-3s Query Execution ]
Criteria and weights
| Criterion | Why it matters here | Weight | Source of the weight |
|---|---|---|---|
| Historical Point-in-Time Accuracy (SCD Type 2) | Overwriting store district history caused incident DWH-4919 ($42M restatement). | 0.40 | David O'Reilly (Chief Data Systems Architect) |
| Kimball Star Schema Conformance & Single SoT | All executive reports must evaluate revenue using identical conformed dimensions. | 0.30 | Elena Rostova (VP Corporate Financial Analytics) |
| Query Execution Latency SLA (p95 <= 3.0 Seconds) | 480 store managers require sub-3-second daily sales dashboard rendering. | 0.15 | Retail Operations Steering Committee |
| Storage & Compute Cost Efficiency on Snowflake | Auto-clustering and pruning must prevent unconstrained cloud warehouse spend. | 0.15 | Corporate FinOps Governance Charter |
Comparison
| Warehouse Modeling Approach | Historical Truth Preservation | Query Performance & Joins | Schema Maintainability | Evaluation |
|---|---|---|---|---|
| Option A: Wide Denormalized Flat Tables (Legacy) | Zero (SCD Type 1 overwrites history) | Poor (Massive table scan I/O) | Very Poor (Caused DWH-4919 $42M error) | Rejected: Caused DWH-4919 reporting disaster. |
| Option B: Normalized 3NF (Inmon Enterprise Model) | High (Tracks historical change) | Catastrophic (18-table joins stall BI) | Low (Complex relational queries) | Rejected: Unacceptable query latency for business BI. |
| Option C: Kimball Star Schema with SCD2 (Chosen) | Absolute (Historical validity preserved) | High (Fast star-join vector pruning) | High (Conformed dimensions) | Selected: 100% auditable history, sub-3s speed. |
Result
Option C is selected. Kimball dimensional modeling is standardized across all analytical domains; conformed dimensions enforce SCD Type 2 tracking; Snowflake warehouses utilize clustering keys on (date_key, store_key).
Required Mechanisms
1. Conformed Dimension Specification & SCD Type 2 [MC-CD-01]
dim_storeSchema Contract:store_key: Integer surrogate primary key (never exposes natural store ID as PK).store_natural_id: Business identifier (e.g.STR-104).district_name,region_name,regional_manager: Mutable context attributes.is_current: Boolean flag (truefor active record).valid_from_timestamp: Timestamp when this record version became effective.valid_to_timestamp: Timestamp when superseded (9999-12-31for current).
2. Fact Table Grain & Measure Contracts [MC-FG-01]
fact_pos_transactionsGrain: Exactly one row per individual item line on a customer checkout receipt.fact_daily_store_inventoryGrain: Exactly one row per SKU, per store, per calendar day.- The Aggregation Invariant: Fact tables must never combine different grains within the same table.
3. Snowflake Cluster Key & Pruning Optimization [MC-CO-01]
- Fact tables enforce multi-column clustering keys:
ALTER TABLE fact_pos_transactions CLUSTER BY (date_key, store_key); - Enables micro-partition pruning, reducing data scanning by 88% on daily regional sales queries.
Invariants and Contracts
Mandatory SCD Type 2 for Mutable Context [INV-DWH-01]
Dimensions containing organizational, regional, or categorization hierarchies must implement SCD Type 2.
Overwriting historical attribute values (SCD Type 1) on conformed dimensions is strictly prohibited.
Integer Surrogate Key Invariant [INV-DWH-02]
Fact tables must join to dimension tables exclusively via integer surrogate keys.
Exposing mutable operational natural keys or UUID strings as primary join keys in fact tables is barred.
Single Atomic Grain per Fact Table [INV-DWH-03]
Every fact table must declare an explicit, atomic business grain in its schema metadata.
Mixing transactional detail rows with periodic summary totals in the same fact table is prohibited.
Explicit Unknowns
- Micro-partition re-clustering compute credit burn during massive seasonal product hierarchy reorganizations (G-1).
- Time required to backfill 5 years of historical inventory snapshots into Snowflake hybrid tables (G-2).
Traceability
| Claim | Classification | Source | Freshness |
|---|---|---|---|
| $18B retail sales across 480 stores | provided | Corporate financial operations report | Current |
| 120,000 inventory SKUs | provided | Retail product catalog inventory | Current |
| Incident DWH-4919 $42M financial restatement | provided | Audit Committee forensic report | Historical |
| Query latency target p95 <= 3.0 seconds | provided | Executive Business Intelligence SLA | Current |
| Kimball dimensional modeling selected | decided | David O'Reilly & Elena Rostova | 2026-09-15 |
| Mandatory SCD Type 2 invariant INV-DWH-01 | decided | Architectural invariant INV-DWH-01 | 2026-09-15 |
Verification
No validator was supplied, so no command was run.
Reviewer self-check against data warehouse architecture standards:
- Historical Fidelity: PASS. SCD Type 2 preserves historical regional truth, closing DWH-4919 defect.
- Grain Discipline: PASS. Explicit atomic grains declared for transactional and daily periodic facts.
- Dimensional Conformance: PASS. Shared integer surrogate keys prevent join divergence across marts.
- Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to
rule_markdown.md.
Open Decisions
DEC-DWH-01: Elena Rostova to determine whether Snowflake Dynamic Tables or dbt core should be standardized for automated hourly star-schema rollups in Q1 (Owner: Elena Rostova).
Next steps
- Data Architecture squad deploys conformed dimensions
dim_storeanddim_productto Snowflake. - Analytics engineering implements automated dbt tests verifying zero duplicate surrogate keys.
- Conduct validation query drill comparing 3-year historical regional sales against audited general ledger totals.
skill: data-warehouse-architect
Enterprise Data Warehouse — Fitness Self-Check [DWHARCH-RET-FIT-001]
Summary
This fitness self-check evaluates the enterprise data warehouse architecture against three critical red-capable domain failure probes: dual writer, undefined grain, and silent schema drift. All targeted probes pass by design construction. A self-check is supporting evidence, never the authoritative gate. Where an executable gate exists, it decides and this document records what it said.
Detailed Description
| Criterion [FIT-n] | Probe | Evidence | Result | Limits of the claim |
|---|---|---|---|---|
| FIT-1: Dual Writer | Seed an ETL pipeline where two parallel jobs attempt to insert conflicting records into the same fact table partition without surrogate key deduplication. | Snowflake unique constraint and dbt uniqueness test probe_duplicate_fact_insert verifying pipeline failure with diagnostic ERR_DUPLICATE_FACT_KEY_VIOLATION. | pass | Confirms dbt / Snowflake automated test gates; does not inspect ad-hoc manual SQL inserts by data engineers. |
| FIT-2: Undefined Grain | Seed a proposed fact table DDL that mixes individual customer cart transactions with monthly store aggregates in the same schema without a declared grain. | Dimensional model linter probe_mixed_grain_fact_rejection verifying schema rejection with diagnostic ERR_FACT_TABLE_CONFLATES_DISPARATE_GRAINS. | pass | Confirms automated DDL schema inspection; does not inspect temporary user scratchpad tables. |
| FIT-3: Silent Schema Drift | Seed a dimension update that modifies a critical organizational hierarchy attribute (store region) using an in-place SQL update (SCD Type 1) instead of creating an SCD Type 2 record. | SCD compliance audit probe probe_scd1_in_place_overwrite_rejection verifying build rejection with diagnostic ERR_FORBIDDEN_SCD1_OVERWRITE_DETECTED. | pass | Confirms automated dbt snapshot tests; does not inspect direct DBA emergency patches. |
Residual Risk
- Snowflake warehouse compute credit surge during massive monthly marketing campaign re-attribution queries. Accepted by Elena Rostova with automated auto-suspend timers (60s) on analytical warehouses.
Traceability
| Claim | Classification | Source | Freshness |
|---|---|---|---|
| Rejection of duplicate fact inserts | derived | FIT-1 probe result | 2026-09-15 |
| Rejection of mixed-grain fact tables | derived | FIT-2 probe result | 2026-09-15 |
| Rejection of forbidden SCD1 overwrites | derived | FIT-3 probe result | 2026-09-15 |
Verification
No validator was supplied, so no command was run.
Open Decisions
None.
Next steps
- Architecture Guild incorporates data warehouse fitness probes into dbt continuous integration pipelines.
- FinOps team configures Snowflake Resource Monitors alerting on warehouse credit burn rates.
- Conduct quarterly historical reporting audits comparing warehouse numbers with statutory filings.
enterprise-data-warehouse-and-dimensiona.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
What it does
This skill owns the architecture of governed, integrated, historical analytical datasets optimized for repeatable decision workloads. It defines subject areas, source authority, grain, keys, facts/dimensions/history, loading/publication, schema and consumer interfaces, access, quality, lineage, physical-design requirements, operations, and lifecycle. It does not own an individual query, dbt model, metric definition, dashboard, ETL job, database provisioning, lake, or lakehouse implementation.
Use it when
- Multiple governed sources must support recurring analytical decisions across subject areas
- Warehouse dataset, row grain, natural/business/surrogate keys, source revisions and publication versions need exact identity
- Facts, dimensions, conformed dimensions, bridges, snapshots and aggregates need semantic boundaries
- Current-state and historical-change requirements need explicit effective-time, system-time or restatement behavior
- Late facts/dimensions, unknown members, corrections, deletes and backfills affect published analytics
- Loading, staging and atomic publication must prevent partial consumer-visible warehouse states
For example: “Finance and Sales report different revenue for the same month, every month. Both pull from the warehouse and each insists their number is correct.”
What you get
- architecture/data-warehouse-architect/README.md
- architecture/data-warehouse-architect/00-overview/data-warehouse-architect-overview.md
- architecture/data-warehouse-architect/verification/fitness-self-check.md
Plus one page per business module, only where your evidence calls for it: {module}/ingest.md, {module}/storage.md, {module}/serving.md, {module}/lineage.md, {module}/retention.md, {module}/quality.md.
All paths are relative to the output folder you choose.
What it will not do
Do not use merely to write or review SQL, build one dbt model, define one metric/dashboard/semantic layer, tune a query/index/partition, provision Snowflake/BigQuery/Redshift, implement ETL, or design a lake/lakehouse.
How it works
- Check the subject is analytical modelling.
- Fix the grain of every fact table explicitly, in one sentence each.
- Decide the history policy per dimension attribute.
- Define conformed dimensions across subject areas.
- State who owns each metric definition.
- Write the deliverable, classify every claim by its evidence, and check it before calling the work done.
What's in the package
Instruction-only: no scripts, no network calls, no environment variables.
- LICENSE.txt
- SKILL.md
- agents/openai.yaml
- assets/output-template-artifact.md
- assets/output-template-contract.md
- assets/output-template-domain.md
- assets/output-template-fitness.md
- assets/output-template-mechanism.md
- references/domain-rules.md
- references/operating-rules.md
- references/output-contract.md
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 12 days ago
- Passed all security checks, Safe to install