Token导航 LogoToken导航

Agent Skill · 研究检索

powerbi-semantic-model(powerbi 语义模型)

powerbi-semantic-model 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

powerbi-semantic-model 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,042。

总安装 374周安装 15GitHub Stars 56下载 121核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:powerbi-semantic-model(powerbi 语义模型)
来源仓库:https://github.com/ruiromano/powerbi-agentic-plugins
仓库路径:skills/powerbi-semantic-model
安装命令:
npx skills add https://github.com/ruiromano/powerbi-agentic-plugins --skill powerbi-semantic-model
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ruiromano/powerbi-agentic-plugins --skill powerbi-semantic-model

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

powerbi-semantic-model 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于关键词驱动的信息检索和任务场景匹配。通过 npx skills add 命令从 GitHub 仓库安装并使用。

安装前需确认权限范围、项目维护状态及是否触发联网或文件读写操作。建议结合原始 README 文档核验具体功能和使用限制。

来源仓库内路径:skills/powerbi-semantic-model

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ruiromano/powerbi-agentic-plugins --skill powe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

powerbi-semantic-model 怎么安装?

在终端执行 npx skills add https://github.com/ruiromano/powerbi-agentic-plugins --skill powerbi-semant…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

powerbi-semantic-model 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

powerbi-semantic-model 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

powerbi-semantic-model 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

powerbi-semantic-model 用的人多吗?

公开数据是累计安装 374 次,近一周安装 15 次,下载 121 次,GitHub 56 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

powerbi-semantic-model 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
powerbi-semantic-model

powerbi 语义模型 · 本页

37456调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Power BI Semantic Model Skill

This skill provides guidance on how to develop Power BI semantic models.

References

  • modeling-guidelines: General best practices for modeling, including star schema design, naming conventions, and DAX measure patterns.
  • direct-lake-guidelines: Specific guidelines for working with Direct Lake semantic models, including partition source types and limitations.
  • TMDL: Reference for TMDL syntax and properties when working with TMDL code and files.
  • pbip.md: Guidelines for working with Power BI Project files (PBIP) that contain semantic models.
  • dax-udf-functions-guidelines: Guidelines for creating and using DAX User-Defined Functions (UDFs) to centralize business logic in the model.
  • dax-query-guidelines: Guidelines for writing DAX queries against the semantic model for validation and analysis.
  • dax-performance-optimization: Guidelines for DAX performance optimization, including storage engine vs. formula engine analysis, anti-pattern detection, and optimization strategies.

IMPORTANT

  • Respect the Tool Selection Priority.
  • If asked to work with TMDL code or *.tmdl files, load the TMDL reference to understand the syntax and properties of TMDL objects.
  • If asked to export or save the semantic model to a PBIP project, make sure you understand the PBIP explained in PBIP reference.

Tool Selection Priority

When deciding which tool to use for semantic model operations, follow this priority order:

  1. MCP Server available → Use powerbi-modeling-mcp tools for all operations (create, edit, deploy, query) both against server or local folders. Unless the user specifically requests working with TMDL files.
  2. MCP Server unavailable + PBIP folder exists → Edit TMDL files directly.
  3. MCP Server unavailable + Fabric workspace → Use fabric-cli skill to export the model, edit the TMDL files locally, then re-deploy.
  4. MCP Server unavailable + Power BI Desktop → Guide the user to save as PBIP folder or enable the MCP server.

Relationship to Other Skills

  • fabric-cli: Use for workspace operations, deploying, and exploring OneLake data sources.
  • powerbi-pbir: Use when the user also needs a report alongside the semantic model.

Pre-development: Understand the Model

Before making any changes to an existing model, always gather context first.

  1. List all tables — Understand the existing tables and their storage modes (Import, DirectQuery, Direct Lake).
  2. List existing relationships — Map out the current star schema structure.
  3. List existing measures — Avoid creating duplicates and understand existing calculation patterns.
  4. Check naming conventions — Identify established patterns so new objects remain consistent (Consistency Over Perfection principle from modeling-guidelines).
  5. Identify model storage mode — Determine if the model storage mode is Import, DirectQuery, Direct Lake, or Composite. This dictates which partition types and guidelines apply.

Task: Edit or Create TMDL code or *.tmdl files

When working with TMDL code directly, follow these guidelines:

  • Load the TMDL reference to understand the syntax and properties of TMDL objects.
  • Pay attention to the structure and indentation of the TMDL code, as it defines the hierarchy of objects (database > tables > columns/measures).

