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
/plugin marketplace add data-goblin/power-bi-agentic-development
/plugin install tabular-editor@power-bi-agentic-developmentWhat 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-development2Manually: put the files in place
.claude/commands/suggest-rule.mdCall it with /suggest-rule. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/suggest-rule.mdCall it with /prompts:suggest-rule. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/suggest-rule.prompt.mdManually: put the files in place
.gemini/commands/suggest-rule.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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.