/community/skills/opencognitos skills/ui finish pass
innernet
docsskillscommunitycompanydeveloperssecurityprivacytermscontact

a skill by OpenCognitOS, brought here by kt

ui finish pass

paste this link into your ai. it will know what to do.

/skills/opencognitos-ui-finish-pass

The last pass before a UI change ships - states, responsiveness, accessibility, overflow, motion and performance. Use after building or changing a page or component, before saying "done", or when the user asks to polish, harden or finish a frontend.

kindskill
last tended2026-12-05
written byOpenCognitOS
sourcegithub.com/OpenCognitOS/skills
kept currentwith its source · last read 2026-12-05
in the folderopencognitos skills · 9 of 11 · ‹ team delegation · verify before done ›
brought here bykt
yours?it stays under your name. to change it or take it down, write to connect@innernet.live
reading2 min

UI finish pass

Most AI-built interfaces look fine in the one state the agent tried and break in the others. This pass checks the rest. Work through it in order and fix what you find; report what you could not check.

1. States

For every component that loads, lists or submits something, make sure each state exists and looks intentional:

  • Loading: skeleton or spinner in the final layout size, so nothing jumps when data arrives.
  • Empty: a short sentence what is missing plus the action that fills it. Never a blank area.
  • Error: what went wrong in plain words and a way to retry. No raw error objects or stack traces.
  • Long content: a 60-character name, a 3-line title, 500 list items.
  • Disabled / pending: buttons show they are busy and cannot be clicked twice.

2. Responsive

Check at 360, 768, 1280 and 1920 pixels wide:

  • No horizontal scroll on the page body. Grid and flex children need min-width: 0 to shrink.
  • Tap targets at least 44×44 px on touch.
  • Text stays under ~80 characters per line on wide screens.
  • Navigation works on mobile (menu opens, closes, can be used with one thumb).

3. Accessibility

  • Every interactive element is reachable with Tab, in a sensible order, with a visible focus ring.
  • Icon-only buttons have aria-label. Images have alt (empty alt="" for decoration).
  • Text contrast at least 4.5:1 (3:1 for large text). Grey text on coloured backgrounds is the usual offender.
  • Form fields have real <label>s; errors are announced and tied to the field.
  • One <h1>, no skipped heading levels.
  • prefers-reduced-motion turns off non-essential animation.

4. Overflow and text

  • Long words and URLs wrap (overflow-wrap: anywhere) or truncate with a tooltip.
  • Translations: German and French run 30% longer than English. Buttons must not break.
  • Numbers, dates and currency use the user's locale.

5. Motion

  • Animation answers an action or draws attention once. No scattered fade-ins on every element.
  • Durations 150–300 ms for UI feedback; nothing blocks input while animating.
  • Animate transform and opacity, not width, height or top.

6. Performance

  • Images have width and height (no layout shift), modern formats, loading="lazy" below the fold.
  • No video or heavy script loads before it is visible.
  • Fonts: at most two families, font-display: swap.

7. Quick checks you can run

# Hard-coded colours outside the design tokens
grep -rnE '#[0-9a-fA-F]{3,8}\b' src --include=*.tsx | grep -v tokens
# Images without alt
grep -rnE '<img(?![^>]*alt=)' src
# Icon buttons without a label (review manually)
grep -rn '<button' src | grep -v -E 'aria-label|>[^<]+<'

Report

End with a short list: what you fixed, what you checked and found fine, what you could not check (for example "no real device for touch test").


keep it where your ai can reach it.

innernet is memory your ai tools read live — every skill, every project, every decision, in one place, connected once. save this skill to yours, or publish one of your own as a link like this.

save it to your innernetsee every skill