Task: Connect to an existing semantic model

A semantic model can be loaded from the following locations:

  1. Power BI Desktop: Use the MCP server tools to find the Power BI Desktop local instance and connect to it.
  2. Fabric workspace: Use the MCP server tools to connect to the semantic model in the workspace, make sure to use the exact workspace and semantic model name. Or use the Fabric CLI (fab) to export the semantic model code.
  3. Power BI Project files (PBIP): Use the MCP server tools to connect to the PBIP folder.

Task: Create a new semantic model

  1. Gather requirements — Ask the user for: purpose of the model, data source type (SQL Server, Lakehouse, etc.), and key business entities/facts to model.
  2. Determine model storage mode — If the data source is Fabric OneLake > Direct Lake (see Task: Create a new Direct Lake model). Otherwise > Import mode.
  3. Create the database — Create a new empty semantic model database with compatibility level 1702 or higher.
  4. Create data source parameters — (Skip for Direct Lake) Create semantic model M parameters for the data sources (Server, Database, etc.), and use them in the partition M code. This makes it easier to rebind the model and helps with deployments.
  5. Analyze source schema — Use MCP tools or Fabric CLI to inspect the source tables, columns, and data types.
  6. Design star schema — Identify fact and dimension tables, define relationship keys. Follow modeling-guidelines.
  7. Create tables — Add partitions with correct source type, create columns with proper data types and sourceColumn mapping.
  8. Create relationships — Define relationships between fact and dimension tables before creating measures.
  9. Create measures — Add explicit measures for aggregatable columns. Follow DAX guidelines in modeling-guidelines.
  10. Save/Deploy — Export to PBIP project or deploy to workspace.

Task: Create a new Direct Lake model

  1. Connect to OneLake — Connect to the OneLake data sources (e.g. Lakehouse) and understand the schema. If you don't have specific OneLake tools, use the fabric-cli skill to explore the OneLake data.
  2. Create database — Use the Power BI Modeling MCP Server to create a new offline database with compatibility level 1702 or higher.
  3. Create the named expression — Create a shared named expression for the Direct Lake connection using AzureStorage.DataLake connector (see direct-lake-guidelines).
  4. Create tables — Using the schema from the lakehouse, add semantic model tables using EntityPartitionSource with directLake mode. Map columns to the OneLake table columns.
  5. Create relationships and measures — Follow modeling-guidelines.

Task: Edit an existing semantic model

Use this workflow when the user wants to add/modify/remove measures, tables, columns, or relationships in an existing model.

  1. Connect to the model — Determine source (PBIP folder, Desktop, Fabric workspace) and connect via MCP or locate the TMDL files.
  2. Run Pre-development discovery — Follow the Pre-development steps to understand the current model state.
  3. Plan changes — Based on the user request, identify exactly what needs to be added, modified, or removed. Check for naming conflicts and duplicates.
  4. Determine model storage mode — IMPORTANT: If it's a Direct Lake semantic model, refer to direct-lake-guidelines. Otherwise, follow modeling-guidelines.
  5. Execute changes — Apply modifications:

- If adding tables: create partitions first, then columns, then relationships, then measures. - If adding measures: verify referenced columns/tables exist, test with a simple DAX query. - If adding relationships: ensure key columns exist on both sides with matching data types. - If the data source is Fabric OneLake, you can use the Fabric CLI to analyze the table schemas.

  1. Validate — Run the Post-development validation steps.
  2. Save — If PBIP source, export to PBIP (see pbip.md). If online, save to workspace.

Post-development: Validate Changes

After any model modification, always verify your work:

  1. Check the PBIP structure - If the model is sourced from a PBIP folder, ensure the folder structure and files are correct (see pbip.md).
  2. Test new measures — For each new measure, run a simple DAX query to validate it returns expected results (e.g., EVALUATE {[Measure Name]}).
  3. Verify relationships — For new relationships, confirm cardinality, cross-filter direction, and that key columns have matching data types.
  4. Verify table columns — For new tables, confirm all columns have correct sourceColumn mapping and dataType.
  5. Check for duplicates — Ensure no duplicate measures (same DAX expression) or orphan objects were introduced.

Task: Run Best Practice Analysis (BPA) rules

Run the script scripts/bpa.ps1 against the semantic model. If no specific BPA rules are mentioned, use the default set of rules in scripts/bpa-rules-semanticmodel.json. The script runs the BPA rules using Tabular Editor 2.0.

