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.
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
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.
1---2name: brycewang-stanford-awesome-agent-skills-for-empirical-re-673description: Review R Scripts4---56# Review R Scripts78Run the comprehensive R code review protocol.910## Steps11121. **Identify scripts to review:**13 - If `$ARGUMENTS` is a specific `.R` filename: review that file only14 - If `$ARGUMENTS` is a name pattern (e.g., `model_name`): glob for matching `.R` files. If multiple matches, use AskUserQuestion:15 - header: "Scripts"16 - question: "Multiple R scripts match that pattern. Which should I review?"17 - multiSelect: true18 - options: list up to 4 matched files (label: filename, description: path and last modified). User can select multiple.19 - If `$ARGUMENTS` is `all`: review all R scripts in `scripts/R/` and `Figures/*/`20 - If `$ARGUMENTS` is empty, glob for all `.R` files. If multiple found, use AskUserQuestion as above.21222. **For each script, launch the `r-reviewer` agent** with instructions to:23 - Follow the full protocol in the agent instructions24 - Read `rules/r-code-conventions.md` for current standards25 - Save report to `quality_reports/[script_name]_r_review.md`26273. **After all reviews complete**, present a summary:28 - Total issues found per script29 - Breakdown by severity (Critical / High / Medium / Low)30 - Top 3 most critical issues31324. **IMPORTANT: Do NOT edit any R source files.**33 Only produce reports. Fixes are applied after user review.
Run npx skillmds@latest add qhjqhj00/brycewang-stanford-awesome-agent-skills-for-empirical-re-67 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Review R Scripts It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
qhjqhj00 (@qhjqhj00) published this skill. Their other Agent Skills are listed on their SkillMD profile.