refactoring-ui

refactoring-ui is a skill for Claude Code, Codex from jaywilburn/refactoring-ui-skill. It costs 154 tokens per session (11,430 once invoked), scanned A, original, MIT.

A set of interface-design guidelines based on Refactoring UI principles, covering visual personality, colour, layout, hierarchy, typography, spacing, responsive design and interface copy.

In plain words
What is it for?
Use it when designing pages or components, choosing a visual style, making layouts responsive, improving readability or writing interface text.
Why use it?
It helps turn scattered styling choices into an intentional visual hierarchy and a consistent interface.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jaywilburn/refactoring-ui-skill/refactoring-ui
Any agent
npx skills add jaywilburn/refactoring-ui-skill --skill refactoring-ui
Clone the repo
git clone --depth 1 https://github.com/jaywilburn/refactoring-ui-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refactoring-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaywilburn/refactoring-ui-skill/refactoring-ui.svg)](https://agentmods.dev/skills/jaywilburn/refactoring-ui-skill/refactoring-ui)
Your own site
<a href="https://agentmods.dev/skills/jaywilburn/refactoring-ui-skill/refactoring-ui"><img src="https://agentmods.dev/badge/skills/jaywilburn/refactoring-ui-skill/refactoring-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.11430
Opus 5 $0.00077 $0.05715
Sonnet 5 $0.00031 $0.02286
Haiku 4.5 $0.00015 $0.01143

Measured 6d ago against content hash e8df9a646129, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

refactoring-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/refactoring-ui/SKILL.md · 1,119 lines

How it starts

The opening of the file, as written. The whole thing — 1,119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Refactoring UI Design System

Core Philosophy

Design decisions should be made with intention, not decoration. Every visual choice—color, size, spacing, weight—communicates hierarchy and guides the user's attention. Start with too much whitespace, then remove it. Start with less contrast, then add it where needed.

Before writing any CSS, answer: what should this feel like? A financial dashboard and a children's learning app demand completely different visual treatments. The sections below move from strategic thinking (personality, color theory, layout strategy) down to tactical execution (spacing values, shadow syntax, animation timing).


Design Thinking

Design Personality & Tone

Every interface has a personality whether you choose one or not. Choosing intentionally is the difference between a design that feels right and one that feels generic.

The Personality Spectrum

Plot your design on two axes:

  • Formal ↔ Casual: How structured and serious vs relaxed and approachable
  • Reserved ↔ Expressive: How restrained and minimal vs bold and vibrant

Four quadrants:

Reserved Expressive
Formal Banking, legal, enterprise, government Luxury brands, high-end retail, fashion
Casual Developer tools, documentation, utilities Gaming, social apps, children's education

Mapping Design Signals to Personality

Each visual lever pushes the design toward a quadrant:

  • Border-radius: 2-4px (formal) → 8-12px (moderate) → 16px+ (casual). Match to personality—don't default to max.
  • Font choice: Geometric sans like Inter/Roboto (modern, neutral), humanist sans like Source Sans/Nunito (friendly, approachable), serif like Merriweather/Playfair (traditional, authoritative), monospace accents (technical, developer-oriented)
  • Color saturation: Low/muted (reserved) → high/vibrant (expressive). See Color Theory section.
  • Whitespace density: Generous (formal, premium) → tight (casual, energetic, data-dense)
  • Shadow style: Subtle and diffused (reserved) → dramatic with strong offsets (expressive). Or no shadows at all for minimal/flat designs.
  • Imagery style: Photography (authentic, serious) → illustration (approachable, playful) → icons only (utilitarian, technical)

Read the full file on GitHub · 1,119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 1,119 lines · 154 tokens per session scan A e8df9a646129

Subscribe to this mod's changes

refactoring-ui is a skill published in the GitHub repository jaywilburn/refactoring-ui-skill (28 stars, last pushed 3mo ago), licensed MIT. It adds 154 tokens to every session and 11,430 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

component-search

Search 21st.dev component registry for production-ready React components. Finds components by natural language description, filters by framework and style system, returns ranked results with install instructions. Use when looking for UI components, finding alternatives to existing components, or sourcing design system…

yonatangross/orchestkit · 57 tokens

design-system-architect

Expert guide for designing, building, and maintaining scalable UI design systems with design tokens, headless primitives, Material Design 3 (M3), Tailwind v4 @theme, and WCAG 2.2 accessibility.

roedyrustam/vibes-plug · 50 tokens

website-design-cloner

Analyzes and reverse-engineers website designs directly from a target URL, extracting layout structures, design tokens (colors, typography, spacing), component hierarchies, visual assets, and responsive behaviors to enable full 1:1 duplication into modern code (Tailwind CSS v4, React/Next.js, HTML/CSS). / Mempelajari…

roedyrustam/vibes-plug · 129 tokens

svg-animation-motion-expert

Expert guide for web animations: SVG manipulation, Framer Motion 12+, GSAP 3, CSS Scroll-Driven Animations, and View Transitions API / Panduan ahli animasi web.

roedyrustam/vibes-plug · 46 tokens

absolute-ui

Build polished, intentional UIs with concrete CSS/Tailwind values — typography, color, layout, spacing, dark mode, accessibility, animations, components. Encodes specific, opinionated rules with exact values, not vague advice. Covers buttons, cards, forms, tables, navigation, dashboards, landing pages, onboarding, and…

maddhruv/absolute · 121 tokens

transitions-dev

Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs…

Jakubantalik/transitions.dev · 410 tokens