
refactoring-ui-skill
A Claude Code skill that applies the concrete design rules from the book Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, hi…
Install with your AI
Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.
Install and set up refactoring-ui-skill (claude-skill project) into my current project. Found on https://claudeers.com/refactoring-ui-skill Repo: https://github.com/s0xDk/refactoring-ui-skill Homepage/docs: — Detected install method: claude-skill → # copy this skill into .claude/skills/refactoring-ui-skill/ Category: other. Platforms: api. Read the repo's README for exact setup and env vars, then install it and wire it into my project. Claudeers Health Verdict: active; community-verified: false. Confirm the source before running anything.
# copy the skill dir into your project: # .claude/skills/refactoring-ui-skill/ (or ~/.claude/skills/refactoring-ui-skill/ for all projects)
git clone https://github.com/s0xDk/refactoring-ui-skill
// compatibility
| Platforms | api |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | NOASSERTION |
| Pricing | open-source |
| Language | CSS |
Refactoring UI (Claude Code skill)
A Claude Code skill that teaches Claude the concrete, mechanical rules from the book Refactoring UI by Adam Wathan and Steve Schoger — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light.
Every rule and CSS value in this skill was cross-checked page-by-page against the book. It's not a summary — it's the book's decisions, made once, ready to apply.
What it does
Load this skill and Claude will, when styling or reviewing UI:
- Pick spacing, type sizes, weights, colors, shadows and radii from fixed scales instead of ad hoc values
- Build hierarchy through weight/color rather than piling on font-size
- Diagnose vague complaints ("looks off", "feels cheap") into specific, mechanical fixes
- Apply concrete techniques for depth, contrast, images, and breaking generic component shapes
It does not include the book itself — see Credits.
Repo structure
SKILL.md the skill: systems, procedure, hierarchy, hard rules
references/
systems.md building a color palette from scratch (HSL, saturation, hue rotation)
diagnose.md symptom -> fix table, for improving existing UI
techniques.md depth/light simulation, typefaces, grids, images
assets/
tokens.css a complete, contrast-verified starter token set
Installation
Claude Code loads skills from a folder containing a SKILL.md. Clone this repo into one
of the skill directories below — use the folder name refactoring-ui so it matches
the skill's declared name.
Personal skill (available in every project)
git clone https://github.com/<you>/refactoring-ui-skill.git ~/.claude/skills/refactoring-ui
Project skill (checked into a specific repo, shared with your team)
git clone https://github.com/<you>/refactoring-ui-skill.git .claude/skills/refactoring-ui
(Or add it as a git submodule at that path if you want to track updates.)
Restart Claude Code (or start a new session) after installing so it picks up the new skill.
Usage
The skill activates automatically whenever Claude is building or styling UI, picking font sizes/spacing/colors/shadows, designing a palette or design tokens, or when you say a UI "looks off", "looks amateur", or "feels cluttered/plain/unfinished." You can also invoke it explicitly:
/refactoring-ui make this dashboard look less amateur
Credits
All design rules and reasoning are drawn from Refactoring UI by Adam Wathan and Steve Schoger. This repo does not include the book's text or images — only original notes and CSS derived from its concepts. If you find this useful, buy the book: https://www.refactoringui.com/
License
MIT for the contents of this repo (see LICENSE). Does not extend to the book itself.
// faq
What is refactoring-ui-skill?
A Claude Code skill that applies the concrete design rules from the book Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, hierarchy through weight and color, and depth through emulated light — to building and fixing interfaces.. It is open-source on GitHub.
Is refactoring-ui-skill free to use?
refactoring-ui-skill is open-source under the NOASSERTION license, so it is free to use.
What category does refactoring-ui-skill belong to?
refactoring-ui-skill is listed under other in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/refactoring-ui-skill)
// retro hit counter
[](https://claudeers.com/refactoring-ui-skill)
// reviews
// guestbook
// related in Other
Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.
Huashu Design · HTML-native design skill for Claude Code · Claude Code 里 HTML 原生的设计 skill · 高保真原型 / 幻灯片 / 动画 + 20 设计哲学 + 5 维评审 + MP4 导出 · Agent-agnostic