By matheus-rech
R development agent for packages, Shiny apps, Quarto projects, and general R scripting
R development agent and language server plugin for Claude Code. Brings first-class R support to Claude Code with smart project detection, strict test discipline, on-demand documentation, and LSP-powered diagnostics.
| Plugin | Description |
|---|---|
| r-dev | R development agent — handles packages, Shiny apps, Quarto projects, and general R scripting |
| r-lsp | R language server — provides diagnostics, go-to-definition, hover docs, and completions |
install.packages(c("languageserver", "devtools", "testthat", "roxygen2", "pak"))
# For on-demand R documentation in Claude Code:
pak::pak("posit-dev/btw")
claude plugins marketplace add https://github.com/matheusrech/r-dev-agent.git
claude plugins install r-dev@r-dev-agent
claude plugins install r-lsp@r-dev-agent
claude mcp add -s "user" r-btw -- Rscript -e "btw::btw_mcp_server(tools = 'docs')"
The R LSP and agent activate on your next session.
When spawned, the agent silently detects your project type and reads the relevant source files:
| Marker Files | Project Type | Auto-reads |
|---|---|---|
DESCRIPTION + R/ | R package | R/, NAMESPACE, DESCRIPTION |
app.R or ui.R + server.R | Shiny app | App files + R/ modules |
_quarto.yml or *.qmd | Quarto project | Config + all .qmd files |
*.Rmd | R Markdown | All .Rmd files |
| Fallback | Plain R scripts | All .R files in working dir |
The agent follows strict rules to prevent the most common AI coding failure mode — modifying tests to make them pass:
Uses the btw MCP server on demand — not at startup. The R LSP handles basic signatures and diagnostics passively; btw provides deeper documentation when the agent encounters unfamiliar functions.
The agent knows about and invokes these Claude Code skills when they're available:
r-tidyverse-expert — tidyverse patterns, dplyr 1.1+, rlang, purrrtesting-r-packages — testthat 3 patterns, snapshots, fixturesr-cli — CLI output formattingcran-extrachecks — CRAN submission prepmeta-analysis-workflow — effect sizes, forest plotsquarto-authoring — Quarto document authoringbrand-yml — brand styling for Shiny/Quartorelease-post — release blog posts|>)languageserver (for LSP), devtools, testthatbtw (for MCP docs), pak (for dependency management)This project was inspired by Simon P. Couch's blog posts on using Claude Code for R development. His key insights — that R needs explicit context building, that Claude deletes tests instead of fixing code, and that MCP servers for R documentation are transformative — directly shaped this agent's design.
The gap between R and Python/JavaScript support in Claude Code used to require extensive workarounds. This plugin aims to close that gap.
MIT
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub matheus-rech/r-dev-agent --plugin r-devR language server for code intelligence and diagnostics
Modern R development skills for Claude Code - tidyverse patterns, rlang metaprogramming, Bayesian inference, performance optimization, and more
Collection of skills for Shiny app development
Multi-agent workflow framework for building, testing, and shipping statistical software packages
Opinionated R skills: collapse, mapgl, flextable, r-ai for fast data ops, interactive maps, LLM integration, and skill creation
361 agentic skills across 65 domains, 72 agent personas, and 17 team compositions following the agentskills.io open standard
Local RAG system with embedded Multi-Agent Framework for Claude Code plugin