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
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/upgradetool
Install
$ npx -y skills add pproenca/dot-skills --skill tailwind-refactor -yInstalls 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
@applyoveruse 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- Pulumi321
- Harness Engineering317
- Ios Hig314
- Rails Testing313
- Ruby Refactor313
- Think313
- Ios Xcode311
- Restful Hateoas308
- Ios Ui Refactor307
- Rails Dev303
- Swift Optimise297
- Ruby Optimise296
- Ios Testing293
- Swift Refactor293
- Dev Rfc290
- Ios Taste288
- Swift Ui Architect287
- Ios Storyboard281
- Rails Design System280
- Ios Navigation279
- Swift Data279
- Ios Chaos Monkey278
- Nginx C Module Perf271
- Bug Review269
Similar to Tailwind Refactor
More Frontend & UI Codetailwind-ui-refactorpproenca/dot-skills480 installsStructured guide that refactors Tailwind CSS interfaces across 52 design rules, ordered from design intent through polish.
tailwind-csspaulrberg/agent-skills3.1K installsTailwind v4 styling guidance that adds, fixes, configures, or migrates classes while respecting local conventions.
tailwind-best-practicesasyrafhussin/agent-skills1.1K installsTailwind CSS patterns for responsive, dark-mode, and v3-to-v4 work, with version detection first.
tailwind-responsive-uipproenca/dot-skills487 installsResponsive UI rule set for Tailwind CSS, covering 49 transformation patterns from mobile-first breakpoints to data tables.
tailwind-css-patternsgiuseppe-trisciuoglio/developer-kit18.5K installsModern Tailwind CSS v4.1 patterns for responsive layouts, components, dark mode, and accessibility.
tailwindcss-fundamentals-v4josiahsiegel/claude-plugin-marketplace403 installsTailwind CSS v4 fundamentals covering installation, CSS-first @theme configuration, and v3-to-v4 migration.