Refactoring UI skill: fixed design scales for interfaces
s0xDk/refactoring-ui-skill
Your AI assistant styles screens from fixed lists of sizes, spacing, colours and shadows instead of guessing each value. It builds emphasis with weight and colour, not just bigger text. When you say a screen "looks off", it looks up the matching fix in a symptom table.
Pack description by its author: “Your AI assistant styles screens from fixed lists of sizes, spacing, colours and shadows instead of guessing each value. It builds emphasis with weight and colour, not just bigger text. When you say a screen "looks off", it looks up the matching fix in a symptom table.”
Design and frontendKnowledge and rules for your assistant
1. Changes your files
Skills that write or edit files: refactoring-ui.
github.com/s0xDk/refactoring-ui-skill/blob/4887214/2. Runs code on your machine
Install: Markdown files and one CSS file. No hooks, no scripts, nothing runs. While styling: The assistant may copy assets/tokens.css into your project as a starting point.
github.com/s0xDk/refactoring-ui-skill/blob/4887214/3. Sends data
Text and CSS only. Install from github.com/s0xDk/refactoring-ui-skill; the README install lines use a placeholder owner, so check the URL before cloning.
github.com/s0xDk/refactoring-ui-skill/blob/4887214/4. Commercial use
MIT for the pack's own text and CSS; it grants no rights to the book
github.com/s0xDk/refactoring-ui-skill/blob/4887214/Checked against the pack's files at commit 4887214, on Nov 12, 2026. Tap a verdict to see its source.How we checkedReport an error
Good for you if
- You build a web page, app screen, dashboard or landing page with Claude Code and want it to look less amateur
- You need to pick font sizes, spacing, colours, shadows or corner rounding and want a clear rule for each
- You want a ready colour and spacing starter file with a dark mode
- You have a screen that feels cluttered, plain or unfinished and want specific fixes
Probably not for you if
- You want the book itself: the pack holds only notes and starter values drawn from its ideas
- Your project already has its own design system: the pack tells the assistant never to invent values outside its own lists
What you'll notice
- Spacing and text sizes picked from fixed lists (4, 8, 12, 16, 24 px and so on)
- Two font weights only, and three text colours: dark, grey, lighter grey
- Colours written as HSL with nine shades each, never made lighter or darker on the fly
- Vague complaints turned into concrete fixes from a symptom table
What you need
- Claude Code
- Free
- Clone the folder into your Claude Code skills folder and restart
- The pack does not include the book; its README links to the book's site.
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
| Repository | s0xDk/refactoring-ui-skill |
|---|---|
| GitHub stars | 704 |
| Skills | 1 |
| Category | Design and frontend |
| Last updated | Aug 26, 2026 · card checked Nov 12, 2026 at commit 4887214 |
| Install counts | s0xDk/refactoring-ui-skill on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
s0xDk/refactoring-ui-skill popularity over time
What Refactoring UI skill does
- Fixed scales for everything: spacing, type sizes, two font weights, opacity, nine-shade colour ramps, five shadow levels, one border radius
- A seven-step way of working: start from one feature, work in greys first, start with too much space and remove it, design mobile first
- Hierarchy before styling: primary, secondary and tertiary content, three text colours at most, buttons styled by importance, not by meaning
- Nine hard rules, such as no grey text on a coloured background, no em units for the type scale, more space around a group than inside it, colour never the only signal
- Reference files for building a palette from scratch, a symptom-to-fix table, and techniques for depth, shadows, typefaces and images
- A starter tokens.css with light and dark mode, contrast checked by the author
From the pack's SKILL.md files, summarised by AgentGid.
The skill, explained
refactoring-ui
Styles or reviews a screen using fixed scales and a symptom-to-fix table
You give
- The screen or component to build or improve
- What feels wrong, in your own words (looks off, cluttered, plain)
- Your brand colour, if you have one, to retune the starter ramps
You get
- Values picked from fixed spacing, type, colour and shadow scales
- Specific fixes for each vague complaint, from the diagnose table
- A starter tokens.css with roles like surface, text and action, and a dark mode
Its rules, in pictures
Fonts it uses
Drawn by AgentGid from the values in the skill's files. This is not output of the skill; sample text is ours.
See it in action
The skill defines what its answer looks like. Its own example:
Symptom: Cramped, claustrophobic What's actually wrong: Space was added until it stopped looking bad Fix: Start over with far too much space, then remove until happy
From references/diagnose.md.
When to reach for it
Skills in s0xDk/refactoring-ui-skill
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
refactoring-ui/refactoring-ui <task>, or on its own when you build or style an interface |
Styles or reviews a screen using fixed scales and a symptom-to-fix table | Yes | Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard,…npx skills add s0xDk/refactoring-ui-skill --skill refactoring-ui |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- It switches on by itself whenever the assistant builds or styles an interface, or when you say a screen looks off.
- It is strict: the assistant is told never to use a spacing, size or colour value that is not on its lists.
- The book is not included. The pack holds the author's notes and starter values drawn from it; the MIT license does not cover the book.
- The folder name matters: install it as refactoring-ui so it matches the skill's name.
- Dark mode guidance goes beyond the book, as the pack says itself.
Before you start
Works in
- Claude Code: skills folder
Mistakes to avoid
Run the README's clone command as written
Replace <you> with s0xDk in the URL
The README install lines use a placeholder owner nameClone into a folder named refactoring-ui-skill
Clone into .claude/skills/refactoring-ui
The folder name should match the skill's declared nameMix the simple five shadows from SKILL.md with the two-part shadows from techniques.md
Pick one shadow set per project
The two sets use different valuesTreat the em-based line length as a breach of the "never em" rule
Keep em for max-width of text; the rule covers only the type scale
The pack scopes the em ban to font sizesUse the raw grey and primary shades directly in components
Use the role tokens (surface, text-primary, action) so dark mode works
The dark-mode block overrides only the roles
Which one to pick
| If you need | Pick |
|---|---|
| You want fixed scales, hard rules and a starter tokens file drawn from Refactoring UI | This pack |
| You want design commands to steer, critique and audit UI, with anti-pattern checks | pbakaus/impeccable |
| You want art direction with reference images and a browser check | Leonxlnx/taste-skill |
| You want a set of design-engineering skills rather than one rule set | ibelick/ui-skills |
Works well with
- colorbox: Generates multi-step colour scales, matching the pack's nine-shade HSL ramps
- realtime-colors: Preview text, background, primary and accent colours on a sample site before retuning tokens.css
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT for the pack's own text and CSS; it grants no rights to the book |
| Passing the files on | With conditions | MIT: keep the copyright and permission notice; the book itself is not covered |
| Work for clients | Yes | MIT |
| Shipped inside your app | Yes | MIT: tokens.css may ship in an app with the notice kept |
Install Refactoring UI skill
Official commands from the repository
git clone https://github.com/s0xDk/refactoring-ui-skill.git ~/.claude/skills/refactoring-ui
The README shows <you> in place of the owner name; use s0xDk. Restart Claude Code or start a new session after installing.
Remove: delete the folder ~/.claude/skills/refactoring-ui
git clone https://github.com/s0xDk/refactoring-ui-skill.git .claude/skills/refactoring-ui
Or add it as a git submodule at that path.
Remove: delete the folder .claude/skills/refactoring-ui
Or with the open-source skills CLI: npx skills add s0xDk/refactoring-ui-skill. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 4887214, Nov 12, 2026
| When | What happens |
|---|---|
| Install | Markdown files and one CSS file. No hooks, no scripts, nothing runs. |
| While styling | The assistant may copy assets/tokens.css into your project as a starting point. |
Quick answers
- Is it free?
- Yes. The pack is MIT licensed; the book it draws on is a separate paid work.
- Does it include the book?
- No. Only the author's notes and CSS drawn from its ideas.
- Does it run any code?
- No. It is text and one CSS file; nothing runs on install.
- Does it handle dark mode?
- Yes. The starter tokens include a dark-mode block that changes only the role colours.
- Does it check accessibility?
- It sets contrast rules (4.5:1 for normal text, 3:1 for large text and control borders); the starter colour pairs were checked by the author.
Checked by AgentGid on Nov 12, 2026 against commit 4887214 of the pack's own files. agent.md for AI agents · Report a mistake
More design and frontend skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a local design library: UI styles, colour palettes, font pairings and UX rules for many product types. Before it builds a page, it looks up a matching style, colours and fonts and follows a checklist. Extra skills make logos, banners, slides and brand files; logos, mockups and icons need your own key for an outside image service. |
153K | +13.9K | 7 | ||
| 2 |
Stops building the average landing page. It picks one of 20 researched design directions, finds real, credited pictures in open archives, then checks the page in a real browser and fixes what looks wrong. Dashboards and app screens get their own set of rules. |
120K | +18.7K | 1 | ||
| 3 |
Turns a description, a Mermaid sketch or your project's code into an interactive diagram saved as one HTML file. It can also answer a question as a one-page explainer, with the conclusion first. The pack's own tools check every file before handing it to you. |
98.7K | +12.7K | 5 | ||
| 4 |
Draws clean, editorial diagrams in your brand colours and fonts. You describe the diagram in plain words and get one HTML file you open with a double click. It can also redraw old draw.io, Mermaid or Excalidraw diagrams and export them as SVG or PNG. |
70K | +11.4K | 1 | ||
| 5 |
Builds web pages that look designed, not machine-made. It asks once for your real material and picks one of fifty visual themes. Then it builds the page and checks it against common AI design habits. Name it and it will also redesign or review a page you already have. |
59.2K | +25.2K | 1 | ||
| 6 |
alchaincyf/huashu-design
Checked
One large design playbook for your AI assistant, written in Chinese. It makes clickable app prototypes, web pages, slide decks, infographics and short animated videos as HTML, then exports them to PDF, PowerPoint, MP4 or GIF. Before any new design it shows you three real drafts to choose from and stops until you pick one. |
30.3K | +4,613 | 1 |
No pack matches.