@s13k_: Turned the Refactoring UI book into a skill Drop it in, tell Claude to fix your ugly UI, watch it actually happen
Summary
This article introduces a GitHub skill that incorporates the design principles from the 'Refactoring UI' book into Claude Code, enabling AI-assisted UI improvements based on concrete, mechanical rules.
View Cached Full Text
Cached at: 08/27/26, 05:58 PM
Turned the Refactoring UI book into a skill
Drop it in, tell Claude to fix your ugly UI, watch it actually happen
https://t.co/OFxxuaJs3Q
s0xDk/refactoring-ui-skill
Source: https://github.com/s0xDk/refactoring-ui-skill
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.
Similar Articles
@seelffff: a principal consultant from synergetic solutions just published a repo that changes how claude code works. claude-skill…
A principal consultant from Synergetic Solutions published claude-skills, a repository with 66 specialized skills for Claude Code that can be installed via a single command, enhancing its full-stack development capabilities with context-aware activation, reference files, and workflow integrations.
@JoePro: https://x.com/JoePro/status/2076877282312954311
A tip on using Claude's custom skills feature to improve front-end UI design, avoiding AI-generated designs that look generic.
@tom_doerr: Turns technical books into Claude Code skills https://github.com/virgiliojr94/book-to-skill…
book-to-skill converts technical books into structured skills for Claude Code, allowing on-demand reference and eliminating hallucination.
@tranmautritam: This is the best design engineering skill set I've seen. Each skill turns AI output into clean UI, not generic slop. Sa…
The tweet shares a skill set called 'UI Skills for Design Engineers' that helps turn AI-generated output into polished user interfaces, including specific skills for codebase auditing and UI design principles.
@pengchujin: Lately, while working on APP development, I've been using a Skill called Apple Design, which compiles the interface and…
The post introduces a GitHub project by Emil Kowalski featuring a collection of AI Agent Skills that help designers and engineers improve UI design, animations, and development practices based on Apple's principles.