@luquimbo/bi-superpowers 1.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.
- package/.claude-plugin/plugin.json +8 -0
- package/.mcp.json +25 -0
- package/AGENTS.md +244 -0
- package/CHANGELOG.md +265 -0
- package/LICENSE +21 -0
- package/README.md +211 -0
- package/bin/build-plugin.js +30 -0
- package/bin/cli.js +1064 -0
- package/bin/commands/add.js +533 -0
- package/bin/commands/add.test.js +77 -0
- package/bin/commands/build-desktop.js +166 -0
- package/bin/commands/changelog.js +443 -0
- package/bin/commands/diff.js +325 -0
- package/bin/commands/lint.js +419 -0
- package/bin/commands/lint.test.js +103 -0
- package/bin/commands/mcp-setup.js +246 -0
- package/bin/commands/pull.js +287 -0
- package/bin/commands/pull.test.js +36 -0
- package/bin/commands/push.js +231 -0
- package/bin/commands/push.test.js +14 -0
- package/bin/commands/search.js +344 -0
- package/bin/commands/search.test.js +115 -0
- package/bin/commands/setup.js +545 -0
- package/bin/commands/setup.test.js +46 -0
- package/bin/commands/sync-profile.js +405 -0
- package/bin/commands/sync-profile.test.js +14 -0
- package/bin/commands/sync-source.js +418 -0
- package/bin/commands/sync-source.test.js +14 -0
- package/bin/commands/watch.js +206 -0
- package/bin/lib/generators/claude-plugin.js +266 -0
- package/bin/lib/generators/claude-plugin.test.js +110 -0
- package/bin/lib/generators/index.js +116 -0
- package/bin/lib/generators/shared.js +282 -0
- package/bin/lib/licensing/index.js +35 -0
- package/bin/lib/licensing/storage.js +364 -0
- package/bin/lib/licensing/storage.test.js +55 -0
- package/bin/lib/licensing/validator.js +213 -0
- package/bin/lib/licensing/validator.test.js +137 -0
- package/bin/lib/microsoft-mcp.js +176 -0
- package/bin/lib/microsoft-mcp.test.js +106 -0
- package/bin/lib/skills.js +84 -0
- package/bin/mcp/powerbi-modeling-launcher.js +38 -0
- package/bin/postinstall.js +44 -0
- package/bin/utils/errors.js +159 -0
- package/bin/utils/git.js +298 -0
- package/bin/utils/logger.js +142 -0
- package/bin/utils/mcp-detect.js +274 -0
- package/bin/utils/mcp-detect.test.js +105 -0
- package/bin/utils/pbix.js +305 -0
- package/bin/utils/pbix.test.js +37 -0
- package/bin/utils/profiles.js +312 -0
- package/bin/utils/projects.js +168 -0
- package/bin/utils/readline.js +206 -0
- package/bin/utils/readline.test.js +47 -0
- package/bin/utils/tui.js +314 -0
- package/bin/utils/tui.test.js +127 -0
- package/commands/contributions.md +265 -0
- package/commands/data-model-design.md +468 -0
- package/commands/dax-doctor.md +248 -0
- package/commands/fabric-scripts.md +452 -0
- package/commands/migration-assistant.md +290 -0
- package/commands/model-documenter.md +242 -0
- package/commands/pbi-connect.md +239 -0
- package/commands/project-kickoff.md +905 -0
- package/commands/report-layout.md +296 -0
- package/commands/rls-design.md +533 -0
- package/commands/theme-tweaker.md +624 -0
- package/config.example.json +23 -0
- package/config.json +23 -0
- package/desktop-extension/manifest.json +37 -0
- package/desktop-extension/package.json +10 -0
- package/desktop-extension/server.js +95 -0
- package/docs/openrouter-free-models.md +92 -0
- package/library/examples/README.md +151 -0
- package/library/examples/finance-reporting/README.md +351 -0
- package/library/examples/finance-reporting/data-model.md +267 -0
- package/library/examples/finance-reporting/measures.dax +557 -0
- package/library/examples/hr-analytics/README.md +371 -0
- package/library/examples/hr-analytics/data-model.md +315 -0
- package/library/examples/hr-analytics/measures.dax +460 -0
- package/library/examples/marketing-analytics/README.md +37 -0
- package/library/examples/marketing-analytics/data-model.md +62 -0
- package/library/examples/marketing-analytics/measures.dax +110 -0
- package/library/examples/retail-analytics/README.md +439 -0
- package/library/examples/retail-analytics/data-model.md +288 -0
- package/library/examples/retail-analytics/measures.dax +481 -0
- package/library/examples/supply-chain/README.md +37 -0
- package/library/examples/supply-chain/data-model.md +69 -0
- package/library/examples/supply-chain/measures.dax +77 -0
- package/library/examples/udf-library/README.md +228 -0
- package/library/examples/udf-library/functions.dax +571 -0
- package/library/snippets/dax/README.md +292 -0
- package/library/snippets/dax/business-domains.md +576 -0
- package/library/snippets/dax/calculate-patterns.md +276 -0
- package/library/snippets/dax/calculation-groups.md +489 -0
- package/library/snippets/dax/error-handling.md +495 -0
- package/library/snippets/dax/iterators-and-aggregations.md +474 -0
- package/library/snippets/dax/kpis-and-metrics.md +293 -0
- package/library/snippets/dax/rankings-and-topn.md +235 -0
- package/library/snippets/dax/security-patterns.md +413 -0
- package/library/snippets/dax/text-and-formatting.md +316 -0
- package/library/snippets/dax/time-intelligence.md +196 -0
- package/library/snippets/dax/user-defined-functions.md +477 -0
- package/library/snippets/dax/virtual-tables.md +546 -0
- package/library/snippets/excel-formulas/README.md +84 -0
- package/library/snippets/excel-formulas/aggregations.md +330 -0
- package/library/snippets/excel-formulas/dates-and-times.md +361 -0
- package/library/snippets/excel-formulas/dynamic-arrays.md +314 -0
- package/library/snippets/excel-formulas/lookups.md +169 -0
- package/library/snippets/excel-formulas/text-functions.md +363 -0
- package/library/snippets/governance/naming-conventions.md +97 -0
- package/library/snippets/governance/review-checklists.md +107 -0
- package/library/snippets/power-query/README.md +389 -0
- package/library/snippets/power-query/api-integration.md +707 -0
- package/library/snippets/power-query/connections.md +434 -0
- package/library/snippets/power-query/data-cleaning.md +298 -0
- package/library/snippets/power-query/error-handling.md +526 -0
- package/library/snippets/power-query/parameters.md +350 -0
- package/library/snippets/power-query/performance.md +506 -0
- package/library/snippets/power-query/transformations.md +330 -0
- package/library/snippets/report-design/accessibility.md +78 -0
- package/library/snippets/report-design/chart-selection.md +54 -0
- package/library/snippets/report-design/layout-patterns.md +87 -0
- package/library/templates/data-models/README.md +93 -0
- package/library/templates/data-models/finance-model.md +627 -0
- package/library/templates/data-models/retail-star-schema.md +473 -0
- package/library/templates/excel/README.md +83 -0
- package/library/templates/excel/budget-tracker.md +432 -0
- package/library/templates/excel/data-entry-form.md +533 -0
- package/library/templates/power-bi/README.md +72 -0
- package/library/templates/power-bi/finance-report.md +449 -0
- package/library/templates/power-bi/kpi-scorecard.md +461 -0
- package/library/templates/power-bi/sales-dashboard.md +281 -0
- package/library/themes/excel/README.md +436 -0
- package/library/themes/power-bi/README.md +271 -0
- package/library/themes/power-bi/accessible.json +307 -0
- package/library/themes/power-bi/bi-superpowers-default.json +858 -0
- package/library/themes/power-bi/corporate-blue.json +291 -0
- package/library/themes/power-bi/dark-mode.json +291 -0
- package/library/themes/power-bi/minimal.json +292 -0
- package/library/themes/power-bi/print-friendly.json +309 -0
- package/package.json +93 -0
- package/skills/contributions/SKILL.md +267 -0
- package/skills/data-model-design/SKILL.md +470 -0
- package/skills/data-modeling/SKILL.md +254 -0
- package/skills/data-quality/SKILL.md +664 -0
- package/skills/dax/SKILL.md +708 -0
- package/skills/dax-doctor/SKILL.md +250 -0
- package/skills/dax-udf/SKILL.md +489 -0
- package/skills/deployment/SKILL.md +320 -0
- package/skills/excel-formulas/SKILL.md +463 -0
- package/skills/fabric-scripts/SKILL.md +454 -0
- package/skills/fast-standard/SKILL.md +509 -0
- package/skills/governance/SKILL.md +205 -0
- package/skills/migration-assistant/SKILL.md +292 -0
- package/skills/model-documenter/SKILL.md +244 -0
- package/skills/pbi-connect/SKILL.md +241 -0
- package/skills/power-query/SKILL.md +406 -0
- package/skills/project-kickoff/SKILL.md +907 -0
- package/skills/query-performance/SKILL.md +480 -0
- package/skills/report-design/SKILL.md +207 -0
- package/skills/report-layout/SKILL.md +298 -0
- package/skills/rls-design/SKILL.md +535 -0
- package/skills/semantic-model/SKILL.md +237 -0
- package/skills/testing-validation/SKILL.md +643 -0
- package/skills/theme-tweaker/SKILL.md +626 -0
- package/src/content/base.md +237 -0
- package/src/content/mcp-requirements.json +69 -0
- package/src/content/routing.md +203 -0
- package/src/content/skills/contributions.md +259 -0
- package/src/content/skills/data-model-design.md +462 -0
- package/src/content/skills/data-modeling.md +246 -0
- package/src/content/skills/data-quality.md +656 -0
- package/src/content/skills/dax-doctor.md +242 -0
- package/src/content/skills/dax-udf.md +481 -0
- package/src/content/skills/dax.md +700 -0
- package/src/content/skills/deployment.md +312 -0
- package/src/content/skills/excel-formulas.md +455 -0
- package/src/content/skills/fabric-scripts.md +446 -0
- package/src/content/skills/fast-standard.md +501 -0
- package/src/content/skills/governance.md +197 -0
- package/src/content/skills/migration-assistant.md +284 -0
- package/src/content/skills/model-documenter.md +236 -0
- package/src/content/skills/pbi-connect.md +233 -0
- package/src/content/skills/power-query.md +398 -0
- package/src/content/skills/project-kickoff.md +899 -0
- package/src/content/skills/query-performance.md +472 -0
- package/src/content/skills/report-design.md +199 -0
- package/src/content/skills/report-layout.md +290 -0
- package/src/content/skills/rls-design.md +527 -0
- package/src/content/skills/semantic-model.md +229 -0
- package/src/content/skills/testing-validation.md +635 -0
- package/src/content/skills/theme-tweaker.md +618 -0
package/.mcp.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"powerbi-remote": {
|
|
3
|
+
"type": "http",
|
|
4
|
+
"url": "https://api.fabric.microsoft.com/v1/mcp/powerbi"
|
|
5
|
+
},
|
|
6
|
+
"fabric-mcp-server": {
|
|
7
|
+
"type": "stdio",
|
|
8
|
+
"command": "npx",
|
|
9
|
+
"args": [
|
|
10
|
+
"-y",
|
|
11
|
+
"@microsoft/fabric-mcp@latest",
|
|
12
|
+
"server",
|
|
13
|
+
"start",
|
|
14
|
+
"--mode",
|
|
15
|
+
"all"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"powerbi-modeling-mcp": {
|
|
19
|
+
"type": "stdio",
|
|
20
|
+
"command": "node",
|
|
21
|
+
"args": [
|
|
22
|
+
"${CLAUDE_PLUGIN_ROOT}/bin/mcp/powerbi-modeling-launcher.js"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# BI Agent Superpowers
|
|
2
|
+
|
|
3
|
+
> **This file OVERRIDES the Universal Agent Base.**
|
|
4
|
+
> **Base**: `../.claude/CLAUDE.md`
|
|
5
|
+
> **Read order**: Base → This override → Project Entry Points
|
|
6
|
+
|
|
7
|
+
## Project Overrides
|
|
8
|
+
- Primary interface is the `super` CLI and the slash-command skills listed below.
|
|
9
|
+
- Adapters generate tool-specific configs; treat adapters as derived artifacts.
|
|
10
|
+
- No lessons/tasks files are required unless the user requests them.
|
|
11
|
+
- AI-generated code must include beginner-friendly comments and remain optimal for agent comprehension.
|
|
12
|
+
|
|
13
|
+
## Project Entry Points
|
|
14
|
+
- `AGENTS.md` (this file)
|
|
15
|
+
- `library/`
|
|
16
|
+
- `config.json`
|
|
17
|
+
|
|
18
|
+
AI-powered toolkit for Power BI, Fabric & Excel development.
|
|
19
|
+
|
|
20
|
+
Developed by **Lucas Sanchez** ([@luquimbo](https://github.com/luquimbo))
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Install globally
|
|
28
|
+
npm install -g @luquimbo/bi-superpowers
|
|
29
|
+
|
|
30
|
+
# Activate your license
|
|
31
|
+
super unlock
|
|
32
|
+
|
|
33
|
+
# Initialize in your project
|
|
34
|
+
super kickoff
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The `bi-superpowers kickoff` command generates the Claude Code plugin in your project.
|
|
38
|
+
|
|
39
|
+
Works with:
|
|
40
|
+
- **Claude Code** — Native plugin (skills + commands + MCP)
|
|
41
|
+
- **1code.dev** — Uses Claude Code SDK (full plugin support)
|
|
42
|
+
- **Claude Desktop** — Via MCPB extension (`super build-desktop`)
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Workflow Orchestration
|
|
47
|
+
|
|
48
|
+
1. **Plan Mode (when allowed)**: For non-trivial work (3+ steps or architectural decisions), use plan mode when the environment supports it or the user asks. Re-plan if context changes.
|
|
49
|
+
2. **Subagents (when available)**: Use subagents only if the environment provides them. Delegate research/exploration in parallel, one task per subagent.
|
|
50
|
+
3. **Self-Improvement Loop (context-aware)**: Capture corrections only if the repo uses a lessons file or the user asks. Keep rules concise. Review lessons only when such a file exists.
|
|
51
|
+
4. **Verification Before Done**: Do not mark complete without proof. Run tests/checks when available, document limitations if you cannot.
|
|
52
|
+
5. **Demand Elegance (balanced)**: For non-trivial changes, prefer the elegant solution; avoid hacky fixes.
|
|
53
|
+
6. **Autonomous Bug Fixing**: For bug reports, own the fix end-to-end using logs/tests as evidence.
|
|
54
|
+
|
|
55
|
+
## Task Management
|
|
56
|
+
|
|
57
|
+
1. **Plan First**: Write a plan to a task file only if the repo uses one or the user requests it.
|
|
58
|
+
2. **Verify Plan**: Check in before implementation when appropriate.
|
|
59
|
+
3. **Track Progress**: Mark items complete if tracking is in use.
|
|
60
|
+
4. **Explain Changes**: Provide high-level summaries at each step.
|
|
61
|
+
5. **Document Results**: Add a review section when task tracking is in scope.
|
|
62
|
+
6. **Capture Lessons**: Update lessons only when the repo uses it or the user requests it.
|
|
63
|
+
|
|
64
|
+
## Core Principles
|
|
65
|
+
|
|
66
|
+
- **Simplicity First**: Minimal, clear changes.
|
|
67
|
+
- **No Laziness**: Fix root causes, avoid temporary patches.
|
|
68
|
+
- **Minimal Impact**: Touch only what is necessary.
|
|
69
|
+
|
|
70
|
+
## Available Skills (24)
|
|
71
|
+
|
|
72
|
+
### Command Skills (11 Interactive Wizards)
|
|
73
|
+
|
|
74
|
+
| Skill | Purpose | Trigger |
|
|
75
|
+
|-------|---------|---------|
|
|
76
|
+
| `/project-kickoff` | Analyze and plan BI projects | "analyze project", "new project" |
|
|
77
|
+
| `/data-model-design` | Interactive star schema builder | "design model", "data model" |
|
|
78
|
+
| `/theme-tweaker` | Customize Power BI themes | "customize theme", "colors" |
|
|
79
|
+
| `/pbi-connect` | Connect to Power BI Desktop | "connect Power BI", "MCP" |
|
|
80
|
+
| `/rls-design` | Row-level security design | "RLS", "security" |
|
|
81
|
+
| `/fabric-scripts` | Microsoft Fabric automation | "Fabric", "scripts", "automation" |
|
|
82
|
+
| `/contributions` | Contribution guidelines | "contribute", "PR guidelines" |
|
|
83
|
+
| `/dax-doctor` | DAX debugging and optimization | "debug DAX", "fix measure", "DAX error" |
|
|
84
|
+
| `/model-documenter` | Semantic model documentation | "document model", "data dictionary" |
|
|
85
|
+
| `/migration-assistant` | Migration and upgrade wizard | "migrate", "convert to PBIP", "move to Fabric" |
|
|
86
|
+
| `/report-layout` | Report page layout planner | "report layout", "page design" |
|
|
87
|
+
|
|
88
|
+
### Reference Skills (13 Background Knowledge)
|
|
89
|
+
|
|
90
|
+
| Skill | Purpose | Trigger |
|
|
91
|
+
|-------|---------|---------|
|
|
92
|
+
| `/dax` | DAX writing assistance | "DAX", "measure", "calculated column" |
|
|
93
|
+
| `/power-query` | Power Query / M language | "Power Query", "M code" |
|
|
94
|
+
| `/data-modeling` | Star schema theory and patterns | "star schema", "modeling best practices" |
|
|
95
|
+
| `/excel-formulas` | Modern Excel formulas | "Excel formula", "XLOOKUP" |
|
|
96
|
+
| `/fast-standard` | FP&A Financial modeling (FAST) | "FAST standard", "financial model" |
|
|
97
|
+
| `/query-performance` | Performance optimization | "optimize", "slow", "performance" |
|
|
98
|
+
| `/data-quality` | Data profiling and validation | "data quality", "validation" |
|
|
99
|
+
| `/testing-validation` | DAX and data testing workflows | "testing", "test cases" |
|
|
100
|
+
| `/governance` | Naming conventions and standards | "naming convention", "governance" |
|
|
101
|
+
| `/semantic-model` | Semantic model best practices | "semantic model", "TMDL", "DirectLake" |
|
|
102
|
+
| `/report-design` | Report design and visualization | "chart type", "IBCS", "accessibility" |
|
|
103
|
+
| `/deployment` | CI/CD and deployment patterns | "CI/CD", "pipeline", "DevOps" |
|
|
104
|
+
| `/dax-udf` | DAX user-defined functions (UDFs) | "UDF", "DEFINE FUNCTION", "DAX Lib" |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Plugin System
|
|
109
|
+
|
|
110
|
+
BI Agent Superpowers generates a native Claude Code plugin from a single source of truth.
|
|
111
|
+
|
|
112
|
+
### Output Targets
|
|
113
|
+
|
|
114
|
+
| Target | Format | Output |
|
|
115
|
+
|--------|--------|--------|
|
|
116
|
+
| Claude Code / 1code.dev | Plugin | `.claude-plugin/`, `commands/`, `skills/`, `.mcp.json` |
|
|
117
|
+
| Claude Desktop | MCPB extension | `bi-superpowers.mcpb` (via `super build-desktop`) |
|
|
118
|
+
|
|
119
|
+
### Plugin Structure (generated by kickoff/recharge)
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
project/
|
|
123
|
+
├── .claude-plugin/plugin.json # Plugin manifest
|
|
124
|
+
├── .mcp.json # Power BI + Fabric MCPs
|
|
125
|
+
├── commands/*.md # 11 slash commands (interactive wizards)
|
|
126
|
+
├── skills/*/SKILL.md # 24 skills (all discoverable)
|
|
127
|
+
├── config.json # User preferences
|
|
128
|
+
└── library/ → symlink # Snippets, templates, themes
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Desktop Extension (generated by build-desktop)
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
desktop-extension/
|
|
135
|
+
├── manifest.json # MCPB v0.3 manifest
|
|
136
|
+
├── server.js # MCP server exposing skills as prompts
|
|
137
|
+
├── package.json # Dependencies
|
|
138
|
+
└── skills/ # Bundled at build time
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Run `bi-superpowers recharge` after modifying skills to regenerate the plugin.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Library Resources
|
|
146
|
+
|
|
147
|
+
The `library/` folder contains reusable assets:
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
library/
|
|
151
|
+
├── snippets/ # Code patterns
|
|
152
|
+
│ ├── dax/ # Time intelligence, rankings, CALCULATE
|
|
153
|
+
│ ├── power-query/ # Transformations, error handling
|
|
154
|
+
│ ├── excel-formulas/ # Dynamic arrays, lookups
|
|
155
|
+
│ ├── report-design/ # Chart selection, accessibility, layouts
|
|
156
|
+
│ └── governance/ # Naming conventions, review checklists
|
|
157
|
+
├── templates/ # Project templates
|
|
158
|
+
│ ├── power-bi/
|
|
159
|
+
│ ├── excel/
|
|
160
|
+
│ └── data-models/
|
|
161
|
+
├── themes/ # Visual themes
|
|
162
|
+
│ └── power-bi/ # JSON theme files
|
|
163
|
+
└── examples/ # Reference implementations
|
|
164
|
+
├── finance-reporting/
|
|
165
|
+
├── hr-analytics/
|
|
166
|
+
├── retail-analytics/
|
|
167
|
+
├── supply-chain/
|
|
168
|
+
└── marketing-analytics/
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Reference patterns in prompts:
|
|
172
|
+
```
|
|
173
|
+
"Using patterns from library/snippets/dax/time-intelligence.md,
|
|
174
|
+
create a rolling 12-month average measure"
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Configuration
|
|
180
|
+
|
|
181
|
+
Project-local user preferences live in `config.json`:
|
|
182
|
+
|
|
183
|
+
- This file is meant to be read by your AI tool as **context** (experience level, language, domain terms).
|
|
184
|
+
- `bi-superpowers kickoff` will create it automatically from the package template if it doesn't exist.
|
|
185
|
+
- The CLI stores selected AI tools in `.bi-superpowers.json` (also project-local) so `bi-superpowers recharge` knows what to regenerate.
|
|
186
|
+
|
|
187
|
+
```json
|
|
188
|
+
{
|
|
189
|
+
"experienceLevel": "intermediate", // beginner | intermediate | advanced
|
|
190
|
+
"language": "en",
|
|
191
|
+
"workArea": "finance",
|
|
192
|
+
"powerBIConnection": "desktop" // desktop | fabric | pbip
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Detailed Documentation
|
|
199
|
+
|
|
200
|
+
For comprehensive AI context and behavior guidelines, see:
|
|
201
|
+
- `src/content/base.md` - Core AI identity and guidelines
|
|
202
|
+
- `src/content/skills/*.md` - Individual skill definitions
|
|
203
|
+
- `src/content/routing.md` - Skill activation logic
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Project Types
|
|
208
|
+
|
|
209
|
+
| Type | Format | Best For |
|
|
210
|
+
|------|--------|----------|
|
|
211
|
+
| Desktop (.pbix) | Binary | Personal projects, quick prototypes |
|
|
212
|
+
| PBIP | Text (TMDL) | Team projects, CI/CD, code reviews |
|
|
213
|
+
| Fabric | Cloud | Enterprise, shared models, real-time collaboration |
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## MCP Integration
|
|
218
|
+
|
|
219
|
+
Connect AI assistants directly to Power BI and Excel:
|
|
220
|
+
|
|
221
|
+
**Power BI MCP** (via VS Code extension):
|
|
222
|
+
- Read/write measures and relationships
|
|
223
|
+
- Execute DAX queries
|
|
224
|
+
- Modify model structure
|
|
225
|
+
|
|
226
|
+
**Excel MCP**:
|
|
227
|
+
- Read/write cells and ranges
|
|
228
|
+
- Manage worksheets and tables
|
|
229
|
+
- Apply formatting
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Resources
|
|
234
|
+
|
|
235
|
+
| Resource | URL |
|
|
236
|
+
|----------|-----|
|
|
237
|
+
| GitHub | https://github.com/luquimbo/bi-superpowers |
|
|
238
|
+
| MCP Protocol | https://modelcontextprotocol.io |
|
|
239
|
+
| Power BI Docs | https://docs.microsoft.com/power-bi |
|
|
240
|
+
| DAX Guide | https://dax.guide |
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
**BI Agent Superpowers** - Developed by Lucas Sanchez ([@luquimbo](https://github.com/luquimbo))
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to BI Agent Superpowers will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Native Claude Code plugin structure at the project root:
|
|
12
|
+
- `.claude-plugin/plugin.json`
|
|
13
|
+
- `.mcp.json`
|
|
14
|
+
- `commands/`
|
|
15
|
+
- `skills/`
|
|
16
|
+
- Root plugin build script: `npm run build:plugin`
|
|
17
|
+
- Official Microsoft Modeling MCP launcher wrapper in `bin/mcp/powerbi-modeling-launcher.js`
|
|
18
|
+
- Central Microsoft MCP configuration module in `bin/lib/microsoft-mcp.js`
|
|
19
|
+
- Plugin build tests and MCP configuration tests
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Product direction is now plugin-first for Claude Code
|
|
23
|
+
- `bi-superpowers kickoff` now initializes the Claude Code plugin by default and only offers legacy adapters as optional compatibility outputs
|
|
24
|
+
- `bi-superpowers recharge` now regenerates the plugin first, then any configured legacy outputs
|
|
25
|
+
- `bi-superpowers mcp-setup` now writes official Microsoft MCP configurations from one shared source of truth
|
|
26
|
+
- `powerbi-remote` now uses the official HTTP endpoint instead of legacy SSE-style config
|
|
27
|
+
- `fabric-mcp-server` now uses Microsoft’s published `@microsoft/fabric-mcp@latest` command
|
|
28
|
+
- Power BI Modeling MCP now launches through the official Microsoft executable instead of `uvx`
|
|
29
|
+
- README, getting started, architecture docs, and source skills now describe the plugin-first workflow
|
|
30
|
+
|
|
31
|
+
### Deprecated
|
|
32
|
+
- Legacy adapters remain supported for compatibility, but new feature work is focused on the native Claude Code plugin
|
|
33
|
+
- Unofficial Excel MCP setup is no longer part of the main product path
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## [2.5.0] - 2026-01-30
|
|
38
|
+
|
|
39
|
+
### Major Architectural Improvements
|
|
40
|
+
|
|
41
|
+
This release includes significant enhancements to the codebase structure, testing, and AI tool support.
|
|
42
|
+
|
|
43
|
+
#### Added
|
|
44
|
+
- **Extended AI Tool Support**
|
|
45
|
+
- Added Kilocode adapter with MCP template support
|
|
46
|
+
- Improved ChatGPT custom instructions generation
|
|
47
|
+
- Enhanced Cursor rules generation
|
|
48
|
+
|
|
49
|
+
- **Enhanced CLI Commands**
|
|
50
|
+
- `bi-superpowers mcp-setup` / `bi-superpowers mcp` - Configure MCP servers for AI tools
|
|
51
|
+
- Improved `bi-superpowers scan` with `--skill` and `--tool` filtering options
|
|
52
|
+
- Better `bi-superpowers sentinel` with tool-specific watching
|
|
53
|
+
|
|
54
|
+
- **Testing Infrastructure**
|
|
55
|
+
- Added comprehensive test suite for CLI commands
|
|
56
|
+
- Test files for critical utilities (git.js, tui.js, generators)
|
|
57
|
+
- Node.js native test runner integration (`npm test`)
|
|
58
|
+
|
|
59
|
+
- **Code Quality**
|
|
60
|
+
- ESLint 9 configuration with flat config format
|
|
61
|
+
- Prettier formatting across all bin/ files
|
|
62
|
+
- Pre-pack validation script (`npm run check`)
|
|
63
|
+
|
|
64
|
+
#### Changed
|
|
65
|
+
- **Generator System Refactor**
|
|
66
|
+
- Moved generators to `bin/lib/generators/`
|
|
67
|
+
- Shared utilities in `generators/shared.js`
|
|
68
|
+
- Factory pattern with `generators/index.js`
|
|
69
|
+
|
|
70
|
+
- **Utility Organization**
|
|
71
|
+
- Consolidated utilities in `bin/utils/`
|
|
72
|
+
- Improved error handling patterns
|
|
73
|
+
- Better logging with `utils/logger.js`
|
|
74
|
+
|
|
75
|
+
#### Fixed
|
|
76
|
+
- ESLint 9 compatibility issues
|
|
77
|
+
- Code formatting inconsistencies
|
|
78
|
+
- Generator output path handling
|
|
79
|
+
|
|
80
|
+
#### Documentation
|
|
81
|
+
- Added npm publishing guide for passkey 2FA users
|
|
82
|
+
- Updated CLI command reference
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## [2.4.0] - 2026-01-29
|
|
87
|
+
|
|
88
|
+
### Two-Level Configuration Architecture
|
|
89
|
+
|
|
90
|
+
Major update introducing workspace and project level configurations with enhanced MCP support.
|
|
91
|
+
|
|
92
|
+
#### Added
|
|
93
|
+
- **Workspace Configuration** (`bi-workspace.json`)
|
|
94
|
+
- New versioned config file for bi-repo workspaces
|
|
95
|
+
- Shared MCP configuration for the entire team
|
|
96
|
+
- GitHub and Fabric MCP support at workspace level
|
|
97
|
+
- Changelog settings for all projects
|
|
98
|
+
|
|
99
|
+
- **Project Configuration** (`bi-project.json`)
|
|
100
|
+
- New versioned config file for individual projects
|
|
101
|
+
- Project-specific MCP settings (Power BI port, Fabric workspace ID)
|
|
102
|
+
- Changelog configuration per project
|
|
103
|
+
- Agent context customization
|
|
104
|
+
|
|
105
|
+
- **Changelog System**
|
|
106
|
+
- New `bi-superpowers changelog` command to generate changelog from Git history
|
|
107
|
+
- Automatic categorization of commits (Added, Changed, Fixed, etc.)
|
|
108
|
+
- Integration with agent context (Recent Changes section in CLAUDE.md)
|
|
109
|
+
- Configurable number of recent changes to include
|
|
110
|
+
|
|
111
|
+
- **Enhanced MCP Setup**
|
|
112
|
+
- `--github user/repo` flag for GitHub MCP configuration
|
|
113
|
+
- `--fabric [workspaceId]` flag for Fabric remote MCP
|
|
114
|
+
- Support for both workspace and project level MCP configs
|
|
115
|
+
|
|
116
|
+
#### Changed
|
|
117
|
+
- **super setup** now includes MCP configuration wizard
|
|
118
|
+
- **super add** creates `bi-project.json` and initial `CHANGELOG.md`
|
|
119
|
+
- Separated local config (`.bi-superpowers.json`) from versioned config
|
|
120
|
+
- MCP configs generated for Claude Code, Cursor, and VS Code
|
|
121
|
+
|
|
122
|
+
#### Technical
|
|
123
|
+
- Added `execGitCommand` and `getFileLastModified` to git utilities
|
|
124
|
+
- New `changelog.js` command module
|
|
125
|
+
- Extended `mcp-setup.js` with GitHub and Fabric support
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## [2.1.0] - 2026-01-20
|
|
130
|
+
|
|
131
|
+
### Single Source of Truth Architecture
|
|
132
|
+
|
|
133
|
+
Major restructuring to support multiple AI tools from a single skill definition.
|
|
134
|
+
|
|
135
|
+
#### Added
|
|
136
|
+
- **Multi-AI Tool Support** - Skills now work with Claude Code, VS Code, and Open Code (any AI assistant)
|
|
137
|
+
- **Adapter System** - Automatic generation of tool-specific configurations from `src/content/`
|
|
138
|
+
- **super recharge** command - Regenerate all AI tool configs after skill updates
|
|
139
|
+
- **Symlink Support** - `.bi-superpowers` symlink for easy access to library
|
|
140
|
+
|
|
141
|
+
#### Changed
|
|
142
|
+
- **Reorganized Structure**
|
|
143
|
+
- Skills moved from `agents/skills/*/SKILL.md` to `src/content/skills/*.md`
|
|
144
|
+
- Snippets moved from `agents/snippets/` to `library/snippets/`
|
|
145
|
+
- Templates moved from `agents/templates/` to `library/templates/`
|
|
146
|
+
- Themes moved from `agents/styles/` to `library/themes/`
|
|
147
|
+
- **CLI Updates**
|
|
148
|
+
- `bi-superpowers kickoff` now prompts for AI tool selection
|
|
149
|
+
- Removed `bi-superpowers setup` (replaced by `bi-superpowers kickoff`)
|
|
150
|
+
- Added interactive menu for tool configuration
|
|
151
|
+
- **Configuration**
|
|
152
|
+
- Project-specific config now saved as `.bi-superpowers.json` (created by `bi-superpowers kickoff` in each project)
|
|
153
|
+
- Package template config remains as `config.json` and `config.example.json`
|
|
154
|
+
- Config now tracks selected AI tools for sync
|
|
155
|
+
|
|
156
|
+
#### Documentation
|
|
157
|
+
- Updated all documentation to reflect new paths
|
|
158
|
+
- Added architecture diagrams for Single Source of Truth
|
|
159
|
+
- Improved JSDoc comments in CLI code
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## [2.0.0] - 2026-01-20
|
|
164
|
+
|
|
165
|
+
### Initial Public Release
|
|
166
|
+
|
|
167
|
+
This is the first public release of BI Agent Superpowers - an AI-powered toolkit for Power BI, Fabric & Excel development.
|
|
168
|
+
|
|
169
|
+
**Developed by Lucas Sanchez ([@luquimbo](https://github.com/luquimbo))**
|
|
170
|
+
|
|
171
|
+
### Features
|
|
172
|
+
|
|
173
|
+
#### Interactive Skills
|
|
174
|
+
- **Project Kickoff** - Guided BI project planning wizard
|
|
175
|
+
- **Data Model Design** - Star schema builder with best practices
|
|
176
|
+
- **Theme Tweaker** - Power BI theme customization assistant
|
|
177
|
+
- **PBI Connect** - Auto-detect Power BI Desktop for MCP connection
|
|
178
|
+
- **RLS Design** - Row-Level Security implementation wizard
|
|
179
|
+
- **Testing & Validation** - DAX and data testing workflows
|
|
180
|
+
- **Query Performance** - DAX and model optimization
|
|
181
|
+
- **Data Quality** - Data profiling and validation
|
|
182
|
+
- **Fabric Scripts** - Fabric automation script guidance
|
|
183
|
+
- **FAST Standard** - Excel financial modeling standards
|
|
184
|
+
|
|
185
|
+
#### DAX Snippets
|
|
186
|
+
- Time intelligence (YTD, QTD, MTD, rolling periods)
|
|
187
|
+
- CALCULATE patterns and filter context
|
|
188
|
+
- Ranking and TopN patterns
|
|
189
|
+
- Iterator functions (SUMX, AVERAGEX, etc.)
|
|
190
|
+
- KPI and conditional formatting
|
|
191
|
+
- Error handling patterns
|
|
192
|
+
- Security patterns (RLS/OLS)
|
|
193
|
+
- User-defined functions
|
|
194
|
+
|
|
195
|
+
#### Power Query Templates
|
|
196
|
+
- Data cleaning and transformation
|
|
197
|
+
- Connection templates (SQL, SharePoint, API, Azure)
|
|
198
|
+
- Parameter patterns and environment configuration
|
|
199
|
+
- Error handling patterns
|
|
200
|
+
- Performance optimization
|
|
201
|
+
|
|
202
|
+
#### Excel Formulas
|
|
203
|
+
- Dynamic arrays (FILTER, SORT, UNIQUE, SORTBY)
|
|
204
|
+
- Lookup patterns (XLOOKUP, INDEX/MATCH)
|
|
205
|
+
- LET and LAMBDA patterns
|
|
206
|
+
- Aggregation functions
|
|
207
|
+
- Date and time calculations
|
|
208
|
+
|
|
209
|
+
#### Power BI Themes
|
|
210
|
+
- `bi-superpowers-default.json` - IBCS-inspired default
|
|
211
|
+
- `corporate-blue.json` - Professional corporate
|
|
212
|
+
- `dark-mode.json` - Dark theme
|
|
213
|
+
- `accessible.json` - High contrast accessibility
|
|
214
|
+
- `minimal.json` - Clean minimalist
|
|
215
|
+
- `print-friendly.json` - Optimized for print
|
|
216
|
+
|
|
217
|
+
#### Data Model Templates
|
|
218
|
+
- Retail Star Schema
|
|
219
|
+
- Finance Model
|
|
220
|
+
|
|
221
|
+
#### MCP Integration
|
|
222
|
+
- Power BI Desktop connection support
|
|
223
|
+
- Excel MCP Server support
|
|
224
|
+
- PBIP (Power BI Project) file support
|
|
225
|
+
- Fabric workspace connection
|
|
226
|
+
|
|
227
|
+
### Documentation
|
|
228
|
+
- Comprehensive README with project type guides
|
|
229
|
+
- AGENTS.md with MCP setup instructions
|
|
230
|
+
- ARCHITECTURE.md for system design
|
|
231
|
+
- SECURITY.md for best practices
|
|
232
|
+
- CONTRIBUTING.md for community guidelines
|
|
233
|
+
- GETTING-STARTED.md quick start guide
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Version History
|
|
238
|
+
|
|
239
|
+
| Version | Date | Highlights |
|
|
240
|
+
|---------|------|------------|
|
|
241
|
+
| 2.5.0 | 2026-01-30 | Major architectural improvements, extended AI tool support, testing infrastructure |
|
|
242
|
+
| 2.4.0 | 2026-01-29 | Two-level configuration, changelog system, enhanced MCP setup |
|
|
243
|
+
| 2.1.0 | 2026-01-20 | Single Source of Truth architecture, multi-AI tool support |
|
|
244
|
+
| 2.0.0 | 2026-01-20 | Initial public release |
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## Getting Started
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
# Install globally
|
|
252
|
+
npm install -g @luquimbo/bi-superpowers
|
|
253
|
+
|
|
254
|
+
# Initialize in your project
|
|
255
|
+
cd your-project
|
|
256
|
+
super kickoff
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Contributing
|
|
262
|
+
|
|
263
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for how to submit changes to this project.
|
|
264
|
+
|
|
265
|
+
When submitting a pull request, please update this CHANGELOG with your changes under the `[Unreleased]` section.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 BI Agent Superpowers contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|