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.

Good fit Use it when designing pages or components, choosing a visual style, making layouts responsive, improving readability or writing interface text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaywilburn/refactoring-ui-skill/refactoring-ui
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refactoring-ui

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00062 $0.04572
Sonnet 5.5 $0.00031 $0.02286
Haiku 4.5 $0.00015 $0.01143

Measured 1mo ago against content hash e8df9a646129, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (96 stars, last pushed 5mo ago), licensed MIT. It adds 154 tokens to every session and 11,430 once invoked, about $0.0006 per session on Opus 5.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

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

setting-up-charcoal-tailwind

Use before writing or editing code that uses @charcoal-ui with Tailwind, and whenever such a project's charcoal setup is unverified or incomplete. The v2 token route still needs the theme CSS and the .ch-token-v2 opt-in, which the preset does not supply.

pixiv/charcoal · 63 tokens

choosing-charcoal-styling

Use before writing or editing any code that imports @charcoal-ui, and whenever a project's charcoal setup is unverified or incomplete. Decides between the CSS variables, Tailwind and styled-components routes, and names the setup steps that are silently missing in most projects.

pixiv/charcoal · 61 tokens

setting-up-charcoal-styled

Use before writing or editing code that uses @charcoal-ui with styled-components, TokenInjector, createTheme or addThemeUtils, and whenever such a project's charcoal setup is unverified or incomplete.

pixiv/charcoal · 46 tokens

choosing-charcoal-tokens

Use before choosing any color, text style, spacing, radius or border value in code that uses @charcoal-ui, and whenever a literal is about to be written where a token exists — a hex color, a px padding or gap, a font-size, a border-radius or border-width. Charcoal has one correct token for each of these and the choice…

pixiv/charcoal · 111 tokens

variant-design-system

Design System mode — tokens → components → pages three-layer workflow. Generate a complete token set (palette/type/spacing/motion/elevation/radius), confirm it, then all downstream outputs are visually consistent. Triggers on: ds, design system, tokens, create token set, define palette, define tokens, set up tokens…

YuqingNicole/variant-design-skill · 74 tokens