@luquimbo/bi-superpowers 4.1.5 → 5.0.0

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 (81) hide show
  1. package/.claude-plugin/marketplace.json +5 -5
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.claude-plugin/skill-manifest.json +17 -17
  4. package/.plugin/plugin.json +1 -1
  5. package/AGENTS.md +50 -54
  6. package/CHANGELOG.md +67 -0
  7. package/README.md +103 -24
  8. package/bin/cli.js +12 -8
  9. package/bin/commands/build-desktop.js +37 -2
  10. package/bin/commands/diff.js +2 -2
  11. package/bin/commands/install.js +29 -7
  12. package/bin/commands/lint.js +2 -2
  13. package/bin/commands/mcp-setup.js +20 -30
  14. package/bin/commands/validate-projects.js +425 -0
  15. package/bin/commands/watch.js +1 -1
  16. package/bin/lib/generators/claude-plugin.js +20 -5
  17. package/bin/lib/generators/shared.js +8 -8
  18. package/bin/lib/skills.js +5 -5
  19. package/bin/postinstall.js +3 -3
  20. package/commands/{pbi-connect.md → bi-connect.md} +151 -3
  21. package/commands/{project-kickoff.md → bi-kickoff.md} +9 -9
  22. package/commands/{report-design.md → bi-report.md} +12 -12
  23. package/commands/bi-start.md +20 -20
  24. package/desktop-extension/manifest.json +1 -1
  25. package/package.json +1 -1
  26. package/skills/{pbi-connect → bi-connect}/SKILL.md +153 -5
  27. package/skills/{pbi-connect → bi-connect}/scripts/update-check.js +1 -1
  28. package/skills/{project-kickoff → bi-kickoff}/SKILL.md +11 -11
  29. package/skills/{report-design → bi-kickoff}/scripts/update-check.js +1 -1
  30. package/skills/{report-design → bi-report}/SKILL.md +14 -14
  31. package/skills/{report-design → bi-report}/references/layouts/hr.md +1 -1
  32. package/{src/content/skills/report-design → skills/bi-report}/references/native-visuals.md +1 -1
  33. package/{src/content/skills/report-design → skills/bi-report}/references/pbir-preview-activation.md +3 -3
  34. package/{src/content/skills/report-design → skills/bi-report}/references/troubleshooting.md +1 -1
  35. package/skills/{project-kickoff → bi-report}/scripts/update-check.js +1 -1
  36. package/skills/bi-start/SKILL.md +21 -21
  37. package/skills/bi-start/scripts/update-check.js +1 -1
  38. package/src/content/base.md +6 -5
  39. package/src/content/routing.md +22 -20
  40. package/src/content/skills/{pbi-connect.md → bi-connect.md} +149 -1
  41. package/src/content/skills/{project-kickoff.md → bi-kickoff.md} +8 -8
  42. package/src/content/skills/{report-design → bi-report}/SKILL.md +11 -11
  43. package/src/content/skills/{report-design → bi-report}/references/layouts/hr.md +1 -1
  44. package/{skills/report-design → src/content/skills/bi-report}/references/native-visuals.md +1 -1
  45. package/{skills/report-design → src/content/skills/bi-report}/references/pbir-preview-activation.md +3 -3
  46. package/{skills/report-design → src/content/skills/bi-report}/references/troubleshooting.md +1 -1
  47. package/src/content/skills/bi-start.md +20 -20
  48. /package/skills/{report-design → bi-report}/references/cli-commands.md +0 -0
  49. /package/skills/{report-design → bi-report}/references/cli-setup.md +0 -0
  50. /package/skills/{report-design → bi-report}/references/close-write-open-pattern.md +0 -0
  51. /package/skills/{report-design → bi-report}/references/layouts/finance.md +0 -0
  52. /package/skills/{report-design → bi-report}/references/layouts/generic.md +0 -0
  53. /package/skills/{report-design → bi-report}/references/layouts/marketing.md +0 -0
  54. /package/skills/{report-design → bi-report}/references/layouts/operations.md +0 -0
  55. /package/skills/{report-design → bi-report}/references/layouts/sales.md +0 -0
  56. /package/skills/{report-design → bi-report}/references/pbi-desktop-installation.md +0 -0
  57. /package/skills/{report-design → bi-report}/references/slicer.md +0 -0
  58. /package/skills/{report-design → bi-report}/references/textbox.md +0 -0
  59. /package/skills/{report-design → bi-report}/references/themes/BISuperpowers.json +0 -0
  60. /package/skills/{report-design → bi-report}/references/visual-types.md +0 -0
  61. /package/skills/{report-design → bi-report}/scripts/apply-theme.js +0 -0
  62. /package/skills/{report-design → bi-report}/scripts/create-visual.js +0 -0
  63. /package/skills/{report-design → bi-report}/scripts/ensure-pbi-cli.sh +0 -0
  64. /package/skills/{report-design → bi-report}/scripts/validate-pbir.js +0 -0
  65. /package/src/content/skills/{report-design → bi-report}/references/cli-commands.md +0 -0
  66. /package/src/content/skills/{report-design → bi-report}/references/cli-setup.md +0 -0
  67. /package/src/content/skills/{report-design → bi-report}/references/close-write-open-pattern.md +0 -0
  68. /package/src/content/skills/{report-design → bi-report}/references/layouts/finance.md +0 -0
  69. /package/src/content/skills/{report-design → bi-report}/references/layouts/generic.md +0 -0
  70. /package/src/content/skills/{report-design → bi-report}/references/layouts/marketing.md +0 -0
  71. /package/src/content/skills/{report-design → bi-report}/references/layouts/operations.md +0 -0
  72. /package/src/content/skills/{report-design → bi-report}/references/layouts/sales.md +0 -0
  73. /package/src/content/skills/{report-design → bi-report}/references/pbi-desktop-installation.md +0 -0
  74. /package/src/content/skills/{report-design → bi-report}/references/slicer.md +0 -0
  75. /package/src/content/skills/{report-design → bi-report}/references/textbox.md +0 -0
  76. /package/src/content/skills/{report-design → bi-report}/references/themes/BISuperpowers.json +0 -0
  77. /package/src/content/skills/{report-design → bi-report}/references/visual-types.md +0 -0
  78. /package/src/content/skills/{report-design → bi-report}/scripts/apply-theme.js +0 -0
  79. /package/src/content/skills/{report-design → bi-report}/scripts/create-visual.js +0 -0
  80. /package/src/content/skills/{report-design → bi-report}/scripts/ensure-pbi-cli.sh +0 -0
  81. /package/src/content/skills/{report-design → bi-report}/scripts/validate-pbir.js +0 -0
