Review r
🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文,并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill review-rAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files. Make sure to use this skill whenever the user wants their existing R code evaluated or audited — not when they want new analysis written. Triggers include: "review my R script", "check my R code", "is my code replication-ready", "audit this R file", "does this code follow conventions", "will this reproduce", "check my analysis script", "code review", "review-r", or when the user has an existing .R file and wants quality feedback rather than new code.
SKILL.md
2.1 KB, as published. Nobody here has run it
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
$ARGUMENTSis a name pattern (e.g.,model_name): glob for matching.Rfiles. 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
$ARGUMENTSisall: review all R scripts inscripts/R/andFigures/*/ - If
$ARGUMENTSis empty, glob for all.Rfiles. If multiple found, use AskUserQuestion as above.
- If
-
For each script, launch the
r-revieweragent with instructions to:- Follow the full protocol in the agent instructions
- Read
rules/r-code-conventions.mdfor 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.