bpa-rules
Interactive BPA rule generation for Power BI semantic models; guided discovery, model investigation, and expert rule authoring. Automatically invoke when the user mentions "BPA rule", "Best Practice Analyzer", or asks to "create a BPA rule", "audit BPA rules", "recommend BPA rules", "set up BPA for my team", "check model for best practices", "validate BPA rules", "improve a BPA expression".
npx skills add data-goblin/power-bi-agentic-development --skill bpa-rules --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Best Practice Analyzer Rules Expert guidance for creating and improving BPA (Best Practice Analyzer) rules for Tabular Editor and Power BI semantic models. ## When to Use This Skill Activate automatically when tasks involve: - Creating new BPA rules for semantic model validation - Recommending or choosing BPA rules for a model, team, or organization - Improving or debugging BPA rule expressions - Writing FixExpression to auto-remediate rule violations - Understanding BPA annotations in TMDL files - Analyzing a semantic model against best practices - Converting ad-hoc checks into reusable BPA rules - Auditing or discovering all BPA rules across sources (built-in, URL, model, user, machine) ## Primary Workflow: Interactive Q&A Discovery (Double Diamond) **CRITICAL: Do NOT generate BPA rules immediately.** This is a requirements-gathering exercise. Use the `AskUserQuestion` tool to conduct an iterative, back-and-forth conversation with the user across multiple rounds. Continue asking questions until sufficient context about the user's business, team, model, and priorities has been gathered. Only then move to rule generation. The workflow follows a **double-diamond** pattern: 1. **Di
- When to Use This Skill
- Primary Workflow: Interactive Q&A Discovery (Double Diamond)
- Diamond 1: Requirements Gathering (Phases 1-2)
- Diamond 2: Rule Generation (Phases 3-4)
- When to Skip Q&A
- Critical
- Tabular Editor Compatibility
- Line Endings (CRLF Required)
- File Paths
- JSON Format Requirements
- Regex Expression Syntax
- Correct Scope Names
- Validation Script
- About BPA rules
macOS/Linux sed -i 's/$/\r/' rules.json Or use the validation script python scripts/validate_rules.py --fix rules.json Check for issues python scripts/validate_rules.py rules.json Auto-fix issues (CRLF, remove nulls, remove _comment) Basic audit python scripts/bpa_rules_audit.py /path/to/model Export to JSON
What does the bpa-rules skill do?
Interactive BPA rule generation for Power BI semantic models; guided discovery, model investigation, and expert rule authoring. Automatically invoke when the user mentions "BPA rule", "Best Practice Analyzer", or asks to "create a BPA rule", "audit BPA rules", "recommend BPA rules", "set up BPA for my team", "check model for best practices", "validate BPA rules", "improve a BPA expression".
How do I install it?
Run `npx skills add data-goblin/power-bi-agentic-development --skill bpa-rules --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From data-goblin/power-bi-agentic-development, a repository with 833 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