This is specially useful when user wants to enforce static rules to ensure model consistency and adherence to best practices. For example, you can create custom BPA rules to check for specific naming conventions, required documentation, or to prevent certain anti-patterns in the model.

CRITICAL:

  • If there is no semantic model in the context, prompt the user for the location of the semantic model.
  • If the model is stored on your local file system, ensure you select a folder that contains either a database.tmdl, model.tmdl, or model.bim file.
scripts/bpa.ps1 -models [path to the semantic model] -rulesFilePath [path to the BPA rules json file]

If the model is running in a local or remote server, call the script like this:

scripts/bpa.ps1 -models [server:port database] -rulesFilePath [path to the BPA rules json file]

Report findings with severity levels (Critical, High, Medium, Info).

Task: Deploy a semantic model code to Fabric Workspace

Option 1: MCP Server (preferred)

  1. Ensure the model is loaded in MCP.
  2. Use database_operations with Deploy operation.
  3. Specify the target workspace and semantic model name.
  4. Verify the deployment succeeded by listing the workspace items.

Option 2: Fabric CLI

  1. Ensure the model is saved in PBIP format (see pbip.md).
  2. Use the fabric-cli skill to deploy the semantic model item to the target workspace.
  3. Verify the item appears in the workspace.

Task: Refresh a Semantic Model

Refresh is only possible when working against a live model in Power BI Desktop or Fabric Service. If working with local TMDL files, instruct the user to deploy the model to a workspace or open it in Power BI Desktop to enable refresh capabilities.

Refresh in Power BI Desktop

Use the Refresh tools available to you in the MCP server to refresh individual tables or the entire model.

Refresh in Fabric Service (Workspace)

Two options are available:

Option 1: MCP Server (preferred) Connect to the semantic model in the workspace and use the Refresh tools available to you in the MCP server.

Option 2: Power BI REST API

Use the Power BI Refresh API:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

Poll GET /groups/{groupId}/datasets/{datasetId}/refreshes to check refresh status.

Credential Configuration Errors (Service only)

If the refresh fails with an error indicating missing or invalid data source credentials stop immediately and instruct the user to configure the data source connections manually in Power BI Service.

Do not attempt to retry or work around credential errors programmatically.

Task: Refactor Measures Using DAX UDFs to Centralize and Reuse Business Logic

Load dax-udf-functions-guidelines to understand how to create and use DAX User-Defined Functions (UDFs).

  1. Make sure you understand the pattern to be included in the UDF function definition, including the use of type hints, parameter modes, and AnyRef for references.
  2. Create the UDF function
  3. Refactor existing measures to call the UDF instead of containing duplicated logic.

Task: Query a semantic model using DAX

Before writing the DAX query, load dax-query-guidelines

Task: Optimize DAX measures for performance

Load dax-performance-optimization and follow the complete framework defined there. Requires the powerbi-modeling-mcp MCP Server connected to the target semantic model.

Task: Open Semantic Model from PBIP

CRITICAL: Make sure you understand the PBIP structure in pbip.md.

When asked to open/load the semantic model from a PBIP, you must only load the [Name].SemanticModel/definition folder that includes the TMDL code of the semantic model.

Task: Save to PBIP

CRITICAL: Make sure you understand the PBIP structure in pbip.md.

When asked to save the semantic model to a new PBIP folder make sure you create the folder and files from the structure above using the provided examples and serialize the model database to the [Name].SemanticModel/definition folder.

Error Handling

  • MCP connection failure: Fall back to direct TMDL file editing (see Tool Selection Priority). Inform the user about the fallback.
  • TMDL validation errors: Read the error details, fix the specific property or syntax issue, and re-validate.
  • Deployment failure: Check workspace permissions, model compatibility level, and Direct Lake expression source references.
  • DAX errors in measures: Test measures individually. Check column and table name references — they are case-sensitive. Verify referenced objects exist.
  • Missing data source: If the partition source cannot be resolved, verify M parameters or named expressions are correctly defined.
  • Refresh credential error (service): If a service refresh fails due to missing or invalid credentials, stop and direct the user to configure gateway/cloud connections in the Power BI Service portal (see Task: Refresh a Semantic Model).

平台分布

Codex

36.1%
按下载量换算44

Claude

30.36%
按下载量换算37

Cursor

20.79%
按下载量换算25

Gemini CLI

8.88%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills