review-r — review-r for empirical economics research review-r, claude-econ-paper-template, community, review-r for empirical economics research, ide skills, R script code review, QMD chapter validation, reproducible R code, correct R scripting practices, review-r install, Claude Code

v1.0.0
GitHub

About this Skill

Ideal for Data Science Agents focused on empirical economics research needing automated R script validation. review-r is a Claude Code infrastructure template for conducting thorough code reviews on R scripts and QMD chapters, focusing on reproducibility and correctness.

Features

Checks for `set.seed()` presence in R scripts to ensure reproducibility
Verifies absolute paths or defined root variables for consistent file access
Enforces `library()` calls at the top of R scripts for organizational clarity
Detects hardcoded values that should be variables for improved maintainability
Ensures deterministic data loading without web scraping or caching issues

# Core Topics

naj2r naj2r
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The review-r skill by naj2r is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for review-r for empirical economics research, R script code review, QMD chapter validation.

Ideal Agent Persona

Ideal for Data Science Agents focused on empirical economics research needing automated R script validation.

Core Value

Empowers agents to ensure reproducibility and correctness in R scripts or QMD chapters by checking for set.seed() presence, absolute paths, and deterministic data loading, leveraging libraries and protocols like library() calls and caching for web scraping.

Capabilities Granted for review-r

Validating R script reproducibility for research papers
Debugging QMD chapters for empirical economics studies
Automating code reviews for data loading and library calls

! Prerequisites & Limits

  • Requires access to .R or .qmd files
  • Limited to R scripts and QMD chapters
  • Does not support web scraping without caching
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

review-r

Unlock reproducible and correct R code with review-r. Discover how to set up and utilize this AI agent skill for empirical economics research papers.

SKILL.md
Readonly

Review R Code

Run a code review protocol on an R script or QMD chapter.

Input: $ARGUMENTS — path to .R or .qmd file.

Review Dimensions

1. Reproducibility

  • set.seed() present if any randomness used
  • All paths are absolute or use defined root variable
  • library() calls at top (not scattered)
  • No hardcoded values that should be variables
  • Data loading is deterministic (no web scraping without caching)

2. Correctness

  • Regression specification matches paper ({{unit_fe}}+{{time_fe}} FE, clustered SEs)
  • Missing value handling is explicit (na.rm=TRUE where needed)
  • Joins preserve expected row counts (check for accidental duplication)
  • Factor/character conversions are intentional
  • Variable names match Stata equivalents for cross-verification

3. Conventions (from .claude/rules/stata-r-conventions.md)

  • library() not require()
  • |> preferred over %>%
  • fixest::feols() for TWFE
  • modelsummary for tables
  • haven::read_dta() for Stata files
  • snake_case naming
  • Comments explain non-obvious logic

4. Quarto-Specific (if .qmd)

  • Every code chunk has a unique label:
  • echo: and eval: set appropriately
  • Table/figure chunks have captions (tbl-cap:, fig-cap:)
  • Cross-references use @sec-, @tbl-, @fig- syntax
  • No orphaned code chunks (every chunk has surrounding narrative)

Output

Report by severity (do NOT edit files, report only):

  • Error: Will produce wrong results or fail to run
  • Warning: May produce unexpected behavior
  • Style: Convention violation, should fix for consistency
  • Note: Suggestion for improvement

Format:

[SEVERITY] Line [N]: [Description]
  Found:    [what's there]
  Expected: [what should be there]

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is review-r?

Ideal for Data Science Agents focused on empirical economics research needing automated R script validation. review-r is a Claude Code infrastructure template for conducting thorough code reviews on R scripts and QMD chapters, focusing on reproducibility and correctness.

How do I install review-r?

Run the command: npx killer-skills add naj2r/claude-econ-paper-template. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for review-r?

Key use cases include: Validating R script reproducibility for research papers, Debugging QMD chapters for empirical economics studies, Automating code reviews for data loading and library calls.

Which IDEs are compatible with review-r?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for review-r?

Requires access to .R or .qmd files. Limited to R scripts and QMD chapters. Does not support web scraping without caching.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add naj2r/claude-econ-paper-template. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use review-r immediately in the current project.

Related Skills

Looking for an alternative to review-r or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI