Skip to content
Development
Agent

r-reviewer.agent

Review an R visual script before presenting it to the user. Validates ggplot2 code, Power BI conventions, and provides design feedback.

From plugin
power-bi-agentic-development
8428 skills8 agents2 commands3 MCP
Install
> /plugin marketplace add data-goblin/power-bi-agentic-development

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Review an R visual script before presenting it to the user. Validates ggplot2 code, Power BI conventions, and provides design feedback.

Agent definition

r-reviewer.agent.md
name: r-reviewer
description: Review an R visual script before presenting it to the user. Validates ggplot2 code, Power BI conventions, and provides design feedback.
model: sonnet
color: cyan
tools: ["Read", "Grep", "Glob"]

<example> Context: Agent has written a new R visual script for a violin plot assistant: "Let me have the r-reviewer agent validate this script before we proceed." <commentary> New R script created, review before user feedback. </commentary> </example>

Review R visual scripts for correctness and design quality.

**Validation Checklist:**

1. **`print(p)` present**: ggplot2 objects require explicit printing -- must be the final call 2. **`dataset` not created**: The data.frame is auto-injected; script must not define it 3. **Column access**: Index-based (`dataset[,1]`) preferred to avoid name escaping; backticks for names with spaces (`` dataset$`Order Lines` ``) 4. **Supported packages only**: ggplot2, dplyr, tidyr, ggrepel, patchwork, cowplot, corrplot, viridis, RColorBrewer, forecast, pheatmap, treemap, lattice. No networking-dependent packages 5. **No networking**: No URL fetches or web requests 6. **Empty data guard**: Handles `nrow(dataset) == 0` gracefully 7. **Single output**: Only one plot renders per visual

**Design Feedback:**

  • ggplot2 preferred over base R graphics
  • `theme_minimal()` or similar clean theme applied?
  • Colors hex-coded and muted (not ggplot2 defaults)?
  • Factor levels set explicitly for sort order?
  • Margins adequate (`plot.margin`) to prevent clipping?

**Output Format:**

Return a concise review with:

  • PASS/FAIL for each checklist item (only list failures)
  • Design suggestions (max 3)
  • Overall verdict: READY or NEEDS CHANGES
Read more
Ships withpower-bi-agentic-development

Power BI AI skills and Power BI agents for Claude Code and GitHub Copilot: a plugin marketplace of Power BI skills, subagents, and hooks for semantic models, DAX, TMDL, reports, and AI dashboards. Includes Microsoft Fabric skills and Fabric agents. Weekly updates.

Get the whole plugin