Laws Of Ux logo

Laws Of Ux

Community
keysjoao
laws-of-ux

Comprehensive UX design companion based on all 30 Laws of UX from lawsofux.com. Analyzes components being built and recommends which laws apply with specific code-level fixes. Works as proactive advisor during frontend development and reactive auditor on demand. Use when building or reviewing UI/UX — designing layouts, choosing interactions, organizing information, evaluating interface decisions, or when user mentions "UX laws", "laws of ux", "lawsofux", "UX audit", "UX review", "UX checklist", "check UX", "apply UX", "design review", "UI review", "pre-ship check". Also triggers alongside the frontend-design skill. Do NOT trigger for: backend logic, API design, database schema, or non-visual code.

Overview

Publisherkeysjoao
Repositorylaws-of-ux-skills
Skill namelaws-of-ux
Stars
12
Forks
0
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by keysjoao on GitHub. Read the source before you install it.

Installation

Install the Laws Of Ux AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/keysjoao/laws-of-ux-skills/tree/main/laws-of-ux
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/keysjoao/laws-of-ux-skills.git /tmp/laws-of-ux-skills
mkdir -p .claude/skills
cp -r /tmp/laws-of-ux-skills/laws-of-ux .claude/skills/laws-of-ux
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Laws Of Ux in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Laws Of Ux on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Laws Of Ux is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Laws of UX — Actionable Design Companion

Apply the 30 Laws of UX (lawsofux.com) to every frontend decision with specific, code-level guidance.

Quick Reference

CommandWhat it does
/laws-of-uxAnalyze what's being built → recommend relevant laws + code changes
/laws-of-ux reviewFull audit of existing UI → score 0-60 + prioritized fixes
/laws-of-ux checklistQuick 12-point pre-ship pass/fail check

Orchestration Logic

Route Selection

IF user is building new UI or frontend-design skill is active:
  → Run PROACTIVE ADVISOR mode (this skill)
IF user says "review", "audit", "check UX", or points at existing code:
  → Route to /laws-of-ux-review
IF user says "checklist", "pre-ship", "ready to ship?":
  → Route to /laws-of-ux-checklist

Proactive Advisor Mode

When the user is building UI, follow this process:

Step 1: Detect Component Type

Read the code being written. Classify as one of:

  • Form (inputs, validation, submission)
  • Dashboard (metrics, charts, KPIs)
  • Navigation (sidebar, navbar, tabs, breadcrumbs)
  • Wizard/Stepper (multi-step flow)
  • List/Table (data display, sorting, filtering)
  • Modal/Dialog (overlay, confirmation)
  • Card Layout (grid of items, feed)
  • Landing/Hero (marketing, CTA-focused)
  • Empty/Error State (zero data, failures)
  • Settings/Config (toggles, preferences)

Step 2: Surface Relevant Laws

Load references/code-patterns.md and extract the 5-8 laws mapped to that component type.

Step 3: Give Actionable Guidance

For each relevant law, provide:

**[Law Name]** — [one-line rule]
→ DO: [specific CSS/JSX pattern to implement]
→ DON'T: [common violation to avoid]

Keep it to 5-8 laws maximum. Don't dump all 30 — that defeats the purpose (Hick's Law applies to you too).

Step 4: Code-Level Recommendations

Provide actual code snippets. Not theory, not vague advice. Examples:

  • "Add gap: 0.5rem between related fields, gap: 2rem between sections" (Proximity)
  • "Primary CTA should be min-h-11 min-w-[120px] text-base font-semibold" (Fitts's Law)
  • "Add transition-all duration-200 to all interactive elements" (Doherty Threshold)
  • "Max 5 items in this nav group — move the rest to 'More'" (Hick's Law)

Critical Rules

  1. Never list all 30 laws at once — surface only what's relevant to the current component
  2. Always provide code — if you can't write a CSS/JSX fix, the advice is too vague
  3. Violations > Suggestions — prioritize what's wrong over what could be better
  4. Respect the user's stack — adapt patterns to their framework (React, Vue, Tailwind, CSS modules, etc.)
  5. Don't repeat yourself — if a law was already applied in earlier components, skip it unless there's a new violation

Reference Files

  • references/ux-laws-complete.md — All 30 laws with definitions, applications, and violation signals (load on-demand)
  • references/code-patterns.md — Component-type → law mapping table (load on-demand)

Sub-Skills

  • laws-of-ux-review — Full UX audit with 0-60 scoring and prioritized code fixes
  • laws-of-ux-checklist — Fast 12-point pre-ship verification with pass/fail verdict

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Laws Of Ux AI skill do?

Comprehensive UX design companion based on all 30 Laws of UX from lawsofux.com. Analyzes components being built and recommends which laws apply with specific code-level fixes. Works as proactive advisor during frontend development and reactive auditor on demand. Use when building or reviewing UI/UX — designing layouts, choosing interactions, organizing information, evaluating interface decisions, or when user mentions "UX laws", "laws of ux", "lawsofux", "UX audit", "UX review", "UX checklist", "check UX", "apply UX", "design review", "UI review", "pre-ship check". Also triggers alongside t...

Why use Laws Of Ux on TypingMind?

Because you install it once and use it with any model. Laws Of Ux is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Laws Of Ux in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/keysjoao/laws-of-ux-skills/tree/main/laws-of-ux. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Laws Of Ux?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Laws Of Ux?

As many as you like. As long as a model supports skills, you can use Laws Of Ux with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Laws Of Ux AI skill free?

Yes. It is published on GitHub by keysjoao under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