Skip to content
Back to skills

Review R

ASecurity

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.

  • 1,683 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added June 11, 2026
researchgo

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add pedrohcgs/claude-code-my-workflow --skill review-r --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review R?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review R
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pedrohcgs-review-r/badge)](https://www.skillsdirectory.com/skills/pedrohcgs-review-r)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-r
description: 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.
argument-hint: "[filename or 'all' or 'LectureN']"
allowed-tools: ["Read", "Grep", "Glob", "Write", "Agent", "Task"]
disallowed-tools: ["Edit", "MultiEdit"]
---

# Review R Scripts

Run the comprehensive R code review protocol.

## Steps

1. **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/*/`

2. **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
   - Return its report as its final response (ending with the findings `json` block); this skill saves it to `quality_reports/[script_name]_r_review.md` — the agent is read-only

3. **After all reviews complete**, present a summary:
   - Total issues found per script
   - Breakdown by severity (Critical / High / Medium / Low)
   - Top 3 most critical issues

4. **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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.