data-dimensional-modeling
Use when the user asks to design a star schema for sales analytics, Kimball fact and dimension tables, grain, conformed dimensions, slowly changing dimensions…
от j4flmao★ 47 звёзд на GitHub
Установить data-dimensional-modeling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Dimensional Modeling
Purpose
Design robust dimensional data models for analytical workloads following Kimball methodology, star schema best practices, slowly changing dimension strategies, fact table design patterns, and Data Vault 2.0 architecture.
Agent Protocol
Trigger
Exact user phrases: "dimensional modeling", "Kimball", "star schema", "snowflake schema", "bus matrix", "conformed dimension", "slowly changing dimension", "SCD", "fact table", "dimension table", "data vault", "hub link satellite", "grain declaration", "surrogate key", "degenerate dimension".
Input Context
- Business processes to model (sales, inventory, orders, payments)
- Source systems and data granularity
- Reporting and analytics requirements
- Query patterns (aggregations, drill-down, slice-and-dice)
- Data volume and growth rate
- Historical tracking requirements (how far back, what changes to track)
- BI tool requirements (Tableau, Power BI, Looker)
Output Artifact
Dimensional model with bus matrix, star schemas, SCD strategy, fact table designs, and DDL statements.
Response Format
-- Dimension and fact table DDL
-- SCD implementation
# Bus matrix
# Grain declaration
# Design decisions and trade-offs
No preamble. No postamble. No explanations. No filler/hedging/transitions.
Completion Criteria
- Business process selected and grain declared
- Bus matrix created showing dimensions by process
- Conformed dimensions identified and standardized
- SCD type selected per dimension attribute
- Fact table type (transaction, periodic snapshot, accumulating) selected
- Additive, semi-additive, and non-additive measures classified
- Surrogate key strategy defined
- Data Vault model designed if applicable
Max Response Length
300 lines of code and configuration.
Workflow
Step 1: Select Business Process
Identify core business processes that generate measurable events: sales transactions, order fulfillment, inventory movements, customer interactions, financial postings, service requests. Each process becomes a fact table candidate. Prioritize by business impact, data availability, and reporting requirements. Start with 3-5 core processes, expand in later phases.
Business Process Evaluation Matrix
| Process | Business Impact | Data Availability | Reporting Value | Complexity | Priority |
|---|---|---|---|---|---|
| Sales transactions | High | High | High | Low | 1 |
| Order fulfillment | High | Medium | High | Medium | 2 |
| Inventory movements | Medium | Medium | Medium | Medium | 3 |
| Customer interactions | High | Low | High | High | 4 |
| Financial postings | High | High | Medium | Medium | 2 |
| Returns/refunds | Medium | Medium | Medium | Low | 3 |
Step 2: Declare Grain
Grain defines what a single row in the fact table represents. The grain must be precise and unambiguous — it is the most important design decision. Every dimension and fact must align exactly with the declared grain.
Grain Declaration Examples
| Business Process | Grain Example | Notes |
|---|---|---|
| Sales | One row per line item per order | Most granular, supports all drill paths |
| Sales | One row per order header | Less granular, cannot analyze product mix |
| Inventory | One row per product per day per warehouse | Periodic snapshot grain |
| Customer service | One row per ticket | Transactional grain |
| Web traffic | One row per page view per session | Most granular, high volume |
| Financial | One row per journal entry line | Accounting grain |
Grain Declaration Template
"The [fact table name] fact table contains one row per [grain description]. Each row represents [what happened] at [level of detail]. The grain supports drill-down to [lowest level] and roll-up to [highest level]."
Example: "The order_items fact table contains one row per order line item. Each row represents the sale of a product within an order. The grain supports drill-down to individual products within orders and roll-up to daily, weekly, monthly totals by customer, product, store, or promotion."
Step 3: Identify Dimensions
Dimensions answer who, what, where, when, why, and how of the business process. Each dimension provides the entry point for slicing, dicing, and filtering fact data.
Standard Dimension Types
| Dimension | Description | Typical Attributes | Conformed? |
|---|---|---|---|
| Date/Time | Calendar, fiscal periods, time of day | date, day_of_week, month, quarter, year, fiscal_period, holiday_flag | Yes |
| Customer | Customer demographics and attributes | name, segment, region, acquisition_channel, lifetime_value_tier | Yes |
| Product | Product catalog attributes | name, category, brand, manufacturer, price_tier, sku | Yes |
| Store/Channel | Sales channel or physical location | name, region, type, size_tier, manager | Yes |
| Employee | Sales rep, service agent, approver | name, department, manager, territory, role | Maybe |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/data-vault.md
- references/dimensional-modeling-etl.md
- references/dimensional-modeling-performance.md
- references/fact-table-design.md
- references/kimball-methodology.md
- references/scd-types.md
- references/star-schema.md
FAQ
Что делает скилл data-dimensional-modeling?
Use when the user asks to design a star schema for sales analytics, Kimball fact and dimension tables, grain, conformed dimensions, slowly changing dimensions (SCD Type 2), bus matrix or Data Vault 2.0. Produces a dimensional model with grain, keys, SCD choices and measures. Not for warehouse platform tuning (use data-data-warehouse).
Как установить скилл data-dimensional-modeling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-dimensional-modeling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…