PowerBI连接
santoshkanthety2026-10-26查看 334复制 610
将 powerbi-agent 连接到正在运行的 Power BI Desktop 实例。当用户想要连接到 Power BI Desktop、提到 "connect"、"pbi connect"、"local instance"、看到 "no connection" 错误,或无法针对其模型运行 DAX/模型命令时调用。当用户提到以下内容时使用:当用户想要连接到 Power BI Desktop、提到 "connect"、"pbi connect"、"local instance"、"no connection",或无法运行 DAX/模型命令时激活。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1216 chars
--- name: powerbi-connect description: Connect powerbi-agent to a running Power BI Desktop instance. Invoke when the user wants to connect to Power BI Desktop, mentions "connect", "pbi connect", "local instance", sees "no connection" errors, or cannot run DAX/model commands against their model. Use when the user mentions: Activate when the user wants to connect to Power BI Desktop, mentions "connect", "pbi connect", "local instance", "no connection", or cannot run DAX/model commands.. license: MIT --- # Skill: Connect to Power BI Desktop ## Trigger Activate when the user wants to connect to Power BI Desktop, mentions "connect", "pbi connect", "local instance", "no connection", or cannot run DAX/model commands. ## Steps 1. Make sure Power BI Desktop is open with a .pbix file 2. Run: `pbi-agent connect --list` to see open instances 3. Run: `pbi-agent connect` to connect to the first detected instance 4. Run: `pbi-agent doctor` to diagnose if connection fails ## Common Issues - **No instances found**: Power BI Desktop not open, or open without a file loaded - **pythonnet error**: Run `pip install powerbi-agent[desktop]` - **Port in use**: Use `pbi-agent connect --port <port>` to specify manually