Writing Tidyverse R
Modern tidyverse patterns, style guide, and migration guidance for R development. Use this skill when writing R code with dplyr, reviewing tidyverse code, updating legacy R code to modern patterns, or enforcing consistent style. Covers native pipe usage, join_by() syntax, .by grouping, pick/across/reframe operations, tidy selection, stringr patterns, naming conventions, spacing, and migration from base R or older tidyverse APIs.
Install
npx skills add jeremy-allen/claude-skills --skill writing-tidyverse-rgit clone --depth 1 https://github.com/jeremy-allen/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/writing-tidyverse-r ~/.claude/skills/writing-tidyverse-rPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Writing Tidyverse R
This skill covers modern tidyverse patterns for R 4.3+ and dplyr 1.1+, style guidelines, and migration from legacy patterns.
## Core Principles
1. **Use modern tidyverse patterns** - Prioritize dplyr 1.1+ features, native pipe, and current APIs
2. **Write readable code first** - Optimize only when necessary
3. **Follow tidyverse style guide** - Consistent naming, spacing, and structure
## Pipe Usage
**Always use native pipe `|>` instead of magrittr `%>%`**
R 4.3+ provides all needed features. See [pipe-examples.md](references/pipe-examples.md) for usage patterns.
## Join Syntax (dplyr 1.1+)
**Use `join_by()` instead of character vectors for joins**
Modern join syntax supports:
- Equality joins: `join_by(company == id)`
- Inequality joins: `join_by(company == id, year >= since)`
- Rolling joins: `join_by(company == id, closest(year >= since))`
See [join-examples.md](references/join-examples.md) for complete patterns.
## Multiple Match Handling
Use `multiple` and `unmatched` arguments for quality control:
- `multiple = "error"` - Expect 1:1 matches
- `multiple = "all"` - Allow multiple matches explicitly
- `unmatched = "error"` - Ensure all rows match
## Data Masking vs Tidy Selection
Understand the difference:
- **Data masking functions**: `arrange()`, `filter()`, `mutate()`, `summarise()`
- **Tidy selection functions**: `select()`, `relocate()`, `across()`
Key patterns:
- Use `{{}}` (embrace) for function argumentsDetails
- Skill name
writing-tidyverse-r- Repository
- jeremy-allen/claude-skills
- Path
writing-tidyverse-r/SKILL.md- Repo updated
- 16 January 2026
FAQ
What does the Writing Tidyverse R skill do?
Modern tidyverse patterns, style guide, and migration guidance for R development. Use this skill when writing R code with dplyr, reviewing tidyverse code, updating legacy R code to modern patterns, or enforcing consistent style. Covers native pipe usage, join_by() syntax, .by grouping, pick/across/reframe operations, tidy selection, stringr patterns, naming conventions, spacing, and migration from base R or older tidyverse APIs.
How do I install the Writing Tidyverse R skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jeremy-allen/claude-skills --skill writing-tidyverse-r. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Writing Tidyverse R popular?
It lives in jeremy-allen/claude-skills, which has 67 GitHub stars and 7 forks.
Related skills
Customizing Vectors R
67jeremy-allen/claude-skills
Type-stable vector operations and custom vector classes using vctrs. Use this skill when building R packages with custom types, need guaranteed output types regardless of input values, implementing consistent coercion/casting rules, or creating vector classes that work seamlessly with data frames. Covers when to use vctrs vs base R, building custom vector classes, coercion methods, and testing vctrs classes.
Designing Oop R
67jeremy-allen/claude-skills
Object-oriented programming in R: S7, S3, S4, and vctrs class design. Use this skill when designing classes for R projects, choosing between OOP systems, building class hierarchies with inheritance, or migrating between systems. Covers S7 class definitions and methods, the decision matrix for choosing S7 vs S3 vs S4 vs vctrs, practical guidelines for each system, and migration strategies.
Developing Packages R
67jeremy-allen/claude-skills
Building robust R packages with modern tidyverse patterns. Use this skill when creating or maintaining R packages, designing APIs, choosing dependencies, implementing input validation, writing error messages, or deciding between internal and exported functions. Covers dependency strategy, tidyverse API design patterns, validation approaches, error handling with cli/rlang, testing levels, and documentation priorities.
How to Guide
69az9713/ai-co-writing-claude-skills
Create comprehensive how-to guides and tutorials. Use when the user needs step-by-step instructional content, tutorials, documentation, or educational guides.
Principle Attack the Premise
107Dimon94/skills
Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it.
Kuaifa
43shirenchuang/kuaifa
Kuaifa (快发) — publish Markdown articles to WeChat Official Accounts via the kuaifa CLI. Use this skill whenever the user wants to publish an article to WeChat, publish image messages, manage kuaifa configuration or templates, or mentions '快发', 'kuaifa', 'publish to WeChat', '发布公众号', '微信发布', '发文章'. Also trigger when the user has a Markdown file and wants to distribute it to WeChat, or asks about WeChat article formatting and themes.
Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.