Palenge · BLOG

Pulsa Esc para cerrar · / para abrir

Uncategorized

[ux-ui-agent-skills] The Floor Beneath the Pretty Screen

Macro photograph of the pixels of an LCD screen

Every model produces it when nobody stops it. The dashboard opens on an indigo-to-purple gradient, emoji sit where icons belong, four identical stat cards share the spotlight, the labels are pale grey on white, and the delete button is a calm blue «Delete Account». It looks like software, it ships like software, and it is the reason «AI-generated» became an insult in design circles. ux-ui-agent-skills — XIAS for short — is a kit that turns «make it pretty» into a list of things that can fail.

It is a Claude Code plugin and an instruction layer, MIT-licensed, built by Thientan Soparat, and its shape is unusual: no build step, no dependencies, no runtime. Just a body of design doctrine the agent reads, plus 138 named design systems written out in full, 52 component specs, 14 DTCG token files in three tiers (primitive, semantic, component) and 16 framework adapters reaching React, SwiftUI, Vue, Flutter and the rest. The same rules travel through CLAUDE.md or AGENTS.md to Codex, Cursor and Copilot, and an MCP server exposes six tools so any client can read the doctrine and run the checks.

The checks are the point. Fifty-two gates, 34 of which open a real browser, and they measure rendered HTML rather than promises: contrast in every state of every control, in light and dark; axe roles and landmarks; keyboard operability; the 24×24 target floor; horizontal overflow at 280, 320 and 414 pixels; reduced motion, RTL, silent text clipping, token-by-intent, no emoji, no hardcoded values. The repo ships a deliberately bad dashboard as a fixture, and ten gates reject it with numbers — 1.00:1 white-on-gradient, a 15.3×16 icon button, +820px of overflow, sixty-three hardcoded values. The good page next to it passes all 52. One command, no partial credit:

node scripts/accuracy_report.mjs   # 52/52 or it fails
/gate                              # all 52 checks
/critique                          # a critic that argues for rejection

Then comes the sentence the kit repeats, and the reason this post exists: a passing gate is not taste. It is the floor. Fifty-two checks can prove contrast, keyboard access and intent; they cannot prove the screen is any good. So the kit refuses to pretend. It runs a critic in a forked subagent — the critic never sees the conversation that produced the work, because a critic holding the maker’s reasoning reviews the argument instead of the artifact — and that critic renders at 1280 and 390 in both themes, clicks every control, and returns a verdict with the three reasons a senior designer would send the work back.

The evidence is more interesting than the marketing. Two subagents were handed a brief and a scaffold with no example screens, and no hint that anything would be scored. Both scored 14/14 on the objective eval. Then the outputs went to /critique and came back as rework: eight findings, five major, and not one of them measurable — an empty state that reads as a page that failed to load, a theme toggle that says nothing about its own state, a toast claiming a draft was created over a list that never changed. The blind runs also exposed seven real defects the author’s own in-session runs had missed, including a secondary button at 1.13:1 in dark mode and a reduced-motion policy the gate could not see because Chromium treats a file:// stylesheet as cross-origin. That last one is the best argument for the whole approach: the gate was blind exactly where every real project lives.

flowchart LR
  A[Brief] --> B[Agent builds the screen]
  B --> C[52 gates: render, contrast, keyboard]
  C -->|fail| D[Fix]
  D --> C
  C -->|pass| E[Critic argues for rejection]
  E -->|rework| D
  E -->|ship| F[Production]

Where it does not fit is equally clear. The kit is opinionated to the bone — if your brand is a purple gradient and emoji, it will fight you, on purpose. The browser gates need Playwright and a real Chrome; without them the full report says REQUIRED, FAILING, which is honest, but a single gate prints SKIPPED and exits 0, and silence read as green is how you ship 1.13:1. The Vue and Swift paths are still file checks, not rendered measurements, and the repo says so. And taste remains outside the number: the critic is scored against fourteen seeded defects, but its score is a floor, not a tasteometer. The author merges no pull requests, either. What he wants are gate gaps — cases where a gate said yes to work it should have caught. A gate that passes broken work is worse than a missing one, and the repo is built around that discomfort.

That is the part worth stealing even if you never install it. AI can generate a screen that passes every measurable check and still be wrong, and the distance between «the model tried» and «the model can prove it did not ship 1.13:1» is where engineering starts. The kit knows exactly what it cannot prove, and says it on the page.

Fuentes

Generado con IA · Revisado y curado por palenge

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *