Repository navigation
Releases
Releases · CycleChain/lawofux-skill
v1.6.0 — Hardened Probes, 100% English References & Behavioral Eval Harness
What's New in v1.6.0
1. OpenCV UI Vision Probe Accuracy Overhaul (scripts/ui_vision_probe.py, 12/12 tests)
- Eliminated light-mode text false positives via horizontal-first DPR-scaled text coalescing and inline baseline guards (live demo screenshot:
smallTargetsAa21 → 0,tightSpacing4 → 0, bogus bold-heading container eliminated). - Fixed HSV salience dead zone (
~chroma_mask) so dark cool-neutral CTAs (#111827/#0f172a) are detected reliably, and gated tiny colored text out ofsalienceHotspots. - Added PNG
pHYsRetina auto-DPR detection via stdlibstruct, DPR-scaled morphological kernels, border-median RGBA compositing, WCAG 2.2 pixel-estimated local contrast (visualCandidates.lowContrastBlocks), CLI--compare <after.png>before/after diff, and unifiedschemaVersion: "1.0"+findings[].
2. Live DOM UX Probe Accuracy & Modern CSS Upgrades (scripts/dom_ux_probe.js, 26/26 tests)
- Added pure-JS
hsl()/hsla()parsing plus lazy browser1×1offscreen canvas normalization for CSS Color Level 4 (oklch(),oklab(),color(srgb),color(display-p3),color-mix()) andmeasured.unparseableColorCount. - Replaced resting-state
outlineStyle === 'none'false positives with safe stylesheet:focus/:focus-visibleoutline-suppression rule inspection. - Added recursive open Shadow DOM traversal, uppercase SVG
tagNamesafety, WCAG 2.2 SC 2.5.8 inline link exemption,<label>-wrapped input union hit rects, nameless icon-button detection,.sr-only/opacity/background-image contrast guards,onpasteauth & unlabeled open dialog warnings, and unifiedschemaVersion: "1.0"+findings[].
3. 100% Global English Reference Core (-29.5% Token Footprint)
- Translated all 7 remaining Turkish modules under
references/into concise global English with strictly ASCII anchors (34,951 → 24,657 o200ktokens saved 10,294 tokens / -29.5%) while keeping automatic response-language matching inSKILL.md. - Deduplicated
sources-and-evidence.mdandinterface-playbook.md, absorbed the 8th Laws of UX article intoperception-and-mental-models.md, and bridgedinterface-playbook.mdtodom_ux_probe.js,ui_vision_probe.py, andcomponent-best-practices.md.
4. Zero-Dependency Behavioral Eval Runner (evals/run_evals.mjs)
- Added
node evals/run_evals.mjs --mode contract(18/18 passing, wired into GitHub Actions CI) verifying every eval trigger, extension, probe, and guardrail against live skill files. - Added optional
--mode live --provider openai|anthropic|geminiA/B harness comparing bare-prompt Baseline vs.lawofuxon deterministic behavioral rubrics.
Install: npx skills add CycleChain/lawofux-skill
Live Demo: https://cyclechain.github.io/lawofux-skill/
v1.5.0 — Verified Component Best Practices & 28-Framework Gallery
What's New in v1.5.0
Live-Verified Cross-Framework Component Best Practices
- Added
references/component-best-practices.mdsynthesized from 14 live-inspected official docs (W3C WAI-ARIA APG AlertDialog/Tabs/Combobox, GOV.UK Design System Error Summary & Validation, Apple HIG Buttons, Adobe React Aria, MUI Base UI, DaisyUI, Shoelace Web Components, PrimeVue 4, Vuetify 3, SolidJS Kobalte, GNOME GTK4/Libadwaita, Godot 4 GUI Navigation, and Python Textual TUI).
9 New Official-Docs-Grounded Component Examples (19 → 28 total across 15+ languages/paradigms)
- Web — CSS, Hypermedia & Shadow DOM (+2, 6 total):
daisyui-modal-confirm.html(native<dialog>, 0dom_ux_probe.jsfailures at 320px/1280px) &shoelace-lit-shadow-dialog.html(Open Shadow DOM +sl-request-closedirty guard, 0 probe failures in Light & Shadow DOM). - Web — React & Headless Primitives (+2, 7 total):
react-aria-accessible-form.tsx(Adobereact-aria-components) &baseui-alert-dialog.tsx(@base-ui/react/alert-dialog). - Web — Vue, Svelte, Solid & Angular (+2, 5 total):
primevue-confirm-dialog.vue(PrimeVue 4) &solid-kobalte-alert-dialog.tsx(SolidJS +@kobalte/core). - Desktop, Game Engine & Terminal (+3, 6 total):
gtk4-adwaita-alert-dialog.py(GTK4/LibadwaitaAdw.AlertDialog),godot-accessible-menu.gd(Godot 4grab_focus.call_deferred()+ 4-wayfocus_neighbor_*), &textual-deploy-confirm.py(Python TextualModalScreen[bool]).
Live Demo & Validation
- Updated
docs/index.html5-category gallery to showcase all 28 components (verified in headless Chrome at 320×568 & 1280×800: 0 console errors, 0px overflow, 0 probe failures). - Verified
validate_skill.mjs: 67 files, 25 markdown docs, 383 relative links, 18 eval cases, 8 extensions, 28 components.
Install: npx skills add CycleChain/lawofux-skill
Live Demo: https://cyclechain.github.io/lawofux-skill/
v1.4.0 — 19 Cross-Framework UX Reference Components
What's New in v1.4.0
12 New Standalone UX-Audited Component Examples (7 → 19 total across 12 languages/frameworks)
- Web — CSS & Hypermedia (4 total): added
tailwind-command-palette.html(native<dialog>+ keyboard nav, verified 0 probe failures at 320px/1280px) andhtmx-inline-error-swap.html(HTTP 422outerHTMLrecovery, verified 0 probe failures at 320px/1280px). - Web — React UI Libraries (5 total): added
antd-bulk-actions-table.tsx,chakra-accessible-drawer.tsx, andmantine-wizard-stepper.tsx. - Web — Vue, Svelte & Angular (3 total): added
vue-nuxtui-settings-form.vue,svelte-checkout-recovery.svelte, andangular-reactive-recovery-form.component.ts. - Mobile — Native & Cross-Platform (4 total): added
compose-payment-sheet.kt(Jetpack Compose Material 3) andreact-native-accessible-cart.tsx. - Desktop & Immediate-Mode Native (3 total): added
egui-inspector-panel.rs(Rustegui, verified withrustc --edition 2021) andqt-qml-destructive-confirm.qml(Qt 6 / QML).
8/8 Extension Pairing, Validator & Chunked Interactive Demo
- Paired
extensions/tailwind.mdandextensions/antd.mdwith their new reference components (8/8 bundled adapters now paired 1:1 with runnable examples). - Upgraded
docs/index.htmlcomponent gallery to a 5-category chunked selector (dogfooding Hick's Law, Chunking & Fitts's Law; verified 0 console errors and 0px overflow at 320px/1280px). - Added
validateExamplesCatalog()toscripts/validate_skill.mjsso every component inexamples/components/is guaranteed to be cataloged inexamples/README.md.
Install: npx skills add CycleChain/lawofux-skill
Live Demo: https://cyclechain.github.io/lawofux-skill/
v1.3.0 — 8 UI Component Library Adapters & 7 Cross-Platform Examples
What's New in v1.3.0
5 New Bundled --extend UI Component Library Adapters (3 → 8 total)
extensions/tailwind.md— Bare Tailwind CSS v3/v4 (@theme, Preflight focus traps,oklch()contrast checks,motion-reduce:,remzoom reflow)extensions/mui.md— Material UI v6/v7 (ThemeProvider/sx,IconButton44×44 touch targets, persistentAlertvs.Snackbar,DataGridtabular-nums)extensions/antd.md— Ant Design v5 (ConfigProvider,size="small"24px misclick guards,App.useApp().modal, persistentAlertvs.message.error)extensions/swiftui.md— Apple SwiftUI (HIG ≥ 44×44 pt + FFitts,@ScaledMetric/ Dynamic Type,.confirmationDialog, native boundary withui_vision_probe.py)extensions/flutter.md— Flutter Material 3 / Cupertino (≥ 48×48 dpMaterialTapTargetSize.padded,Semantics,TextScaler,InputDecoration.errorText, native boundary)- Updated
extensions/README.mdwith expanded repo manifest auto-detection (Package.swift,CMakeLists.txt,pubspec.yaml,tailwind.config.*) and host skill directory fallback paths.
3 New Standalone Copy-Paste Component Examples (4 → 7 total) & Dogfooding Fixes
examples/components/bootstrap-billing-form.html— Offline-runnable Bootstrap 5 billing recovery form (verified live at 320px & 1280px with 0dom_ux_probe.jsfailures)examples/components/mui-data-filter-bar.tsx— Accessible MUI faceted filter & bulk-action barexamples/components/flutter-checkout-confirm.dart— Flutter Material 3 48×48 dp checkout & neutral cancel card- Fixed dogfooding contradictions in
examples/components/imgui-inspector-panel.cpp(SeparatorText("Danger Zone")+ uniqueCancel##job_cancel/Cancel##delete_cancelIDs, verified withclang++ -std=c++20 -Wall -Wextra -fsyntax-only) andextensions/imgui.mdcontrast accuracy.
Validator, Evals & Interactive Demo
- Expanded
evals/cases.jsonfrom 13 → 18 cases (MUI, AntD, SwiftUI/Flutter native boundaries, multi-stackshadcn,tailwindprecedence). - Hardened
scripts/validate_skill.mjs(strict eval schema, non-empty extension sections, cross-index checks inSKILL.mdandextensions/README.md). - Synced
docs/index.htmllive demo gallery to all 7 component stacks + fixed probe metric rendering and WAI-ARIA tablist navigation.
Install: npx skills add CycleChain/lawofux-skill
Live Demo: https://cyclechain.github.io/lawofux-skill/
v1.2.0 — OpenCV UI Vision Decomposer & Composable --extend Stack Adapters
Highlights
- OpenCV UI Screenshot Decomposer (
scripts/ui_vision_probe.py): Decomposes static UI screenshots and native app frames (e.g., Dear ImGui, mobile captures) into outer chrome bands, bordered containers with nesting depth and inner padding (Law of Common Region / Proximity), content blocks, small-widget visual candidates, and salience hotspots (Von Restorff). Exports JSON report, annotated overlay (annotated.png), and cropped regions (--crop), with explicit DPR & epistemicunverifiedguardrails (7/7deterministicunittesttests passing in CI). - Composable UI-Stack Extensions (
/lawofux --extend <stack>): Flexible handshake inextensions/README.mdallowinglawofuxto compose cleanly with bundled adapters (extensions/shadcn.md,extensions/bootstrap.md,extensions/imgui.md) OR any external installed UI/design-system skill (/lawofux --extend <skill>), plus a 4-sectionextensions/_template.mdenforced byscripts/validate_skill.mjs. - Expanded Evals & CI: 13 evaluation cases in
evals/cases.json(adding--extend shadcn,--extend bootstrap, and OpenCV DPR epistemic guardrails) and a Python 3.12 +opencv-python-headlessCI job alongside the Node 20 & 22 matrix.
Install
npx skills add CycleChain/lawofux-skillv1.1.0 — Cross-Language Components, Interactive Live Demo & Dual-Mode Probe
Highlights
- Interactive GitHub Pages Demo: Live Before/After sandbox running
runDomUxProbe()directly in the browser at https://cyclechain.github.io/lawofux-skill/ (verified in Chromium at 1280px and 320px WCAG Reflow with 0 measured failures on fixed views). - 4 Copy-Paste Cross-Language Components (
examples/components/):- Vanilla HTML/CSS/JS error-preserving accessible form (
accessible-form-recovery.html) - React / Tailwind shadcn-style 4-state AI agent checkpoint (
shadcn-ai-checkpoint.tsx) - C++20 Dear ImGui DPI-scaled inspector with Undo snapshot & isolated Danger Zone (
imgui-inspector-panel.cpp) - SwiftUI
>=44ptFFitts/HIG thumb-zone mobile action sheet (swiftui-mobile-action-sheet.swift)
- Vanilla HTML/CSS/JS error-preserving accessible form (
- Dual-Mode DOM UX Probe (
scripts/dom_ux_probe.js): UMD/IIFE bundle working cleanly in classic<script>, DevTools, Playwright,ego-browser, Node 20, and Node 22 with optional scopedrootparameter (16/16tests passing, Node 20 & 22 CI matrix). - English HCI & 2024–2026 arXiv Reference:
references/hci-research-and-ai-ux.mdtranslated to English as a single source of truth with all internal anchors updated and validated. - Social Preview Cover: Added crisp 1280×640 cover image at
assets/social-preview.png.
Install
npx skills add CycleChain/lawofux-skillv1.0.0 — Research-Grounded Laws of UX & Agentic UI Skill
Highlights
- English Core + Multilingual Output:
SKILL.mdandagents/openai.yamlare now authored in English for global contributors while automatically matching the user's prompt language (e.g. Turkish prompts produce Turkish output) and preserving English Laws of UX principle names. - Zero-Dependency DOM/UX Probe (
scripts/dom_ux_probe.js): Measures WCAG 2.2 AA 24x24 & AAA 44x44 target sizes/spacing circles, sRGB contrast ratios, missing form labels, placeholder-only inputs, positivetabindex, 320px horizontal overflow, and auto-playing media (14/14node:testtests passing). - Peer-Reviewed HCI & 2024–2026 arXiv Grounding: Covers FFitts Law, visual search vs. Hick-Hyman in menus, reverse aesthetic-usability, Gestalt primary foundations, computational rationality, dark patterns (web, WCAG/EAA, conversational LLM), Human-AI & Agentic UI failure modes, and LLM audit blind spots.
- Inclusive/Mobile Ergonomics & Research Kit: New
references/inclusive-and-mobile-ux.md(W3C COGA, Apple HIG 44pt / Material 3 48dp, Hoober mobile grasp, i18n/RTL/Turkish locale checks) andreferences/research-and-experiments.md(task scripts, SEQ/UMUX-Lite/SUS/NASA-TLX, sample & A/B guardrails). - Examples, Evals & CI: End-to-end checkout and AI-assistant audit examples, 10-case
evals/cases.json, zero-dependencyscripts/validate_skill.mjs, and GitHub Actions CI (.github/workflows/validate.yml).
Install
npx skills add CycleChain/lawofux-skill