Skip to content
Automation
Skill

/review-r

Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files. Make sure to use this skill whenever the user wants their existing R code evaluated or audited — not when

From plugin
auto-empirical-research-skills
4.9k200 skills

Claude Code

$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill review-r --agent claude-code

SKILL.md

review-r.SKILL.md
name: review-r
description: >-
  Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files. Make sure to use this skill whenever the user wants their existing R code evaluated or audited — not when they want new analysis written. Triggers include: "review my R script", "check my R code", "is my code replication-ready", "audit this R file", "does this code follow conventions", "will this reproduce", "check my analysis script", "code review", "review-r", or when the user has an existing .R file and wants quality feedback rather than new code.
argument-hint: "[filename, 'all', or analysis name pattern]"
allowed-tools: ["Read", "Grep", "Glob", "Write", "Task", "AskUserQuestion"]

Review R Scripts

Run the comprehensive R code review protocol.

Steps

1. **Identify scripts to review:**

  • If `$ARGUMENTS` is a specific `.R` filename: review that file only
  • If `$ARGUMENTS` is a name pattern (e.g., `model_name`): glob for matching `.R` files. If multiple matches, use AskUserQuestion:
  • header: "Scripts"
  • question: "Multiple R scripts match that pattern. Which should I review?"
  • multiSelect: true
  • options: list up to 4 matched files (label: filename, description: path and last modified). User can select multiple.
  • If `$ARGUMENTS` is `all`: review all R scripts in `scripts/R/` and `Figures/*/`
  • If `$ARGUMENTS` is empty, glob for all `.R` files. If multiple found, use AskUserQuestion as above.

2. **For each script, launch the `r-reviewer` agent** with instructions to:

  • Follow the full protocol in the agent instructions
  • Read `rules/r-code-conventions.md` for current standards
  • Save report to `quality_reports/[script_name]_r_review.md`

3. **After all reviews complete**, present a summary:

  • Total issues found per script
  • Breakdown by severity (Critical / High / Medium / Low)
  • Top 3 most critical issues

4. **IMPORTANT: Do NOT edit any R source files.** Only produce reports. Fixes are applied after user review.

Read more
@brycewang-stanford
Ships withauto-empirical-research-skills

## 🔥 力荐 · StatsPAI — Stata 与 R 的 Python 平替,为 AI Agent 而生 🔁 Stata / R 平替:reghdfe、csdid、rdrobust、synth、fixest、did 等常用命令在 Python 中一站式替代,一个 import statspai as sp 搞定 DID / RD / IV / SCM / DML / matching 🤖 面向 Agent 设计:结构化结果对象 + 内置 MCP Server,Claude / Codex

4.9k200 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.9k
Star history of brycewang-stanford/Auto-Empirical-Research-Skills on GitHub, a chart by star-history.com

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about review-r.

Which coding agents can use review-r?
review-r installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.