tidyverse-patterns

Convert legacy R code to modern tidyverse patterns with dplyr, purrr, and stringr.

189|26|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ab604/claude-code-r-skills --skill tidyverse-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tidyverse-patterns
Source: https://github.com/ab604/claude-code-r-skills/tree/main/.claude/skills/tidyverse-patterns
Command: npx skills add https://github.com/ab604/claude-code-r-skills --skill tidyverse-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps R developers adopt modern tidyverse patterns, refactoring legacy code to use current APIs and idioms for improved readability and performance.

Core Features & Use Cases

  • Modernize code to use native pipes and current tidyverse APIs (dplyr, purrr, stringr) for clearer and faster data manipulation.
  • Align grouping, joins, and data workflows with tidyverse 1.1+ conventions to reduce boilerplate.
  • Use case: convert an analysis script that mixes base R and old tidyverse syntax into a cohesive, idiomatic tidyverse workflow.

Quick Start

Provide an R snippet that uses older tidyverse patterns and ask the AI to rewrite it to modern tidyverse patterns.

Frequently Asked Questions about tidyverse-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy R code to use modern tidyverse patterns?

To refactor legacy R code to modern tidyverse patterns, provide your existing R script and ask the AI to rewrite it using native pipes, dplyr, purrr, and stringr for clearer data manipulation.

What is the best way to convert base R scripts into idiomatic tidyverse code?

Converting base R scripts into idiomatic tidyverse code involves aligning grouping and joins with tidyverse 1.1+ conventions, replacing intermediate variables with pipes, and using stringr for text operations to reduce boilerplate.

Do I need R and tidyverse installed to run rewritten code?

Yes, you need an environment with R and the tidyverse package installed to run and test the rewritten code, as the refactored scripts rely on current dplyr, purrr, and stringr APIs to function correctly.

Can I use this to modernize data workflows that mix old dplyr syntax with base R?

Yes, you can modernize mixed data workflows by converting analysis scripts that combine base R and old tidyverse syntax into a cohesive, idiomatic tidyverse workflow with updated APIs.

Why should I update my R scripts to use native pipes and current tidyverse APIs?

Updating R scripts to use native pipes and current tidyverse APIs improves code readability and performance, replacing outdated syntax with maintainable, modern data manipulation patterns.