refactoring-ui-design

refactoring-ui-design is a skill for Claude Code, Codex from chaxus/ran. It costs 44 tokens per session (1,500 once invoked), scanned A, original, MIT.

A practical guide for designing and reviewing web interfaces, including screens, forms, dashboards, landing pages, and documentation. It treats visual improvement as concrete changes to layout, spacing, typography, colour, and hierarchy.

In plain words
What is it for?
Use it when building, redesigning, or reviewing a frontend UI and deciding how to improve its content priority, spacing, visual hierarchy, and polish.
Why use it?
It helps identify why an interface feels cluttered, flat, generic, or difficult to scan, then turns those problems into specific design changes.

Skill for Claude CodeCodex

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/chaxus/ran/refactoring-ui-design
Any agent
npx skills add chaxus/ran --skill refactoring-ui-design
Clone the repo
git clone --depth 1 https://github.com/chaxus/ran

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-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaxus/ran/refactoring-ui-design.svg)](https://agentmods.dev/skills/chaxus/ran/refactoring-ui-design)
Your own site
<a href="https://agentmods.dev/skills/chaxus/ran/refactoring-ui-design"><img src="https://agentmods.dev/badge/skills/chaxus/ran/refactoring-ui-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,500 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 $0.00044 $0.01500
Opus 5 $0.00022 $0.00750
Sonnet 5 $0.00009 $0.00300
Haiku 4.5 $0.00004 $0.00150

Measured 5d ago against content hash 67b5024d39f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

refactoring-ui-design 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 5d 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.

packages/ranui/skills/refactoring-ui-design/SKILL.md · 117 lines

How it starts

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

Refactoring UI Design

Overview

Apply Refactoring UI's developer-oriented design tactics to make an interface clearer, more polished, and easier to use. Treat visual design as a sequence of concrete refactors, not as decoration or vague taste.

This skill is distilled from the public Refactoring UI site and its published table of contents. Do not quote or reproduce paid book content.

When to Use

Use this when:

  • Building or redesigning a frontend screen, component, dashboard, form, landing page, or documentation page.
  • Reviewing a UI that "works" functionally but looks unpolished.
  • Choosing spacing, typography, colors, shadows, imagery, or visual hierarchy.
  • Converting a wireframe or plain HTML into a finished interface.

Do not use this to override explicit product requirements, an existing design system, accessibility requirements, or brand guidelines. Use it to improve execution within those constraints.

Workflow

  1. Start with the feature, not the layout.

    • Identify the primary job, primary user action, and most important information.
    • Design enough real content to solve that job before adding surrounding sections.
    • Avoid designing too many states or pages before the core screen works.
  2. Choose a personality, then limit choices.

    • Pick a small set of reusable decisions for radius, spacing, type scale, color, shadow, and border strength.
    • Reuse tokens and local patterns. Random one-off values usually make the UI look accidental.
  3. Establish hierarchy before styling details.

    • Not all elements are equal. Make the primary action, current state, and key content visually dominant.
    • Use size, weight, color, contrast, spacing, and position together; do not rely on font size alone.
    • De-emphasize supporting labels, metadata, disabled actions, helper text, and secondary controls.
    • Replace unnecessary labels with context, grouping, icons, or stronger content structure when the meaning remains clear.
  4. Fix layout and spacing.

    • Start with more whitespace than feels natural, then tighten only where relationships need to be clear.
    • Use a spacing scale instead of arbitrary margins.
    • Do not fill the whole screen just because space exists.
    • Avoid ambiguous spacing: related items should be closer to each other than to unrelated items.
    • Prefer simple alignment and grouping over complex grids unless the content genuinely needs a grid.

Read the full file on GitHub · 117 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 117 lines · 44 tokens per session scan A 67b5024d39f6

Subscribe to this mod's changes

refactoring-ui-design is a skill published in the GitHub repository chaxus/ran (273 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,500 once invoked, about $0.0002 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

tool-ui

Find, install, configure, and integrate Tool UI components in React apps using shadcn registry entries, compatibility checks, scaffolded runtime wiring, toolkit setup with assistant-ui, and troubleshooting workflows. Use when developers ask to add one or more Tool UI components, choose components for a use case…

assistant-ui/tool-ui · 89 tokens

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

dile-components

Use when building or modifying UI with the Dile Components library (@dile/ui, @dile/crud, @dile/editor, @dile/utils, @dile/lib, @dile/iconlib, @dile/icons) — a framework-agnostic, Lit-based web component catalog. Trigger when installing/importing dile- custom elements, using tags like , , , building CRUD screens…

Polydile/dile-components · 123 tokens

svelte-components

Build reusable Svelte components with best practices for composition and state management.

itlackey/akm · 13 tokens

frontend-ui-design

Use when design and build production-grade UI components using React, Vue, or vanilla HTML/CSS. Create responsive layouts, design systems, and accessible interfaces. Use when designing and build production-grade ui components using react, vue, or.

oyi77/1ai-skills · 51 tokens

pebble-protocol-ui

Component catalogue for Pebble pebblesend type "ui" blocks — OpenUI Lang syntax, components, the action model (buttons, forms, $state), and what Pebble does NOT support. View when building an interactive UI block.

skyf0xx/Pebble · 58 tokens