Stats
Actions
Tags
From clarc
R code review for tidyverse idioms, tidy evaluation, Shiny security, and renv lockfile management. Invokes the r-reviewer agent.
How this command is triggered — by the user, by Claude, or both
Slash command
/clarc:r-reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# R Code Review This command invokes the **r-reviewer** agent for R-specific code review. ## What This Command Does 1. **Identify R Changes**: Find modified `.r` and `.R` files via `git diff` 2. **Tidyverse Idioms**: Native pipe `|>`, purrr functional patterns, tidy eval correctness 3. **Security Review**: Shiny input validation, SQL injection via DBI, credential exposure 4. **Package Management**: renv lockfile consistency, unpinned dependencies 5. **Test Coverage**: testthat patterns, covr integration 6. **Generate Report**: Categorize issues by severity ## When to Use - After writin...
This command invokes the r-reviewer agent for R-specific code review.
.r and .R files via git diff|>, purrr functional patterns, tidy eval correctnessvalidate(need(...)) on user inputspaste() in DBI queries (use glue_sql() or parameterized queries)eval(parse(text = user_input)) (code injection)%>% instead of native |> in new code (R 4.1+)library() calls inside functions (use requireNamespace)map_* is clearertryCatch for network or file I/O operationsagents/r-reviewer.mdskills/r-patterns/, skills/r-testing//tdd — add tests for R code that failed review/build-fix — fix dependency or package issuesnpx claudepluginhub marvinrichter/clarc --plugin clarc