agentsclimarketplace

Audit ux laws

Skill yigitkonur/skills-by-yigitkonur/skills/audit-ux-laws

Use if building or auditing UI against the 30 Laws of UX (Fitts, Hick, Gestalt, cognitive load).From its SKILL.md

Install
npx -y skills add yigitkonur/skills-by-yigitkonur --skill audit-ux-laws

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 11 stars11 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.1 KB, as published. Nobody here has run it

Audit UX Laws

Self-contained reference for the 30 Laws of UX (based on lawsofux.com by Jon Yablonski), tuned for an agent to find the relevant law, apply it to real code, and flag violations by severity. No live fetch — all law content is bundled in references/.

This skill does two jobs: proactive design (pick the right law while building UI) and review (audit an interface and report violations as CRITICAL / MINOR with concrete fixes). It works on UI only — components, layouts, navigation, forms, interactions, perceived performance. It is not a visual/CSS-correctness pass and it does not redesign brand or content.

The agent owns one decision: which laws are relevant to the thing in front of me? Everything downstream — the takeaway, the code pattern, the severity threshold — lives in the routed reference file. Read the router, open the one category file you need, apply it.

When to Use

Trigger on phrases and contexts like:

  • "is this good UX?", "review this interface", "what's wrong with this design?"
  • building or editing components, pages, layouts, navigation, menus, dropdowns, forms
  • "too many options", "this feels overwhelming", decision points, pricing tiers
  • touch-target sizing, click areas, spacing, visual grouping, hierarchy, what stands out
  • loading states, response time, perceived performance, animation timing
  • any named law: Fitts's, Hick's, Miller's, Jakob's, Doherty Threshold, Gestalt, Von Restorff, choice overload, chunking, cognitive load, Tesler's, Postel's, Pareto, Occam's, Zeigarnik, peak-end, goal-gradient, serial position

Do NOT use when

  • The work is backend / API / data-layer with no user-facing surface.
  • The ask is pure visual polish (exact colors, shadows, brand) — that is a CSS/design-system pass.
  • You need a full persona-driven usability audit with saved findings → use audit-ux-and-save-files.
  • You need a visual UI bug audit across pages with screenshots → use audit-ui-and-save-files.

Step 1 — Route the symptom to a law

Match what you see to a row; open only the reference file in the last column.

What you're checkingLawsReference file
Too many options (menus, dropdowns, nav, plans)Hick's Law, Choice Overloadreferences/heuristics.md
Touch targets too small / far apart / hard to hitFitts's Lawreferences/heuristics.md
Beautiful-but-is-it-usable / first-impression trustAesthetic-Usability Effectreferences/heuristics.md
Too much info on screen / dense forms / long listsMiller's Law, Cognitive Load, Chunking, Working Memoryreferences/cognitive.md
What stands out / CTA emphasis / scanning orderVon Restorff, Serial Position, Selective Attentionreferences/cognitive.md
Onboarding / first-time users skip instructionsParadox of the Active User, Cognitive Bias, Flowreferences/cognitive.md
Grouping / spacing / layout relationshipsProximity, Similarity, Common Region, Uniform Connectedness, Prägnanzreferences/gestalt.md
Users confused by an unfamiliar patternJakob's Law, Mental Modelreferences/gestalt.md (Mental Model), references/principles.md (Jakob's)
Response time / loading / perceived speedDoherty Thresholdreferences/principles.md
Forms too long / complexityTesler's Law, Parkinson's Law, Occam's Razor, Paretoreferences/principles.md
Input handling / error tolerancePostel's Lawreferences/principles.md
Motivation / progress / completion / memorable endingGoal-Gradient, Zeigarnik, Peak-End Rulereferences/principles.md

If more than one row matches, open each named file once and apply every relevant law.

Step 2 — Apply or review

Designing (proactive): read the law's Key Takeaways + Frontend Code Implications, then build to them.

Reviewing (audit): walk the law's Review Criteria, classify each violation, and report it with the fix. Severity scale:

  • CRITICAL — breaks usability, accessibility, or trust. Fix before ship. (e.g. touch target <44×44px mobile; >7 ungrouped options; primary CTA indistinguishable from secondary; no loading feedback >400ms; required cross-screen memorization.)
  • MINOR — polish / optimization. (e.g. >6 colors, inconsistent spacing, missing smart default, no progress indicator, suboptimal CTA placement.)

