Human-Centered Product Design
Design software around human goals, cognitive limits, and real contexts of use—not visual ornament, feature count, or generic templates.
Workflow (Execute in Order)
Phase A — Frame Problem & Select Context Posture
- Define the human outcome first: Before writing UI code, identify in
DESIGN_NOTES.md: (a) who the user is, (b) the job/goal they are hiring the software to finish (functional + emotional/anxiety risks), and (c) the context of use (environment, frequency, input device, interruption risk). Read the matchingreferences/file(s) from Load On Demand before coding. - Classify Product Posture (drives density, chrome, and control placement):
- Sovereign (sustained daily work: dashboards, ops consoles, IDEs, data workbenches) → Optimize scanability and throughput: dense tables/grids, muted surfaces, persistent workspaces, keyboard shortcuts, side drawers preserving list context, user-togglable density. Never force consumer marketing whitespace onto sovereign tools.
- Transient (brief, occasional tasks: mobile transit/utilities, onboarding, checkout, quick modals) → Optimize immediate clarity: single primary action per screen, thumb-zone controls, generous spacing, smart defaults, fast exit.
- Public / Walk-Up (zero training: kiosks, public portals) → Extreme self-evidence, plain language, large targets, zero jargon.
- Preserve vs. Replace on Redesigns: Preserve domain logic, user data, and working mental models while eliminating structural barriers (excise, inaccessible widgets, layout overflow, data loss).
- Evidence & Assumption Discipline: Ground decisions in the brief and observed files. Log unverified user/domain assumptions explicitly; never fabricate user quotes, research findings, or test results.
Phase B — Structure IA, Flow & Appropriate Density
- Model the flow to the goal, not form submission: Cover entry, decision points, interruption/re-entry, confirmation, and recovery.
- Eliminate Excise: Replace nag confirmations ("Are you sure?") on reversible actions with instant execution + visible Undo (
role="status"). Reserve confirmation dialogs for irreversible, destructive, or external-send actions. Use inline editing or contextual drawers instead of full-page navigation when inspecting items from a list. - Respect Working Memory (~4 Chunks) & Scanning: Replace recall with recognition; group controls by Gestalt proximity (tight intra-group gap ≤ 1/3 inter-group gap); use descriptive headings and front-loaded verbs (
Save changes,Clear filters, neverSubmitorOK) so scanners pass Krug's Trunk Test. - Calibrate Choice & Density: Group unfamiliar options logically (Hick-Hyman), without burying high-frequency triage columns or side-by-side comparison data behind extra clicks.
Phase C — Design Complete States & Form Ergonomics
- Complete Interaction States: Implement first-run empty states (purpose + primary CTA), zero-search/filter states (keep filters editable + one-click
Clear filters), non-blocking loading feedback, and CSS[hidden] { display: none !important; }so hidden drawers/modals never intercept clicks. - Forms & Onboarding Ergonomics: Use single-column vertical forms with permanent
<label for>above inputs (placeholders for format examples only) and<fieldset>/<legend>for radio/checkbox groups. Enforcemin-height: 44pxon all form inputs, selects, and buttons. ValidateonBlur/submit (never nag first keystroke), link constructive inline errors (aria-describedby), clear errors on fix, never wipe user input on error, and never blockpaste.
Phase D — Enforce WCAG 2.2 AA & Ergonomics Floor
- Native HTML & ARIA Hygiene: Use
<button>,<a href>,<input>,<select>,<dialog>, and<table>first. Never putaria-label/aria-labelledbyon generic<div>or<span>without an explicit landmark or widget role. Implement full APG keyboard handling (Tab,Enter/Space,Escape,Arrowkeys) and focus restoration. - Visible & Non-Obscured Focus (WCAG 2.4.11): Keep high-contrast
:focus-visiblerings (≥2px). Setscroll-margin-top≥ sticky header height and reserve bottom clearance so sticky bars never cover focused controls. - Contrast & Non-Color Redundancy: Meet ≥4.5:1 normal text (never lighter than
#595959on white or darker than#94A3B8on#0F172A) and ≥3:1 large text/UI borders/badges. Pair status colors with text or icons. - 320px Reflow & Target Size Floor: Prevent horizontal overflow at 320px via
*, *::before, *::after { box-sizing: border-box; },html, body { max-width: 100%; overflow-x: clip; },min-width: 0on flex/grid children,flex-wrap: wrapon toolbars,overflow-wrap: anywhereon long strings, and localoverflow-x: autowrappers around wide tables. Keep interactive controls ≥44×44 CSS px on mobile/forms, and ≥24×24 CSS px on dense desktop/table controls (wrap table checkboxes in a ≥24×24px<label>). - Motion, Dragging & Tokens: Provide single-pointer button alternatives for any drag action (WCAG 2.5.7). Whenever CSS defines any
transitionoranimation, always emit@media (prefers-reduced-motion: reduce)disabling them. Use semantic CSS custom properties.
Phase E — Verify Before Delivery
Run python3 <skill-dir>/scripts/check_tokens.py <target-dir> (and --pair <fg> <bg> on muted/badge colors) before delivery to verify zero contrast or ARIA/form defects. Report honestly what was verified vs. what still requires screen-reader or real-user testing.
Load On Demand
Read only the reference matching the current task before implementing specialized surfaces:
| Task Context | Reference / Example to Load |
|---|---|
| Dashboards, dense tables, power-user tools | references/posture-and-density.md, examples/sovereign-ops-pattern.md |
| Forms, onboarding, auth, validation | references/forms-and-onboarding.md |
| Complex widgets, WCAG 2.2, ARIA contracts | references/accessibility-wcag22.md |
| AI assistants, predictions, confidence, human control | references/human-ai-interaction.md, examples/ai-assisted-workflow-pattern.md |
| Navigation, IA restructuring, product redesigns | references/ia-and-redesign.md |
| Reviewing for common UX/UI defects | references/failure-patterns.md |