Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Start a fresh conversation. Replace the highlighted placeholders.
Use review-r to Run the R code review protocol on [filename] and save the resulting report to the `quality_reports/` directory without editing any source files.
Required inputs
[filename]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: review-rdescription: Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.disable-model-invocation: trueargument-hint: "[filename or 'all']"allowed-tools: ["Read", "Grep", "Glob", "Write", "Task"]
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 $ARGUMENTS to find the R file(s). If all, scan all .R files in scripts/ and project subdirectories.
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.