@luquimbo/bi-superpowers 4.1.2 → 4.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.claude-plugin/skill-manifest.json +1 -1
  4. package/.plugin/plugin.json +1 -1
  5. package/AGENTS.md +9 -7
  6. package/CHANGELOG.md +40 -0
  7. package/README.md +637 -96
  8. package/bin/cli.js +76 -61
  9. package/bin/commands/build-desktop.js +60 -6
  10. package/bin/commands/diff.js +86 -1
  11. package/bin/commands/mcp-setup.js +26 -3
  12. package/bin/commands/watch.js +50 -5
  13. package/bin/postinstall.js +1 -1
  14. package/bin/utils/mcp-detect.js +1 -1
  15. package/commands/bi-start.md +3 -3
  16. package/commands/pbi-connect.md +60 -24
  17. package/commands/report-design.md +1 -1
  18. package/desktop-extension/server.js +43 -10
  19. package/package.json +3 -4
  20. package/skills/bi-start/SKILL.md +4 -4
  21. package/skills/bi-start/scripts/update-check.js +1 -1
  22. package/skills/pbi-connect/SKILL.md +61 -25
  23. package/skills/pbi-connect/scripts/update-check.js +1 -1
  24. package/skills/project-kickoff/SKILL.md +1 -1
  25. package/skills/project-kickoff/scripts/update-check.js +1 -1
  26. package/skills/report-design/SKILL.md +2 -2
  27. package/skills/report-design/references/layouts/finance.md +2 -2
  28. package/skills/report-design/references/native-visuals.md +2 -2
  29. package/skills/report-design/references/slicer.md +1 -1
  30. package/skills/report-design/references/textbox.md +1 -1
  31. package/skills/report-design/scripts/create-visual.js +65 -1
  32. package/skills/report-design/scripts/update-check.js +1 -1
  33. package/skills/report-design/scripts/validate-pbir.js +29 -0
  34. package/src/content/base.md +1 -1
  35. package/src/content/routing.md +1 -1
  36. package/src/content/skills/bi-start.md +3 -3
  37. package/src/content/skills/pbi-connect.md +60 -24
  38. package/src/content/skills/report-design/SKILL.md +1 -1
  39. package/src/content/skills/report-design/references/layouts/finance.md +2 -2
  40. package/src/content/skills/report-design/references/native-visuals.md +2 -2
  41. package/src/content/skills/report-design/references/slicer.md +1 -1
  42. package/src/content/skills/report-design/references/textbox.md +1 -1
  43. package/src/content/skills/report-design/scripts/create-visual.js +65 -1
  44. package/src/content/skills/report-design/scripts/validate-pbir.js +29 -0
