brycewang-stanford/Auto-Empirical-Research-Skills / skills/28-maxwell2732-paper-replicate-agent-demo/dot-claude/skills/review-r
review-r
VerifiedRun the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
SKILL.md
View on GitHub---
name: review-r
description: Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
disable-model-invocation: true
argument-hint: "[filename or 'all' or 'LectureN']"
allowed-tools: ["Read", "Grep", "Glob", "Write", "Task"]
---
# 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
- 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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |