power-bi
Power BI development with PBIP format — TMDL models, Power Query (M), DAX measures, star schema design, report authoring, publishing to Power BI Service, scheduled refresh, and connector troubleshooting. USE WHEN user mentions Power BI, PBIP, TMDL, DAX measures, Power Query, semantic model, PBI report, star schema for PBI, publish to Power BI, scheduled refresh, data gateway, PBI connector, cost management connector, EA connector, Power BI template app, or any Power BI development task. Also use when editing .tmdl, .pq, .pbip, .pbir, .pbism files, or working with HyperaTheme.json.
What this skill does
# Power BI Development Skill
End-to-end Power BI project development using the PBIP (Power BI Project) format — the git-friendly, text-based format for version-controlled Power BI solutions.
## When This Skill Applies
- Creating or modifying Power BI semantic models (TMDL files)
- Writing or debugging Power Query (M) expressions (.pq files)
- Authoring DAX measures
- Designing star schema data models
- Publishing reports to Power BI Service
- Configuring scheduled refresh and data gateways
- Troubleshooting PBI connectors (especially Azure Cost Management / EA)
- Working with any .tmdl, .pq, .pbip, .pbir, .pbism files
## PBIP Project Structure
```
ProjectName/
├── ProjectName.pbip # Open this in PBI Desktop
├── ProjectName.Report/
│ ├── report.json # Report visuals (edit in PBI Desktop)
│ ├── definition.pbir # Report definition pointer
│ └── StaticResources/
│ └── SharedResources/BaseThemes/ # Custom themes (.json)
├── ProjectName.SemanticModel/
│ ├── definition.pbism # Semantic model pointer
│ └── definition/
│ ├── model.tmdl # Model-level settings
│ ├── tables/ # Table definitions + measures (.tmdl)
│ ├── expressions/ # Power Query scripts (.pq)
│ └── relationships.tmdl # Star schema joins
├── scripts/ # Python automation (optional)
└── docs/ # Documentation
```
## Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| NewProject | "create PBI project", "scaffold PBIP", "new Power BI project" | `workflows/new-project.md` |
| AddTable | "add table", "new fact table", "new dimension", "add PQ source" | `workflows/add-table.md` |
| AddMeasure | "add DAX measure", "create measure", "new KPI" | `workflows/add-measure.md` |
| DataModeling | "star schema", "add relationship", "data model design" | `workflows/data-modeling.md` |
| PublishRefresh | "publish to service", "scheduled refresh", "data gateway" | `workflows/publish-refresh.md` |
| ConnectorAuth | "connector auth", "EA connector", "cost management connector", "PBI sign in failed" | `workflows/connector-auth.md` |
| Troubleshooting | "PBI error", "refresh failed", "data not loading", "type error" | `workflows/troubleshooting.md` |
## Reference Files
Read these as needed — don't load all at once:
| Reference | When to Read | File |
|-----------|-------------|------|
| TMDL Syntax | Writing or editing .tmdl files | `references/tmdl-syntax.md` |
| Power Query Patterns | Writing or editing .pq files | `references/power-query-patterns.md` |
| DAX Patterns | Writing DAX measures | `references/dax-patterns.md` |
| Star Schema Guide | Data model design decisions | `references/star-schema-guide.md` |
| PBI Service & Gateway | Publishing and refresh config | `references/pbi-service-gateway.md` |
## Tools
### File Operations (PBIP Development)
| Tool | Use For |
|------|---------|
| **Read** | Read .tmdl, .pq, .pbip, .pbir, .pbism, report.json, theme.json files |
| **Write** | Create new .tmdl, .pq, .json files for new tables, expressions, themes |
| **Edit** | Modify existing .tmdl files (add measures, columns), edit .pq expressions, update relationships.tmdl |
| **Glob** | Find files by pattern: `**/*.tmdl`, `**/*.pq`, `**/expressions/*.pq` |
| **Grep** | Search across TMDL/PQ files: find measure names, lineageTags, column references |
### Code Search & Navigation
| Tool | Use For |
|------|---------|
| **Grep** `pattern: "lineageTag"` | Verify lineageTag uniqueness across all .tmdl files |
| **Grep** `pattern: "displayFolder"` | List all measure folders for organization |
| **Grep** `pattern: "USERELATIONSHIP"` | Find measures using inactive relationships |
| **Grep** `pattern: "isActive: false"` | Find inactive relationships that need USERELATIONSHIP |
| **Glob** `pattern: "**/*.pq"` | List all Power Query expressions |
| **Glob** `pattern: "**/tables/*.tmdl"` | List all table definitions |
### Automation & Scripting
| Tool | Use For |
|------|---------|
| **Bash** | Run Python scripts: `python scripts/export_billing_data.py --period YYYYMM` |
| **Bash** | Run anomaly detection: `python scripts/detect_anomalies.py --data-folder ./data` |
| **Bash** | Git operations on PBIP files (commit, diff, branch) |
| **Bash** | Install Python dependencies: `pip install -r scripts/requirements.txt` |
| **Bash** | Azure CLI for data export auth: `az login`, `az account set` |
### Browser Automation (Power BI Service)
| Tool | Use For |
|------|---------|
| **Browser tools** (mcp__claude-in-chrome__*) | Navigate Power BI Service web UI |
| **navigate** | Open Power BI workspaces, dataset settings, refresh history |
| **form_input** | Configure scheduled refresh, data source credentials, parameters |
| **get_page_text** / **read_page** | Read refresh history, error messages, dataset settings |
| **javascript_tool** | Interact with PBI Service UI elements |
| **tabs_create_mcp** | Open new tabs for PBI Service pages |
| **gif_creator** | Record multi-step PBI Service configuration for documentation |
### Research & Documentation
| Tool | Use For |
|------|---------|
| **WebSearch** | Look up DAX functions, TMDL syntax changes, PBI release notes |
| **WebFetch** | Fetch Microsoft Learn docs for PBI/DAX/M reference |
| **microsoft_docs_search** (MCP) | Search official Microsoft PBI documentation |
| **microsoft_docs_fetch** (MCP) | Fetch full PBI documentation pages |
| **microsoft_code_sample_search** (MCP) | Find DAX/M code samples from Microsoft docs |
| **context7** (MCP) | Fetch current library docs for Azure SDK, PBI REST API |
### Data Inspection
| Tool | Use For |
|------|---------|
| **Read** | Inspect CSV billing exports (preview first rows) |
| **Bash** `wc -l` | Count rows in large CSV files |
| **Bash** `head -5` | Preview CSV headers and first rows |
| **Grep** on CSV | Search for specific resource groups, subscriptions, or cost values |
### Common Tool Sequences
**Adding a new measure:**
1. `Grep` for existing lineageTags → ensure uniqueness
2. `Read` _Measures.tmdl → understand patterns
3. `Edit` _Measures.tmdl → add the new measure
**Adding a new table:**
1. `Write` expressions/NewTable.pq → create PQ expression
2. `Write` tables/NewTable.tmdl → create table definition
3. `Edit` relationships.tmdl → add relationship
4. `Grep` for lineageTags → verify no conflicts
**Troubleshooting connector auth:**
1. `Read` workflows/connector-auth.md → get diagnosis steps
2. Browser tools → navigate to EA portal or PBI Service settings
3. `Read` project memory → check known EA enrollment details
**Publishing and refresh:**
1. Browser tools → navigate to PBI Service workspace
2. `read_page` → check current dataset settings
3. `form_input` → configure refresh schedule
4. `get_page_text` → verify refresh history
## Critical Rules
1. **PBIP format only** — Never suggest .pbix for version-controlled projects. PBIP is the git-friendly format (TMDL = text, PQ = text, clean diffs).
2. **Localization awareness** — Ask the user what language their labels should be in. For Brazilian projects, use pt-BR labels, BRL currency format (`R$ #,##0.00`), and Portuguese month names.
3. **Star schema discipline** — All relationships must be M:1 from fact to dimension tables. Use `crossFilteringBehavior: oneDirection`. Use `isActive: false` + `USERELATIONSHIP()` in DAX for ambiguous paths (e.g., multiple date relationships).
4. **Measures table pattern** — All DAX measures go in a dedicated `_Measures` table (calculated table with `ROW("MeasureColumn", 0)`). Organize measures into `displayFolder` groups.
5. **Power Query parameter** — Use a `Parameter_ExportFolder` parameter for folder-based CSV ingestion. This makes the data source path configurable without editing PQ code.
6. **lineageTag convention** — Every table, measure, column, and relationship needs aRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.