AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Laws Of Ux

skill-keysjoao-laws-of-ux-skills-laws-of-ux · by keysjoao

>

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-keysjoao-laws-of-ux-skills-laws-of-ux

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-keysjoao-laws-of-ux-skills-laws-of-ux)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Laws Of Ux? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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

| Command | What it does | |---------|-------------| | /laws-of-ux | Analyze what's being built → recommend relevant laws + code changes | | /laws-of-ux review | Full audit of existing UI → score 0-60 + prioritized fixes | | /laws-of-ux checklist | Quick 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

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.