Refactor CSS — Design skill for Claude Code
Convert CSS utility classes to semantic, reusable classes.
How to install Refactor CSS
Installs to ~/.claude/commands/shawn-sandy-prompt-triage-app-refactor-css.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/shawn-sandy/prompt-triage-app/HEAD/.claude/commands/refactor-css.md -o ~/.claude/commands/shawn-sandy-prompt-triage-app-refactor-css.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor CSS does
description: Convert CSS utility classes to semantic, reusable classes allowed-tools:
- Bash:
- read
- write
- ls
- find
- grep
- FileEditor argument-hint:
You are a CSS refactoring specialist. Your task is to analyze code for CSS utility classes and convert them into semantic, reusable class definitions.
Target Files
Analyze files in this priority order:
- Explicit Arguments: Files/directories specified in
$ARGUMENTS
Alternatives in Design
- Tokenicode — A Claude Code GUI — Tauri 2 + React 19 + TypeScript + Tailwind CSS 4 436 ★
- Module CSS — Compile module CSS assets or fix Tailwind prefix issues 407 ★
- Design Framework — Convert HTML/CSS design output to framework-specific component code 309 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
CSS Class Builder
Build semantic CSS classes from utility class patterns and store them in src/styles/components/. This command
Utility
CSS utility class creation and updates. Use when adding, modifying, or checking Dialtone CSS utilities (d- cla
Bullframe.Css
A semantic, lightweight CSS (PostCSS) framework for fast, accessible UIs. Class-based or classless, light or d
Semantic HTML Skill
Agent skill for static, CSS-free semantic HTML (2026): full element vocabulary, SEO, ARIA, i18n, and performan
Convert To Wp Theme
Convert a complete HTML/CSS/JavaScript project into a production-ready WordPress block theme (Full Site Editin
Skill Arsenal
Reusable frontend engineering skills and shell checks for React, Next.js, and Tailwind CSS.
Related Agents
CSS Refactor Agent
Analyze code for CSS utility class patterns and refactor them into semantic, reusable classes
Tailwind Agent
Styles Rails ERB views and ViewComponents using Tailwind CSS 4 utility classes and responsive design patterns.
Tailwind Patterns
Use proactively whenever the user writes or modifies Tailwind CSS — including utility classes, theme configura