Read-only R code review protocol for .R scripts. An agent skill from pedrohcgs/claude-code-my-workflow.

MITAuto-check passedDevelopment

Install Review R

skills CLI
$ npx skills add pedrohcgs/claude-code-my-workflow --skill review-r -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pedrohcgs/claude-code-my-workflow review-r --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/review-r .claude/skills/review-r && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
review-r
GitHub stars
1.7k
Token cost
~430 tokens
SKILL.md length
149 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Read-only R code review protocol for .R scripts. An agent skill from pedrohcgs/claude-code-my-workflow.

  • Works in 4 steps: Identify scripts to review → For each script, launch the r-reviewer… → After all reviews complete, present a… → …
  • User says review this R script
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Check the R code

What it does

Review R is an agent skill from pedrohcgs/claude-code-my-workflow. 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.

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Reproducible research, Code quality and Code review. The repository describes itself as: A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols. The licence is MIT.

When your agent uses it

  • User says review this R script
  • Check the R code
  • Audit the analysis code
  • Code review on the R

Example prompts

  • “review this R script”
  • “check the R code”
  • “audit the analysis code”
  • “/review-r”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, Write, Agent, Task

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify scripts to review
  2. For each script, launch the r-reviewer agent with instructions to
  3. After all reviews complete, present a summary
  4. Leave the R source files unchanged — the report goes to the user, who decides what to fix.

What it can do on your machine

Read from SKILL.md and the folder at commit ae72617. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • Write
    • Agent
    • Task

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Review R loads about 430 tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 149 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~430

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pedrohcgs/claude-code-my-workflow at commit ae72617, republished under its MIT licence (© pedrohcgs). 149 words, ~430 tokens.

Download SKILL.mdSave it as .claude/skills/review-r/SKILL.md (or your agent's skills folder).
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.
allowed-tools
Read, Grep, Glob, Write, Agent, Task
argument-hint
[filename or 'all' or 'LectureN']
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.

© pedrohcgs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/review-r of pedrohcgs/claude-code-my-workflow.

Open the folder on GitHubat commit ae72617

Compare with similar skills

Review R next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Review R compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Review R this skillpedrohcgs/claude-code-my-workflow1.7k—~430Automated safety check: PassMIT
Review Rbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~1.3kAutomated safety check: PassCustom licence
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT
Dignified Python Standardsdocling-project/docling69k—~1.5kAutomated safety check: PassApache-2.0
Clean Code GuardamElnagdy/guard-skills1.3k2 repos~4.3kAutomated safety check: PassMIT

Similar skills

  • Review R

    brycewang-stanford/Auto-Empirical-Research-Skills

    R code review for the sewage project. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~1.3k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    69k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Clean Code Guard

    amElnagdy/guard-skills

    Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.

    1.3k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Archify Review

    tt-a1i/archify

    Review Archify issues, PRs, or code through value, cost, and impact to support evidence-based maintenance decisions. Use for issue triage, change reviews, and…

    82k GitHub stars~415 tokensUpdated today
    DevelopmentAuto-check passed

More from pedrohcgs/claude-code-my-workflow

All 59 skills in this repo
  • Devils Advocate

    pedrohcgs/claude-code-my-workflow

    Adversarial 5-7 question challenge to a deck's pedagogical choices — ordering, prerequisites, cognitive load, motivation.

    1.7k GitHub starsUsed in 2 repos~641 tokens
    Auto-check passed
  • Vaccinate

    pedrohcgs/claude-code-my-workflow

    Qualify a check before it is allowed to clear anything — prove it can detect the failure it is meant to catch.

    1.7k GitHub stars~2.1k tokensUpdated 13 days ago
    Auto-check: notes
  • Compile Latex

    pedrohcgs/claude-code-my-workflow

    Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).

    1.7k GitHub starsUsed in 1 repo~492 tokens
    Auto-check: notes
  • Context Status

    pedrohcgs/claude-code-my-workflow

    Show current context status and session health. An agent skill from pedrohcgs/claude-code-my-workflow.

    1.7k GitHub starsUsed in 1 repo~613 tokens
    Auto-check: notes
  • Capture Environment

    pedrohcgs/claude-code-my-workflow

    Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt /…

    1.7k GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check: notes
  • Checkpoint

    pedrohcgs/claude-code-my-workflow

    Save a structured state snapshot before stopping or handing off.

    1.7k GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check: notes

Questions about Review R

What does Review R do?

Read-only R code review protocol for .R scripts. An agent skill from pedrohcgs/claude-code-my-workflow. Review R is an agent skill from pedrohcgs/claude-code-my-workflow.R scripts.

When should I use Review R?

Review R fits situations like: user says review this R script; check the R code; audit the analysis code; code review on the R.

How do I install Review R in Claude Code?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill review-r -a claude-code`. Or copy the skill folder (.claude/skills/review-r in pedrohcgs/claude-code-my-workflow) into .claude/skills/review-r in your project. Claude Code loads it when a task matches its description.

How do I install Review R in Codex?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill review-r -a codex`. Or copy the skill folder (.claude/skills/review-r in pedrohcgs/claude-code-my-workflow) into .agents/skills/review-r in your project. Codex loads it when a task matches its description.

Can I use Review R in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pedrohcgs/claude-code-my-workflow --skill review-r -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/review-r, .gemini/skills/review-r, .github/skills/review-r and .opencode/skills/review-r in your project.

What does Review R need to run?

SKILL.md names no scripts, command-line tools or credentials: Review R is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob, Write, Agent, Task.

Does Review R access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Review R safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Review R use?

Review R is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Review R use?

About 430 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Review R?

Skills that share tags, products or a category with Review R: Review R (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars), WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Skill Doli Code Review (Dolibarr/dolibarr, 7.7k stars) and Dignified Python Standards (docling-project/docling, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Review R?

pedrohcgs (a GitHub user) maintains it in pedrohcgs/claude-code-my-workflow, which has 1,655 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on September 27, 2026.

Source: pedrohcgs/claude-code-my-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.