agentsclimarketplace

Tailwind refactor

Skill ComeOnOliver/skillshub/skills/pproenca/dot-skills/tailwind-refactor

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill tailwind-refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

8.0 KB, as published. Nobody here has run it

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

PriorityCategoryImpactPrefix
1Configuration MigrationCRITICALconfig-
2Deprecated Utility ReplacementCRITICALdep-
3Renamed Utility UpdatesHIGHrename-
4Class ConsolidationHIGHclass-
5Arbitrary Value CleanupMEDIUM-HIGHarb-
6Syntax ModernizationMEDIUMsyntax-
7@apply & Architecture CleanupMEDIUMarch-
8Modern Feature AdoptionLOW-MEDIUMadopt-

Quick Reference

1. Configuration Migration (CRITICAL)

2. Deprecated Utility Replacement (CRITICAL)

3. Renamed Utility Updates (HIGH)

4. Class Consolidation (HIGH)

5. Arbitrary Value Cleanup (MEDIUM-HIGH)

6. Syntax Modernization (MEDIUM)

7. @apply & Architecture Cleanup (MEDIUM)

8. Modern Feature Adoption (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.