Product ui taste

From huytieu/COG-second-brain · View interactive version

Product ui taste is an AI agent skill from the GitHub repository huytieu/COG-second-brain. Anti-slop skill for PRODUCT UI - dashboards, data tables, forms, multi-step flows, settings, list/detail, app shells. The agent reads the surface, budgets the frame first, and ships dense interfaces that are correct at every edge case (overflow, long labels, empty/error/loading states, i18n expansio

How to use this skill

Skill file

product-ui-taste: Anti-Slop Skill for Dense Product Surfaces

Dashboards, data tables, forms, wizards, settings, list/detail, admin consoles, app shells. NOT landing pages, portfolios, or marketing (that is taste-skill). NOT charts (that is dataviz). NOT native mobile.

Every rule is contextual and mechanical. It fires from the surface you are building, not automatically. Read the surface, budget the frame, then pull only what fits.

Companion contract: taste-skill explicitly hands off "dashboards / dense product UI / data tables / multi-step forms" to "the right tool." This skill is that tool. If a brief is half marketing and half product (a landing page with an embedded live dashboard), use taste-skill for the hero/marketing sections and this skill for the product surface. Never run both on the same component.


0. PRODUCT READ (Read the Surface Before Anything Else)

Marketing UI lives on first impression. Product UI lives on the hundredth use, under real data, by someone doing a job. The slop failure mode is different: not "templated aesthetic," but prototype that dies on contact with real data - a table that scrolls the whole page sideways, a button that truncates its own label, a single grey "no data" box reused for three different situations, a form that clears itself when the user fat-fingers one field.

0.A Read these signals first

  1. Surface type - the single most important read. One of: index/table (list of records to scan, filter, select), detail/record (one entity, its fields and related data), dashboard/overview (KPIs + widgets + a table or two), form/settings (input and configuration), multi-step flow/wizard (a sequential task), console/observability (logs, metrics, deploys), feed/messaging (stream of items). Most real screens are a composition of two or three (index + detail drawer; dashboard + drill-in table).
  2. Data shape and volume - how many rows at p95, how wide is a row, are cells uniform or ragged, is the data live/streaming or static, can a field be empty/null/very-long.
  3. Density need - a trader's cockpit and a consumer settings page are both "product UI" and want opposite densities. Read: expert-daily-driver (compact, keyboard-first) vs. occasional-consumer (comfortable, forgiving).
  4. Consequence level - is the primary action informational (view), reversible (rename, move), or destructive/irreversible (delete, deploy, charge a card). This drives confirmation, focus defaults, and autosave eligibility.
  5. Who is the user and what are they permitted to do - roles, read-only viewers, plan/license tiers. Product UI has states marketing UI never has: permission-denied, read-only, plan-locked (Section 6.G). Read this now, not after building the happy path.
  6. Existing system - is there already a Carbon/Fluent/Polaris/Atlaskit app, or a house token set? Product UI is almost never greenfield. Match the host system before importing taste.

0.B Output a one-line "Product Read" before generating

Before any code, state: "Reading this as: a \<surface type> for \<user> at \<density>, \<data volume>, consequence \<level>, built on \<design system | house tokens | none>."

Examples:

0.C The anti-default that matters most: rows, not cards

The single fastest way to make a product screen look like an AI prototype is to wrap every record in a Card with a Badge. Dense data that the user scans, filters, sorts, or selects belongs in rows (Table for columnar, List/Item for single-line), edge-to-edge, with dividers and 32-40px row height. Card is a widget container (KPI tile, chart panel, settings group, gallery entry), never a list-item wrapper. [Material3 lists; Carbon] If your first instinct on a list of records is a Card grid, stop and re-read this line.

0.D If the brief is ambiguous, ask ONE question, then proceed

The one question worth asking is almost always about data volume or consequence (they change the architecture): "roughly how many rows at the high end?" or "is this action reversible?" Everything else, infer from the Product Read and state your assumption. Do not interview.

0.E Anti-default discipline

The model's defaults for product UI are: Card-soup, fixed-width <table> that overflows the page, disabled submit button as the only validation, one generic empty state, z-index: 9999, and a full-page spinner on every load. Each has a specific correct replacement below. When you catch yourself reaching for one, that is the signal to open the matching section.


1. THE THREE DIALS (Core Configuration)

After the Product Read, set three dials. Unlike taste-skill (VARIANCE / MOTION / DENSITY tuned for expressive marketing), product dials are tuned for information work. Motion is deliberately near-absent in product UI; it is feedback, not decoration.

Baseline: 2 / 2 / 2 (a standard SaaS product table with a detail view). Override from the Product Read.

1.A Dial inference

| Signal | DENSITY | DATA_COMPLEXITY | CONSEQUENCE |

|---|---|---|---|

| "internal admin / ops tool / expert daily driver" | 3 | 2-3 | 2 |

| "enterprise data console / grid / analytics" | 3 | 3 | 2 |

| "consumer settings / account / onboarding" | 1 | 1 | 1-2 |

| "SaaS product dashboard (default)" | 2 | 2 | 2 |

| "billing / delete / deploy / permissions surface" | match | match | 3 |

| "observability / logs / live metrics" | 3 | 3 | 1 |

1.B Use-case presets

| Preset | DENSITY | DATA_COMPLEXITY | CONSEQUENCE | Frame |

|---|---|---|---|---|

| Internal admin tool | 3 | 2 | 2 | AppShell + SideNav, inspector on select |

| SaaS product dashboard | 2 | 2 | 2 | AppShell + SideNav or TopNav + TabList |

| Enterprise data console | 3 | 3 | 2 | AppShell + SideNav, full-height grid |

| Consumer settings/account | 1 | 1 | 1-2 | AppShell + settings template (nav + form panels) |

| Multi-step wizard | 1 | 1 | 2-3 | Centered column, stepper, no distracting chrome |

1.C How the dials drive output

Use these exact names as global variables in reasoning. DENSITY gates row height and the density-switcher decision (Section 10.A). DATA_COMPLEXITY gates how far down the table deep-dive (Section 7) you go. CONSEQUENCE gates Sections 6.G, 8.E, 8.F, 9.A. Do not invent aliases.


2. PRODUCT ARCHETYPE → DESIGN SYSTEM MAP

Product UI is almost never hand-rolled CSS. Pick the foundation from the host app first, the archetype second. One system per app. Do not mix Carbon with Fluent, or drop shadcn into a Polaris tree.

2.A House system first (discover, do not guess)

If the app already has a design system, that system wins, and your first job is to find out what it actually ships rather than assuming. Most mature systems already solve the dense-surface problems this skill is about, so you rarely drop to raw CSS. Guessing at component names and props is the single most common way an agent produces code that looks right and does not compile.

Before writing UI, resolve each of these against the host system's real API (its CLI, its docs site, or its .d.ts files):

| Need | What to look for | How to resolve it |

|---|---|---|

| Full-page shell | An app-shell primitive plus its nav slots | System docs "layout" or "app shell" page |

| Multi-pane tool / inspector | A layout + side-panel pair, not two floated divs | Docs "layout" page; check whether the panel is resizable |

| Columnar data | The system's Table and its sort/select/pagination plugins | Component reference, not a blog example |

| Sticky / frozen columns | A dedicated hook or plugin (most systems ship one) | Search the docs for "sticky" or "frozen" before hand-rolling |

| Resizable columns | A column-resize hook | Same |

| Pagination footer | Table pagination + page-size control | Component reference |

| Search + filter toolbar | A toolbar/filter component distinct from plain search | Component reference |

| Single-line records | A List / Item pair | Component reference |

| Empty region | An EmptyState component | Component reference |

| Status / metadata | A status indicator distinct from Badge | Token/status docs |

Workflow, always: find the closest page or block template the system already ships, study its layout skeleton, then read the real props for every component you use. Never invent props. Prefer the system's own layout components over raw <div>s so spacing stays on the system's scale. Use design tokens for every value (var(--color-*), spacing tokens), never raw hex or px. Reserve Badge for counts and enumerated states; status belongs on a status indicator.

The house-system bridge (resolve the tension): the CSS mechanics in Sections 5-10 (scroll ownership, position:sticky headers, frozen-column offsets, z-index tiers, min-width:0) are the contract a mature system's hooks already satisfy under the hood. Inside such a system, reach for the hook or plugin first, because a real sticky-column hook gives you the offset, the solid background, and the shadow divider correctly. Drop to the raw CSS contract only (a) to verify the system did it right when something bleeds through, or (b) when you are outside a design system entirely. Never hand-roll a sticky column with inline styles inside a system Table when the hook exists.

2.B External systems (match the host, or pick by archetype)

| Archetype / brief | Reach for | Why |

|---|---|---|

| IBM-style enterprise analytics, dense grids | @carbon/react + @carbon/styles | Most mature data-density + 2x-grid + empty/loading patterns [carbon] |

| Microsoft / enterprise SaaS, DataGrid | @fluentui/react-components (v9) | Official Fluent 2, Overflow primitives, tokens [fluent] |

| Atlassian / Jira-style product | @atlaskit/* + @atlaskit/tokens | Semantic spacing tokens chosen by meaning [atlaskit] |

| Merchant/admin, resource lists | Polaris (@shopify/polaris or web components) | IndexTable, four-states philosophy, error content [polaris] |

| GitHub-style devtool chrome | @primer/react / @primer/css | PageLayout landmarks, Blankslate, Truncate [primer] |

| Adaptive/canonical layouts, consumer-ish | @material/web + Material 3 tokens | Window-size classes, list-detail/supporting-pane [material3] |

| Own-the-code lean internal tool | Radix Primitives + shadcn/ui + TanStack Table | Headless a11y primitives, you own styling [radix, tanstack] |

| Enterprise React data-dense fast | Ant Design or Mantine + Mantine React Table | Batteries-included Table/Form [ant, mantine] |

| Lean keyboard-first (Linear/Vercel vibe) | Radix/shadcn + custom tokens | Density + command palette + restraint [linear, vercel] |

Honesty rule: if the app is one of these, use the official package and its Table/Form/Dialog. Do not recreate Carbon's data table in raw CSS. Do not import a system's tokens then override 90% of them.


3. FRAME-FIRST APP-SHELL ARCHITECTURE

Budget the frame in pixels before writing one line of content. Real applications are built top-down: pick the shell, name its regions, give each an explicit px budget, decide its container policy and responsive behavior, then fill. Content-first layout (write sections, wrap each in a Card) produces a padded scroll column that reads as a prototype. [most systems' layout docs]

3.A Pick the shell

3.B Region px budgets (memorize these)

| Region | Budget |

|---|---|

| Side nav | 240-280px |

| Icon rail (collapsed nav) | 64-72px |

| Detail / inspector panel | 340-420px (resizable 320-480) |

| Filter / facet rail | 220-260px |

| Row height | 32px compact / 40px standard / 48px comfortable [dense systems budget 32-40; Carbon ships 5 relative tiers, no fixed px] |

| Header / top nav | 48-64px (common app-bar convention) |

3.C Landmark regions (do not conflate them)

Name every region with a real landmark and know the difference [primer PageLayout]:

3.D Canonical layouts (recognize and scaffold) [material3]

3.E App-shell chrome that marketing UI never has

3.F Container policy per region (Cards vs Rows, decided per archetype)

| Archetype | Container policy |

|---|---|

| Tracker / work tool (issues, tickets, CRM) | Rows only. Grouped edge-to-edge lists, zero cards. |

| Console / observability | Card grid for dashboard widgets; Table for everything else. |

| Messaging / feed | Rows and bubbles. No cards in the stream. |

| Media / gallery | Card grid (ClickableCard) + dense metadata rows in detail. |

| Settings / forms | FormLayout sections; Card only to group dangerous/billing actions. |

Banned: a Card per list item (card soup), stacked full-width Cards as page structure, nested Cards, Badge as decoration.


4. LAYOUT HARD RULES (Failing any of these ships broken work)


5. OVERFLOW & TRUNCATION CATALOG (Deep-Dive)

Product UI is where real strings arrive: a 90-character file path, a German button label, a customer name that is one word or forty. Truncation is a scalpel, not a default.

5.A The never-truncate list (mandatory)

Never truncate primary/identifying content: titles, entity names, unique IDs, error and validation messages, page headers, button labels. Truncation is for secondary/supplementary content only (descriptions, secondary metadata, breadcrumb middles). [carbon overflow, primer truncate] If an identifying string is too long, wrap it, give it more space, or use middle-truncation that preserves both ends (for paths/IDs) - never a trailing ellipsis that hides the part that distinguishes two records.

5.B Every truncated string needs a real full-text fallback

A hover-only title tooltip is not an accessible fallback: it fails keyboard-only users, touch users, and speech-recognition users. Provide the full text on focus as well as hover, or expandable inline, or in the detail view. [carbon, primer]

5.C Long button labels (mandatory, a signature product-UI Tell)

Never truncate a button label. Size the button to its content ("hug contents") with a min-width floor for tap-target accessibility. If the label is long (or translated), wrap to at most 2 lines before you ever truncate, and re-evaluate the label copy. A button reading "Save chang..." is broken work. Icon-only buttons need an aria-label and a tooltip. [overflow-truncation, i18n]

5.D Single-line ellipsis recipe

overflow:hidden; text-overflow:ellipsis; white-space:nowrap; plus min-width:0 on every flex ancestor between the text and the scroll/row container (Section 4). Without the min-width:0 chain, the CSS is inert.

5.E Multi-line clamp recipe (`-webkit-line-clamp`)

All four properties together or none work: display:-webkit-box; -webkit-line-clamp:N; -webkit-box-orient:vertical; overflow:hidden;. Never put padding on the clamped element itself - the clamp math ignores padding and text bleeds. If you need padding, wrap the clamp in a padded parent, or use a fixed-height fallback (line-height * N). [css-tricks line-clampin]

5.F Content edge cases: counts, big numbers, missing data (mandatory)

Real data is 0, 1, or 1,000,000 - design all three, not just the demo's "3."

5.G Column-header and chrome overflow


6. STATE MATRIX (Deep-Dive)

Every data surface has more than a happy path. Design the full matrix at three granularities: page, component/region, and field. The slop failure is reusing one grey box for every non-happy state.

6.A The four base states, always designed together

For any region that loads data, design ideal / loading / empty / error before you ship the ideal. [polaris four-states, nngroup]

6.B Loading timing thresholds (mandatory)

6.C Empty states are three distinct states (mandatory)

Never reuse one empty component/message across these:

  1. Never-used-yet (first run) - onboarding tone: what this is + a primary CTA to create the first record. [primer empty-states, pencilandpaper]
  2. Filtered/searched to nothing - "no results for X," with a clear-filters action. The data exists; the filter is the cause.
  3. Zero-as-a-win - "inbox zero," "no alerts." Positive tone, no guilt CTA.

[carbon empty-states, atlaskit empty-state] For tiny tiles/side-panels, a centered text-only empty state is the exception to "mirror the layout."

6.D Error states are never empty states

A load failure is always an ErrorState, never an EmptyState. Error copy is specific, plain-language, actionable (what to do next), and carries an error code/id for support. Route all of them through one shared ErrorState component so tone and layout stay consistent; never ship a bare "An error occurred." [polaris error-messages, nngroup]

6.E Field and inline states

Fields have their own micro-states: pending async validation (Section 8.D), inline error, success confirmation, saving/saved (autosave, Section 8.E). Do not let a field-level failure silently no-op.

6.F Partial, stale, and offline states (mandatory to consider)

Between "loaded" and "failed" live the states real networks produce:

6.G Permission and plan states (product-UI-only, mandatory to consider)

Marketing UI has no concept of these; product UI lives on them:


7. DATA TABLE DEEP-DIVE (The Hardest Product Surface)

Gate depth by DATA_COMPLEXITY. A simple list needs 7.A-7.B; an enterprise grid needs all of it. Inside a design system, use its Table plus the system's plugins/hooks; the mechanics below are the contract those hooks satisfy, and your guide when you are outside one.

7.A Scroll ownership and sticky header (mandatory)

One wrapper owns both axes (overflow:auto) with a bounded height; the page never scrolls sideways (Section 4). Sticky header via position:sticky; top:0 scoped to that wrapper. [carbon, ant table-scroll]

7.B Frozen / pinned columns (mandatory recipe)

position:sticky + explicit left:0 (or right:0) offset + z-index >= 10 (above the scrolling body) + a solid, non-transparent background that also covers hover and selected-row states + an inset box-shadow divider, never a CSS border (borders disappear or double-render under sticky scroll). Miss the solid background and the scrolling content bleeds through the frozen column. [ant, mantine-react-table column-pinning, tanstack]

7.C Virtualization (DATA_COMPLEXITY 3)

Virtualize past ~100-200 rows. Required DOM shape: two wrappers - outer = viewport-height scrollable, inner = full virtual-content height (a spacer). Never size the <table> element itself to the full virtual height - it distorts row heights and collapses the sticky header (which cannot escape a too-short parent). [tanstack virtual #640] Do not attach per-row style objects or per-row menu instances during virtual render (perf death); use columnResizeMode:"onEnd" unless memoized. [ant, mantine]

7.D Pagination vs. infinite scroll vs. load-more (decision tree)

7.E Selection, bulk actions, and selection persistence

7.F Filtering, faceting, and search (distinct from each other)

7.G Cell content

Cells hold ragged real data. Truncate secondary cells per Section 5 (with focus-reachable full text), never identifying cells. Right-align numeric columns and use tabular-nums (Section 4). Empty cell = a consistent "not set" placeholder (an em-dash is banned; use "-" or "Not set"), never a blank that looks like a render bug.


8. FORMS, VALIDATION & MULTI-STEP FLOWS (Deep-Dive)

8.A Label placement

Top-aligned labels by default (fastest to scan, best for localization and mobile). Right-aligned labels only for dense enterprise forms where vertical space is scarce. Left-aligned only to deliberately slow the user down on a careful task. Never right-align labels on a localized product (expansion breaks the column). [lukew web-form, nngroup web-form-design]

8.B Validation timing

Validate on blur and on submit, not on every keystroke of an incomplete value (do not scream "invalid email" at the first character). The exception is a live positive helper like password-strength. Show inline errors next to the field and an aggregate error summary at the top on submit, never only one of the two. [nngroup errors-forms, polaris inline-error]

8.C Never disable Submit as the only signal (mandatory)

For forms with 5+ fields, never make a disabled Submit the only feedback - the user cannot tell what is missing. Let them submit, then show the aggregate error count and focus the first error. A disabled Submit is acceptable only on trivial (<3 field) forms. Always preserve user input after a failed submit - never clear the form. [forms-flows, nngroup]

8.D Async / remote field validation

Debounce it, and cancel superseded requests with AbortSignal - an uncancelled slow response can overwrite a newer, correct result (username-availability race). [forms-flows]

8.E Autosave (gate by CONSEQUENCE)

8.F Multi-step flows / wizards

8.G Destructive / irreversible confirmation (CONSEQUENCE 3, mandatory)

Confirmation dialogs for delete/deploy/charge default keyboard focus to the safe action (Cancel), not the destructive one. Use role="alertdialog", aria-modal="true", and aria-describedby pointing at the warning text. For high-consequence deletes, require typing the resource name to enable the destructive button. On close, return focus to the element that opened the dialog (or the next logical element). [w3 alertdialog, radix dialog]


9. NAVIGATION, OVERLAYS & LAYERING (Deep-Dive)

9.A Dialogs / modals

Focus-trap while open, return focus on close, close on Escape, close on overlay click only when non-destructive. Dialog.Title and Dialog.Description are never omitted even if visually hidden (screen readers announce them). [radix dialog, w3 dialog-modal]

9.B Toasts / notifications

Default ~5000ms, pause on hover and focus, swipe-dismiss threshold ~50px, dismissible manually. Distinguish foreground announcements (user's own action succeeded) from background ones (something changed) for screen-reader priority. Never put a destructive-confirm inside a toast. [radix toast]

9.C Menus, dropdowns, tabs, comboboxes

Full keyboard contract: arrow-key navigation, Home/End, type-ahead, roving tabindex (Section 10.D). Tab moves between a composite widget and the next content; arrows move within it. Menu/tab items that should stay keyboard-reachable use aria-disabled, not native disabled (which removes them from the tab order). [radix, w3 grid]

9.D The z-index / stacking-context system (mandatory, replaces ad-hoc z-index)


10. DENSITY, I18N & ACCESSIBILITY (Deep-Dive)

10.A Density as a first-class mode

Offer >= 3 density presets (comfortable / standard / compact) as a real switch that swaps row-height and padding tokens, not a scaled-down zoom. [i18n-a11y-density] Carbon ships 5 row heights; pick the set your DENSITY dial needs.

10.B Internationalization text-expansion budget (mandatory)

Design containers with headroom for translation, because English is one of the shortest UI languages:

Never hardcode fixed-width text containers (Section 4). Use flex/grid so text reflows instead of clipping. Pseudo-localization (wrap strings in accented padding) is a fast smoke test that catches ~80% of expansion bugs. [crowdin, i18n-a11y-density]

10.C RTL

Mirror directional icons only (back/forward arrows, chevrons, progress direction). Never mirror universal icons (clock, play, checkmark, logos). Numerals keep LTR shaping even inside RTL text. The primary action button moves to the left (the natural end of an RTL reading scan). Progress bars fill right-to-left. [crowdin]

10.D The ARIA grid keyboard contract (mandatory for any custom grid/table with focusable cells)

[w3 grid data-grids] If you use a real design-system Table (Carbon, Fluent, Polaris, Ant), this is handled - do not reinvent it. Reach for the contract only when hand-building a grid.

10.E Cross-cutting a11y floors


11. ONBOARDING & PROGRESSIVE DISCLOSURE

Dense products overwhelm on first run. Reveal power progressively; earn complexity.

Progressive disclosure (the default mechanic):

First-run (mandatory):

Coach marks, tours, checklists (banned unless dismissible):

Empty-to-productive path: every empty state's CTA leads somewhere that actually creates value in <=3 steps. An onboarding checklist that just links to docs is decoration.


12. CONTEXT-AWARE PROACTIVITY (Canonical Skeletons to Recognize)

When the Product Read matches one of these, scaffold the whole skeleton, not a fragment:

Semantic zoom for hierarchical overviews (portfolio, roadmap, org chart): zooming into a box swaps in a richer representation, while the breadcrumb, minimap and stats panel re-scope to the focus. Levels, inputs, a11y and a DOM recipe: references/semantic-zoom.md.

House UI rules (two layers, plain user words, no disabled controls, no … menus, no wrapped controls, no ellipsis, lists without stripes, status icons with labels, three-part errors, external objects rendered natively): references/house-ui-rules.md. Load it for any product UI under review; where it conflicts with a recipe above, it wins.

Full component implementations live in the host system, not duplicated here: reach them via your host system's template/skeleton command or its docs (references/canonical-sources.md). Three high-value skeletons are worked in references/block-skeletons.md because they encode the contracts most often gotten wrong; treat them as the canonical shape, adapt to the host system.


13. PERFORMANCE & ACCESSIBILITY GUARDRAILS


14. DARK MODE

Token-driven, one theme locked per app (same discipline as taste-skill Section 8/11: no region flips to inverted mid-app). Use the host system's semantic layer tokens (var(--color-*), Carbon $layer/$border-subtle, etc.), never hardcoded greys. Test tables, frozen columns (the solid background must be a theme token, or it bleeds in dark mode), overlays, and focus rings in both modes. Set the theme once at the shell root, never per-section.


15. INVISIBLE DETAILS (Micro-Craft Floor)

The compound rule: no single one of these ruins a surface, and all of them together are the whole difference between polished and sloppy. Users rarely name the specific miss - they register "if this got missed, others probably did too." Everything here is cheap to fix and expensive to notice late, so treat the list as a floor, not a stretch goal. [invisible-details craft notes]

15.A Geometry and optical correction

15.B Typography and text flow

15.C Numbers (extends Section 5.F)

15.D Hit targets (extends Section 10.E)

15.E Invisible defaults (cheap, always on)

15.F Communicate overflow (extends Section 5)

15.G Motion suppression (extends Section 13)


16. PRODUCT-UI AI TELLS (Forbidden Patterns)

Distinct from taste-skill's landing-page tells. These are the signatures of a model faking a product screen. Hard bans unless the brief genuinely demands one.


17. REFERENCE VOCABULARY (Names the Agent Should Know)

App shell / PageLayout (Header / Content / Pane / Sidebar / Footer) · canonical layouts (list-detail / supporting-pane / feed) · master-detail + inspector · IndexTable / Resource List / DataGrid / Table · frozen (pinned) columns · virtualization · roving tabindex · stacking context · container query · skeleton screen (shape-mirroring) · Blankslate / EmptyState / ErrorState · Overflow / priority-plus · applied-filter chips / faceted search · alertdialog · optimistic vs. pessimistic update · density mode · pseudo-localization · command palette · workspace switcher · job/status tray.


18. REDESIGN PROTOCOL (Auditing an Existing Dense Screen)

Before touching visual style, audit for the correctness bugs that matter more than aesthetics:

  1. Scroll ownership violations (page scrolls sideways; nested double-scroll).
  2. Truncation on primary content; hover-only fallbacks.
  3. Missing state differentiation (one empty box for three states; no error state; skeleton missing).
  4. Frozen-column bleed-through; transparent sticky backgrounds.
  5. z-index ad-hockery; layering bugs from nested stacking contexts.
  6. No i18n buffer; fixed-width text containers.
  7. Keyboard/a11y gaps: no roving tabindex, bare :focus, icon buttons without labels, disabled submit as only signal.
  8. Micro-craft floor (Section 15): nested radii, optical alignment, glued units, hit-target expansion, invisible defaults, overflow signalling.

Fix these first. Only then apply the density/token/visual polish. Preserve the host design system; do not swap Carbon for shadcn as a "redesign."

18.A The hesitation test (how to find problems, not just fix them)

The hard part is noticing, not fixing. Most of these cost minutes to repair once seen, so spend the effort on perception. Drive the surface yourself and treat every pause as a defect report. Four tells, each with a fixed diagnosis: [invisible-details craft notes]

| Observed | What it means |

|---|---|

| Second click on the same button | No loading state or no feedback - the user believes the first click missed |

| Cursor drift (moves without landing) | Hit target too small, or the option is not recognizable as the one they want |

| Reflexive undo (Cmd+Z right after acting) | The action gave no confirmation of what it actually did |

| Re-reading a label | The wording is wrong, not the layout |

Study interfaces you admire the same way - slowly, looking rather than using. Friction is the lesson.

18.B Stress matrix (introduce friction deliberately)

An interface tested on fast wifi with short English strings and populated data is untested. Run every row before calling a surface done:

18.C Record findings as Break / Expectation / Direction

Every observation gets three lines, no more - enough to act on, cheap enough to actually write down:

Promote recurring findings into rules keyed on function, not appearance: "the colour input accepts any format and normalizes to hex" is reusable; "the colour input looks like Linear's" is not.



19. RELATIONSHIP TO taste-skill + OUT OF SCOPE


20. FINAL PRE-FLIGHT CHECK

Run every box. If any fails, the surface is not done.

If a single box cannot be honestly ticked, fix it before delivering.


References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.