schema-evaluation
Evaluate and design data warehouse schemas — star, snowflake, data vault, OBT — with grain definition, SCD strategies, and normalization trade-offs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Evaluate and design data warehouse schemas — star, snowflake, data vault, OBT — with grain definition, SCD strategies, and normalization trade-offs
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fast codebase searches using grep/glob. Triggers on "find", "search", "where is", "grep for".
Use when working with dbt (data build tool) - creating models, writing tests, CI/CD pipelines, materializations, sources, staging/intermediate/marts layers, Snowflake/BigQuery warehouse configuration, incremental strategies, Jinja macros, data quality, semantic layer, or making analytics engineering decisions
Local git operations for syncing, branching, merging, and conflict resolution
GitHub interactions for issues, PRs, releases, and repository management
Interactive wizard to craft effective prompts using Claude Code best practices
Test-driven development reference for writing good tests, designing testable interfaces, mocking at system boundaries, and refactoring after green. Use when writing tests, reviewing test quality, or applying red-green-refactor workflow. Not for running test suites or CI configuration — use language-conventions or cicd-generation for those.
| name | Schema Evaluation |
| department | alchemist |
| description | Evaluate and design data warehouse schemas — star, snowflake, data vault, OBT — with grain definition, SCD strategies, and normalization trade-offs |
| version | 1 |
| triggers | ["schema","data model","warehouse","dimension","fact table","SCD","grain","normalization","data vault","star schema","snowflake schema","data contract","slowly changing"] |
Evaluate and design data warehouse schemas for analytical workloads. Covers star schemas, snowflake schemas, data vault, and One Big Table (OBT) patterns. Assesses grain definition, normalization trade-offs, slowly changing dimension strategies, and data contracts between producers and consumers.
Identify the grain of each fact table — what does one row represent? A single transaction? A daily snapshot? A session event? The grain determines everything downstream. Document the grain as a clear English sentence: "One row = one order line item" or "One row = one daily active user per product."
Separate measurable facts (revenue, quantity, duration, count) from descriptive dimensions (customer, product, date, geography). For each:
Evaluate which pattern fits the requirements:
Document the chosen approach and the reasoning behind it.
For each dimension that changes over time, specify the SCD type:
Document which SCD type applies to each changing attribute and why.
For each source-to-warehouse interface, specify the contract:
Test the proposed schema against the required analytical queries:
Produce a complete schema specification with DDL, relationships, and usage notes.
# Schema Evaluation: [Domain/Project Name]
## Grain Definitions
| Fact Table | Grain (one row = ...) | Estimated Rows | Growth Rate |
|------------|----------------------|----------------|-------------|
| ... | ... | ... | ... |
## Entity Relationship Summary
[ASCII diagram showing fact and dimension relationships]
## Modeling Approach
**Chosen:** [Star / Snowflake / Data Vault / OBT]
**Rationale:** [1-2 sentences]
## Fact Tables
### fct_[name]
| Column | Type | Description | Aggregation |
|--------|------|-------------|-------------|
| ... | ... | ... | SUM/AVG/... |
## Dimension Tables
### dim_[name]
| Column | Type | Description | SCD Type |
|--------|------|-------------|----------|
| ... | ... | ... | 1/2/3 |
## Slowly Changing Dimensions
| Dimension | Attribute | SCD Type | Rationale |
|-----------|-----------|----------|-----------|
| ... | ... | ... | ... |
## Data Contracts
| Source → Target | Freshness SLA | Quality Checks | Breaking Change Policy |
|-----------------|---------------|----------------|----------------------|
| ... | ... | ... | ... |
## Query Validation
| Query Pattern | Tables Involved | Join Count | Performance Notes |
|---------------|----------------|------------|-------------------|
| ... | ... | ... | ... |