Skip to main content
command CX Codex

suggest-rule — Claude Code command: what it does, how to install

suggest-rule generates Best Practice Analyzer rules for Tabular Editor from plain text requirements or model files.

GPL-3.0 ★ 1,104 updated 2026-10-28

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add data-goblin/power-bi-agentic-development
/plugin install tabular-editor@power-bi-agentic-development
Open on GitHub

What suggest-rule does

The command constructs complete JSON entries compatible with the Tabular Editor Best Practice Analyzer. It accepts either an informal prompt explaining the standard to enforce or a path pointing to a semantic model. During execution, it inspects references/expression-syntax.md and checks examples/comprehensive-rules.json to prevent duplicated logic and verify supported properties.

The resulting payload includes target object scopes, severity ratings between 1 and 3, a standard or custom category, and Dynamic LINQ filter expressions. Automated remediations via FixExpression are only included when edits are straightforward and risk-free.

Execution relies on the sonnet model configuration. Because rule validation references external repository guides inside bpa-rules, having the companion skill installed is necessary for schema verification.

What it helps with

  • construct Dynamic LINQ filters for DAX measure diagnostics
  • produce structured BPA rule definitions in JSON format
  • identify enforcement opportunities directly from a tabular model file
  • assign appropriate severity and scope settings to custom rules

Example prompts for the agent

  • /suggest-rule Make a rule that flags measures using CALCULATE without filters
  • /suggest-rule ./models/sales.bim

How to install suggest-rule

1Plugin marketplace

/plugin marketplace add data-goblin/power-bi-agentic-development
/plugin install tabular-editor@power-bi-agentic-development

2Manually: put the files in place

.claude/commands/suggest-rule.md

Call it with /suggest-rule. For all projects use ~/.claude/commands/

Questions about suggest-rule

How to install suggest-rule in Claude Code?

Register the source repository with /plugin marketplace add data-goblin/power-bi-agentic-development, then run /plugin install tabular-editor@power-bi-agentic-development.

What does suggest-rule do?

It translates your modeling requirements or model structure into ready-to-use Tabular Editor Best Practice Analyzer rules written in Dynamic LINQ.

What model does suggest-rule run on?

The command frontmatter configures it to run on the sonnet model.

Similar slash commands

All slash commands for Data and databases →

From the same set59

The whole set →
r-reviewer r-reviewer validates R visual scripts for Power BI before presenting them to the user: checks ggplot2 code, platform conventions, and gives design feedback. CX Codex +1 ★ 1,104repo stars python-reviewer python-reviewer reviews Python visual scripts before placing them into Power BI. It catches banned libraries, layout clipping, and missing display calls. CX Codex +1 ★ 1,104repo stars svg-reviewer svg-reviewer is a Claude Code subagent that checks SVG DAX measures for markup and DAX issues and comments on their design before they are shared with a user. CX Codex +1 ★ 1,104repo stars deneb-reviewer deneb-reviewer validates Vega and Vega-Lite specs for Power BI before presenting them to the user. Catches syntax errors, Deneb convention violations, and offers design feedback. CX Codex +1 ★ 1,104repo stars migrating-fabric-trial-capacities migrating-fabric-trial-capacities is a Claude Code command that moves Microsoft Fabric workspaces from trial to production capacity through fab CLI, logging each step. CX Codex +1 ★ 1,104repo stars dax A skill for diagnosing and speeding up DAX queries in Power BI semantic models, working through slow measures tier by tier. CX Codex +1 ★ 1,104repo stars bpa-expression-helper bpa-expression-helper — a subagent for debugging, fixing, and explaining Best Practice Analyzer rule expressions with Dynamic LINQ and TOM properties in Power BI. CX Codex +1 ★ 1,104repo stars query-listener query-listener — a Claude Code subagent that hooks into the local Analysis Services instance and grabs the DAX a Power BI Desktop visual sends. Fire it off when you need to see the query behind a click. CX Codex +1 ★ 1,104repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open