# brycewang-stanford--Awesome-Agent-Skills-for-Empirical-Research--skills__15-Felpix-Studios-social-science-research__skil

> Review R Scripts

- Skill: `qhjqhj00/brycewang-stanford-awesome-agent-skills-for-empirical-re-67` (Agent Skill)
- Install (CLI): `npx skillmds@latest add qhjqhj00/brycewang-stanford-awesome-agent-skills-for-empirical-re-67`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qhjqhj00/brycewang-stanford-awesome-agent-skills-for-empirical-re-67/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: qhjqhj00 (https://skillmd.com/u/qhjqhj00)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/qhjqhj00/brycewang-stanford-awesome-agent-skills-for-empirical-re-67

---


# 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 a name pattern (e.g., `model_name`): glob for matching `.R` files. If multiple matches, use AskUserQuestion:
     - header: "Scripts"
     - question: "Multiple R scripts match that pattern. Which should I review?"
     - multiSelect: true
     - options: list up to 4 matched files (label: filename, description: path and last modified). User can select multiple.
   - If `$ARGUMENTS` is `all`: review all R scripts in `scripts/R/` and `Figures/*/`
   - If `$ARGUMENTS` is empty, glob for all `.R` files. If multiple found, use AskUserQuestion as above.

2. **For each script, launch the `r-reviewer` agent** with instructions to:
   - Follow the full protocol in the agent instructions
   - Read `rules/r-code-conventions.md` for current standards
   - Save report to `quality_reports/[script_name]_r_review.md`

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. **IMPORTANT: Do NOT edit any R source files.**
   Only produce reports. Fixes are applied after user review.