@@ -31,7 +31,7 @@ If config.isFirstSetup == true AND
31
31
  config.hasRunProjectKickoff == false AND
32
32
  config.skillPreferences.autoSuggestProjectKickoff == true:
33
33
 
34
- → Show welcome message and suggest /project-kickoff
34
+ → Show welcome message and suggest /bi-kickoff
35
35
  ```
36
36
 
37
37
  **Suggested message:**
@@ -39,7 +39,7 @@ If config.isFirstSetup == true AND
39
39
  Welcome to BI Agent Superpowers! I noticed this is your first time here.
40
40
 
41
41
  To get the most out of this toolkit, I recommend starting with
42
- the **Project Kickoff** wizard (/project-kickoff).
42
+ the **Project Kickoff** wizard (/bi-kickoff).
43
43
 
44
44
  Would you like to start? (yes/no)
45
45
  ```
@@ -50,9 +50,9 @@ Scan current directory for relevant files:
50
50
 
51
51
  | Files Detected | Suggested Skill |
52
52
  |----------------|-----------------|
53
- | `.pbix` / `.pbip` / `.tmdl` files | `/project-kickoff` (if not analyzed) |
54
- | `.xlsx` / `.xlsm` files | `/project-kickoff` |
55
- | Agent MCP config missing when user asks about Power BI | `/pbi-connect` |
53
+ | `.pbix` / `.pbip` / `.tmdl` files | `/bi-kickoff` (if not analyzed) |
54
+ | `.xlsx` / `.xlsm` files | `/bi-kickoff` |
55
+ | Agent MCP config missing when user asks about Power BI | `/bi-connect` |
56
56
 
57
57
  ### 4. CHECK KEYWORDS
58
58
 
@@ -60,13 +60,14 @@ Match user message against skill triggers:
60
60
 
61
61
  | Keywords | Skill |
62
62
  |----------|-------|
63
- | "kickoff", "analyze project", "analizar proyecto", "empezar", "qué tengo aquí?" | `/project-kickoff` |
64
- | "connect Power BI", "MCP connection", "Power BI Desktop", "conectar Power BI", "modeling mcp" | `/pbi-connect` |
65
- | "crear reportes", "armar reporte", "report design", "dashboard", "páginas del reporte", "visualizaciones" | `/report-design` |
63
+ | "bi-start", "start session", "empezar", "what can you do here?" | `/bi-start` |
64
+ | "kickoff", "analyze project", "analizar proyecto", "qué tengo aquí?" | `/bi-kickoff` |
65
+ | "connect Power BI", "MCP connection", "Power BI Desktop", "conectar Power BI", "modeling mcp", "DAX UDF", "functions.tmdl", "DAXLIB" | `/bi-connect` |
66
+ | "crear reportes", "armar reporte", "report design", "dashboard", "páginas del reporte", "visualizaciones" | `/bi-report` |
66
67
 
67
68
  ### 5. DEFAULT BEHAVIOR
68
69
 
69
- No skill activated → respond as general BI assistant using AGENTS.md context, referencing `library/` snippets when available in the user's project.
70
+ No skill activated → respond as a general BI assistant using AGENTS.md context and the installed BI Superpowers skills. Do not reference `library/` snippets unless the user's project actually contains that folder.
70
71
 
71
72
  ---
72
73
 
@@ -98,18 +99,19 @@ Users can customize routing in `config.json`:
98
99
  | Setting | Effect |
99
100
  |---------|--------|
100
101
  | `autoSuggestProjectKickoff: false` | Disable first-run auto-suggestion |
101
- | `disabledSkills: ["pbi-connect"]` | Never suggest these skills |
102
- | `defaultSkill: "project-kickoff"` | Suggest this skill when context is ambiguous |
102
+ | `disabledSkills: ["bi-connect"]` | Never suggest these skills |
103
+ | `defaultSkill: "bi-kickoff"` | Suggest this skill when context is ambiguous |
103
104
 
104
105
  ---
105
106
 
106
- ## Available Skills (3)
107
+ ## Available Skills (4)
107
108
 
108
109
  | Skill | Purpose | Typical Duration |
109
110
  |-------|---------|-----------------|
110
- | `/project-kickoff` | Analyze a BI project, build the semantic model, and write AGENTS.md | 10-20 min |
111
- | `/pbi-connect` | Connect to Power BI Desktop via the official Microsoft MCP | 2-5 min |
112
- | `/report-design` | Generate 3-page PBIR report via `pbi-cli-tool` CLI (requires close-write-open cycle) | 5-15 min |
111
+ | `/bi-start` | Start a session, show the skill menu, check updates, and route to a specialist | 1-2 min |
112
+ | `/bi-kickoff` | Analyze a BI project, build the semantic model, and write AGENTS.md | 10-20 min |
113
+ | `/bi-connect` | Connect to Power BI Desktop via the official Microsoft MCP; guide DAX UDF authoring with Microsoft Learn + DAXLIB references | 2-10 min |
114
+ | `/bi-report` | Generate 3-page PBIR report via `pbi-cli-tool` CLI (requires close-write-open cycle) | 5-15 min |
113
115
 
114
116
  ---
115
117
 
@@ -119,10 +121,10 @@ After completing a skill, suggest the logical next step:
119
121
 
120
122
  | After Completing | Suggest Next |
121
123
  |-----------------|--------------|
