Skip to main content
subagent CX Codex

r-reviewer — Claude Code subagent: R visual script validation

r-reviewer validates R visual scripts for Power BI before presenting them to the user: checks ggplot2 code, platform conventions, and gives design feedback.

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/r-reviewer.agent.md
Open on GitHub

What r-reviewer does

The subagent reads a finished R script and checks seven requirements: presence of print(p) at the end, absence of dataset definition (Power BI injects it), index-based column access (dataset[,1]), use of allowed packages only (ggplot2, dplyr, tidyr, ggrepel, patchwork, cowplot, corrplot, viridis, RColorBrewer, forecast, pheatmap, treemap, lattice), no network requests, empty data handling, and single plot output. Gives up to three design notes: suggests theme_minimal(), hex color codes instead of defaults, explicit factor levels for sorting, adequate margins (plot.margin).

Returns a list of failed checklist items, recommendations, and a verdict of READY or NEEDS CHANGES. Uses Read, Grep, Glob tools and the sonnet model. Requires R and listed packages for local execution.

What it helps with

  • validate an R script before sending it to Power BI
  • catch missing print(p) or forbidden packages
  • get feedback on plot colors and margins

Example prompts for the agent

  • Check this violin plot script before showing it to the user
  • Run r-reviewer on violin_plot.R
  • Have the r-reviewer subagent review the new chart

How to install r-reviewer

Manually: put the files in place

.github/agents/r-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 r-reviewer

How to install r-reviewer in Claude Code?

Run /plugin marketplace add data-goblin/power-bi-agentic-development, then /plugin install reports@power-bi-agentic-development. The subagent file will be at .claude/agents/r-reviewer.md.

What does r-reviewer do?

Validates R scripts for Power BI visuals: checks required calls, data access, package set, absence of networking, and gives design feedback on plots.

Which packages are allowed in r-reviewer?

ggplot2, dplyr, tidyr, ggrepel, patchwork, cowplot, corrplot, viridis, RColorBrewer, forecast, pheatmap, treemap, lattice. Packages with network requests are forbidden.

Similar subagents

All subagents for Data and databases →

From the same set59

The whole set →
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 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