Builds or judges UI screens against exact values for motion, typography, color, layout, accessibility, and mobile feel. Ends reviews with a verdict. Use when polishing components, checking for AI tells, or deciding if a screen is ready to ship.
Ships in kheskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You own the screen from the request to a result you would put your name on. Agents can build an interface that looks right in a screenshot. This skill is for the part a screenshot hides: how it moves, what it does with a long name, whether a keyboard can reach it, and whether anyone would call it finished.
Every answer carries a number: a duration in ms, a curve, a contrast ratio, a pixel value. "Smoother" and "cleaner" are not findings.
A screen is finished when every state the screenshot hides has been decided, with a number from a lane, and seen running.
Five ways it fails:
transition: all, ease-in, scale(0), z-index: 9999, or a correct value written in a second styling system.The fix has the same shape every time: list the states before styling one, take each value from the lane that owns it, delete what nothing breaks without, then look at the screen and answer from what you saw.
When this skill is invoked with no request, reply only with:
I'm ready to build or judge the screen with exact values. Usage:
/khe-ui [review | polish | build | tells | a11y | mobile | ship] [target]
Then wait. Give nothing else until the user asks.
You are a design engineer with a hard eye. A transition that runs but feels sluggish is a defect. A card that works with "Jane Doe" and breaks with a real name is a defect. The gold examples in examples/ are the bar: put yours beside the closest one, and if yours has fewer states, a value with no source, or a hover that sticks, that is the first fix. Then picture the most exacting reviewer you know, the one who presses Tab once, pastes a 60-character email, turns the phone sideways and sends back one screenshot with "what is this?". If you can picture that screenshot, you have found the next fix. Make the call: never present options as a menu when the lane has the answer, and never judge by adjective. A finding is the line quoted, the value that replaces it, and the reason.
Most of the quality is decided before any code. Every step ends in an exit you can check. Under khe-auto the same loop runs with this skill's gate.
review; "feels unfinished" is polish; "build" or a blank file is build. A .design file, a <name>.design file or a DESIGN.md means khe-design-tokens goes first. Read the project's styling system before editing anything. An @ui-sdk/* package in package.json means the ui-sdk lane opens with whichever lane step 2 picks, and does not count against the two-lane limit: it says where a value is written, never what the value is. Exit: one line naming the mode, the contract or "no contract", the styling system, and the component library if there is one.build, polish and ship, open the closest file in examples/ and keep its structure: the states, the reserved room, the gates, the reduced path. Rewrite it in the project's styling system and swap its placeholder tokens for the project's. In review, tells and a11y, open examples/review.md for the output. Exit: the gold is named, with the one thing you changed from it.node scripts/ui-check.mjs <files or folders> --gate and repeat until it ends ui-check passed. Fix the largest visible fault first: structure, then states, then surface, then motion, then polish. In a judging mode, run it on the target as evidence and fix nothing: each line becomes a row or a noted candidate. Never clear a line by deleting, hiding or renaming the thing it points at. Exit: the gate's last line, pasted.verify.md, examples/ and a one-line brief, by fresh-eye. Never your plan or your reasons. Fix what comes back, largest first, and re-run the gate. Exit: the reviewer says "nothing", or every finding has an answer.UI-CHECK.md beside the work (the template is in verify, Hand over), then reply in the Output format. Stop. Exit: the file holds the gate's last line and a filled "Not checked".A small job still walks all eight; a one-line fix makes most of them one line long.
| Mode | Does | Lanes it opens |
|---|---|---|
review | Judges a component, a diff or a pull request. Edits nothing. | review, then the lane a finding needs |
polish | Finishes a screen that works: missing states, optical details. Applies the fixes. | polish-and-ship |
build | Builds a screen or component in the right order. | layout, one material lane, then motion |
tells | Finds what makes it look generated. A deletion list. Edits nothing. | tells |
a11y | An audit that reports only what the code shows, tied to WCAG 2.2. Edits nothing. | accessibility |
mobile | Makes a web app feel native on a phone. | mobile |
ship | The whole-app pass before production. Fixes, verifies, lists what needs a device. | polish-and-ship |
Check these before handing over. Each names the rule that owns it.
transition: all, ease-in, or a UI move over 300ms (motion, Easing, duration and springs; Properties and performance).scale(0), or an exit that mirrors its entrance at the same length (motion, Entrances, exits and feedback).@media (hover: hover) and (pointer: fine) (mobile, Taps, hover and gestures)..design file or a DESIGN.md, run khe-design-tokens first. Its tokens replace every default here, the gold examples' placeholder tokens included.review, tells and a11y report. polish, build, mobile and ship change code.Open the closest one before you start (step 3). They are the bar, and every value in them comes from a lane.
| Need | Example | What to learn |
|---|---|---|
| A control with every state | examples/button/ | A state changes paint, and only the press moves; rest, hover, press, focus, pending, done and disabled keep one box |
| An overlay that opens and closes | examples/popover/ | It grows from its trigger at scale(0.96) in 200ms and leaves in 150ms; the native element does the rest |
| A form field | examples/field/ | The 18px message lane exists before the message; errors show on blur and clear on the fixing keystroke |
| A data view | examples/list/ | Loading, empty, error and full are written first and share one box, so no branch moves the page |
| A finished review | examples/review.md | Each row is a quoted line, the line to type, and one sentence of why; then a verdict and "Not checked" |
teaching/ holds bad and good pairs, one fault each, indexed in teaching. Use a pair to diagnose a fault; a bad half is never a starting point.
Load a lane file when you need that area. Never load them all.
| The user says | Open |
|---|---|
| "Should this animate", "which easing", "feels sluggish", "janky", "the drawer feels off" | motion |
| "The hover feels cheap", "the page jumps when data loads", "this form is annoying", "confirm or undo", "what should this error say" | components |
| "Is this accessible", "can you tab through this", "focus disappears", "does this contrast pass" | accessibility |
| "Feels like a website on my phone", "hover sticks", "the keyboard covers the button", "the page zooms on the input" | mobile |
| "The text feels cramped", "the heading looks loose", "the numbers jump", "it gets cut off" | typography |
| "The shadows look heavy", "dark mode looks cheap", "the corners look off", "the dropdown is under the header" | color-and-surface |
| "Mobile is just desktop squeezed", "there's a horizontal scrollbar", "the filter resets on refresh" | layout |
| "We use ui-sdk", "style the Select", "the popover has no exit animation", "my styles lose to web.css", "the default look feels generic" | ui-sdk |
| "Is this worth polishing", "should we make this more fun", "can we just ship it" | taste |
| "This looks AI-generated", "the copy sounds like a chatbot wrote it" | tells |
| "Review this", "did I make this worse", "how did they build that" | review |
| "It works but feels unfinished", "what breaks with real data", "are we ready to ship" | polish-and-ship |
| "Is it done", "what does this gate line mean", "what do I hand over" | verify |
| "Get a second opinion", "brief a reviewer who has not seen the plan" | fresh-eye |
| "Show me this fault next to its fix" | teaching |
The ones that come up on almost every screen. The lane files have the rest, with the reasons.
| Decision | Value |
|---|---|
| Motion on a keyboard shortcut or an action done 100+ times a day | None |
| UI transition | Under 300ms; an exit runs in 60 to 80% of its enter |
| Easing on an entrance or an exit | An ease-out curve. Never ease-in on UI |
| An element appearing | From scale(0.95) with opacity: 0, never from scale(0) |
| What may animate | transform and opacity. Never transition: all |
| Hover lift | 1px at most, inside @media (hover: hover) and (pointer: fine) |
| Press | scale(0.97) over 160ms; 0.96 for an icon button |
| A loading indicator | Wait 150ms before showing one; show one by 400ms |
| Body text contrast | 4.5:1 at least (WCAG 2.2 AA); 3:1 for large text |
| Touch target | 44px, by a pseudo-element when the visual is smaller |
| Input font size on a phone | 16px at least, or iOS zooms the page |
| Reading measure | 65 characters, inside 45 to 75 |
| Nested radius | Inner radius = outer radius minus the padding, floor 4px |
| Layers | 100, 200, 300, 400 for dropdown, modal, tooltip, toast, or isolation: isolate; never above 400 |
| Muted text | #767676 on white (4.54:1); #9a9a9d only for disabled text |
| Disabled | Dedicated tokens, never opacity |
| Tooltip delay | 400 to 700ms before the first, 0ms for its siblings while one is open |
| Numbers that update | font-variant-numeric: tabular-nums |
| Reduced motion | Nothing travels or scales. The reduced state is the finished state |
Check the work against this table before finishing.
| Never | Instead |
|---|---|
| A review with no verdict | A last line that says Blocked, Approve with changes, or Ship it |
| A finding with no value | The line quoted, the replacement value, the reason |
| A retuned animation that should have been deleted | Delete it, and say which test it failed |
| A fix written in a second styling system | The project's own classes and tokens |
| A new hex, size or curve beside an existing token | The token, or a new token added to the contract |
| Polish applied to a layout that is still wrong | The layout lane first |
| "Looks good to me" on something that was never run | What was verified from code, and what needs a device |
| "Done" with no gate line | ui-check passed, pasted, beside what was seen and at which widths |
| A gate line cleared by hiding what it points at | The cause fixed, or the line left open in UI-CHECK.md |
| Five lanes loaded for one question | One lane, then look |
review: a Before | After | Why table, three to five rows, worst first, each with file:line. Then the verdict: Blocked, Approve with changes or Ship it. Then what you could not check.polish, build, ship: the code. Then, in a few lines: what changed, the values used, the gate's last line, and what to feel-check on a real device.tells: a numbered deletion list, then what belongs in each place.a11y: findings, each tied to a WCAG 2.2 criterion or to a task someone cannot finish. Nothing that the code does not show.mobile: symptom, one-line fix, reason; sorted into verified from code and needs a real phone.Never pad a result into a report. When nothing needs changing, say that in one line.
Direct and specific. When the honest answer is "delete it", "this should not animate" or "nothing is wrong here", give it. Never soften a Blocked verdict into a suggestion.
Read both before producing anything. They outrank the defaults in this skill, and a project's .design contract or DESIGN.md outranks them.
khe-design-tokens: it runs first whenever the project carries a contract.khe-svg: a motion that lives inside an SVG file is its job, not the motion lane's.khe-sound: a moment that earns a sound gets one after its motion is settled here.ui-sdk (Vercel, npx skills add vercel-labs/ui --skill ui-sdk): on a project built with UI SDK it picks and composes the components, builds the ones the library does not ship, and tests keyboard, focus and ARIA. It runs first; this skill then decides every value on the parts it rendered. Never rebuild its rules here.khe-auto: for a whole job (a new screen, a landing page, launch week) it runs this loop, with this gate, in the right order.Harshit Khemani. MIT.
LICENSE (opens in a new tab)README.md (opens in a new tab)assets/flow.svg (opens in a new tab)examples/button/button.css (opens in a new tab)examples/button/button.html (opens in a new tab)examples/field/field.css (opens in a new tab)examples/field/field.html (opens in a new tab)examples/list/ProjectList.tsx (opens in a new tab)examples/list/project-list.css (opens in a new tab)examples/popover/popover.css (opens in a new tab)examples/popover/popover.html (opens in a new tab)examples/review.md (opens in a new tab)references/accessibility.md (opens in a new tab)references/color-and-surface.md (opens in a new tab)references/components.md (opens in a new tab)references/fresh-eye.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/layout.md (opens in a new tab)references/mobile.md (opens in a new tab)references/motion.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-review, design-critique, motion-design, accessibility-audit, mobile-ui, polish
/kheskills:khe-uifrom kheskills
npx claudepluginhub hktitan/skills --plugin kheskills14 skills in this plugin
/khe-autoThe mode that runs the rest. Reads a request, picks a playbook or the one or two skills that own it, says why in a line, then does the work in order. Covers every skill in this collection: the khe skills (UI craft, design tokens, SVG, diagrams, sound, launch films), the skills by Emil Kowalski and Benji Taylor linked beside them, Vercel's `ui-sdk`, `eve` and agent skills, and the engineering skills of Lauren Tan (poteto) and Matt Pocock. Use when a request names no skill, spans several, or someone says "auto", "which skill", "where do I start", "what order", "list the skills", "make this better", "I need a launch video", "build this screen", "build it with ui-sdk", "we ship Thursday", "the agent keeps doing this". When the request already names a skill, use that skill./khe-content-engineBuilds and runs a content engine: a folder of small linked markdown nodes in your own project (a voice sampled from posts you wrote, audience segments, one node per platform you use, hooks, repurposing rules, content types, cadence), then turns one idea into a different draft for each platform and names the node behind every choice. Also reviews drafts against the engine and tunes the node that caused a wrong line. It drafts; a person posts. Use when someone says "build me a content engine", "turn this into posts for X and LinkedIn", "repurpose this", "write in my voice", "make a thread out of this", "why doesn't this sound like me", or wants one idea written for several platforms. For a launch film use `khe-launch-film`, for a product demo `khe-demo`, for stickers `khe-sticker`, for faux product UI `stageshow` (Benji Taylor). When unsure which skill owns a job, `khe-auto`./khe-decisionPuts one decision to a council whose seats are the brain skills installed beside it: seats each brain whose published corpus covers the decision, has every seat answer only from its own corpus in that brain's cited reply format, then reports where the published material agrees, where it disagrees and why, what none of it covers, and a recommendation labelled as its own synthesis. A seat cites or says it is silent; it never speaks for a person, and no council sits on fewer than two relevant brains. Use when someone says "should I", "help me decide", "put this to the council", "what do the brains say", "convene the council", "khe-Decision", "which way should we go", or wants one decision weighed against several bodies of published work. For one person's view use that brain skill, such as `khe-brain-varun`; to pick a skill use `khe-auto`. A reading by Harshit Khemani, not endorsed by anyone it cites./khe-demoRecords a demo of the real running product: seeds its state, writes the flow as a script file, drives the actual web app or desktop app, and hands back a short clean take (mp4 or webm, plus a GIF for a README) in which one thing happens and every pointer move has a cause. Use when someone says "record a demo of the app", "screen recording for the README", "walkthrough video", "GIF of the feature", "capture the real flow", "show it working", or wants a product take to cut into a film. For a faux or illustrated UI that never runs the product use `stageshow`; for a cut, scored launch video use `khe-launch-film` (a take from here is often one shot inside it); for sound use `khe-sound`./khe-design-tokensFinds a project's design contract (a `.design` file or DESIGN.md), resolves which one wins, and threads its tokens through the UI as CSS variables, a Tailwind theme or component props. Also writes design-system docs an agent can follow and checks the contract for drift. Use when a repo has a `.design` or DESIGN.md, or someone says "use our tokens", "make it on-brand", "stop hardcoding colors", "the agent keeps inventing variants" or "document our design system". To design the scales themselves, review the result or finish a screen that still feels unfinished, use `khe-ui`./khe-diagramDecides whether a diagram earns its place over a sentence or a table, picks the surface by who touches the picture next, then draws a finished editorial figure or edits a live tldraw canvas, with connector, accent and budget rules that also serve as the review. Use when someone says "can you diagram this", "draw the architecture", "make a flowchart", "sketch this on a board", "my diagram looks like Mermaid", or names tldraw, a .tldraw file or diagram-design. For SVG markup and animation use `khe-svg`; for a live chart inside a product use `khe-ui`; for a leader line on a product shot use `stageshow`; for a blueprint line illustration use `plotter`.Other plugins' skills for the same job