mcpbeat

Review R

pedrohcgs/review-r

Read-only R code review protocol for `.R` scripts. Checks code quality, reproducibility, domain correctness, tidyverse idioms, and professional standards; produces a report without editing. Use when user says "review this R script", "check the R code", "audit the analysis code", "code review on the R", or when an R file is touched as part of a paper submission. NOT for running the code — pair with `/audit-reproducibility` for numeric verification.

377 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1440
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/pedrohcgs/claude-code-my-workflow --skill review-r

The instruction itself

2 sections, as written by the author

Review R Scripts

Run the comprehensive R code review protocol.

Steps

  • Identify scripts to review:
  • If $ARGUMENTS is a specific .R filename: review that file only
  • If $ARGUMENTS is LectureN: review all R scripts matching that lecture
  • If $ARGUMENTS is all: review all R scripts in scripts/R/ and Figures/*/
  • For each script, launch the r-reviewer agent with instructions to:
  • Follow the full protocol in the agent instructions
  • Read .claude/rules/r-code-conventions.md for current standards
  • Save report to quality_reports/[script_name]_r_review.md
  • After all reviews complete, present a summary:
  • Total issues found per script
  • Breakdown by severity (Critical / High / Medium / Low)
  • Top 3 most critical issues
  • IMPORTANT: Do NOT edit any R source files.

Only produce reports. Fixes are applied after user review.

How to use it

Copy the folder

Take pedrohcgs/review-r from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.