laws-of-ux-review

laws-of-ux-review is a skill for Claude Code, Codex from keysjoao/laws-of-ux-skills. It costs 71 tokens per session (924 once invoked), scanned A, original, MIT.

A user-interface review tool that checks existing page or component code against 30 commonly used user-experience principles. It gives each applicable principle a score and groups problems by severity.

In plain words
What is it for?
Use it to audit a page or component, score its user experience, prioritize usability problems, and plan fixes.
Why use it?
It turns broad feedback such as “the UX feels poor” into specific issues and code-level fixes, including problems with targets, loading feedback, choices, and conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit a page or component, score its user experience, prioritize usability problems, and plan fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/keysjoao/laws-of-ux-skills/laws-of-ux-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add keysjoao/laws-of-ux-skills --skill laws-of-ux-review
Clone the repo
git clone --depth 1 https://github.com/keysjoao/laws-of-ux-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laws-of-ux-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review/github.svg)](https://agentmods.dev/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review)
Your own site
<a href="https://agentmods.dev/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review"><img src="https://agentmods.dev/badge/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laws-of-ux-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review"><img src="https://agentmods.dev/badge/skills/keysjoao/laws-of-ux-skills/laws-of-ux-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 924 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00924
Opus 5 $0.00036 $0.00462
Sonnet 5 $0.00014 $0.00185
Haiku 4.5 $0.00007 $0.00092

Measured 12d ago against content hash 5b59b1958edd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

laws-of-ux-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

laws-of-ux-review/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laws of UX — Review & Audit

Score existing UI code against all 30 Laws of UX and deliver prioritized, code-level fixes.

Process

Step 1: Read the Target

Read the component/page file(s) the user wants audited. If no file specified, ask which file or component to review.

Step 2: Score Each Law

Load references/ux-laws-complete.md from the parent laws-of-ux skill.

For each of the 30 laws, score:

Score Meaning
2 Compliant — law is properly applied
1 Partial — some application but incomplete or inconsistent
0 Violation — law is broken or not addressed where it should be
N/A — law doesn't apply to this component type

Maximum score: 60 (all 30 laws fully compliant)

Step 3: Classify Findings

Group all non-compliant laws into severity tiers:

CRITICAL (score 0, high-impact laws): Laws that directly cause usability failures:

  • Fitts's Law (unreachable/tiny targets)
  • Doherty Threshold (no loading feedback)
  • Hick's Law (overwhelming choices)
  • Cognitive Load (too much at once)
  • Jakob's Law (breaks conventions)

WARNING (score 0-1, medium-impact laws): Laws that degrade experience:

  • Proximity, Common Region, Similarity (grouping issues)
  • Miller's Law, Chunking (information overload)
  • Goal-Gradient, Zeigarnik (missing progress)
  • Von Restorff (nothing stands out)

SUGGESTION (score 1, polish laws): Laws that improve quality:

  • Aesthetic-Usability (visual polish)
  • Peak-End Rule (celebration states)
  • Flow (minor interruptions)
  • Parkinson's Law (time cues)

Step 4: Generate Report

Output this exact format:

# UX Audit: [Component/Page Name]

**Score: [X]/60** | **Grade: [A/B/C/D/F]**

| Grade | Range |
|-------|-------|
| A | 50-60 |
| B | 40-49 |
| C | 30-39 |
| D | 20-29 |
| F | 0-19 |

## Critical Issues ([count])

### [Law Name] — Score: 0/2
**Problem:** [What's wrong, referencing specific lines]
**Fix:**
```[language]
// Before (line XX)
[current code]

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 129 lines · 71 tokens per session scan A 5b59b1958edd

Subscribe to this mod's changes

laws-of-ux-review is a skill published in the GitHub repository keysjoao/laws-of-ux-skills (3 stars, last pushed 4mo ago), licensed MIT. It adds 71 tokens to every session and 924 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

product-research

Find and compare current FF&E candidates from a design brief, with sourced purchasing facts and optional CSV-library save. Use to research or source products; not to match from an image or pair coordinating items.

AlpacaLabsLLC/skills-for-architects · 44 tokens

color-palette-generator

Create an HTML color palette from a mood, description, or image, with swatches, color codes, pairings, and contrast checks. Use for color schemes or brand colors.

AlpacaLabsLLC/skills-for-architects · 41 tokens

product-enrich

Enrich FF&E schedule rows with categories, colors, materials, and style tags. Use to tag, categorize, or fill those missing fields; not to research new products.

AlpacaLabsLLC/skills-for-architects · 39 tokens

icon-design

Select semantically appropriate icons for websites using Lucide, Heroicons, or Phosphor. Covers concept-to-icon mapping, React/HTML templates, and tree-shaking patterns. Use when: building feature sections, service grids, contact info, navigation, or any UI needing icons. Prevents emoji usage, ensures consistency.

citedy/skills · 68 tokens

design-board

Full UX/UI design review panel — 6 opinionated design leaders (Jony Ive, Amir Salihefendic, Jesse Patel, Joe Gebbia, Katie Dill, Notion Designer) critique your design with brutal honesty, deliberate together, score on 5 principles, and implement fixes. Works with .pen files, HTML/CSS/JS projects, and Figma.

Chosen9115/design-board · 79 tokens

amir-salihefendic

Amir Salihefendic (Todoist/Doist) design critique — calm technology, daily-use sustainability, anti-bloat. Brutally honest UX/UI feedback focused on productivity and the day-500 experience. Scores on 5 principles and implements fixes.

Chosen9115/design-board · 60 tokens