package/README.md CHANGED
@@ -5,192 +5,733 @@
5
5
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org)
6
6
  [![Power BI](https://img.shields.io/badge/Power%20BI-Desktop-F2C811?logo=powerbi)](https://powerbi.microsoft.com)
7
7
 
8
- Toolkit open-source para trabajar con **Power BI Desktop** desde Claude Code, GitHub Copilot, Codex, Gemini CLI y Kilo Code.
8
+ **BI Agent Superpowers** is an open-source toolkit that gives AI coding agents practical Power BI Desktop capabilities.
9
9
 
10
- > **Estado:** `v4.1.x` **primera versión estable**. Incluye 4 skills (`/bi-start` + 3 especialistas) y 2 MCP servers oficiales de Microsoft. `/report-design` usa scripts Node propios para visuales/theme, pero hoy todavía requiere `pbi-cli-tool` para connect, page ops y validate, además de Windows + Power BI Desktop.
11
- >
12
- > _Nota de versionado_: las versiones 2.x, 3.x y 4.0.0 fueron iteraciones mientras el alcance y la arquitectura del plugin se estaban asentando. **Tratá a v4.1.x como si fuera la 1.0** del producto — es el primer release que el autor considera listo para uso real. El numeral se queda en la línea 4.x porque npm es estrictamente monotónico (no se puede bajar el número), pero la madurez del producto arranca acá.
10
+ It installs reusable agent skills, configures Microsoft MCP servers, and provides a small CLI called `super` so Claude Code, GitHub Copilot, Codex, Gemini CLI, and Kilo Code can work with Power BI projects using the same operating contract.
11
+
12
+ This is not a loose prompt pack. It is a reproducible Power BI agent layer:
13
+
14
+ - **4 skills** for session startup, BI project analysis, Power BI Desktop connection, and PBIR report generation.
15
+ - **2 Microsoft MCP servers** for Power BI Desktop modeling and Microsoft Learn documentation.
16
+ - **1 CLI** (`super`) for install, updates, local plugin generation, checks, and regeneration.
17
+ - **Claude Code plugin artifacts** with slash commands, discoverable skills, and MCP configuration.
18
+
19
+ > Status: `v4.1.x` is the first stable release line. Treat it as the practical 1.0 of the project, even though the npm version remains 4.x for monotonic versioning.
20
+
21
+ ---
22
+
23
+ ## Table of Contents
24
+
25
+ - [What It Does](#what-it-does)
26
+ - [Install From Terminal](#install-from-terminal)
27
+ - [Ask Your Agent To Install It](#ask-your-agent-to-install-it)
28
+ - [Skills Included](#skills-included)
29
+ - [Quick Demos](#quick-demos)
30
+ - [Supported Agents](#supported-agents)
31
+ - [MCP Servers](#mcp-servers)
32
+ - [CLI Reference](#cli-reference)
33
+ - [Plugin File Tree](#plugin-file-tree)
34
+ - [Requirements](#requirements)
35
+ - [Report Design Runtime](#report-design-runtime)
36
+ - [Updates](#updates)
37
+ - [What Ships To npm](#what-ships-to-npm)
38
+ - [Development](#development)
39
+ - [Troubleshooting](#troubleshooting)
40
+ - [FAQ](#faq)
13
41
 
14
42
  ---
15
43
 
16
- ## Instalación
44
+ ## What It Does
45
+
46
+ Power BI work with AI agents usually breaks down in predictable places:
47
+
48
+ 1. The agent does not understand the BI project structure.
49
+ 2. The agent does not know how to connect to Power BI Desktop.
50
+ 3. The agent invents DAX, PBIR, or setup steps without validating them against real tools.
51
+ 4. Each agent has different skill and MCP configuration paths.
52
+
53
+ BI Agent Superpowers fixes that by giving each supported agent the same Power BI workflow:
54
+
55
+ - project context through reusable skills;
56
+ - Power BI Desktop access through the Microsoft Power BI Modeling MCP;
57
+ - current Microsoft documentation through the Microsoft Learn MCP;
58
+ - generated Claude Code plugin artifacts for local project work;
59
+ - update checks so old plugin bundles do not silently stay stale.
60
+
61
+ The goal is simple: open a Power BI project, ask your agent for help, and have the agent know what tools, files, prerequisites, and guardrails apply.
62
+
63
+ ---
64
+
65
+ ## Install From Terminal
66
+
67
+ ### All Supported Agents
68
+
69
+ Use this when you want one command path for Claude Code, GitHub Copilot, Codex, Gemini CLI, and Kilo Code.
70
+
71
+ ```bash
72
+ npm install -g @luquimbo/bi-superpowers
73
+ super install --all --yes
74
+ ```
75
+
76
+ Restart your agent after installation so it reloads skills and MCP configuration.
77
+
78
+ ### Interactive Install
79
+
80
+ Use this when you want the installer to detect agents and ask where to install.
81
+
82
+ ```bash
83
+ npm install -g @luquimbo/bi-superpowers
84
+ super install
85
+ ```
86
+
87
+ ### Install For One Agent Only
88
+
89
+ ```bash
90
+ # Claude Code user-level skills + MCP config
91
+ super install --agent claude-code --yes
17
92
 
18
- Elegí el camino según tu agente principal:
93
+ # GitHub Copilot
94
+ super install --agent github-copilot --yes
19
95
 
20
- ### 👉 Claude Code (recomendado para usuarios de Claude Code)
96
+ # Codex
97
+ super install --agent codex --yes
21
98
 
22
- Dentro de Claude Code, ejecutá:
99
+ # Gemini CLI
100
+ super install --agent gemini-cli --yes
23
101
 
102
+ # Kilo Code
103
+ super install --agent kilo --yes
24
104
  ```
105
+
106
+ ### Claude Code Marketplace Install
107
+
108
+ If you only use Claude Code, the marketplace path is the cleanest install experience:
109
+
110
+ ```text
25
111
  /plugin marketplace add luquimbo/bi-superpowers
26
112
  /plugin install bi-superpowers
27
113
  ```
28
114
 
29
- Eso instala el plugin completo (4 skills + 2 MCPs) en el perfil de Claude Code. Después podés actualizar con `/plugin update bi-superpowers` directamente desde Claude Code — sin pasar por npm.
115
+ After that, start a new session and run:
30
116
 
31
- Si también querés el plugin local de proyecto (con slash commands `/bi-start`, `/project-kickoff`, `/pbi-connect`, `/report-design` en un repo específico), corré `super kickoff` dentro del repo — requiere haber instalado la CLI via el otro path (abajo).
117
+ ```text
118
+ /bi-start
119
+ ```
32
120
 
33
- ### 👉 Otros agentes Copilot, Codex, Gemini CLI, Kilo Code (o multi-agente)
121
+ ### Advanced: Optional Local Claude Code Plugin
122
+
123
+ This is only for Claude Code users who deliberately want repo-local slash-command plugin files. Codex, GitHub Copilot, Gemini CLI, and Kilo Code should use `super install` above; do not run `super kickoff` for those agents.
124
+
125
+ Inside a Power BI project repo:
34
126
 
35
127
  ```bash
36
- # 1. Instalá la CLI
128
+ super kickoff
129
+ ```
130
+
131
+ This generates project-local Claude Code plugin files:
132
+
133
+ - `.claude-plugin/`
134
+ - `.plugin/`
135
+ - `.mcp.json`
136
+ - `commands/`
137
+ - `skills/`
138
+ - `config.json`
139
+
140
+ Regenerate them later with:
141
+
142
+ ```bash
143
+ super recharge
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Ask Your Agent To Install It
149
+
150
+ If your agent has terminal access, paste one of these prompts.
151
+
152
+ ### Claude Code
153
+
154
+ Use the marketplace path first:
155
+
156
+ ```text
157
+ Install BI Agent Superpowers from the Claude Code marketplace.
158
+
159
+ Run these Claude Code plugin commands:
160
+
161
+ /plugin marketplace add luquimbo/bi-superpowers
162
+ /plugin install bi-superpowers
163
+
164
+ After installation, start the plugin with /bi-start and tell me if any restart or reload is needed.
165
+ ```
166
+
167
+ If you also want project-local plugin files in the current repo for Claude Code only:
168
+
169
+ ```text
170
+ Set up BI Agent Superpowers for this project as a local Claude Code plugin.
171
+
172
+ In the terminal, run:
173
+
37
174
  npm install -g @luquimbo/bi-superpowers
175
+ super kickoff
38
176
 
39
- # 2. Instalá skills + MCPs en todos tus agentes
40
- super install
177
+ Then verify that .claude-plugin/, .plugin/, .mcp.json, commands/, skills/, and config.json were created in this repo. Do not modify unrelated files.
178
+ ```
179
+
180
+ ### GitHub Copilot
181
+
182
+ ```text
183
+ Set up BI Agent Superpowers for GitHub Copilot on this machine.
184
+
185
+ In the terminal, run:
186
+
187
+ npm install -g @luquimbo/bi-superpowers
188
+ super install --agent github-copilot --yes
189
+
190
+ After it finishes, verify that the GitHub Copilot skills directory and MCP config were updated. Then remind me to restart VS Code or reload Copilot so it picks up the new skills and MCP servers.
191
+ ```
192
+
193
+ ### Codex
194
+
195
+ ```text
196
+ Set up BI Agent Superpowers for Codex on this machine.
197
+
198
+ In the terminal, run:
199
+
200
+ npm install -g @luquimbo/bi-superpowers
201
+ super install --agent codex --yes
202
+
203
+ After it finishes, verify that the shared skills were installed under ~/.agents/skills and that the Codex MCP config was updated. Then summarize the installed skills and MCP servers.
204
+
205
+ Do not run super kickoff or super mcp-setup for Codex; those commands are only for optional repo-local Claude Code plugin files.
206
+ ```
207
+
208
+ ### Gemini CLI
209
+
210
+ ```text
211
+ Set up BI Agent Superpowers for Gemini CLI on this machine.
212
+
213
+ In the terminal, run:
214
+
215
+ npm install -g @luquimbo/bi-superpowers
216
+ super install --agent gemini-cli --yes
217
+
218
+ After it finishes, verify that ~/.gemini/skills and the Gemini MCP settings were updated. Then tell me to restart Gemini CLI before using the skills.
41
219
  ```
42
220
 
43
- El instalador:
221
+ ### Kilo Code
222
+
223
+ ```text
224
+ Set up BI Agent Superpowers for Kilo Code on this machine.
225
+
226
+ In the terminal, run:
227
+
228
+ npm install -g @luquimbo/bi-superpowers
229
+ super install --agent kilo --yes
230
+
231
+ After it finishes, verify that ~/.kilo/skills and the Kilo MCP settings were updated. Then tell me to restart Kilo Code before using the skills.
232
+ ```
233
+
234
+ ### Multi-Agent Setup
235
+
236
+ ```text
237
+ Set up BI Agent Superpowers for every supported agent installed on this machine.
238
+
239
+ In the terminal, run:
240
+
241
+ npm install -g @luquimbo/bi-superpowers
242
+ super install --all --yes
243
+
244
+ After it finishes, summarize which agents were configured, which MCP files were written, and whether any Windows symlink fallback copied files instead of creating symlinks.
245
+ ```
246
+
247
+ ---
248
+
249
+ ## Skills Included
250
+
251
+ ### `bi-start`
252
+
253
+ Session opener. It gives the user a clean starting point, checks whether a newer BI Agent Superpowers version exists, shows the skill menu, and routes the conversation to the right specialist skill.
254
+
255
+ Use it when:
256
+
257
+ - you are starting a new session;
258
+ - you do not know which skill to invoke;
259
+ - you want the agent to check update status before work begins.
260
+
261
+ ### `project-kickoff`
262
+
263
+ Project analysis and planning skill. It inspects a BI project, explains what exists, identifies gaps, and creates a sensible plan for the next work cycle.
264
+
265
+ Use it when:
266
+
267
+ - opening a Power BI repo for the first time;
268
+ - starting a new PBIP project;
269
+ - asking an agent to understand project structure before editing.
270
+
271
+ ### `pbi-connect`
272
+
273
+ Power BI Desktop connection skill. It helps the agent connect to the open Power BI Desktop model through the Microsoft Power BI Modeling MCP.
274
+
275
+ Use it when:
44
276
 
45
- 1. Detecta qué agentes AI tenés instalados (Claude Code, Copilot, Codex, Gemini, Kilo).
46
- 2. Te deja elegir para cuáles instalar (o hace todos con `--all --yes`).
47
- 3. Copia los 4 skills en los directorios correctos de cada agente.
48
- 4. Escribe los 2 MCPs en el config file correcto de cada agente (con el formato/schema que cada uno espera).
277
+ - you need to list tables, columns, measures, or relationships;
278
+ - you want to execute DAX queries;
279
+ - you want the agent to inspect or modify the semantic model through Desktop.
49
280
 
50
- Reiniciá tu agente AI y ya tenés bi-superpowers funcionando.
281
+ ### `report-design`
51
282
 
52
- > **¿Por qué dos caminos?** El marketplace de Claude Code es la UX más limpia para usuarios de Claude Code cero dependencias externas, updates nativos. La CLI via npm cubre los otros 4 agentes (que no tienen un marketplace equivalente) y funciona como denominador común cuando querés las mismas skills + MCPs en múltiples agentes. Los dos caminos son compatibles: podés combinar instalación via marketplace en Claude Code con instalación via CLI para los otros.
283
+ PBIR report generation skill. It turns a ready semantic model into Power BI report pages using bundled Node scripts, PBIR references, visual allowlists, layouts, themes, and validation.
284
+
285
+ Use it when:
286
+
287
+ - the model is ready and you want pages;
288
+ - you want native Power BI visuals generated as PBIR files;
289
+ - you want a report draft that can be opened and reviewed in Power BI Desktop.
290
+
291
+ Current runtime requirement: Windows + Power BI Desktop standalone + Python 3.10+ + `pipx` + `pbi-cli-tool`.
53
292
 
54
293
  ---
55
294
 
56
- ## Qué viene incluido
295
+ ## Quick Demos
296
+
297
+ ### Start A Session
57
298
 
58
- ### 4 Skills
299
+ ```text
300
+ /bi-start
301
+ ```
302
+
303
+ Expected result:
59
304
 
60
- | Skill | Para qué |
61
- |---|---|
62
- | `bi-start` | **Arrancar una sesión**: muestra el menú de skills, corre update-check, y (si detecta Power BI Desktop abierto) ofrece conectar vía MCP. Tu entrada por defecto en cada conversación nueva. |
63
- | `project-kickoff` | Analizá el estado de tu proyecto BI **nuevo** y armá `AGENTS.md` + modelo base |
64
- | `pbi-connect` | Conectá tu agente AI a Power BI Desktop vía MCP |
65
- | `report-design` | Generá páginas PBIR vía scripts Node propios (`create-visual.js`, `apply-theme.js`, `validate-pbir.js`), con allowlist de 28 visualTypes nativos |
305
+ - update check;
306
+ - menu of 4 skills;
307
+ - environment hints;
308
+ - next-step recommendation.
66
309
 
67
- Si no sabés por dónde empezar, decile a tu agente `/bi-start` — te muestra los 4 skills, chequea updates, y rutea al que necesites. `/project-kickoff` está reservado para cuando arrancás un proyecto BI desde cero.
310
+ ### Analyze A Power BI Project
311
+
312
+ ```text
313
+ /project-kickoff
314
+ Analyze this Power BI repo. Tell me what exists, what is missing, and what plan we should follow.
315
+ ```
68
316
 
69
- `report-design` requiere **Windows + Power BI Desktop** (standalone, no la versión de Microsoft Store) **+ Python 3.10+ + `pipx` + `pbi-cli-tool`**. Los scripts Node hacen el authoring de visuales/theme, pero el skill todavía usa `pbi` para connect, add-page/list-pages y validate.
317
+ Expected result:
70
318
 
71
- ### 2 MCP Servers (oficiales de Microsoft)
319
+ - project map;
320
+ - risks and missing context;
321
+ - recommended implementation path;
322
+ - handoff to `pbi-connect` or `report-design` when appropriate.
72
323
 
73
- | MCP | Para qué |
74
- |---|---|
75
- | `powerbi-modeling-mcp` | Conexión local a Power BI Desktop (XMLA). Leer/escribir modelo semántico, ejecutar DAX. |
76
- | `microsoft-learn` | HTTP MCP de Microsoft Learn — docs oficiales de Power BI/DAX/Fabric en contexto de la conversación. |
324
+ ### Connect To Power BI Desktop
325
+
326
+ ```text
327
+ /pbi-connect
328
+ Connect to the model currently open in Power BI Desktop and list tables, measures, columns, and relationships.
329
+ ```
330
+
331
+ Expected result:
332
+
333
+ - MCP connection check;
334
+ - semantic model snapshot;
335
+ - actionable diagnostics if Desktop or MCP wiring is not ready.
336
+
337
+ ### Generate A Report Page
338
+
339
+ ```text
340
+ /report-design
341
+ Create an executive sales page with KPI cards, monthly trend, product ranking, and a slicer panel.
342
+ ```
343
+
344
+ Expected result:
345
+
346
+ - prerequisite checks;
347
+ - page/layout plan;
348
+ - PBIR visual generation;
349
+ - validation against native visual types;
350
+ - instructions to open and verify in Power BI Desktop.
77
351
 
78
352
  ---
79
353
 
80
- ## Agentes soportados
354
+ ## Supported Agents
81
355
 
82
- | Agente | Skills | MCP config path | Cómo se usa |
356
+ | Agent | Skill install path | MCP config path | Primary usage |
83
357
  |---|---|---|---|
84
- | **Claude Code** | ✅ via `/plugin install` o `~/.claude/skills/` | `~/.claude.json` | Lenguaje natural o slash commands si corrés `super kickoff` |
85
- | **GitHub Copilot** | `~/.copilot/skills/` | `~/.copilot/mcp-config.json` | Lenguaje natural |
86
- | **Codex (OpenAI)** | `~/.agents/skills/` | `~/.codex/config.toml` | Lenguaje natural |
87
- | **Gemini CLI** | `~/.gemini/skills/` | `~/.gemini/settings.json` | Lenguaje natural |
88
- | **Kilo Code** | `~/.kilo/skills/` | `~/.kilo/mcp_settings.json` | Lenguaje natural |
358
+ | Claude Code | `~/.claude/skills/` or marketplace plugin | `~/.claude.json` | Slash commands and natural language |
359
+ | GitHub Copilot | `~/.copilot/skills/` | `~/.copilot/mcp-config.json` | Natural language with skills and MCPs |
360
+ | Codex | `~/.agents/skills/` | `~/.codex/config.toml` | Natural language with skills and MCPs |
361
+ | Gemini CLI | `~/.gemini/skills/` | `~/.gemini/settings.json` | Natural language |
362
+ | Kilo Code | `~/.kilo/skills/` | `~/.kilo/mcp_settings.json` | Natural language |
363
+
364
+ The installer always writes the universal skill copy to `~/.agents/skills/`, then links or copies agent-specific skill directories as needed.
365
+
366
+ ---
367
+
368
+ ## MCP Servers
369
+
370
+ | MCP | Transport | Purpose |
371
+ |---|---|---|
372
+ | `powerbi-modeling-mcp` | local stdio | Connects to Power BI Desktop through XMLA for model inspection, DAX queries, and model operations. |
373
+ | `microsoft-learn` | HTTP | Gives the agent access to Microsoft Learn documentation in context. |
89
374
 
90
- `super install` (npm path) escribe los skills + MCPs automáticamente para todos los agentes detectados.
375
+ You can install these MCPs manually, but `super install` writes the expected MCP config for each selected agent automatically.
91
376
 
92
- ### Instalación selectiva
377
+ ---
378
+
379
+ ## CLI Reference
380
+
381
+ The package exposes both `super` and `bi-superpowers`:
93
382
 
94
383
  ```bash
95
- # Solo para Claude Code
96
- super install --agent claude-code --yes
384
+ super help
385
+ bi-superpowers help
386
+ ```
97
387
 
98
- # Solo para Claude Code y GitHub Copilot
99
- super install --agent claude-code --agent github-copilot --yes
388
+ Common commands:
100
389
 
101
- # Todos sin prompts
102
- super install --all --yes
390
+ ```bash
391
+ super install # Install 4 skills + 2 MCPs for selected agents
392
+ super kickoff # Advanced: generate optional local Claude Code plugin files
393
+ super recharge # Regenerate optional local Claude Code plugin artifacts
394
+ super powers # List available skills
395
+ super scan # Compare source skills with generated artifacts
396
+ super checkup # Validate skill content
397
+ super build-desktop # Build the Claude Desktop .mcpb extension
398
+ super upgrade # Update the global CLI and print refresh steps
399
+ super help # Show full CLI help
103
400
  ```
104
401
 
105
402
  ---
106
403
 
107
- ## Actualizar
404
+ ## Plugin File Tree
405
+
406
+ ### Local Claude Code Plugin
407
+
408
+ Generated by `super kickoff` or `super recharge`:
409
+
410
+ This tree is optional and Claude Code specific. It is not required for Codex, GitHub Copilot, Gemini CLI, or Kilo Code because those agents use the user-level install created by `super install`.
411
+
412
+ ```text
413
+ project/
414
+ ├─ .claude-plugin/
415
+ │ ├─ plugin.json
416
+ │ ├─ marketplace.json
417
+ │ └─ skill-manifest.json
418
+ ├─ .plugin/
419
+ │ └─ plugin.json
420
+ ├─ .mcp.json
421
+ ├─ commands/
422
+ │ ├─ bi-start.md
423
+ │ ├─ project-kickoff.md
424
+ │ ├─ pbi-connect.md
425
+ │ └─ report-design.md
426
+ ├─ skills/
427
+ │ ├─ bi-start/
428
+ │ │ ├─ SKILL.md
429
+ │ │ └─ scripts/update-check.js
430
+ │ ├─ project-kickoff/
431
+ │ │ ├─ SKILL.md
432
+ │ │ └─ scripts/update-check.js
433
+ │ ├─ pbi-connect/
434
+ │ │ ├─ SKILL.md
435
+ │ │ └─ scripts/update-check.js
436
+ │ └─ report-design/
437
+ │ ├─ SKILL.md
438
+ │ ├─ scripts/
439
+ │ │ ├─ apply-theme.js
440
+ │ │ ├─ create-visual.js
441
+ │ │ ├─ ensure-pbi-cli.sh
442
+ │ │ ├─ update-check.js
443
+ │ │ └─ validate-pbir.js
444
+ │ └─ references/
445
+ │ ├─ cli-commands.md
446
+ │ ├─ cli-setup.md
447
+ │ ├─ native-visuals.md
448
+ │ ├─ pbi-desktop-installation.md
449
+ │ ├─ troubleshooting.md
450
+ │ ├─ layouts/
451
+ │ └─ themes/
452
+ └─ config.json
453
+ ```
108
454
 
109
- Dos caminos según cómo instalaste:
455
+ ### Build Pipeline
456
+
457
+ ```mermaid
458
+ flowchart TD
459
+ A["src/content/"] --> B["npm run build:plugin"]
460
+ B --> C["commands/*.md"]
461
+ B --> D["skills/*/SKILL.md"]
462
+ B --> E[".claude-plugin/"]
463
+ B --> F[".plugin/"]
464
+ B --> G[".mcp.json"]
465
+ C --> H["Claude Code slash commands"]
466
+ D --> I["Agent skills"]
467
+ G --> J["Power BI Modeling MCP + Microsoft Learn MCP"]
468
+ ```
110
469
 
111
- ### Claude Code (instalado via marketplace)
470
+ ---
112
471
 
113
- Dentro de Claude Code:
472
+ ## Requirements
114
473
 
115
- ```
474
+ ### Base Requirements
475
+
476
+ - Node.js 18 or newer.
477
+ - At least one supported AI agent.
478
+
479
+ ### For `pbi-connect`
480
+
481
+ - Windows.
482
+ - Power BI Desktop open.
483
+ - Power BI Modeling MCP available to the agent.
484
+
485
+ ### For `report-design`
486
+
487
+ - Windows.
488
+ - Power BI Desktop standalone, not the Microsoft Store build.
489
+ - Python 3.10 or newer.
490
+ - `pipx`.
491
+ - `pbi-cli-tool`.
492
+ - PBIR/TMDL enabled when applicable.
493
+
494
+ ---
495
+
496
+ ## Report Design Runtime
497
+
498
+ `report-design` uses bundled Node scripts for PBIR visual and theme authoring:
499
+
500
+ - `create-visual.js`
501
+ - `apply-theme.js`
502
+ - `validate-pbir.js`
503
+
504
+ It still uses `pbi-cli-tool` for the current runtime flow:
505
+
506
+ - `pbi connect`
507
+ - `pbi measure list`
508
+ - `pbi table list`
509
+ - `pbi column list`
510
+ - `pbi report add-page`
511
+ - `pbi report list-pages`
512
+ - `pbi report validate`
513
+
514
+ This means `pbi-cli-tool` is not optional for `report-design` today.
515
+
516
+ ---
517
+
518
+ ## Updates
519
+
520
+ ### Claude Code Marketplace
521
+
522
+ ```text
116
523
  /plugin update bi-superpowers
117
524
  ```
118
525
 
119
- Eso trae la última versión publicada en el marketplace. Cero interacción con npm.
120
-
121
- ### npm / CLI-managed installs
526
+ ### npm / CLI Installs
122
527
 
123
528
  ```bash
124
- # 1. Actualizá la CLI a la última versión
125
529
  super upgrade
530
+ super install --all --yes
531
+ ```
126
532
 
127
- # 2. Si instalaste skills en el perfil del agente, propagá la nueva versión
128
- super install --yes
533
+ If you created a project-local plugin:
129
534
 
130
- # 3. Si además generaste un plugin local con super kickoff, regeneralo en ese repo
535
+ ```bash
536
+ cd your-power-bi-project
131
537
  super recharge
132
538
  ```
133
539
 
134
- `super upgrade` reinstala el paquete global y al final te imprime un recordatorio con los refresh paths relevantes. No los hace automáticos a propósito: hay usuarios que solo quieren actualizar la CLI (p.ej. desarrollando local) y no propagar todavía el cambio a todos sus agentes o plugins locales.
540
+ `super upgrade` intentionally does not run `super install` or `super recharge` automatically. User-profile installs and project-local plugins are separate refresh targets.
135
541
 
136
- Equivalente manual si `super upgrade` falla:
542
+ ---
137
543
 
138
- ```bash
139
- npm install -g @luquimbo/bi-superpowers@latest
140
- super install --yes
141
- # y, si tenés un plugin local en este repo/proyecto:
142
- super recharge
544
+ ## What Ships To npm
545
+
546
+ The npm package includes:
547
+
548
+ ```text
549
+ bin/
550
+ .claude-plugin/
551
+ .plugin/
552
+ .mcp.json
553
+ commands/
554
+ skills/
555
+ src/content/
556
+ desktop-extension/
557
+ config.json
558
+ config.example.json
559
+ README.md
560
+ CHANGELOG.md
561
+ AGENTS.md
562
+ LICENSE
563
+ package.json
143
564
  ```
144
565
 
566
+ The npm package does not include:
567
+
568
+ ```text
569
+ examples/smoke-test/
570
+ coordination/
571
+ node_modules/
572
+ *.test.js
573
+ ```
574
+
575
+ `examples/smoke-test/` is intentionally repo-only. It is used for QA and manual validation, not for user installs.
576
+
145
577
  ---
146
578
 
147
- ## Alternativas para instalar los MCPs
579
+ ## Development
148
580
 
149
- `super install` escribe automáticamente los 2 MCPs en el config file de cada agente. Pero hay otras formas de instalar los mismos MCPs — cualquiera de estas funciona igual de bien:
581
+ Install dependencies:
150
582
 
151
- ### Para Power BI Modeling MCP (local)
583
+ ```bash
584
+ npm install
585
+ ```
152
586
 
153
- - **Extensión de VS Code** — Microsoft publica "Power BI Modeling MCP" en el VS Code Marketplace. Si la instalás, VS Code + Copilot lo descubren automáticamente sin tocar archivos de config.
154
- - **Extensión de Cursor** — misma extensión, Cursor la detecta.
155
- - **Manual** — descargá el binario `.exe` y configurá `BI_SUPERPOWERS_POWERBI_MODELING_MCP_PATH` apuntando al ejecutable.
587
+ Regenerate plugin artifacts:
156
588
 
157
- ### Para Microsoft Learn MCP (HTTP)
589
+ ```bash
590
+ npm run build:plugin
591
+ ```
158
592
 
159
- - **MCP marketplace oficial de Anthropic** — en Claude Code se puede hacer `/plugin marketplace add anthropic/mcp-registry` y después `/plugin install microsoft-learn` (según disponibilidad).
160
- - **Agregarlo a mano** en el config file del agente con la URL `https://learn.microsoft.com/api/mcp`.
593
+ Validate locally:
161
594
 
162
- Si ya instalaste los MCPs por alguno de estos caminos, no necesitás correr `super install` — o, si lo corrés, los configs se mergean sin conflicto (cada agente tiene merge por clave, no por overwrite).
595
+ ```bash
596
+ npm test
597
+ npm run lint
598
+ npm run format:check
599
+ npm pack --dry-run --ignore-scripts
600
+ ```
601
+
602
+ Source of truth:
603
+
604
+ ```text
605
+ src/content/
606
+ ```
607
+
608
+ Generated artifacts:
609
+
610
+ ```text
611
+ commands/
612
+ skills/
613
+ .claude-plugin/
614
+ .plugin/
615
+ .mcp.json
616
+ ```
617
+
618
+ Edit source files first, then regenerate generated outputs.
163
619
 
164
620
  ---
165
621
 
166
- ## Requisitos
622
+ ## Publishing
623
+
624
+ Publishing is handled by GitHub Actions. Do not run `npm publish` locally.
625
+
626
+ Expected release flow:
627
+
628
+ ```bash
629
+ npm version patch --no-git-tag-version
630
+ npm run build:plugin
631
+ npm test
632
+ npm run lint
633
+ npm run format:check
634
+ git add package.json package-lock.json commands/ skills/ .claude-plugin/ .plugin/ .mcp.json
635
+ git commit -m "chore: release vX.Y.Z"
636
+ git tag -a vX.Y.Z -m "vX.Y.Z"
637
+ git push origin main --follow-tags
638
+ ```
167
639
 
168
- - **Node.js 18**
169
- - **Power BI Desktop en Windows** (standalone, no Microsoft Store) para workflows locales contra Desktop (`powerbi-modeling-mcp` y `report-design`)
170
- - **Python 3.10+**, **`pipx`** y **`pbi-cli-tool`** son requeridos para `/report-design` hoy. Los scripts Node hacen el authoring de visuales/theme, pero el flujo completo sigue usando `pbi` para connect, page ops y validate.
171
- - Al menos uno de: Claude Code, GitHub Copilot, Codex, Gemini CLI, Kilo Code
640
+ The publish workflow runs on `v*` tag pushes. Manual dispatch is constrained to an already-tagged release commit on `main`.
172
641
 
173
642
  ---
174
643
 
175
- ## Comandos
644
+ ## Troubleshooting
645
+
646
+ ### `super` is not found after npm install
647
+
648
+ Check the global package:
176
649
 
177
650
  ```bash
178
- super install # Instalá 4 skills + 2 MCPs en tus agentes AI
179
- super kickoff # Generá el plugin local de Claude Code con slash commands
180
- super recharge # Regenerá el plugin tras editar skills fuente
181
- super powers # Listá skills disponibles
182
- super upgrade # Actualizá la CLI + recordatorio de /plugin update, super install o super recharge
183
- super help # Ayuda completa
651
+ npm list -g @luquimbo/bi-superpowers
184
652
  ```
185
653
 
654
+ Try the long binary name:
655
+
656
+ ```bash
657
+ bi-superpowers help
658
+ ```
659
+
660
+ If npm's global bin directory is not in `PATH`, fix `PATH` or use your package manager's global binary setup instructions.
661
+
662
+ ### The Agent Does Not See The Skills
663
+
664
+ 1. Restart the agent.
665
+ 2. Run `super install --all --yes` again.
666
+ 3. Check the relevant skill directory.
667
+ 4. If using a local Claude Code plugin, run `super recharge` inside that repo.
668
+
669
+ ### Power BI Desktop Does Not Connect
670
+
671
+ 1. Open Power BI Desktop.
672
+ 2. Open the target `.pbix` or PBIP project.
673
+ 3. Confirm the Power BI Modeling MCP is installed.
674
+ 4. Restart the agent after MCP installation.
675
+
676
+ ### `report-design` Stops Because Power BI Desktop Is The Microsoft Store Build
677
+
678
+ Install the standalone Power BI Desktop build. The Store build can block flows required by CLI/MCP tooling.
679
+
680
+ ### `pbi-cli-tool` Is Missing
681
+
682
+ Install Python, `pipx`, and `pbi-cli-tool`:
683
+
684
+ ```bash
685
+ python --version
686
+ pipx --version
687
+ pipx install pbi-cli-tool
688
+ pbi --version
689
+ ```
690
+
691
+ ---
692
+
693
+ ## FAQ
694
+
695
+ ### Does This Replace Power BI Desktop?
696
+
697
+ No. Power BI Desktop remains the visual/runtime verification tool. The plugin helps agents work with project files, MCPs, PBIR, and semantic-model context more reliably.
698
+
699
+ ### Does It Work Outside Windows?
700
+
701
+ The CLI and several skills can run outside Windows. Workflows that depend on Power BI Desktop, especially `pbi-connect` and `report-design`, are Windows-first.
702
+
703
+ ### Do I Need Claude Code?
704
+
705
+ No. Claude Code has the richest plugin/slash-command experience, but the npm installer supports GitHub Copilot, Codex, Gemini CLI, and Kilo Code too.
706
+
707
+ ### Do I Need `pbi-cli-tool`?
708
+
709
+ For `report-design`, yes. For `bi-start`, `project-kickoff`, and `pbi-connect`, not necessarily.
710
+
711
+ ### Can I Use Only The MCP Servers?
712
+
713
+ Yes. You can install Microsoft Learn MCP and Power BI Modeling MCP manually. This repo packages them with skills and operational workflows so agents know when and how to use them.
714
+
715
+ ### Does This Send Data To A SaaS Backend?
716
+
717
+ No. The package installs local files, writes local agent config, and uses MCP servers configured on your machine. There is no BI Agent Superpowers SaaS backend.
718
+
186
719
  ---
187
720
 
188
- ## Contribuir
721
+ ## Contributing
722
+
723
+ Issues and pull requests are welcome:
724
+
725
+ - GitHub: https://github.com/luquimbo/bi-superpowers
726
+ - Issues: https://github.com/luquimbo/bi-superpowers/issues
727
+ - npm: https://www.npmjs.com/package/@luquimbo/bi-superpowers
189
728
 
190
- Este proyecto está empezando. Si querés agregar skills, mejorar los existentes, o reportar bugs:
729
+ Before large changes, read:
191
730
 
192
- - Abrí un issue en https://github.com/luquimbo/bi-superpowers/issues
193
- - Pull requests bienvenidas
731
+ - `AGENTS.md`
732
+ - `ARCHITECTURE.md`
733
+ - `src/content/`
734
+ - `bin/`
194
735
 
195
736
  ---
196
737