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.
npx agentmods add skills/chaxus/ran/refactoring-ui-designnpx skills add chaxus/ran --skill refactoring-ui-designgit clone --depth 1 https://github.com/chaxus/ranWrote 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.
[](https://agentmods.dev/skills/chaxus/ran/refactoring-ui-design)<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>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.
| Model | Per session | Once 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 |
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.
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
-
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.
-
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.
-
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.
-
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.
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.
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.
- 5d ago First seen · 117 lines · 44 tokens per session scan A 67b5024d39f6
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.
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…
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…
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…
svelte-components
Build reusable Svelte components with best practices for composition and state management.
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.
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.