ui-design-iteration: Web UI Design Skill
My own way of designing a UI for a side project has always been to wish for it: one sentence to an AI, “build a web UI for this project”. What comes back is usually the same fragmented design with the usual AI flavor. On the rare draw that looks acceptable, tweaking it becomes its own problem: say “make the cards tighter” and it rewrites the whole block, breaking the parts that were already right. Reviewing from screenshots has the same issue, since dialogs, empty states, and dark mode are nowhere to be seen, so you end up deciding blind.
ui-design-iteration is an agent skill that raises the odds on that wish.
1. Do Not Draw Pages From Nothing, Start From a Good Reference
List what the page needs to hold first, then pick two or three references from sources like shadcn/ui, Tremor, or Astro themes, and explain why each one was chosen. You make the final call, then it is just waiting for the draw.
You can also bring your own link, or pair it with other frontend design skills such as claude frontend design or ui ux pro max.
Every good design is copied from somewhere. Copy away!
Once the reference is settled, the agent writes its design language down first: type, radii, shadows, the rhythm of imagery, plus the few details that make it recognizable. Then it carries your real content with that language. When source is available it copies the source, and only screenshots get rebuilt by eye.
With the draft in place, the AI attaches the draft kit as this skill requires and starts a background server process.
2. The Draft Is a Real Page You Can Point At
The deliverable is a static HTML draft. No build step, open it and it previews. Everything the page should have is there: menus expand, dialogs open. A small toolbar (the draft kit) floats in the bottom-right corner, takes no page width, and can be dragged to any corner.
Pick an element and write your note. Press P to enter pick mode, click any element, and an input box opens next to it. The box already carries that element’s selector, its component, and its text contrast. Type one line and hit enter.
Mark several spots at once. Every note gets numbered and pinned on the page. The agent reads these marks from selection.json, so it gets exact selectors and computed values instead of guessing which button on the left you meant.
{ "n": 1, "note": "the numbers feel cramped, give them more space from the label above",
"target": "[data-node=\"kpis/card#2\"] > div:nth-child(1) > div:nth-child(2)",
"component": "kpis/card#2", "levers": ["spacing", "radius"],
"computed": { "font-size": "30px", "font-weight": "600", ... },
"contrast": { "ratio": 16.48, "required": 3, "passes": true } }Drag sliders to tune design levers, and audit every round. Style variables like radii, density, and type size are collected into a set of levers, so dragging a slider changes the whole page at once. The audit button counts how many radii, shadows, and type sizes this screen uses, plus how many spots fail contrast. Those numbers are the evidence for whether the page looks assembled.
States you never see are reviewable too. Empty, loading, dark, dialogs, detail drawers: switch to any of them from the states menu, then click once more to close it.
3. One Dimension Per Round
Change one dimension per round, density or hierarchy or color, and agree up front which levers may move. Review only that round’s diff, so the AI cannot quietly rewrite everything else. Before calling it done, run the audit and accessibility checks in every state and at every review width, then drop the draft kit and finalize.
The bundled code is a zero-dependency draft-kit.js and a small server that uses only the Python standard library.
4. After You Have the Output
The skill produces plain HTML/CSS/JS drafts. Migrating them into another framework, templ in my case, is left to the AI.
5. Try It
npx skills add https://git.nite07.com/nite/skills.git -g -s ui-design-iteration




