/aictrl:ui-polishfrom aictrl
Measures and fixes UI polish issues like alignment, spacing, tap targets, contrast, and overflow by rendering at phone and desktop widths, then re-measuring until checks pass.
Ships in aictrl. 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; scripts run unread.
A screen can be well organised and still feel unfinished: two columns of fields that sit 17px out of line, 88px boxes on a 390px phone, a unit word trailing each field, a link you can't hit with a thumb. People feel these instantly; models reviewing screenshots rarely see them. This skill measures first, judges second, and only calls a defect fixed when the measurement says so.
Ask only for what is missing.
main. Default: main, else body.Run the bundled script (needs Node and Playwright with Chromium; install it in a directory you trust with npm i -D playwright && npx playwright install chromium and run the script with NODE_PATH=<that directory>/node_modules, or install it next to the skill. The script resolves playwright or playwright-core from node_modules next to or above the skill — which includes the project's when the skill is vendored inside it — then from NODE_PATH, then from Node's global folders, so when measuring an untrusted repo keep the skill outside it):
NODE_PATH=<dir>/node_modules node <skill-dir>/scripts/measure.cjs <file-or-url> --out ui-polish/before [--scope "<selector>"] [--primary "<selector>"] [--hide "<selector>,…"] [--profile form|content]
measure.json into --out (resolved against the current directory) with two screenshots per viewport, <viewport>.png (the first screen) and <viewport>-scope.png (the whole scope, including anything below the fold), and prints every finding with a selector. Elements that share a cause are one finding with a count and example selectors, and a finding that is the same on phone and desktop is printed once, with both in viewports (use viewports, not viewport, when filtering a merged finding by viewport).--js for pages that only render with JavaScript. --offline blocks every network request except the target page (hermetic); --assets-only also lets remote fonts, stylesheets and images load, for saved copies that need their fonts, and does contact those hosts.--hide sets display: none on overlays such as a cookie banner or chat launcher before measuring and capturing, so they neither cover the screenshots nor add findings. A --hide selector that matches nothing prints a warning.--profile content is for articles and other long-form pages: it skips the checks built for form steps (type-scale, action-distance, action-below-fold, dead-space). The default is form.measure.cjs <page1> <page2> … --out dir) each go to dir/<slug>/, and dir/summary.json merges a finding that repeats across pages into one line listing the pages; fix a shared component once. Compare page by page (--compare before/<slug>/measure.json after/<slug>/measure.json).reference/checks.md. Errors fail the run; warnings need a fix or a stated reason.ui-polish.config.json in the current directory (or --config <file>) lists accepted decisions, e.g. { "ignore": [{ "check": "text-size", "selector": ".eyebrow", "reason": "brand kicker labels" }] }. Matching findings move to accepted with the reason, are printed in their own section, and do not affect the exit code. Only record a decision the owner made; never add one to make the numbers pass.If a reference was given, measure it the same way into ui-polish/reference.
Open the screenshots (the -scope.png ones show the whole scope) and walk all ten points of reference/rubric.md. Write a verdict table with one row per point (and one row per sub-check of point 10): pass, fail or n/a, the located problem, and the fix. Judge only what is on the screen. The measurements are evidence for the rubric, not a replacement for it: a screen with zero measured findings can still fail hierarchy, labels and units, grouping or trust, and those are usually the failures people notice first.
List every measured finding and every failed rubric point with its fix, grouped by the element it touches. Prefer structural fixes that remove several findings at once (for example, labels above fields in a two-column grid fixes alignment, equal widths, field fill, label placement and accessible names together) over patching each finding. Order by impact on the person using the screen.
Edit the real source: the component and its styles in a repository, or the HTML file. Rules:
aria-valuenow, a CSS width, a route name) is still not stated; bracket it too. If the design needs such copy, use a bracketed placeholder (Question [n] of [N], [~3] minutes, [Why we ask: …]) and list it for the owner to fill.NODE_PATH=<dir>/node_modules node <skill-dir>/scripts/measure.cjs <file-or-url> --out ui-polish/after [same options]
node <skill-dir>/scripts/measure.cjs --compare ui-polish/before/measure.json ui-polish/after/measure.json
The compare step also lists every piece of new copy for the owner to review, and fails with invented-number when new copy contains a number outside [brackets] (for example "Step 2 of [5]": the 2 was never stated).
Repeat steps 4–5 until there are no errors, every remaining warning is fixed or has a stated reason, and every failed rubric point is fixed or has a stated reason, at most three rounds. Re-walk the rubric on the new screenshots each round. Zero errors is not done: warnings such as 36px tap targets or trailing labels are exactly the details this skill exists to finish. Open the new screenshots each round: a check can pass while the screen looks worse, and that counts as a regression.
ui-polish.config.json, rather than triaging it page by page.Built by aictrl.dev. This skill teaches the workflow; aictrl operationalizes it — grounded in your backlog, team standards, and codebase knowledge graph. See how →
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-polish, alignment, spacing, visual-refinement, playwright
npx claudepluginhub aictrl-dev/skills --plugin aictrl17 skills in this plugin
/code-reviewReview the exact head revision of a pull request for actionable correctness, security, reliability, performance, and test findings without modifying code. Use when the user says "review this PR", "do a code review", "find defects in this change", or provides a pull or merge request identifier./create-bugCreate an evidence-backed bug report with reproduction, expected and actual behavior, impact, code context, and a regression-test requirement. Use when the user says "file a bug", "report this defect", "turn these symptoms into a ticket", or describes broken or regressed behavior./create-issueCreate a code-grounded engineering story or task with scope, acceptance criteria, test expectations, risks, and open questions. Use when the user says "create an issue", "open a ticket", "make a backlog item", or describes a feature or chore that should be tracked; delegate defects to create-bug./create-prDraft or improve a reviewer-ready pull request title and body from an exact revision, linked issue, implementation context, and verification evidence. Use when the user says "create a PR", "draft a PR", "write the PR body", "improve this pull request description", or "update the PR title and body"./create-workflowCreate and validate an aictrl.dev workflow v2 YAML file with typed parameters, inline task nodes, mappings, conditions, loops, retries, triggers, and approval gates. Use when the user says "create a workflow", "write workflow YAML", "automate this engineering process", or asks for a file under .aictrl/workflows/./design-reviewProfessional design review of any UI — a marketing page OR a product internal (dashboard, table, list, detail view, settings, a flow). Actionable, located critique against orientation, information architecture (within and across screens), primary task, visual hierarchy, friction/cognitive load, accessibility, and — for app screens — density, states, navigation, consistency, and data legibility. Use when the user says "review this design", "review this screen", "review this dashboard", "critique this UI", "is this UI good", "review this mock", "design review", "roast my design", "roast my landing page", or drops an HTML file / screenshot for feedback.Other plugins' skills for the same job