Refactoring UiCAUTION
Wondel.ai Agent Skills — Business, Marketing, UX & Coding Frameworks from Bestselling Books. 50 skills + 12 guided journeys for Claude Code, Codex, Cursor & other agentskills.io agents.
Overview
Wondel.ai Agent Skills — Business, Marketing, UX & Coding Frameworks from Bestselling Books. 50 skills + 12 guided journeys for Claude Code, Codex, Cursor & other agentskills.io agents.
c502026d022aOBSERVED · 2026-10-10Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| cursor | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: refactoring-ui description: 'Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.' license: MIT metadata: author: wondelai version: "1.5.1" --- # Refactoring UI Design System A practical, opinionated approach to UI design. Apply these principles when generating frontend code, reviewing designs, or advising on visual improvements. ## Core Principle **Design in grayscale first. Add color last.** This forces proper hierarchy through spacing, contrast, and typography before relying on color as a crutch. **The foundation:** Great UI isn't about talent — it's about systems. Constrained scales for spacing, type, color, and shadows produce consistently professional results. Start with too much white space and remove; leave details (icons, shadows, micro-interactions) until layout and hierarchy work. ## Scoring **Goal: 10/10.** Score by counting satisfied rows in the [Quick Diagnostic](#quick-diagnostic) (8 yes/no checks): `score = round(satisfied / 8 × 10)`. Bands follow directly: **10** = all 8 pass (hierarchy reads blurred and in grayscale, every value on a scale); **9** = exactly 1 gap (usually weak hierarchy or thin white space); **6-8** = 2-3 gaps; **<=5** = 4+ gaps (arbitrary spacing, color doing the work hierarchy should, or failing contrast). Always state the current score and the specific diagnostic rows to fix to reach 10/10. ## The Refactoring UI Framework Seven principles for building professional interfaces without a designer: ### 1. Visual Hierarchy **Core concept:** Not everything can be important. Create hierarchy through three levers: size, weight, and color. **Why it works:** When every element competes for attention, nothing stands out; deliberately de-emphasizing secondary content makes primary content powerful by contrast. **Key insights:** - Combine levers, don't multiply — primary text = large OR bold OR dark, not all three; save "all three" for the single most important element - Labels are secondary — form labels, table headers, and metadata support the data, not compete with it; make them smaller, lighter, or uppercase-small - Semantic color ≠ visual weight — a muted secondary button often beats screaming red for routine destructive actions **Product applications:** | Context | Hierarchy Technique | Example | |---------|---------------------|---------| | **Form fields** | De-emphasize labels, emphasize values | Small uppercase label above large value | | **Dashboards** | Key metric large, context small | "$42,300" large, "vs last month" small | | **Tables** | De-emphasize headers, emphasize data | Headers uppercase small gray, data normal | **Design patterns:** - Three-level hierarchy: Size (large/base/small), Weight (bold/medium/normal), Color (dark/medium/light gray) - Button hierarchy: primary (filled), secondary (outlined or muted), tertiary (text only) **Ethical boundary:** Don't use hierarchy tricks to hide important information like pricing, terms, or cancellation options. See [references/advanced-patterns.md](references/advanced-patterns.md) when designing components beyond static layout — interaction/hover/focus states, form design, empty states, border-radius systems, text truncation, and responsive breakpoints. ### 2. Spacing & Sizing **Core concept:** Use a constrained spacing scale, not arbitrary values. Spacing defines relationships — closer elements read as more related. **Why it works:** Arbitrary spacing (padding: 13px) creates inconsistency; a fixed scale forces deliberate decisions and harmonious layouts. Generous spacing feels premium; dense feels overwhelming. **Key insights:** - Use the scale: 4, 8, 16, 24, 32, 48, 64px - Start with too much white space, then remove — you'll almost never remove enough - Spacing between groups must exceed spacing within groups - Constrain widths: text to 45-75 characters (`max-w-prose`), forms to 300-500px; full-width is almost never right **Product applications:** | Context | Spacing Strategy | Example | |---------|-----------------|---------| | **Icon + label** | Tight coupling (4px) | Small gap keeps them connected | | **Card sections** | Section separation (24px) | Title, content, footer blocks | | **Page sections** | Major sections (48-64px) | Hero, features, testimonials | **CSS patterns:** - `p-1`(4px) `p-2`(8px) `p-4`(16px) `p-6`(24px) `p-8`(32px) `p-12`(48px) `p-16`(64px) - `max-w-prose`(65ch) `max-w-md`(28rem) `max-w-lg`(32rem) `max-w-xl`(36rem) - `gap-2` for related items, `gap-6` for section separation ### 3. Typography **Core concept:** Use a modular type scale, constrain line heights by context, and limit to two font families maximum. **Why it works:** A modular scale (steps growing ~1.2× each) creates natural visual rhythm; tight line heights on headings and relaxed on body text improve readability in each context. **Key insights:** - Scale: 12, 14, 16, 18, 20, 24, 30, 36px (~1.2 modular, hand-tuned) - Headings: tight line height (1.0-1.25); body: relaxed (1.5-1.75); wider text needs more line height - Avoid weights below 400 for body text; use bold (600-700) for emphasis, not everything - Two fonts max: one for headings, one for body (or one family with weight variation) **Product applications:** | Context | Typography Rule | Example | |---------|----------------|---------| | **Hero headline** | 36px, line-height 1.1, bold | Large impactful statement | | **Body text** | 16px, line-height 1.75, normal | Comfor
Trust audit
CAUTIONgrade B · trust 89/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (5)
.agents/skills/37signals-way
.agents/skills/architecture-optimization
.agents/skills/blue-ocean-strategy
.agents/skills/clean-architecture
.agents/skills/clean-code
Gates applied: no_behavioural_pass.
c502026d022afull audit observations/trust-audit/skill/wondelai__refactoring-ui.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-10 | c502026d022a | CAUTION | B | 89 | first audit |
Questions
What does the Refactoring Ui skill do?
Wondel.ai Agent Skills — Business, Marketing, UX & Coding Frameworks from Bestselling Books. 50 skills + 12 guided journeys for Claude Code, Codex, Cursor & other agentskills.io agents.
Is Refactoring Ui safe to install?
With care. The audit graded it B (89/100) and found 5 things worth knowing before you trust this skill, listed below with the exact line each was found on.
What can Refactoring Ui access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Refactoring Ui work with?
Its documentation mentions cursor. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (c502026d022a), read on 2026-10-10. The repository is watched, and a new audit runs when it changes — this is the first audit.