Skip to main content
subagent CX Codex

python-reviewer — Claude Code subagent: features and setup

python-reviewer reviews Python visual scripts before placing them into Power BI. It catches banned libraries, layout clipping, and missing display calls.

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

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/python-reviewer.agent.md
Open on GitHub

What python-reviewer does

Running on the Sonnet model, this subagent relies on Read, Grep, and Glob to inspect Python visualization files. Its primary goal is ensuring code aligns with Power BI constraints before you test it on a canvas. Network requests or file downloads cause immediate failures because the target runtime environment forbids outbound traffic.

The review enforces strict platform boundaries. Scripts must not instantiate a dataset variable, as Power BI injects this DataFrame automatically. Only approved packages pass: pandas, numpy, matplotlib, seaborn, scipy, scikit-learn, statsmodels, and pillow. Plotly, Bokeh, and Altair are flagged as errors.

Formatting checks require proper 72 DPI dimensions, muted colors, and a tight_layout() call to prevent clipped labels. Omitting plt.show() on the final line leaves the visual completely blank, so the agent marks the script as needing changes until that call is added.

What it helps with

  • validate Power BI Python visual scripts before testing them on a canvas
  • block unauthorized packages and network calls in visualization code
  • prevent chart clipping by checking 72 DPI dimensions and tight layout calls
  • catch missing plt.show calls and unhandled empty datasets

Example prompts for the agent

  • Review my distribution plot script with python-reviewer before putting it into Power BI
  • Run python-reviewer on visual.py to check for Power BI compatibility

How to install python-reviewer

Manually: put the files in place

.github/agents/python-reviewer.agent.md

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about python-reviewer

How to install python-reviewer in Claude Code?

Run /plugin marketplace add data-goblin/power-bi-agentic-development, then run /plugin install reports@power-bi-agentic-development.

What does python-reviewer do?

It reviews matplotlib and seaborn scripts against Power BI runtime rules, flags invalid imports or missing display calls, and returns a READY or NEEDS CHANGES verdict.

Which Python libraries are allowed by python-reviewer?

The subagent allows matplotlib, seaborn, numpy, pandas, scipy, scikit-learn, statsmodels, and pillow. Interactive plotting engines such as Plotly or Bokeh fail the review.

Similar subagents

All subagents for Code review and refactoring →

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 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 suggest-rule suggest-rule generates Best Practice Analyzer rules for Tabular Editor from plain text requirements or model files. 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