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.5 $0.00028 $0.00370
Sonnet 5.5 $0.00014 $0.00185
Haiku 4.5 $0.00007 $0.00092

Measured 2mo ago against content hash 5b59b1958edd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (21 stars, last pushed 6mo ago), licensed MIT. It adds 71 tokens to every session and 924 once invoked, about $0.0003 per session on Opus 5.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

laws-of-ux-review compared with skills from other repositories

laws-of-ux-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laws-of-ux-reviewkeysjoao/laws-of-ux-skillsSkill216mo agoMITA71Claude Code, Codex
product-enrichAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA39Claude Code
product-researchAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA44Claude Code
color-palette-generatorAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA41Claude Code
product-cut-sheetAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA55Claude Code
product-auditAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA44Claude Code
product-libraryAlpacaLabsLLC/skills-for-architectsSkill4023d agoMITA38Claude Code