Agent skill · Security

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".

data-goblingithub.com/data-goblinGitHub ↗
claude-codecopilotships scriptsGPL-3.0
Install
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.

Facts
Files in the skill folder: 17
SKILL.md size: 17 KB
Bundled scripts: yes
Path: plugins/tabular-editor/skills/bpa-rules/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 833
Language: C#

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Primary Workflow: Interactive Q&A Discovery (Double Diamond)
  3. Diamond 1: Requirements Gathering (Phases 1-2)
  4. Diamond 2: Rule Generation (Phases 3-4)
  5. When to Skip Q&A
  6. Critical
  7. Tabular Editor Compatibility
  8. Line Endings (CRLF Required)
  9. File Paths
  10. JSON Format Requirements
  11. Regex Expression Syntax
  12. Correct Scope Names
  13. Validation Script
  14. About BPA rules
Ships with 16 files
  • examples/README.md
  • examples/comprehensive-rules.json
  • examples/course-3-business-case-bpa-rules.json
  • examples/microsoft-analysis-services-rules.json
  • examples/model-with-bpa-annotations.tmdl
  • examples/power-query-operations-rules.json
  • examples/te3-preferences-sample.json
  • references/expression-syntax.md
  • references/model-investigation.md
  • references/quick-reference.md
  • references/rule-schema.md
  • references/te-compatibility.md
  • references/tmdl-annotations.md
  • schema/README.md
  • schema/bparules-schema.json
  • scripts/validate_rules.py
Commands it runs
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
More from power-bi-agentic-development
All skills →
About this skill
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.

Keep going