Agent skill

Tailwind Refactor

by pproenca in pproenca/dot-skills

Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup.

MITAuto-check passedFrontend & Design

Install Tailwind Refactor

skills CLI
$ npx skills add pproenca/dot-skills --skill tailwind-refactor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills tailwind-refactor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/tailwind-refactor .claude/skills/tailwind-refactor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tailwind-refactor
GitHub stars
214
Token cost
~2.2k tokens
SKILL.md length
609 words
Files
54 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup.

  • Works in 8 steps: Configuration Migration (CRITICAL) → Deprecated Utility Replacement (CRITICAL) → Renamed Utility Updates (HIGH) → …
  • Tasks involving Tailwind CSS cleanup
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 1 more section
  • Calls npx

What it does

Tailwind Refactor is an agent skill from pproenca/dot-skills. Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup. This skill should be used when refactoring Tailwind utility classes, migrating from v3 to v4, cleaning up deprecated utilities, consolidating verbose class patterns, or removing code smells — all without changing the visual output. Triggers on tasks involving Tailwind CSS cleanup, v4 migration, class refactoring, @apply removal, or utility modernization.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 56 other files, including reference files and assets (for example `assets/templates/_template.md`, `metadata.json` and `references/_sections.md`).

It sits in Frontend & Design, covering Refactoring, CSS and styling and Legacy modernization. It works with Tailwind CSS. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Tasks involving Tailwind CSS cleanup
  • Class refactoring
  • Utility modernization

Example prompts

  • “/tailwind-refactor”

Requirements

  • Node.js

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  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)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tailwind Refactor loads about 2.2k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 114 tokens; SKILL.md has 609 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 609 words, ~2,170 tokens.

Download SKILL.mdSave it as .claude/skills/tailwind-refactor/SKILL.md (or your agent's skills folder). This skill also uses 53 other files; get the full folder from GitHub.
name
tailwind-refactor
description
Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup. This skill should be used when refactoring Tailwind utility classes, migrating from v3 to v4, cleaning up deprecated utilities, consolidating verbose class patterns, or removing code smells — all without changing the visual output. Triggers on tasks involving Tailwind CSS cleanup, v4 migration, class refactoring, @apply removal, or utility modernization.

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)
Show full SKILL.md (216 more words)Show less
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

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 53 other files (references, assets) in skills/.experimental/tailwind-refactor of pproenca/dot-skills.

  • SKILL.md
  • assets/templates/_template.md
  • metadata.json
  • references/_sections.md
  • references/adopt-container-queries.md
  • references/adopt-field-sizing.md
  • references/adopt-in-variant.md
  • references/adopt-not-variant.md
  • references/adopt-starting-variant.md
  • references/arb-breakpoint-to-theme.md
  • references/arb-dynamic-classes.md
  • references/arb-hex-to-theme.md
  • references/arb-spacing-to-scale.md
  • references/arb-zindex-to-scale.md
  • references/arch-apply-to-component.md
  • references/arch-domain-composition.md
  • references/arch-layer-to-utility.md
  • references/arch-safelist-to-source.md
  • … and 36 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Tailwind Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tailwind Refactor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tailwind Refactor this skillpproenca/dot-skills214—~2.2kAutomated safety check: PassMIT
Unslop UIJCarterJohnson/vibecoded-design-tells508—~1.9kAutomated safety check: PassCustom licence
Frontend Code Stylemailtrap/mailtrap-local106—~2.7kAutomated safety check: PassMIT
Frontend UI FunctionalvictorGPT/vibeusage131—~939Automated safety check: PassMIT
Tailwind V4mastra-ai/mastra29k—~2.5kAutomated safety check: PassCustom licence
Bulletproof Frontendaaddrick/claude-pipeline130—~1kAutomated safety check: PassMIT

Similar skills

  • Unslop UI

    JCarterJohnson/vibecoded-design-tells

    Strips the cues that make a website read as AI-generated and forces a deliberate, project-specific design choice instead of the model's default.

    508 GitHub stars~1.9k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • Frontend Code Style

    mailtrap/mailtrap-local

    A skill your agent uses when writing or refactoring React + Tailwind v4 code in this repo.

    106 GitHub stars~2.7k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Frontend UI Functional

    victorGPT/vibeusage

    A skill your agent uses when building or refactoring functional React/Vite/Tailwind UI pages, templates, or component libraries that need consistent structure, tokenized styling, accessibility…

    131 GitHub stars~939 tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Tailwind V4

    mastra-ai/mastra

    Tailwind CSS v4 usage guide and v3-to-v4 differences. An agent skill from mastra-ai/mastra.

    29k GitHub stars~2.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Bulletproof Frontend

    aaddrick/claude-pipeline

    Bulletproof CSS and frontend design principles from "Handcrafted CSS" by Dan Cederholm.

    130 GitHub stars~1k tokensUpdated 7 mo ago
    Frontend & DesignAuto-check passed
  • Frontend Development

    avibebuilder/claude-prime

    A skill your agent uses for ANY work involving React, Next.js, TypeScript, or Tailwind in the browser layer.

    120 GitHub stars~1.3k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Tailwind Refactor

What does Tailwind Refactor do?

Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup. Tailwind Refactor is an agent skill from pproenca/dot-skills. Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup.

When should I use Tailwind Refactor?

Tailwind Refactor fits situations like: tasks involving Tailwind CSS cleanup; class refactoring; utility modernization.

How do I install Tailwind Refactor in Claude Code?

Run `npx skills add pproenca/dot-skills --skill tailwind-refactor -a claude-code`. Or copy the skill folder (skills/.experimental/tailwind-refactor in pproenca/dot-skills) into .claude/skills/tailwind-refactor in your project. Claude Code loads it when a task matches its description.

How do I install Tailwind Refactor in Codex?

Run `npx skills add pproenca/dot-skills --skill tailwind-refactor -a codex`. Or copy the skill folder (skills/.experimental/tailwind-refactor in pproenca/dot-skills) into .agents/skills/tailwind-refactor in your project. Codex loads it when a task matches its description.

Can I use Tailwind Refactor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill tailwind-refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tailwind-refactor, .gemini/skills/tailwind-refactor, .github/skills/tailwind-refactor and .opencode/skills/tailwind-refactor in your project.

What does Tailwind Refactor need to run?

Going by SKILL.md and its folder, Tailwind Refactor needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Tailwind Refactor access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Tailwind Refactor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tailwind Refactor use?

Tailwind Refactor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tailwind Refactor use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to Tailwind Refactor?

Skills that share tags, products or a category with Tailwind Refactor: Unslop UI (JCarterJohnson/vibecoded-design-tells, 508 stars), Frontend Code Style (mailtrap/mailtrap-local, 106 stars), Frontend UI Functional (victorGPT/vibeusage, 131 stars) and Tailwind V4 (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tailwind Refactor?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.