Open-Source Agent Skill · MIT License

Evidence-Grounded Laws of UX & Agentic UI Auditing

Stop letting AI agents guess click targets, invent UX scores, or suggest dark patterns. lawofux combines all 30 Laws of UX, 35+ verified HCI & 2024–2026 arXiv studies, dark-pattern & Agentic UI guardrails, live DOM & OpenCV probes, and 8 composable --extend stack adapters.

npx skills add CycleChain/lawofux-skill
18 Before / After Gallery Read SKILL.md
30 Laws + 35+ PapersCHI, CSCW, UIST, TOCHI & 2024–2026 arXiv
Live DOM & OpenCV ProbesZero-dep WCAG 2.2 DOM probe & screenshot decomposer
8 UI Stack Adapters (--extend)shadcn, Tailwind, Bootstrap, MUI, AntD, SwiftUI, Flutter, ImGui
28 Stack Examples15+ languages & UI frameworks across Web, Mobile, Desktop, Game & TUI

Interactive Before / After + Live runDomUxProbe()

Toggle between a flawed interface and its lawofux-patched version, then run the real zero-dependency scripts/dom_ux_probe.js directly against the sandbox DOM.

Checkout — Flawed UI Flawed
Live runDomUxProbe() Output Ready

Measured Details

    Still Unverified (Cannot Prove Statically)

      Copy-Paste Cross-Framework Examples (28)

      Dependency-light reference components grouped into 5 chunks (Chunking + Hick's Law + Fitts's Law) across CSS/HTMX/Shadow DOM, React & Headless, Vue/Svelte/Solid/Angular, Mobile, and Desktop/Game/TUI.

      Full Source