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/14-luischanci-claude-code-research-starter/dot-claude/skills/review-r" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-review-r-ea2c5e && rm -rf "$T"
manifest:
skills/14-luischanci-claude-code-research-starter/dot-claude/skills/review-r/SKILL.mdsource content
Review R Code
Run a comprehensive R code review on the specified script(s). Do NOT edit any R source files -- produce a report only.
Steps
-
Identify target: Use
to find the R file(s). If$ARGUMENTS
, scan allall
files in.R
and project subdirectories.scripts/ -
Launch r-reviewer agent following the full protocol from
..claude/agents/r-reviewer.md -
Read standards from
..claude/rules/r-code-conventions.md -
Check 10 categories: Structure & Header, Console Output Hygiene, Reproducibility, Function Design, Domain Correctness, Figure Quality, RDS Data Pattern, Comment Quality, Error Handling, Professional Polish.
-
Save report to
.quality_reports/[script_name]_r_review.md -
Present summary: Total issues per script, severity breakdown (Critical/High/Medium/Low), top 3 critical issues.
Important
- NEVER edit source files. Report only.
- Prioritize correctness over style.