Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By ab604
Modern R development skills for Claude Code - tidyverse patterns, rlang metaprogramming, Bayesian inference, performance optimization, and more
npx claudepluginhub ab604/claude-code-r-skills --plugin r-skillsReview 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.
Run full R verification loop before committing. Checks build, lint, style, test coverage, and code quality.
Senior R code review specialist. Use after writing code to review for security, quality, and best practices before committing.
Expert planning specialist for R projects. Use for feature implementation, architectural changes, or complex refactoring. Automatically activated for planning tasks.
Test-driven development specialist for R. Enforces test-first development with testthat. Use when writing new features, fixing bugs, or refactoring code.
Patterns for Bayesian inference in R using brms, including multilevel models, DAG validation, and marginal effects. Use when performing Bayesian analysis.
R object-oriented programming guide for S7, S3, S4, and vctrs. Use when designing R classes or choosing an OOP system.
R package development guide covering dependencies, API design, testing, and documentation. Use when developing R packages.
R performance best practices including profiling, benchmarking, vctrs, and optimization strategies. Use when optimizing R code.
R style guide covering naming conventions, spacing, layout, and function design best practices. Use when writing R code.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Skills for R programming covering tidyverse patterns, rlang conditions, targets pipelines, metaprogramming, and more
Opinionated R skills: collapse, mapgl, flextable, r-ai for fast data ops, interactive maps, LLM integration, and skill creation
Collection of skills for Shiny app development
Multi-agent workflow framework for building, testing, and shipping statistical software packages
350 agentic skills across 64 domains, 72 agent personas, and 16 team compositions following the agentskills.io open standard
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
R language server for code intelligence - diagnostics, go-to-definition, hover, references, and formatting via languageserver
R language server for code intelligence - diagnostics, go-to-definition, hover, references, and formatting via languageserver
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
Share bugs, ideas, or general feedback.
Version 1.2.4 | Last updated: 2026-04-05
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. Additionally the rules and commands help with efficient token usage and enforce constraints, and agents can perform specific tasks. Obviously you can fork and adapt any of these to your case-use.
I use Positron, but if you are a VSCode user there is also a plugin for R language server for code intelligence.
To try and pre-empt some of the issues with LLMs being reinforced to please the user, I've added a scientific reasoning principle to CLAUDE.md: we test hypotheses; we never prove them. Claude is instructed to reason from evidence, maintain healthy scepticism, quantify uncertainty explicitly (preferring Bayesian framing), and never tell the user what it thinks the user wants to hear at the expense of accuracy. This doesn't seem to prevent the "telling you what it thinks you want to hear" problem entirely, but is hopefully better than nothing.
This project uses and builds on the work of:
Sarah Johnson's Modern R Development Guide - Original guide that formed the foundation for the R skills in this repository
Jeremy Allen's Claude Skills Repo - Jeremy's Claude Skills mostly derived from Sarah's guide
Affaan Mustafa's Everything Claude Code - Framework structure, rules, commands, and agents adapted for R development from Affan's Hackathon winning code
Posit's testing-r-packages Skill - testthat Edition 3 patterns, test design principles, and comprehensive expectations reference incorporated into the tdd-workflow skill
statzhero's tidy-r-skill - Join quality control patterns (relationship, na_matches, tidylog), NA-safe filtering with filter_out(), when_any()/when_all(), replace_when() for in-place conditional updates, and cli::cli_abort() structured error messages incorporated into the tidyverse-patterns and r-style-guide skills
As an aside, I use Quarto in my workflow and use Posit's Quarto plugin which you can add with: /plugin marketplace add posit-dev/skills and then /plugin install quarto@posit-dev-skills.
This repository provides Claude Code configurations specifically for R users, combining:
Claude Code uses five official feature types to customise its behaviour for R development, plus a custom convention (Contexts) built on the CLI's --system-prompt flag. Each serves a distinct purpose in the development workflow.
What they are: Markdown documents containing domain knowledge, best practices, and coding patterns that Claude references when writing code. Skills are passive knowledge resources loaded into Claude's context when relevant.
When to use: Claude automatically activates skills based on the code you're working on. For example, when you're writing tidyverse code, the tidyverse-patterns skill provides guidance on modern pipes, joins, and grouping.