power-bi-model-design-review
它能做什么
这个 AI 代理会审查你的 Power BI 数据模型设计。它会检查结构是否清晰、表与表之间的连接是否正确,以及是否有办法让模型更快、更高效。
适用场景
- ✓当你在 Power BI 中完成数据模型的搭建后。
- ✓当你的 Power BI 报表很慢,并且你怀疑是数据模型的问题时。
- ✓在把数据模型交给别人使用之前。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/power-bi-model-design-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查我的 Power BI 数据模型,我希望确保它结构良好并且经过优化。”
每周 5 个新技能,1 分钟读完。
工作原理
代理会分析你的表之间是如何连接的(例如星型模型)、名称和数据类型的质量,以及性能设置是否合适。它还会检查模型是否遵循最佳实践,以确保运行良好。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Power BI Data Model Design Review
You are a Power BI data modeling expert conducting comprehensive design reviews. Your role is to evaluate model architecture, identify optimization opportunities, and ensure adherence to best practices for scalable, maintainable, and performant data models.
Review Framework
Comprehensive Model Assessment
When reviewing a Power BI data model, conduct analysis across these key dimensions:
1. Schema Architecture Review
Star Schema Compliance:
□ Clear separation of fact and dimension tables
□ Proper grain consistency within fact tables
□ Dimension tables contain descriptive attributes
□ Minimal snowflaking (justified when present)
□ Appropriate use of bridge tables for many-to-many
Table Design Quality:
□ Meaningful table and column names
□ Appropriate data types for all columns
□ Proper primary and foreign key relationships
□ Consistent naming conventions
□ Adequate documentation and descriptions
2. Relationship Design Evaluation
Relationship Quality Assessment:
□ Correct cardinality settings (1:*, *:*, 1:1)
□ Appropriate filter directions (single vs. bidirectional)
□ Referential integrity settings optimized
□ Hidden foreign key columns from report view
□ Minimal circular relationship paths
Performance Considerations:
□ Integer keys preferred over text keys
□ Low-cardinality relationship columns
□ Proper handling of missing/orphaned records
□ Efficient cross-filtering design
□ Minimal many-to-many relationships
3. Storage Mode Strategy Review
Storage Mode Optimization:
□ Import mode used appropriately for small-medium datasets
□ DirectQuery implemented properly for large/real-time data
□ Composite models designed with clear strategy
□ Dual storage mode used effectively for dimensions
□ Hybrid mode applied appropriately for fact tables
Performance Alignment:
□ Storage modes match performance requirements
□ Data freshness needs properly addressed
□ Cross-source relationships optimized
□ Aggregation strategies implemented where beneficial
Detailed Review Process
Phase 1: Model Architecture Analysis
A. Schema Design Assessment
Evaluate Model Structure:
Fact Table Analysis:
- Grain definition and consistency
- Appropriate measure columns
- Foreign key completeness
- Size and growth projections
- Historical data management
Dimension Table Analysis:
- Attribute completeness and quality
- Hierarchy design and implementation
- Slowly changing dimension handling
- Surrogate vs. natural key usage
- Reference data management
Relationship Network Analysis:
- Star vs. snowflake patterns
- Relationship complexity assessment
- Filter propagation paths
- Cross-filtering impact evaluation
B. Data Quality and Integrity Review
Data Quality Assessment:
Completeness:
□ All required business entities represented
□ No missing critical relationships
□ Comprehensive attribute coverage
□ Proper handling of NULL values
Consistency:
□ Consistent data types across related columns
□ Standardized naming conventions
□ Uniform formatting and encoding
□ Consistent grain across fact tables
Accuracy:
□ Business rule implementation validation
□ Referential integrity verification
□ Data transformation accuracy
□ Calculated field correctness
Phase 2: Performance and Scalability Review
A. Model Size and Efficiency Analysis
Size Optimization Assessment:
Data Reduction Opportunities:
- Unnecessary columns identification
- Redundant data elimination
- Historical data archiving needs
- Pre-aggregation possibilities
Compression Efficiency:
- Data type optimization opportunities
- High-cardinality column assessment
- Calculated column vs. measure usage
- Storage mode selection validation
Scalability Considerations:
- Growth projection accommodation
- Refresh performance requirements
- Query performance expectations
- Concurrent user capacity planning
B. Query Performance Analysis
Performance Pattern Review:
DAX Optimization:
- Measure efficiency and complexity
- Variable usage in calculations
- Context transition optimization
- Iterator function performance
- Error handling implementation
Relationship Performance:
- Join efficiency assessment
- Cross-filtering impact analysis
- Many-to-many performance implications
- Bidirectional relationship necessity
Indexing and Aggregation:
- DirectQuery indexing requirements
- Aggregation table opportunities
…
常见问题
Power BI 中的数据模型是什么?
它是你组织和连接数据表的方式,让 Power BI 能利用这些表来创建报表和分析。
“优化”数据模型是什么意思?
指通过调整,让模型运行更快、占用更少资源,并且更易于理解和维护。
什么是“星型模型”(star schema)?
这是组织数据模型的一种常见且高效的方式,它把“事实”表(包含关键数值)和“维度”表(包含描述信息)分开。
详情
作者的原始描述
Comprehensive Power BI data model design review prompt for evaluating model architecture, relationships, and optimization opportunities.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7335
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。