Give Claude 20 UX Laws as a Rules File So Every Screen It Builds Is Easier to Use

Do this first
Know the 20 laws on the list
On screen: 1 Hick's law, 2 Fitts's law, 3 Jakob's law, 4 Law of proximity, 5 Miller's law, 6 Doherty threshold, 7 Von Restorff effect, 8 Minimize target distance, 9 Serial position effect, 10 Peak end rule, 11 Zeigarnik effect, 12 Law of Pragnanz, 13 Law of similarity, 14 Uniform connectedness, 15 Tesler's law, 16 and 17 Postel's law (listed twice on screen), 18 Parkinson's law, 19 Occam's razor, 20 Pareto principle. Reel Playbooks addition: the narrated rules do not line up one to one with the on screen numbers after number 12, and Postel's law appears twice, so the file below follows the 20 spoken rules and pairs each with the law that best fits it.
Summary
Adam Hayes (@adam_ha_yes) shows a list of 20 UX laws to tell Claude for better design and reads a one line rule for each: reduce choices per screen, make targets large, follow familiar patterns, group related information, break content into chunks, respond within 400 milliseconds, highlight the primary action, and so on. AI coding tools tend to produce cluttered screens with many equal weight buttons. Giving Claude these rules as a standing instruction file nudges every page it builds toward cleaner, more usable layouts. His own Markdown file is gated behind a comment, so this playbook includes a ready to paste UX-RULES.md built from the 20 rules he says out loud, plus an audit prompt.
- Skill level
- Beginner
- Time to implement
- 25 min
- Cost
- Free
- Platform
- Tools
- Laws of UX, Onedery, Claude, Claude Code
- Outcomes
- Higher conversions, Free to do, Beginner friendly
- Last verified
- Dec 2, 2026
Set upWhat you need
Claude (a Project with custom instructions) or Claude Code working in your site or app repo
A page, funnel or app screen to improve. If your landing pages and funnels live in Onedery, you can apply the same checklist there
Optional reference: Laws of UX by Jon Yablonski, which explains each law with examples
About 25 minutes
Do thisStep by step
Know the 20 laws on the list
On screen: 1 Hick's law, 2 Fitts's law, 3 Jakob's law, 4 Law of proximity, 5 Miller's law, 6 Doherty threshold, 7 Von Restorff effect, 8 Minimize target distance, 9 Serial position effect, 10 Peak end rule, 11 Zeigarnik effect, 12 Law of Pragnanz, 13 Law of similarity, 14 Uniform connectedness, 15 Tesler's law, 16 and 17 Postel's law (listed twice on screen), 18 Parkinson's law, 19 Occam's razor, 20 Pareto principle. Reel Playbooks addition: the narrated rules do not line up one to one with the on screen numbers after number 12, and Postel's law appears twice, so the file below follows the 20 spoken rules and pairs each with the law that best fits it.
Create UX-RULES.md
Reel Playbooks addition: save this as
UX-RULES.mdin your project root (or paste it into a Claude Project's instructions):# UX-RULES.md (follow these on every screen you build or change) 1. Hick's law: reduce choices per screen. Show only the options needed for the current step. 2. Fitts's law: make targets large. Buttons and tap areas at least 44 by 44 px. 3. Jakob's law: follow familiar patterns. Logo top left, nav where users expect it, standard icons. 4. Law of proximity: group related information. Keep labels next to their fields. 5. Miller's law: break content into chunks. Short sections, lists, no walls of text. 6. Doherty threshold: respond to every interaction within 400 ms. Show a loading state if it takes longer. 7. Von Restorff effect: highlight the primary action. One visually distinct primary button per screen. 8. Minimize target distance: place key actions near where the user is working. 9. Serial position effect: put essentials first (and last). The most important item goes at the top of lists and menus. 10. Peak end rule: end flows memorably. Clear confirmation and next step after signup, checkout or submit. 11. Zeigarnik effect: show visible progress in multi step flows (step 2 of 4, progress bars, checklists). 12. Law of Pragnanz: simplify complex interfaces into the simplest shapes and layouts that still work. 13. Tesler's law: use sensible defaults so users do not handle complexity the system can handle. 14. Postel's law: prevent errors proactively. Accept flexible input formats and validate inline. 15. Make errors recoverable: undo, clear error messages that say how to fix it, never wipe a form. 16. Law of similarity: maintain pattern consistency. Same style for the same kind of element everywhere. 17. Law of uniform connectedness: connect related elements visually (shared container, line or background). 18. Parkinson's law: reduce task completion time. Autofill, fewer fields, smart shortcuts. 19. Occam's razor and progressive disclosure: reveal complexity gradually. Advanced options behind a toggle. 20. Goal gradient effect: make completion feel closer (prefilled progress, short remaining steps). When you finish a change, list which rules you applied and any rule you broke on purpose and why.Load it so Claude always sees it
Reel Playbooks addition: in Claude Code, add a line to your
CLAUDE.mdsuch asFollow the design rules in @UX-RULES.md for all UI work.so the file is pulled into every session (Claude Code memory docs). In the Claude app, put the rules in the Project's custom instructions. In other AI builders, paste them into the system or project prompt.Audit an existing page
Reel Playbooks addition: ask Claude to check one page at a time:
Read UX-RULES.md. Audit the page or component I name against all 20 rules. For each rule give: pass or fail, the exact element that breaks it, and the smallest code change that fixes it. Then apply the fixes for the failures, one commit per rule group, and do not change copy, colors or brand fonts unless a rule requires it.Build new screens with the rules in force
When you ask for a new page or component, add: follow UX-RULES.md and tell me which rules shaped the layout. Reel Playbooks addition: the most visible wins usually come from rule 1 (fewer choices), rule 7 (one clear primary button) and rule 6 (fast feedback with loading states).
Check the result on a real phone
Reel Playbooks addition: open the page on a phone, try the main task with one thumb, and time it. If you cannot find the primary action in two seconds or tap it easily, send that feedback back to Claude with the rule number.
Heads upCommon mistakes & tips
Reel Playbooks addition: rules files work best when short and concrete. If Claude starts ignoring them, trim the file rather than adding more.
Reel Playbooks addition: the 400 millisecond figure comes from the Doherty threshold research on system response time; treat it as a target, not a hard rule for every network request.
Reel Playbooks addition: do not let an audit rewrite your copy or brand. Tell Claude what it may and may not change.
The creator's own MD file is gated behind a comment on his post, so the file in this playbook is a Reel Playbooks version built from his narration, not his exact text.
No results are claimed in the video; any conversion lift will depend on your page and audience.
Quick answersCommon questions
- What is Give Claude 20 UX Laws as a Rules File So Every Screen It Builds Is Easier to Use in short?
Adam Hayes (@adam_ha_yes) shows a list of 20 UX laws to tell Claude for better design and reads a one line rule for each: reduce choices per screen, make targets large, follow familiar patterns, group related information, break content into chunks, respond within 400 milliseconds, highlight the primary action, and so on. AI coding tools tend to produce cluttered screens with many equal weight buttons. Giving Claude these rules as a standing instruction file nudges every page it builds toward cleaner, more usable layouts. His own Markdown file is gated behind a comment, so this playbook includes a ready to paste UX-RULES.md built from the 20 rules he says out loud, plus an audit prompt.
- What do I need before starting?
Claude (a Project with custom instructions) or Claude Code working in your site or app repo
A page, funnel or app screen to improve. If your landing pages and funnels live in Onedery, you can apply the same checklist there
Optional reference: Laws of UX by Jon Yablonski, which explains each law with examples
About 25 minutes
- How many steps does it take?
- 6 steps:
Know the 20 laws on the list
Create UX-RULES.md
Load it so Claude always sees it
Audit an existing page
Build new screens with the rules in force
Check the result on a real phone
- Who created this method?
Adam Hayes. Original strategy on Instagram.
Adam Hayes
Original strategy by Adam Hayes. Watch the original on Instagram.
MeasureHow to know it worked
Claude's changes reference the rule numbers it applied, each screen has one obvious primary action, tap targets are easy to hit on a phone, multi step flows show progress, and errors explain how to fix them. If you track it, the main task (signup, booking, checkout) takes fewer clicks and less time than before.
ProvenanceSource & adaptation notes
Original
An Instagram reel by Adam Hayes. Caption: Comment UX and follow for md instructions to give to Claude. On screen: 20 UX Laws to tell Claude for better Design, numbered 1 to 20. Narration: reduce choices per screen, make targets large, follow familiar patterns, group related information, break content into chunks, interactions within 400 milliseconds, highlight the primary action, place key actions nearby, put essentials first, end flows memorably, show visible progress, simplify complex interfaces, use sensible defaults, prevent errors proactively, make errors recoverable, maintain pattern consistency, connect related elements visually, reduce task completion time, reveal complexity gradually, make completion feel closer.
Reel Playbooks additions
Reel Playbooks additions: a ready to paste UX-RULES.md pairing each spoken rule with a law, loading it through CLAUDE.md or Project instructions, an audit prompt, phone test, notes on the mismatched and duplicated list items, and caveats. The gated MD file was not used.
AttributionCredit
Original video by Adam Hayes (@adam_ha_yes) on Instagram (watch the original video).
Adapted from Adam Hayes's video; steps expanded by Reel Playbooks.
Reel Playbooks credits and links to the original creator. See For creators to request changes or removal.