Skip to content
Agents tracked: 504 Releases (7d): 733 Agent status: 2 with issuesSince last limit reset: Claude 12d · Codex 10d For AI agents: Markdown Updated Nov 23, 2026

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

GitHub

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

Knowledge and rules for your assistantNothing to run: text files only

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.
Repositorys0xDk/refactoring-ui-skill
GitHub stars704
Skills1
CategoryDesign and frontend
Last updatedAug 26, 2026 · card checked Nov 12, 2026 at commit 4887214
Install countss0xDk/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

Most starred skill packs

s0xDk/refactoring-ui-skill: GitHub starstotal over time 704
s0xDk/refactoring-ui-skill: new stars per weekGitHub 7

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
Say: “/refactoring-ui make this dashboard look less amateur”

Its rules, in pictures

Fonts it uses

-apple-systemuses
Segoe UIuses
Robotouses
Noto Sansuses
Ubuntuuses
Cantarelluses
Helvetica Neueuses

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

Try it. Install it, open a screen that feels plain or cluttered and type "/refactoring-ui make this dashboard look less amateur". It works if the new values come from its fixed lists (spacing like 16, 24, 32 px; two font weights) and each change is named as a fix for a specific problem.

Skills in s0xDk/refactoring-ui-skill

SkillIn plain wordsChanges 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 tableYes 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 name
  • Clone into a folder named refactoring-ui-skill
    Clone into .claude/skills/refactoring-ui
    The folder name should match the skill's declared name
  • Mix 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 values
  • Treat 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 sizes
  • Use 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 needPick
You want fixed scales, hard rules and a starter tokens file drawn from Refactoring UIThis pack
You want design commands to steer, critique and audit UI, with anti-pattern checkspbakaus/impeccable
You want art direction with reference images and a browser checkLeonxlnx/taste-skill
You want a set of design-engineering skills rather than one rule setibelick/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?

UseAnswerCondition
In a commercial app YesMIT for the pack's own text and CSS; it grants no rights to the book
Passing the files on With conditionsMIT: keep the copyright and permission notice; the book itself is not covered
Work for clients YesMIT
Shipped inside your app YesMIT: 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

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

WhenWhat happens
InstallMarkdown files and one CSS file. No hooks, no scripts, nothing runs.
While stylingThe 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

All design and frontend skills

# Install
1
nextlevelbuilder/ui-ux-pro-max-skill CheckedRuns scripts

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
Leonxlnx/taste-skill CheckedRuns scripts

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
tt-a1i/archify CheckedRuns scripts

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
cathrynlavery/diagram-design CheckedRuns scripts

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
Nutlope/hallmark CheckedRuns scripts

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

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