/skills:polish-ui-detailsfrom skills
Applies targeted last-10% UI fixes for hit areas, tabular digits, interruptible transitions, first-load motion, reduced motion, balanced headings, and image outlines without changing tokens or desktop layout.
Ships in skills. 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.
Small interaction and rendering defects make a finished component feel cheap. Fix only the concrete rules the component actually breaks, in the project's existing styling system, while keeping colour, font, and spacing tokens and desktop layout boxes intact.
Before editing, identify how the component is styled (plain CSS, Tailwind, or CSS-in-JS) and capture a baseline in a browser at 1280px and 390px wide:
1280px and 390px.getBoundingClientRect() (x, y, width, height) for the component root and its visible child elements at 1280px.If no browser is available, note that box measurements and screenshots are unrun rather than guessing.
Read the component source and write findings only for elements that break one of these rules, with file:line for each finding:
| Rule | Broken when | Fix |
|---|---|---|
| Hit area | An interactive control is under 44x44px on a coarse pointer | Expand the target to at least 44x44px under @media (pointer: coarse) with a centered transparent ::after pseudo-element that does not shift layout or overlap neighbours |
| Tabular digits | Changing numbers (counters, timers, live totals) use proportional figures | Add font-variant-numeric: tabular-nums (or Tailwind tabular-nums) |
| Named transitions | An element uses transition: all or a one-shot keyframe for interactive hover, focus, or press states | Replace with CSS transitions on exact properties such as opacity or transform so motion stays interruptible |
| First-load motion | Content runs an enter animation automatically on initial page load | Skip animation on first render (for example initial={false} on AnimatePresence or gating mount animations) |
| Reduced motion | Animated or transitioning elements ignore prefers-reduced-motion: reduce | Add @media (prefers-reduced-motion: reduce) (or Tailwind motion-reduce:) to disable or shorten motion |
| Heading balance | A multi-line heading wraps unevenly with an orphan word | Add text-wrap: balance (or Tailwind text-balance) on the heading |
| Image outlines | Content images sit flat against light or dark surfaces with no edge separation | Add a 1px pure neutral outline: oklch(0 0 0 / 0.1) in light mode, oklch(1 0 0 / 0.1) in dark mode |
Leave colour, font, and spacing tokens, border radii, shadows, optical alignment, and icon strokes unchanged. Those belong to the project's design system.
Edit only the lines flagged in step 2, expressed in the project's existing styling conventions. Keep changes narrow so untouched elements stay put and expanded hit areas do not change visible icon sizes or flow spacing.
Re-measure and re-capture after editing instead of comparing screenshots alone:
1280px bounding boxes against step 1. Every visible element box must stay within 1px of its baseline x, y, width, and height, except an expanded hit area.1280px and 390px and check for overlap, clipping, or broken wrapping.prefers-reduced-motion: reduce behaviour.List only the elements that needed a fix, with file:line, the broken rule, and the change made. Include the 1280px bounding-box delta summary and the 1280px and 390px screenshot results, marking any unrun browser check as unrun.
Based on jakubkrehel/make-interfaces-feel-better (MIT), rewritten by Copybook.
What SKILL.md sets; muted values are Claude Code's defaults
24 skills in this plugin
/add-pre-commit-checksUse when asked to add pre-commit hooks, set up Husky or lint-staged, stop bad commits, or run Prettier and type checks on commit. Sets up a pre-commit hook that formats staged files, type-checks with the project config, and runs related tests, proven by blocked and fast commits. Not for picking a test set for a change (run-affected-tests)./build-throwaway-prototypeUse when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched. Not for building a finished production page (design-web-page)./check-current-docsUse when asked to use the latest docs, check if an API is still current, check which version the project is on, follow modern HTML or CSS best practices, or avoid outdated patterns; also when adding or changing code that calls a library pinned in the project, such as validation with a schema library. Reads the project lockfile and manifest, checks the official docs or browser guidance for the exact pinned versions, implements the current pattern without deprecated calls, and cites each choice with its URL, version, and date read. Not for moving existing code off an old API (migrate-off-deprecated-api)./check-live-deployUse when asked if a merge is live, if the deploy worked, or to check production after shipping and merging. Verifies that the canonical public URL serves the merged commit past any cache and that the change itself works live, reporting live, not live or unknown with evidence. Not for checking code before a merge (verify-work-done)./check-skill-before-installUse when asked to find a skill for a task, if there is a skill that helps, how to do something with an agent, which plugin to use, or to install a skill. Finds two or three candidate skills, reads each one for scripts, network calls, file writes, licence, and name clashes, and recommends one pick with a proposed install command. Not for getting a second opinion on a plan or trade-off (get-second-opinion)./find-root-causeUse when something is broken: a bug, a failing test, a build error, "it doesn't work", or a fix that didn't hold. Reproduces the failure, traces it to the line where it starts, proves one cause with one change, fixes every copy, and stops with a report after two failed fixes. Not for checking finished work before saying done (verify-work-done).npx claudepluginhub heyvhuang/copybook-skills --plugin skillsOther plugins' skills for the same job