Skip to main content
skill CX Codex

ui-refactor — Claude Code skill: what it does, how to install

Applies systematic design guidelines to help coding agents clean up messy layouts, define spacing scales, and pick accessible color schemes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LovroPodobnik/refactoring-ui-skill --skill ui-refactor -a claude-code
Open on GitHub

What ui-refactor does

The skill grounds user interface decisions in structured rules rather than guesswork. When prompted to make an interface look better, the agent avoids jumping straight to navigation bars or decorative accents. It isolates the target component and drafts it in grayscale, fixing spacing and alignment before touching colors.

The instructions reference guides covering typography, HSL palettes, layout grids, and visual depth. Arbitrary values break layouts fast. Because of that risk, the skill forces strict scales for margins, font sizes, and color steps.

Quick heuristics help guide the interface tone, contrasting formal layouts featuring serif fonts with rounded, relaxed styles. The workflow also forces the agent to polish the standard happy path before handling complex edge cases.

What it helps with

  • clean up cluttered layouts using structured spacing scales
  • build accessible HSL color palettes with high contrast
  • establish typography hierarchies for forms and dashboards
  • simplify component styling by focusing on happy path flows

Example prompts for the agent

  • Make this dashboard card look cleaner and fix the messy spacing
  • Create an accessible color palette and typography scale for my settings page
  • This form is overcrowded, refactor the layout using ui-refactor rules

How to install ui-refactor

1Skills CLI (Vercel)

npx skills add LovroPodobnik/refactoring-ui-skill --skill ui-refactor -a claude-code

2Manually: put the files in place

~/.claude/skills/ui-refactor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ui-refactor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ui-refactor

How to install ui-refactor in Claude Code?

Run npx skills add LovroPodobnik/refactoring-ui-skill --skill ui-refactor -a claude-code in your terminal.

What does ui-refactor do?

It provides structured design rules for AI coding assistants. Instead of making random CSS tweaks, the agent applies strict spacing scales, typography hierarchies, and contrast guidelines.

What workflow does the ui-refactor skill enforce?

The agent tackles specific features first in grayscale wireframes. Colors, shadows, and font pairings are added only after the layout and alignment are resolved.

Similar skills

Everything for Design →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor