Review r
Skill pedrohcgs/claude-code-my-workflow/.claude/skills/review-r
A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols.
npx -y skills add pedrohcgs/claude-code-my-workflow --skill review-rAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
1.5 KB, as published. Nobody here has run it
Review R Scripts
Run the comprehensive R code review protocol.
Steps
-
Identify scripts to review:
- If
$ARGUMENTSis a specific.Rfilename: review that file only - If
$ARGUMENTSisLectureN: review all R scripts matching that lecture - If
$ARGUMENTSisall: review all R scripts inscripts/R/andFigures/*/
- If
-
For each script, launch the
r-revieweragent with instructions to:- Follow the full protocol in the agent instructions
- Read
.claude/rules/r-code-conventions.mdfor 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.