Awesome-Agent-Skills-for-Empirical-Research 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.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/12-pedrohcgs-claude-code-my-workflow/dot-claude/skills/review-r" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-review-r && rm -rf "$T"
manifest:
skills/12-pedrohcgs-claude-code-my-workflow/dot-claude/skills/review-r/SKILL.mdsource content
Review R Scripts
Run the comprehensive R code review protocol.
Steps
-
Identify scripts to review:
- If
is a specific$ARGUMENTS
filename: review that file only.R - If
is$ARGUMENTS
: review all R scripts matching that lectureLectureN - If
is$ARGUMENTS
: review all R scripts inall
andscripts/R/Figures/*/
- If
-
For each script, launch the
agent with instructions to:r-reviewer- Follow the full protocol in the agent instructions
- Read
for current standards.claude/rules/r-code-conventions.md - 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.