review-r
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.
How do I install this agent skill?
npx skills add https://github.com/pedrohcgs/claude-code-my-workflow --skill review-rIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill automates R code reviews by reading script files and generating reports. A low-risk surface for indirect prompt injection exists because the agent processes untrusted R code which could contain hidden instructions. However, the skill implements safety measures by explicitly disallowing file editing tools.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/1 file flagged
What does this agent skill do?
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 - Return its report as its final response (ending with the findings
jsonblock); this skill saves it toquality_reports/[script_name]_r_review.md— the agent is read-only
-
After all reviews complete, present a summary:
- Total issues found per script
- Breakdown by severity (Critical / High / Medium / Low)
- Top 3 most critical issues
-
Leave the R source files unchanged — the report goes to the user, who decides what to fix. Only produce reports. Fixes are applied after user review.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/pedrohcgs/claude-code-my-workflow/review-r">View review-r on skillZs</a>