code-review
Review code for security, quality, and best practices. Use after writing code and before committing.
Run full R verification loop before committing. Checks build, lint, style, test coverage, and code quality.
> /plugin marketplace add ab604/claude-code-r-skillsHow it fires
How this command gets triggered: by you, by Claude, or both.
/verifyContext preview
What this command does when you run it.
Run full R verification loop before committing. Checks build, lint, style, test coverage, and code quality.
name: verify description: Run full R verification loop before committing. Checks build, lint, style, test coverage, and code quality.
Run all quality gates before committing code. Produces a READY or NOT READY verdict.
Run each phase in order. A failure in any phase blocks the verdict.
devtools::check(quiet = TRUE)
Pass criteria: 0 errors, 0 warnings, 0 notes (or only expected notes).
styler::style_pkg()
Auto-fixes style. Re-check for any manual fixes needed.
lintr::lint_package()
Pass criteria: 0 lints. Fix all flagged issues before proceeding.
covr::package_coverage()
Pass criteria: ≥80% overall coverage. Critical paths (validation, stats) require 100%.
Invoke the code-reviewer agent to check uncommitted changes:
/code-review
Pass criteria: No CRITICAL or HIGH issues.
git diff --stat HEAD git diff HEAD
Manually confirm:
## Verification Report | Phase | Status | Notes | |----------------|--------|--------------------------------| | Build check | ✅ PASS | 0 errors, 0 warnings | | Style check | ✅ PASS | Auto-fixed 3 files | | Lint check | ✅ PASS | 0 lints | | Test coverage | ✅ PASS | 87% overall | | Code review | ✅ PASS | No CRITICAL/HIGH issues | | Diff review | ✅ PASS | Changes look correct | ## Verdict: ✅ READY TO COMMIT Next step: commit with a descriptive message.
Or if issues found:
## Verdict: ❌ NOT READY **Blocking issues:** 1. [Phase] - [specific issue] 2. [Phase] - [specific issue] Fix all blocking issues and re-run /verify.
| Code Type | Required | |--------------------------|----------| | General logic | ≥80% | | Statistical calculations | 100% | | Input validation | 100% | | Error handling | 100% |
A curated collection of Claude Code configurations for modern R use. These skills, rules, commands, and agents help Claude Code understand R best practices and generate idiomatic, high-quality R code.
Repo: ab604/claude-code-r-skills
Review code for security, quality, and best practices. Use after writing code and before committing.
Create an implementation plan before writing code. Use for new features, architectural changes, or complex refactoring.
Test-driven development workflow for R. Write tests first, then implement. Use for new features, bug fixes, and refactoring.