Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tailwind-refactor

БесплатноБез исполняемых скриптовНе проверен

Tailwind CSS code refactoring patterns for v4 migration and anti-pattern cleanup. This skill should be used when refactoring Tailwind utility classes…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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

Priority Category Impact Prefix
1 Configuration Migration CRITICAL config-
2 Deprecated Utility Replacement CRITICAL dep-
3 Renamed Utility Updates HIGH rename-
4 Class Consolidation HIGH class-
5 Arbitrary Value Cleanup MEDIUM-HIGH arb-
6 Syntax Modernization MEDIUM syntax-
7 @apply & Architecture Cleanup MEDIUM arch-
8 Modern Feature Adoption LOW-MEDIUM adopt-

Quick Reference

1. Configuration Migration (CRITICAL)

2. Deprecated Utility Replacement (CRITICAL)

3. Renamed Utility Updates (HIGH)

4. Class Consolidation (HIGH)

Полный SKILL.md на GitHub

Установить tailwind-refactor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/adopt-container-queries.mdreferences/adopt-field-sizing.mdreferences/adopt-in-variant.mdreferences/adopt-not-variant.mdreferences/adopt-starting-variant.mdreferences/arb-breakpoint-to-theme.mdreferences/arb-dynamic-classes.mdreferences/arb-hex-to-theme.mdreferences/arb-spacing-to-scale.mdreferences/arb-zindex-to-scale.mdreferences/arch-apply-to-component.mdreferences/arch-domain-composition.mdreferences/arch-layer-to-utility.mdreferences/arch-safelist-to-source.mdreferences/arch-scoped-reference.mdreferences/class-border-color-explicit.mdreferences/class-container-utility.mdreferences/class-gap-over-space.mdreferences/class-hidden-priority.mdreferences/class-inset-shorthand.mdreferences/class-redundant-display.mdreferences/class-ring-color-explicit.mdreferences/class-size-utility.mdreferences/config-content-autodetect.mdreferences/config-css-theme.mdreferences/config-custom-variant.mdreferences/config-import-directive.mdreferences/config-postcss-plugin.mdreferences/config-preflight-defaults.mdreferences/config-theme-function.mdreferences/config-theme-inline.mdreferences/config-utility-directive.mdreferences/dep-decoration-utilities.mdreferences/dep-flex-shorthand.mdreferences/dep-opacity-modifiers.mdreferences/dep-text-ellipsis.mdreferences/dep-transform-composites.md

FAQ

Что делает скилл tailwind-refactor?

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.

Как установить скилл tailwind-refactor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tailwind-refactor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tailwind-refactor с