dvn

Public skill

Alias /better-ui

Better Ui

View prompt

Read https://dvn.pw/better-ui.md and help me use this skill for my task. Load task-required stages through dvn when needed.

How to use Better Ui
CURRENTVerified 2026-12-02T21:31:47.968Z
Read the Markdown invocation packet

Skill instructions

Original instructions

better-ui/SKILL.md

---
name: better-ui
description: "Make AI-built or generic web UI look and behave like a finished product. Use when choosing UI libraries or components instead of hand-building them (toasts, drawers, menus, dialogs, command menus, search and detail views, animated numbers); when picking the right component for a job and building it to its behaviour contract (focus, keys, ARIA, loading, empty and error states, copy), including confusable pairs such as skeleton or spinner and modal or sheet; when checking a web page or web-tech app screen against interaction, keyboard, focus, forms, content and performance guidelines, or running a papercut pass; or when polishing a built page so it looks designed (focal point, spacing, typography, restrained color, real content, matching details, motion). Each part has a browser checker. Not for brand identity or visual direction, Material 3, desktop window and native-seam rules, or non-web UI."
---

# Better UI

Four jobs that take a web UI from "it works" to "it feels finished". Each job is a reference with its own procedure, checker and done-when list. Load only the reference for the job in front of you; run them in the order below when a screen needs more than one.

## Pick the reference

| Job | Load | Checker |
| --- | --- | --- |
| Choose the interaction, then a platform control, existing component or library (Foundation, Specialist, Designed) instead of hand-building it; install and click it through | [library-selection.md](references/library-selection.md) | `scripts/ui_library_audit.py`, `scripts/browser_verify.mjs` (plan check: `scripts/browser_verify_plan.py`) |
| Pick the right component for each need and build it to its behaviour contract (focus, keys, ARIA, states, copy), using Geist as a structural reference | [component-patterns.md](references/component-patterns.md) | `scripts/component_check.mjs`, self-test `tests/component_selftest.mjs` |
| Check a page against the Web Interface Guidelines (keyboard, focus, targets, zoom, paste, URL state, forms, content, performance) and run the papercut quality pass | [interface-guidelines.md](references/interface-guidelines.md) | `scripts/guidelines_check.mjs`, self-test `tests/guidelines_selftest.mjs` |
| Polish a working page with seven measured questions (focal point, spacing, type, color, real content, details, motion), one fix at a time with before and after | [polish-review.md](references/polish-review.md) | `scripts/polish_audit.py`, `scripts/polish_check.mjs` (probe: `scripts/polish_probe.mjs`) |

Supporting files, opened from the reference that names them:

- Library selection: [library-selection-evidence.md](references/library-selection-evidence.md) (source and test evidence), [library-selection-tooling.md](references/library-selection-tooling.md) (only when an install or typecheck fails).
- Component patterns: [component-contracts.md](references/component-contracts.md) (every rule by family, with `GEIST-` ids), [component-foundations.md](references/component-foundations.md) (colour scale, type ladder, elevation, grid).
- Polish review: [polish-review-prompts.md](references/polish-review-prompts.md) (one fix prompt per question), [polish-review-evidence.md](references/polish-review-evidence.md).

## Workflow order

When a screen needs several jobs, run them in this order. Each later step assumes the earlier one passed.

1. **Choose libraries.** Replace hand-built toasts, drawers, menus and dialogs with platform controls, the project's components or a chosen library, and verify the task in a browser.
2. **Build components to contract.** Choose each component with the tables, implement its contract in the project's tokens, and run the component checker.
3. **Check the guidelines.** Run the guidelines checker, walk the manual rules, fix in the stated order, and close at least one papercut.
4. **Polish review.** Measure the seven questions before, fix one question at a time, measure after, and look at the screenshots in light and dark at desktop and phone widths.

Where two references disagree, the reference names the exception: a type-to-confirm submit is disabled on purpose (component patterns), although the guidelines checker flags pre-disabled submits.

## Running the scripts

Run every command from the skill folder, or prefix paths with it (`node <skill>/scripts/...`).

- Python helpers need Python 3.11+ and the standard library only.
- Browser scripts need Node and a folder whose `node_modules` has `playwright` (or `playwright-core` for the component and guidelines checkers); run them from that folder. They run headless and muted.
- Prove a checker on the machine before trusting it: `node <skill>/tests/component_selftest.mjs` and `node <skill>/tests/guidelines_selftest.mjs` must catch every planted failure and raise nothing on the clean fixture.
- Without a browser, run only the static scans and mark every browser check `unverified` in the report.

## Boundaries

- **Brand identity and visual direction:** not here. Apply the project's own tokens and brand; use a frontend design skill, if installed, to invent a direction. Never copy Vercel's colors, logos or look from the Geist reference.
- **Material 3:** use a dedicated Material 3 skill, if installed.
- **Desktop window and native-seam rules:** the `desktop-app` skill owns them and wins where the two disagree.
- **Screen-by-screen visual QA across a whole product:** the `surface-sweep` skill.
- **Non-web UI:** out of scope.
- Not claimed by any part: that the interface is good. Taste, brand fit, copy tone and feel need a person.
Source and verification details

Canonical skill ID: public/better-ui

Freshness: Age: 1 seconds; source check: verified

Main source: better-ui/SKILL.md

Main Git blob: 4ff6ff20347857873396946a49c2d62e34cdcd23

  • devin-thomas/skills @ 4e48b69132901e3a6ec97b854d95d3d932ff01f6; verified 2026-12-02T21:31:47.968Z