Always connect the finding to the why (the psychological principle) and give a concrete, actionable fix — code pattern or specific change, never "improve the UX."

Step 3 — Follow Related links when warranted

Each law entry ends with Related pointers (e.g. Choice Overload → Hick's Law → Doherty Threshold). Follow them only when the current law's fix creates a new question the related law answers.

Quick Reference — all 30 laws

LawCategoryOne-linerRelated
Aesthetic-Usability EffectHeuristicBeautiful design is perceived as more usableVon Restorff, Jakob's
Choice OverloadHeuristicToo many options cause decision paralysisHick's, Doherty
Fitts's LawHeuristicLarger, closer targets are faster to hitDoherty, Choice Overload
Hick's LawHeuristicDecision time grows with number of choicesChoice Overload, Miller's
ChunkingCognitiveGroup info into meaningful unitsMiller's, Cognitive Load
Cognitive BiasCognitiveSystematic thinking errors shape decisionsSelective Attention, Peak-End
Cognitive LoadCognitiveMinimize mental effort to use the interfaceMiller's, Tesler's
Miller's LawCognitiveWorking memory holds ~7±2 itemsChunking, Working Memory
Working MemoryCognitiveDon't force recall across steps/screensMiller's, Chunking
Selective AttentionCognitiveUsers filter to goal-relevant stimuliVon Restorff, Cognitive Bias
Serial Position EffectCognitiveFirst and last items remembered bestVon Restorff, Peak-End
Von Restorff EffectCognitiveThe distinct item stands out — use for CTAsSerial Position, Selective Attention
FlowCognitiveBalance challenge & skill; remove frictionDoherty, Goal-Gradient
Paradox of the Active UserCognitiveUsers skip manuals and learn by doingJakob's, Mental Model
Law of ProximityGestaltNear elements are perceived as groupedCommon Region, Similarity
Law of SimilarityGestaltSimilar-looking elements are seen as relatedProximity, Uniform Connectedness
Law of Common RegionGestaltA shared boundary groups elementsProximity, Uniform Connectedness
Law of Uniform ConnectednessGestaltVisually connected elements are most relatedCommon Region, Similarity
Law of PrägnanzGestaltUsers read complex shapes in their simplest formOccam's, Similarity
Mental ModelGestaltUsers carry prebuilt expectations from other productsJakob's, Paradox of Active User
Jakob's LawPrincipleUsers expect your site to work like the others they knowMental Model, Prägnanz
Doherty ThresholdPrincipleKeep response <400ms to hold attention & flowFlow, Fitts's
Goal-Gradient EffectPrincipleMotivation rises as the goal nears — show progressZeigarnik, Flow
Zeigarnik EffectPrincipleIncomplete tasks are remembered — use progress cuesGoal-Gradient, Peak-End
Peak-End RulePrincipleExperiences are judged by their peak and endingSerial Position, Zeigarnik
Postel's LawPrincipleBe liberal in what you accept, strict in what you outputJakob's, Tesler's
Tesler's LawPrincipleIrreducible complexity must live in design, not the userCognitive Load, Occam's
Occam's RazorPrincipleRemove elements until you can't without breaking functionTesler's, Prägnanz, Pareto
Pareto PrinciplePrinciple~80% of effects come from ~20% of causesOccam's, Tesler's
Parkinson's LawPrincipleWork expands to fill available time/space — constrain itDoherty, Goal-Gradient

Reference routing

Load only the file for the category you routed to in Step 1.

FileRead when
references/heuristics.mdDecision time, target acquisition, choice volume, aesthetic trust.
references/cognitive.mdMemory limits, attention, scanning, learning, biases.
references/gestalt.mdVisual grouping, layout relationships, shape simplification, expectations.
references/principles.mdTrade-offs, simplicity, response time, input handling, motivation, conventions.

Guardrails

  • Self-contained: never fetch lawsofux.com at runtime; bundled references are the source of truth.
  • Don't load all four category files for every request — route, then apply only what's relevant.
  • Every review finding needs a severity (CRITICAL/MINOR), a why (the law), and a concrete fix.
  • Don't invent thresholds; use the numbers in the reference files.
  • Severity numbers are usability heuristics, not a substitute for WCAG accessibility testing.

Keep looking

Skills are one crate of 628,971. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.