Skip to content
pproenca avatar

Tailwind Refactor

Comprehensive Tailwind v4 refactoring guide that cleans up deprecated utilities without changing visual output.

CCM score
56 of 100
skills.sh installs
326
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 50 rules across 8 categories, from config migration and deprecated utility replacement to modern feature adoption
  • Includes a migration-priority table and per-rule reference files for config, renames, class consolidation, and arbitrary values
  • Enforces behavior-preserving transformations, such as explicit border and ring colors where v4 defaults changed
  • Designed for teams moving a project from Tailwind v3 to v4, and meant to run after the automated npx @tailwindcss/upgrade tool

Install

$ npx -y skills add pproenca/dot-skills --skill tailwind-refactor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Community Tailwind CSS Refactoring Best Practices

Comprehensive code quality refactoring guide for Tailwind CSS applications targeting v4. Contains 50 rules across 8 categories, prioritized by migration urgency. Every transformation preserves the existing look and feel — this skill is purely about cleaner code, modern syntax, and v4 compatibility.

Companion skills: Use tailwind-ui-refactor for visual design improvements and tailwind-responsive-ui for responsive layout patterns.

When to Apply

Before manual migration: Run npx @tailwindcss/upgrade first — it handles most configuration and renamed utility changes automatically. Then use this skill for patterns the automated tool does not cover.

Reference these guidelines when:

  • Migrating a project from Tailwind CSS v3 to v4
  • Cleaning up deprecated or renamed utility classes
  • Consolidating verbose multi-class patterns
  • Replacing arbitrary values with design tokens
  • Removing @apply overuse in CSS files
  • Modernizing syntax to v4 conventions

Rule Categories by Priority

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend & UI Code, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the tailwind-refactor skill do?

tailwind-refactor gives an agent Tailwind CSS refactoring patterns for v4 migration and anti-pattern cleanup. It covers replacing deprecated utilities, consolidating verbose class patterns, and removing @apply overuse, all without changing the visual output.

How do I install tailwind-refactor?

Run npx -y skills add pproenca/dot-skills --skill tailwind-refactor -y in your project. After that, tailwind-refactor guides the agent through migrating from Tailwind v3 to v4 and cleaning up class names.

Should I run the official upgrade tool before using tailwind-refactor?

Yes, tailwind-refactor recommends running npx @tailwindcss/upgrade first, since that tool handles most configuration and renamed utility changes. tailwind-refactor then covers the patterns the automated tool does not handle.

Where does tailwind-refactor sit among Frontend and UI Code skills?

tailwind-refactor is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices and web-design-guidelines. Its focus is code cleanup and v4 migration rather than visual design or React patterns.

More from pproenca/dot-skills

All 100

Similar to Tailwind Refactor

More Frontend & UI Code