122
- | `/project-kickoff` (model base ready) | `/report-design` to build the 3 report pages |
123
- | `/project-kickoff` (MCP not connected) | `/pbi-connect` to set up the connection |
124
- | `/report-design` | None — hand off to the user for refresh + iteration in Power BI Desktop |
125
- | `/pbi-connect` | Back to `/project-kickoff` if the project hasn't been analyzed yet |
124
+ | `/bi-kickoff` (model base ready) | `/bi-report` to build the 3 report pages |
125
+ | `/bi-kickoff` (MCP not connected) | `/bi-connect` to set up the connection |
126
+ | `/bi-report` | None — hand off to the user for refresh + iteration in Power BI Desktop |
127
+ | `/bi-connect` | Back to `/bi-kickoff` if the project hasn't been analyzed yet |
126
128
 
127
129
  **Suggestion format:**
128
130
  ```
@@ -136,7 +138,7 @@ Would you like to continue with that?
136
138
 
137
139
  ## Updating After Project Kickoff
138
140
 
139
- After user completes `/project-kickoff`, update config:
141
+ After user completes `/bi-kickoff`, update config:
140
142
 
141
143
  ```json
142
144
  {
@@ -3,9 +3,12 @@
3
3
  ## Trigger
4
4
  Activate this skill when user mentions:
5
5
  - "connect Power BI", "PBI connection", "MCP connection", "Power BI MCP"
6
+ - "DAX UDF", "DAX user-defined function", "user defined function"
7
+ - "write UDF", "create UDF", "functions.tmdl", "DAXLIB", "daxlib"
6
8
  - "modeling mcp", "Power BI Modeling MCP"
7
9
  - "Power BI Desktop", "PBIP", "semantic model"
8
10
  - "conectar Power BI", "MCP de Power BI", "modeling mcp"
11
+ - "crear UDF", "escribir UDF", "funciones DAX"
9
12
  - "can't connect to Power BI", "connection error", "MCP not working"
10
13
 
11
14
  ## Identity
@@ -17,6 +20,7 @@ You are a **Power BI MCP Connection Specialist**. Your job is to help the user c
17
20
  3. **WINDOWS LIMITATION.** Explain clearly that the local Modeling MCP is only available on Windows.
18
21
  4. **NO PORT INVENTION.** Do not suggest local port-based setups for the official Modeling MCP flow.
19
22
  5. **ONE QUESTION AT A TIME.** Follow the wizard pattern.
23
+ 6. **DAX UDFS USE UPSTREAM REFERENCES.** When the user asks for DAX user-defined functions, consult Microsoft Learn for current syntax/limitations and DAXLIB for community patterns. Do not vendor DAXLIB source into the user's model unless the user explicitly asks to import/adapt a specific MIT-licensed function.
20
24
 
21
25
  ---
22
26
 
@@ -179,6 +183,150 @@ claude --plugin-dir .
179
183
 
180
184
  ---
181
185
 
186
+ ## DAX UDF WIKI: DAXLIB-AWARE AUTHORING
187
+
188
+ Use this section when the user asks to write, review, import, or refactor DAX
189
+ user-defined functions (UDFs).
190
+
191
+ ### Upstream references to consult
192
+
193
+ Always check current upstream material before writing non-trivial UDFs:
194
+
195
+ | Source | Use it for |
196
+ | --- | --- |
197
+ | Microsoft Learn DAX UDF docs | Current syntax, preview limitations, supported parameter types, and management flow |
198
+ | DAXLIB source repo | Real-world `functions.tmdl` packages, naming conventions, parameter docs, package manifests |
199
+ | DAXLIB docs | Human-facing package docs and examples |
200
+ | DAXLIB GitHub organization | Development repos for individual libraries and patterns |
201
+
202
+ Canonical links:
203
+
204
+ - https://learn.microsoft.com/en-us/dax/best-practices/dax-user-defined-functions
205
+ - https://github.com/daxlib/daxlib
206
+ - https://docs.daxlib.org/
207
+ - https://github.com/daxlib
208
+
209
+ ### What DAXLIB is for in this plugin
210
+
211
+ DAXLIB is a reference library, not a bundled runtime dependency.
212
+
213
+ Use it to learn:
214
+
215
+ - how library packages organize reusable functions in `lib/functions.tmdl`;
216
+ - how functions are namespaced with dotted names;
217
+ - how function comments document purpose, params, and return shape;
218
+ - how helper functions compose with public functions;
219
+ - how manifests describe package identity, version, authors, tags, and dependencies.
220
+
221
+ Do not:
222
+
223
+ - copy an entire DAXLIB package into a customer model without explicit user
224
+ approval;
225
+ - keep DAXLIB package annotations when creating a user-owned function;
226
+ - claim a DAXLIB pattern is current without checking upstream;
227
+ - ignore the fact that DAX UDFs are still preview in Microsoft documentation.
228
+
229
+ ### Authoring workflow
230
+
231
+ When writing a UDF:
232
+
233
+ 1. Confirm the model target: PBIP/TMDL file edit, DAX Query View, TMDL View, or
234
+ MCP-backed semantic model change.
235
+ 2. Confirm that DAX UDF preview is enabled in Power BI Desktop when live Desktop
236
+ authoring is required.
237
+ 3. Inspect existing functions first:
238
+ ```dax
239
+ EVALUATE INFO.USERDEFINEDFUNCTIONS()
240
+ ```
241
+ 4. Search DAXLIB upstream for a similar function family or package pattern.
242
+ 5. Decide whether you are:
243
+ - writing a new original UDF;
244
+ - adapting one DAXLIB function with attribution;
245
+ - installing/importing a DAXLIB package by user request.
246
+ 6. Use a namespaced function name for reusable business logic, for example
247
+ `Company.Finance.GrossMarginPct`.
248
+ 7. Prefer explicit parameter hints. Use reference/expression parameters when the
249
+ function must preserve or change filter context.
250
+ 8. Test the function with a small `DEFINE FUNCTION ... EVALUATE ...` query before
251
+ applying it to the model.
252
+ 9. If editing PBIP files directly, put model functions in the semantic model
253
+ TMDL `definition/functions.tmdl` file.
254
+ 10. After saving, re-query `INFO.USERDEFINEDFUNCTIONS()` or equivalent model
255
+ metadata to verify the function exists.
256
+
257
+ ### UDF design checklist
258
+
259
+ Before returning a UDF to the user, verify:
260
+
261
+ - The function name is unique, well-formed, and not a built-in DAX function or
262
+ reserved word.
263
+ - The name does not start/end with a dot and does not contain consecutive dots.
264
+ - The comment explains why the function exists, not just what the formula says.
265
+ - Every parameter has a meaningful name and type hint.
266
+ - `VAL` vs `EXPR` behavior is intentional.
267
+ - The return shape is clear: scalar, table, filter table, or format string.
268
+ - The function does not expose secured measure/table names in its public name or
269
+ description.
270
+ - The function body is deterministic unless randomness is explicitly required.
271
+ - Helper functions are private-by-convention through naming, not assumed hidden;
272
+ current Power BI limitations do not support hiding/unhiding UDFs.
273
+
274
+ ### Templates for a new original UDF
275
+
276
+ Use DAX Query View first when you need to test the function before saving it:
277
+
278
+ ```dax
279
+ DEFINE
280
+ /// Returns gross margin percentage from gross margin and revenue.
281
+ /// @param {NUMERIC} grossMargin - Gross margin amount.
282
+ /// @param {NUMERIC} revenue - Revenue amount.
283
+ /// @returns Gross margin percentage, blank when revenue is blank or zero.
284
+ FUNCTION Company.Finance.GrossMarginPct =
285
+ (
286
+ grossMargin : NUMERIC,
287
+ revenue : NUMERIC
288
+ ) =>
289
+ DIVIDE ( grossMargin, revenue )
290
+
291
+ EVALUATE
292
+ { Company.Finance.GrossMarginPct ( 120, 300 ) }
293
+ ```
294
+
295
+ Use TMDL/PBIP shape only when you are saving the function into the model's
296
+ `definition/functions.tmdl`:
297
+
298
+ ```tmdl
299
+ createOrReplace
300
+ /// Returns gross margin percentage from gross margin and revenue.
301
+ /// @param {NUMERIC} grossMargin - Gross margin amount.
302
+ /// @param {NUMERIC} revenue - Revenue amount.
303
+ /// @returns Gross margin percentage, blank when revenue is blank or zero.
304
+ function Company.Finance.GrossMarginPct =
305
+ (
306
+ grossMargin : NUMERIC,
307
+ revenue : NUMERIC
308
+ ) =>
309
+ DIVIDE ( grossMargin, revenue )
310
+ ```
311
+
312
+ ### DAXLIB adaptation rules
313
+
314
+ If the user asks to adapt a function from DAXLIB:
315
+
316
+ 1. Link to the source package/function you used.
317
+ 2. Explain whether you changed naming, dependencies, parameter types, or return
318
+ behavior.
319
+ 3. Preserve attribution when meaningful.
320
+ 4. Replace `DAXLIB_PackageId` and `DAXLIB_PackageVersion` annotations with
321
+ user/project-owned metadata only if the target model uses such annotations.
322
+ 5. Validate dependencies: DAXLIB functions often call helper functions from the
323
+ same package or a declared dependency.
324
+
325
+ If the user did not ask to import DAXLIB code, use DAXLIB only as a design
326
+ reference and produce an original function.
327
+
328
+ ---
329
+
182
330
  ## TROUBLESHOOTING
183
331
 
184
332
  | Problem | What to do |
@@ -215,7 +363,7 @@ Adjust depth based on `config.json → experienceLevel`:
215
363
 
216
364
  ## Related Skills
217
365
 
218
- - `/project-kickoff` — Analyze a BI project and plan next steps
366
+ - `/bi-kickoff` — Analyze a BI project and plan next steps
219
367
 
220
368
  ---
221
369
 
@@ -80,7 +80,7 @@ Write `AGENTS.md` + the 4 pointers using the templates at the end of this skill
80
80
 
81
81
  Cuando estés en Windows:
82
82
  1. Abrí el `.pbip` en Power BI Desktop
83
- 2. Corré `/project-kickoff` de vuelta desde esta misma carpeta
83
+ 2. Corré `/bi-kickoff` de vuelta desde esta misma carpeta
84
84
  3. Yo retomo desde la conexión MCP y hacemos el modelado
85
85
  ```
86
86
 
@@ -119,7 +119,7 @@ La conexión no respondió. Probá estos pasos:
119
119
  Cuando lo arregles, avisame y reintento.
120
120
  ```
121
121
 
122
- Load `/pbi-connect` if the user needs deeper troubleshooting.
122
+ Load `/bi-connect` if the user needs deeper troubleshooting.
123
123
 
124
124
  ---
125
125
 
@@ -556,14 +556,14 @@ These are starting points, not gospel — adapt to what the user said in PHASE 4
556
556
 
557
557
  ---
558
558
 
559
- ## PHASE 7: Handoff to `/report-design`
559
+ ## PHASE 7: Handoff to `/bi-report`
560
560
 
561
561
  Once the model has at least 1 fact, 1 dim, and 3 measures in place, propose moving to reports:
562
562
 
563
563
  ```
564
564
  ✓ Modelo base listo. Tenés fact + dims + {N} medidas.
565
565
 
566
- El siguiente paso lógico es armar los 3 reportes con `/report-design`. Ese skill va a:
566
+ El siguiente paso lógico es armar los 3 reportes con `/bi-report`. Ese skill va a:
567
567
  1. Usar el dominio que ya definimos ({domain})
568
568
  2. Inspeccionar tu modelo vía el Modeling MCP (o `pbi-cli-tool` si hace falta) para las medidas/dimensiones exactas
569
569
  3. Generar 3 páginas con scripts Node + comandos `pbi report` (card, line, bar, matrix)
@@ -571,23 +571,23 @@ El siguiente paso lógico es armar los 3 reportes con `/report-design`. Ese skil
571
571
 
572
572
  Requisito: necesitás Windows + Power BI Desktop + Python 3.10+ + `pipx` + `pbi-cli-tool` (si te falta algo, el skill te guía).
573
573
 
574
- ¿Arrancamos con /report-design, o preferís agregar más medidas al modelo primero?
574
+ ¿Arrancamos con /bi-report, o preferís agregar más medidas al modelo primero?
575
575
  ```
576
576
 
577
- If the user opts for reports, load `/report-design` and let it run. If they want to keep modeling, stay on this skill.
577
+ If the user opts for reports, load `/bi-report` and let it run. If they want to keep modeling, stay on this skill.
578
578
 
579
579
  ---
580
580
 
581
581
  ## What this skill does NOT do
582
582
 
583
583
  - **No scoring / benchmarking** of an existing model. For that, the user can ask "audit this model" separately.
584
- - **Report authoring** is delegated to `/report-design` which uses bundled Node scripts plus the `pbi` CLI runtime flow — don't write `.Report/` files from here.
584
+ - **Report authoring** is delegated to `/bi-report` which uses bundled Node scripts plus the `pbi` CLI runtime flow — don't write `.Report/` files from here.
585
585
 
586
586
  ---
587
587
 
588
588
  ## Related Skills
589
589
 
590
- - `/pbi-connect` — Deeper troubleshooting if the MCP connection fails
590
+ - `/bi-connect` — Deeper troubleshooting if the MCP connection fails
591
591
 
592
592
  ---
593
593
 
@@ -5,8 +5,8 @@ Activate this skill when the user mentions:
5
5
  - "crear reportes", "armar el reporte", "diseñar reporte"
6
6
  - "report design", "create reports", "build dashboard"
7
7
  - "páginas del reporte", "visualizaciones", "dashboard"
8
- - Runs naturally after `/project-kickoff` finishes building the semantic model
9
- - Explicit invocation: `/report-design`
8
+ - Runs naturally after `/bi-kickoff` finishes building the semantic model
9
+ - Explicit invocation: `/bi-report`
10
10
 
11
11
  ## Identity
12
12
  You are **BI Report Architect**, an orchestrator that turns a finished semantic model into a Power BI report. You author the PBIR visual/theme layer via **bundled Node scripts** — not via the old `pbi visual` / `pbi report set-theme` path:
@@ -29,9 +29,9 @@ Your job is to plan the report, call the right scripts in the right order, and m
29
29
  2. **NEVER WRITE visual.json, page.json, OR report.json BY HAND.** Always use `scripts/create-visual.js` (for visuals) or `scripts/apply-theme.js` (for theme). Hand-writing visual.json is a proven failure mode — the bundled scripts know the canonical PBIR 2.7.0 shape and enforce the allowlist. If you hit a visualType the allowlist doesn't cover, stop and add it to `NATIVE_VISUAL_TYPES` in `create-visual.js` (and add a test) before proceeding.
30
30
  3. **CLOSE-WRITE-OPEN IS MANDATORY.** Power BI Desktop does not detect external file changes while it's running. When you add or modify visuals via the scripts, you MUST: (a) fully terminate the `PBIDesktop.exe` process before the writes, and (b) relaunch the `.pbip` after the writes. A `Ctrl+S` or `File → Close` inside Desktop is NOT enough — the process must fully die. See `references/close-write-open-pattern.md`.
31
31
  4. **RESOLVE MODEL NAMES BEFORE BINDING.** Use Microsoft Modeling MCP (preferred) or `pbi measure list`/`pbi table list`/`pbi column list` (fallback) to get exact names. Never guess. Pass binding values to `create-visual.js` as `--bind role="Table[Column]"` or `--bind role="Table[Measure]"`.
32
- 5. **DO NOT TOUCH TMDL.** Report authoring does not edit the semantic model. If a measure is missing, stop and ask the user to run `/project-kickoff` or add it manually via Power BI Desktop UI.
32
+ 5. **DO NOT TOUCH TMDL.** Report authoring does not edit the semantic model. If a measure is missing, stop and ask the user to run `/bi-kickoff` or add it manually via Power BI Desktop UI.
33
33
  6. **VALIDATE BEFORE HANDOFF.** Run BOTH validators at the end: (a) `pbi report validate` (schema sanity), (b) `node scripts/validate-pbir.js <reportPath>` (allowlist + role checks). The second catches what the first misses. If either reports errors, fix them in place; do NOT tell the user to refresh until both pass.
34
- 7. **WINDOWS ONLY for full workflow.** The bundled scripts are Node-only and portable, but PBI Desktop (required in PHASE 5) and the CLI's XMLA connection are Windows-exclusive. If the user runs this skill on macOS or Linux, you can still generate PBIR via the scripts but the Desktop open+verify cycle won't work. Stop in PHASE 0 and explain: _"El workflow completo requiere Windows con Power BI Desktop. En Mac/Linux podés usar `/project-kickoff` + los scripts de authoring, pero la verificación visual se queda pendiente hasta abrir el .pbip en Windows."_
34
+ 7. **WINDOWS ONLY for full workflow.** The bundled scripts are Node-only and portable, but PBI Desktop (required in PHASE 5) and the CLI's XMLA connection are Windows-exclusive. If the user runs this skill on macOS or Linux, you can still generate PBIR via the scripts but the Desktop open+verify cycle won't work. Stop in PHASE 0 and explain: _"El workflow completo requiere Windows con Power BI Desktop. En Mac/Linux podés usar `/bi-kickoff` + los scripts de authoring, pero la verificación visual se queda pendiente hasta abrir el .pbip en Windows."_
35
35
 
36
36
  8. **STANDALONE PBI DESKTOP, NOT MICROSOFT STORE.** The Microsoft Store version of Power BI Desktop sandboxes command-line arguments and rejects the `Start-Process` launch this skill uses in PHASE 5 (error: _"Error al analizar los argumentos de la línea de comandos"_). It also blocks External Tools integration (Tabular Editor, DAX Studio, ALM Toolkit, Bravo, etc.). If only the Store version is detected in PHASE 0, stop and walk the user through installing the standalone installer build (`PBIDesktopSetup_x64.exe`, via `https://aka.ms/pbiSingleInstaller`) and uninstalling the Store version. See `references/pbi-desktop-installation.md`.
37
37
 
@@ -55,7 +55,7 @@ Your job is to plan the report, call the right scripts in the right order, and m
55
55
  - **Neither present** → STOP and guide the user through standalone install per `references/pbi-desktop-installation.md`.
56
56
 
57
57
  1. **Check the project layout** in CWD:
58
- - `./AGENTS.md` — should exist (`/project-kickoff` created it)
58
+ - `./AGENTS.md` — should exist (`/bi-kickoff` created it)
59
59
  - `./pbip-files/*.pbip` — must exist
60
60
  - `./pbip-files/*.SemanticModel/` — must exist
61
61
  - `./pbip-files/*.Report/definition/` — **PBIR preview must be activated.** If this folder is missing, stop and guide the user with `references/pbir-preview-activation.md`.
@@ -72,7 +72,7 @@ Your job is to plan the report, call the right scripts in the right order, and m
72
72
  4. **Read the project context:**
73
73
  - `./AGENTS.md` → extract `{projectName}`, `{domain}`, `{purpose}`.
74
74
  - `./ROADMAP.md` → confirm "Fase 1: Modelo base" has at least some `[x]` (fact + dim + measures must exist).
75
- - If the model has zero measures, stop and say: _"Necesitás al menos algunas medidas en el modelo antes de armar reportes. Volvé a `/project-kickoff` y terminemos la Fase 2."_
75
+ - If the model has zero measures, stop and say: _"Necesitás al menos algunas medidas en el modelo antes de armar reportes. Volvé a `/bi-kickoff` y terminemos la Fase 2."_
76
76
 
77
77
  ---
78
78
 
@@ -241,7 +241,7 @@ node "{skillBundleDir}/scripts/apply-theme.js" \
241
241
  --theme-file "{skillBundleDir}/references/themes/BISuperpowers.json"
242
242
  ~~~
243
243
 
244
- `{skillBundleDir}` is the installed skill folder — usually `~/.agents/skills/report-design/` after `super install`. The agent can also invoke the script from the source repo during development.
244
+ `{skillBundleDir}` is the installed skill folder — usually `~/.agents/skills/bi-report/` after `super install`. The agent can also invoke the script from the source repo during development.
245
245
 
246
246
  The helper is idempotent (re-running replaces the existing customTheme in place) and copies the theme JSON to `<reportPath>/StaticResources/RegisteredResources/<themeFileName>` automatically.
247
247
 
@@ -266,7 +266,7 @@ Do NOT hand-author `report.json` theme metadata. The canonical PBIR shape (for r
266
266
  - `resourcePackages` includes a `{name: "RegisteredResources", type: "RegisteredResources"}` package whose `items[]` has `{name: "<file>.json", path: "<file>.json", type: "CustomTheme"}`
267
267
  - the theme file itself lives at `<reportPath>/StaticResources/RegisteredResources/<file>.json`
268
268
 
269
- **Conditional formatting note.** Layout notes may describe variance colors, diverging matrix gradients, or signed-color bars as design intent. The current `report-design` flow does not author those formatting rules. Render those visuals with theme/default colors unless you have a tested PBIR formatting implementation. Do not invent `pbi format` calls from this skill.
269
+ **Conditional formatting note.** Layout notes may describe variance colors, diverging matrix gradients, or signed-color bars as design intent. The current `bi-report` flow does not author those formatting rules. Render those visuals with theme/default colors unless you have a tested PBIR formatting implementation. Do not invent `pbi format` calls from this skill.
270
270
 
271
271
  ### 4.4 Validate (two layers)
272
272
 
@@ -329,7 +329,7 @@ Listo. Tenés 3 páginas con {N_total} visuales en tu reporte.
329
329
 
330
330
  Para iterar:
331
331
  • Editar visuales en PBI Desktop UI directamente (drag, resize, format)
332
- • O volver a /report-design si querés regenerar desde cero
332
+ • O volver a /bi-report si querés regenerar desde cero
333
333
 
334
334
  Cuando guardes desde Desktop, commiteá el .pbip a git para versionar.
335
335
  ~~~
@@ -368,8 +368,8 @@ Cuando guardes desde Desktop, commiteá el .pbip a git para versionar.
368
368
 
369
369
  ## Related Skills
370
370
 
371
- - `/project-kickoff` — runs before this; produces `AGENTS.md` + the semantic model
372
- - `/pbi-connect` — Microsoft Modeling MCP connection for model operations
371
+ - `/bi-kickoff` — runs before this; produces `AGENTS.md` + the semantic model
372
+ - `/bi-connect` — Microsoft Modeling MCP connection for model operations
373
373
 
374
374
  ## Credit
375
375
 
@@ -45,4 +45,4 @@ Roles:
45
45
  | Position slicer | slicer (manual JSON — see `references/slicer.md`) | 312, 80, 280, 80 | `position-dim-column` |
46
46
  | Employee matrix | matrix | 16, 176, 1168, 480 | rows: `Employee[FullName]`, cols: `'Date'[Year]`, values: `headcount-measure` (as snapshot) + tenure if available |
47
47
 
48
- **Design notes:** If the model has PII, strongly suggest adding RLS (`/pbi-connect` → MCP) before sharing. Surface this to the user during kickoff.
48
+ **Design notes:** If the model has PII, strongly suggest adding RLS (`/bi-connect` → MCP) before sharing. Surface this to the user during kickoff.
@@ -303,7 +303,7 @@ Si PBI Desktop introduce un visualType nuevo (o encontrás uno nativo que falta
303
303
 
304
304
  4. `npm run build:plugin` para regenerar `skills/...` y `commands/...`.
305
305
 
306
- 5. Agregar tests en `src/content/skills/report-design/scripts/create-visual.test.js` (roles required, shape generado, error case).
306
+ 5. Agregar tests en `src/content/skills/bi-report/scripts/create-visual.test.js` (roles required, shape generado, error case).
307
307
 
308
308
  6. Re-correr `npm test` + `npm run lint`.
309
309
 
@@ -1,6 +1,6 @@
1
1
  # PBIR Preview Activation
2
2
 
3
- The Power BI Enhanced Report (PBIR) format is a Public Preview feature as of 2025–2026. It must be activated in Power BI Desktop before `/report-design` can write report files.
3
+ The Power BI Enhanced Report (PBIR) format is a Public Preview feature as of 2025–2026. It must be activated in Power BI Desktop before `/bi-report` can write report files.
4
4
 
5
5
  ## How to check if it's already active
6
6
 
@@ -33,8 +33,8 @@ pbip-files/{projectName}.Report/
33
33
  └── StaticResources/
34
34
  ```
35
35
 
36
- Once that structure exists, `/report-design` can proceed.
36
+ Once that structure exists, `/bi-report` can proceed.
37
37
 
38
38
  ## Warning to surface to the user
39
39
 
40
- PBIR is in Public Preview. Microsoft can change the schema between Power BI Desktop releases. If `/report-design` suddenly stops producing files that render, update the plugin: `super upgrade`. We keep the plugin in sync with PBIR schema changes while the feature is in preview.
40
+ PBIR is in Public Preview. Microsoft can change the schema between Power BI Desktop releases. If `/bi-report` suddenly stops producing files that render, update the plugin: `super upgrade`. We keep the plugin in sync with PBIR schema changes while the feature is in preview.
@@ -47,7 +47,7 @@ Desktop is not running, or the `.pbip` hasn't finished loading yet. Open Desktop
47
47
 
48
48
  ### `pbi connect` succeeds but `pbi measure list` returns empty
49
49
 
50
- The connected Desktop instance isn't loaded with a model, or the model has no measures yet. Check with `pbi table list` — if tables exist but measures don't, the user hasn't created any measures yet. Stop and ask them to add at least one (via PBI Desktop UI or `/project-kickoff`).
50
+ The connected Desktop instance isn't loaded with a model, or the model has no measures yet. Check with `pbi table list` — if tables exist but measures don't, the user hasn't created any measures yet. Stop and ask them to add at least one (via PBI Desktop UI or `/bi-kickoff`).
51
51
 
52
52
  ## Generation failures
53
53
 
@@ -14,9 +14,9 @@ Also activate:
14
14
  - When the user seems lost about which skill to invoke (e.g. says "no sé qué usar").
15
15
 
16
16
  ## Identity
17
- You are **BI Session Orchestrator**. Your job is to welcome the user at the start of a chat session, show them the available skills, check for updates, and — if Power BI Desktop is involved — offer to connect right away. You are **not** a project analyst (that's `/project-kickoff`), **not** a connection specialist (that's `/pbi-connect`), and **not** a report author (that's `/report-design`). You are the front desk.
17
+ You are **BI Session Orchestrator**. Your job is to welcome the user at the start of a chat session, show them the available skills, check for updates, and — if Power BI Desktop is involved — offer to connect right away. You are **not** a project analyst (that's `/bi-kickoff`), **not** a connection specialist (that's `/bi-connect`), and **not** a report author (that's `/bi-report`). You are the front desk.
18
18
 
19
- You are the session-opener, **not** the project-opener. If the user's intent is clearly "I'm creating a brand-new BI project from scratch", delegate to `/project-kickoff`. Otherwise, this skill is the right home for general-purpose entry, discovery, environment checks, and pointing the user at the right specialist.
19
+ You are the session-opener, **not** the project-opener. If the user's intent is clearly "I'm creating a brand-new BI project from scratch", delegate to `/bi-kickoff`. Otherwise, this skill is the right home for general-purpose entry, discovery, environment checks, and pointing the user at the right specialist.
20
20
 
21
21
  ## MANDATORY RULES
22
22
 
@@ -24,7 +24,7 @@ You are the session-opener, **not** the project-opener. If the user's intent is
24
24
  2. **INFORMATIVE MENU — DON'T FORCE A CHOICE.** You are already inside `/bi-start`. Show the **3 specialist skills** as a table with 1-line descriptions. The user decides organically either by invoking `/<skill>` or by describing what they want. Do NOT say "pick 1, 2, or 3" — that's quiz-style and annoying for returning users.
25
25
  3. **PROACTIVE ON UPDATE + CONNECT.** When you detect (a) an available update or (b) Power BI Desktop running without a configured MCP, **ask once** and then dispatch the action yourself. Don't force the user to remember the exact command.
26
26
  4. **SAFE DEFAULTS ON SAY-NOTHING.** If the user greets you and then goes silent, show the menu and stop. Don't auto-dispatch anything without an explicit "sí" / "yes".
27
- 5. **OS-AWARE, NOT OS-GATING.** Works on any OS. Mark Windows-only skills clearly. On macOS/Linux, `/project-kickoff` still has partial value (writes `AGENTS.md` and stops); mention that honestly instead of refusing.
27
+ 5. **OS-AWARE, NOT OS-GATING.** Works on any OS. Mark Windows-only skills clearly. On macOS/Linux, `/bi-kickoff` still has partial value (writes `AGENTS.md` and stops); mention that honestly instead of refusing.
28
28
  6. **DELEGATE CLEANLY.** When dispatching to another skill, say "dispatching /X" so the user sees the hand-off, then stop being the orchestrator for this turn. If they come back with "estoy en X, ahora qué", you can re-orient.
29
29
 
30
30
  ---
@@ -68,7 +68,7 @@ Do these detections in order:
68
68
  node -e "console.log(process.platform)"
69
69
  ```
70
70
  - `win32` → full workflow available.
71
- - `darwin` / `linux` → limited (report-design + local Modeling MCP don't work).
71
+ - `darwin` / `linux` → limited (bi-report + local Modeling MCP don't work).
72
72
 
73
73
  2. **Project context** (CWD-based):
74
74
  - `./pbip-files/*.pbip` present? → `$hasPbip = true`.
@@ -109,15 +109,15 @@ Remind the user that `/bi-start` is the session opener, then show the **3 specia
109
109
  ```
110
110
  Ya estás en `/bi-start` (session opener). Los 3 specialist skills disponibles son:
111
111
 
112
- /project-kickoff Arrancar un proyecto BI nuevo (crea AGENTS.md, plantea modelo) · Win / Mac / Linux (parcial fuera de Win)
113
- /pbi-connect Conectar el agente a Power BI Desktop vía MCP · Windows
114
- /report-design Generar las páginas PBIR desde el modelo · Windows + PBI Desktop
112
+ /bi-kickoff Arrancar un proyecto BI nuevo (crea AGENTS.md, plantea modelo) · Win / Mac / Linux (parcial fuera de Win)
113
+ /bi-connect Conectar el agente a Power BI Desktop vía MCP · Windows
114
+ /bi-report Generar las páginas PBIR desde el modelo · Windows + PBI Desktop
115
115
 
116
116
  Invocá el que necesites con /<nombre>, o decime en lenguaje natural lo que querés
117
117
  hacer (ej: "crear reportes", "conectar Power BI", "arranco proyecto nuevo") y te ruteo.
118
118
  ```
119
119
 
120
- If the user is on macOS/Linux and says they want `/report-design` or `/pbi-connect`, remind them once: _"Ese skill requiere Windows + PBI Desktop. Para este proyecto, podés arrancar con `/project-kickoff` — escribe `AGENTS.md` con el scope y cuando tengas acceso a una máquina Windows retomás los otros dos."_
120
+ If the user is on macOS/Linux and says they want `/bi-report` or `/bi-connect`, remind them once: _"Ese skill requiere Windows + PBI Desktop. Para este proyecto, podés arrancar con `/bi-kickoff` — escribe `AGENTS.md` con el scope y cuando tengas acceso a una máquina Windows retomás los otros dos."_
121
121
 
122
122
  ---
123
123
 
@@ -135,27 +135,27 @@ Continue to PHASE 4.
135
135
 
136
136
  **Case B — PBI Desktop running + MCP NOT configured** (Windows only):
137
137
  Offer once:
138
- > _"Power BI Desktop está abierto pero todavía no conectaste el agente al MCP. ¿Corro `/pbi-connect`? (`sí` / `no`)"_
138
+ > _"Power BI Desktop está abierto pero todavía no conectaste el agente al MCP. ¿Corro `/bi-connect`? (`sí` / `no`)"_
139
139
 
140
- - `sí` → dispatch `/pbi-connect` cleanly. Say "dispatching /pbi-connect" and stop being the orchestrator for this turn.
140
+ - `sí` → dispatch `/bi-connect` cleanly. Say "dispatching /bi-connect" and stop being the orchestrator for this turn.
141
141
  - `no` → continue to PHASE 4 silently.
142
142
 
143
143
  **Case C — PBI Desktop NOT running + `.pbip` exists in CWD** (Windows only):
144
144
  Offer once:
145
- > _"No veo Power BI Desktop abierto. Para conectar el agente al modelo necesitás abrir el .pbip. ¿Lo abro yo y corro `/pbi-connect`? (`sí` / `no`)"_
145
+ > _"No veo Power BI Desktop abierto. Para conectar el agente al modelo necesitás abrir el .pbip. ¿Lo abro yo y corro `/bi-connect`? (`sí` / `no`)"_
146
146
 
147
147
  - `sí`:
148
- 1. Launch Desktop with the project's .pbip (use the standalone path per `/report-design` PHASE 5 launch pattern — see `references/pbi-desktop-installation.md` in `/report-design`):
148
+ 1. Launch Desktop with the project's .pbip (use the standalone path per `/bi-report` PHASE 5 launch pattern — see `references/pbi-desktop-installation.md` in `/bi-report`):
149
149
  ```bash
150
150
  powershell -Command "Start-Process -FilePath 'C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe' -ArgumentList '\"<absolute-path-to.pbip>\"'"
151
151
  ```
152
152
  2. Wait ~15-20 seconds for Desktop to finish loading.
153
- 3. Dispatch `/pbi-connect`.
153
+ 3. Dispatch `/bi-connect`.
154
154
 
155
155
  - `no` → continue to PHASE 4.
156
156
 
157
157
  On macOS/Linux, skip Case B and Case C — mention once:
158
- > _"PBI Desktop no corre fuera de Windows. El Modeling MCP queda solo disponible en una máquina Windows. `/project-kickoff` sí funciona parcialmente acá (escribe `AGENTS.md` y para)."_
158
+ > _"PBI Desktop no corre fuera de Windows. El Modeling MCP queda solo disponible en una máquina Windows. `/bi-kickoff` sí funciona parcialmente acá (escribe `AGENTS.md` y para)."_
159
159
 
160
160
  ---
161
161
 
@@ -171,16 +171,16 @@ Stop. Don't hover. The user will tell you what they want next.
171
171
 
172
172
  ## What this skill does NOT do
173
173
 
174
- - **Project analysis or setup**: that's `/project-kickoff`. If the user says "analizar mi proyecto", "armar el modelo base", "arrancar uno nuevo desde cero", delegate.
175
- - **MCP wiring details**: that's `/pbi-connect`. bi-start just offers to dispatch it; the actual configuration work is in that skill.
176
- - **Report authoring**: that's `/report-design`. Same pattern.
174
+ - **Project analysis or setup**: that's `/bi-kickoff`. If the user says "analizar mi proyecto", "armar el modelo base", "arrancar uno nuevo desde cero", delegate.
175
+ - **MCP wiring details**: that's `/bi-connect`. bi-start just offers to dispatch it; the actual configuration work is in that skill.
176
+ - **Report authoring**: that's `/bi-report`. Same pattern.
177
177
  - **Running the update**: bi-start offers + dispatches `super upgrade`; the actual refresh path after eso (`/plugin update bi-superpowers`, `super install --all --yes`, o `super recharge` only for local Claude Code plugins) is owned by `/bin/cli.js`.
178
178
 
179
179
  ## Related Skills
180
180
 
181
- - `/project-kickoff` — when it's a brand-new project that needs `AGENTS.md` + model scaffolding.
182
- - `/pbi-connect` — when you need the agent talking to PBI Desktop via MCP.
183
- - `/report-design` — when you're generating report pages via the bundled Node scripts.
181
+ - `/bi-kickoff` — when it's a brand-new project that needs `AGENTS.md` + model scaffolding.
182
+ - `/bi-connect` — when you need the agent talking to PBI Desktop via MCP.
183
+ - `/bi-report` — when you're generating report pages via the bundled Node scripts.
184
184
 
185
185
  ## Bundle contents
186
186