From aiskills
Use when the user asks for UI/UX design advice, design reviews, visual hierarchy improvements, color system help, typography guidance, spacing decisions, depth/shadow usage, image handling, or finishing touches on any interface. Inspired by "Refactoring UI" by Adam Wathan & Steve Schoger. Triggers: "how do I make this look better?", color palettes, type scales, spacing systems, visual hierarchy, design reviews, shadows/depth, image handling, empty states, borders.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aiskills:refactoring-uiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Design advice grounded in the principles taught by Adam Wathan & Steve Schoger in their book *Refactoring UI*. **The book itself contains the original prose, illustrations, side-by-side examples, and case studies — buy it at https://refactoringui.com for the full material.** This skill provides reformulated guidance for use as an AI assistant reference.
Design advice grounded in the principles taught by Adam Wathan & Steve Schoger in their book Refactoring UI. The book itself contains the original prose, illustrations, side-by-side examples, and case studies — buy it at https://refactoringui.com for the full material. This skill provides reformulated guidance for use as an AI assistant reference.
The SKILL.md alone is an index of references. The detail you need to give accurate answers lives in the reference files. Reading this SKILL.md is not enough.
| Task involves | Required reading |
|---|---|
| Color systems, typography, spacing scales — defining the system | references/01-foundations.md |
| Layout, white space, visual hierarchy, page-level structure | references/02-page-mechanics.md |
| Color usage, HSL, greys, contrast, shadows, depth, images | references/03-visual-treatment.md |
| Empty states, borders, accents, finishing touches | references/04-polish.md |
| Motion, microinteractions, transitions, hover/press states, loading | references/05-motion.md |
| Dark mode, multi-theme color tokens, theme toggle, contrast strategy | references/06-dark-mode.md |
| Modals, forms, tables — component-specific layout and behavior patterns | references/07-component-patterns.md |
Every design recommendation, ratio, value, or rule you cite MUST be backed by a citation in the form:
[source: references/<file>.md]
Example: "Use weight and color, not just font size, to establish hierarchy [source: references/02-page-mechanics.md]"
If you write a claim without having read the reference that backs it,
prepend FROM_MEMORY (unverified): to that claim. Do not hide it.
Inspired by 'Refactoring UI' by Adam Wathan & Steve Schoger — refactoringui.com
| File | Topics |
|---|---|
references/01-foundations.md | Project mindset: feature-first work, scope discipline, defining systems, picking a voice |
references/02-page-mechanics.md | Visual hierarchy, layout, white space, spacing scales, typography |
references/03-visual-treatment.md | Color systems (HSL, shades, greys, contrast), depth and shadows, image handling |
references/04-polish.md | Finishing touches: borders, accents, empty states, decorative defaults, design intuition |
references/05-motion.md | Motion system (durations, easings), hover/press states, loading patterns, prefers-reduced-motion — complementary (not from RUI) |
references/06-dark-mode.md | Dark mode color tokens, text contrast, shadow handling, images, theme toggle — complementary (extrapolates RUI's HSL principles) |
references/07-component-patterns.md | Modals (focus, layout), forms (labels, validation), tables (density, alignment) — complementary (extends RUI principles to specific components) |
em for type scales (compounds when nested) [source: references/02-page-mechanics.md]lighten() / darken() to derive shades [source: references/03-visual-treatment.md]This skill summarizes design principles inspired by Refactoring UI by Adam Wathan & Steve Schoger. Concepts described here are paraphrased into the maintainer's own words; original text, examples, and illustrations remain the property of the authors and live in the book. Buy the book at https://refactoringui.com — it contains the full material with side-by-side visual examples and case studies that this skill does not reproduce.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub maccesar/aiskills --plugin aiskills