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_or_lecture] and produce a quality report without editing any source files
Required inputs
[filename_or_lecture]
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.argument-hint: "[filename or 'all' or 'LectureN']"allowed-tools: ["Read", "Grep", "Glob", "Write", "Task"]
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.