# plugin87/ux-ui-agent-skills — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `skills`
- Overall score: `4.3/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `d0ee2fa38ede` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/plugin87/ux-ui-agent-skills
- Radar entry: https://radar.alplab.co/#repo/plugin87/ux-ui-agent-skills
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `agent-skills`, `design-systems`, `design-tokens`, `wcag`, `accessibility`, `claude-code`

## Summary

A design-system doctrine kit for coding agents: 14 DTCG token files, 26 skills, an adversarial critic agent, and 52 objective gates (34 driving a real browser via Playwright) that measure generated UI for WCAG contrast per state, axe violations, keyboard operability, target size, responsive/fold behavior, RTL, reduced motion, token-by-intent and anti-slop tells, installable as a Claude Code plugin, AGENTS.md surface, Gemini extension, MCP server (hand-rolled JSON-RPC), Homebrew tap or npx.

## Implementation Check

Every headline README number is backed by working code I read: scripts/accuracy_report.mjs CHECKS (52 all-or-nothing checks), .claude/skills/ (26 SKILL.md folders), design-systems/library.json index, tokens/colors.json 3-tier DTCG, mcp/server.mjs TOOLS (6 MCP tools), and tests/meta/counts.test.mjs derives the 34/18 browser/file split from gate source rather than trusting prose.

## When to Use

Use when a coding agent (Claude Code, Codex, Cursor, Copilot, Aider, Gemini CLI, or any MCP client) builds or reviews web UI and you want token discipline and WCAG 2.2 correctness enforced by measurement rather than the model's word. Not for non-UI work, and only the Claude Code plugin route gets the enforcement hooks; every other route makes the gates a request you must remember to run.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 4.5/5 |

## Code Evidence

scripts/verify_states.mjs measures real computed contrast in default/hover/focus per element with correct 3:1/4.5:1 thresholds and exits 1 on failure; scripts/accuracy_report.mjs runs 52 checks with DS_REQUIRE_BROWSER=1 so a missing browser fails loudly instead of skipping; scripts/gate.mjs writeReceipt/liveReceiptsFor hash targets with SHA-256 so a receipt expires the moment the file changes; hooks/posttooluse-fast-gates.mjs runs three Python gates on every Write|Edit and hooks/stop-require-measurement.mjs blocks a session that edited a page with no live passing receipt; mcp/server.mjs implements MCP JSON-RPC 2.0 directly (no SDK, matching the empty dependencies map) and run_gate returns gate output unedited with exit codes 0/1/2 semantics; scripts/library.mjs ensure()/download() fetch specs from raw.githubusercontent/jsDelivr only after an /^[a-z0-9][a-z0-9-]*$/ slug check and refuse any bytes whose SHA-256 mismatches the shipped index; bin/cli.js main() supports --dry-run, --agent {claude,codex,gemini,both} and never copies the 27MB library; tests/meta/browser-gates.test.mjs asserts each render gate REJECTS its broken fixture and pins the README's ten-gate slop-screen table; evals/run.mjs scores cold-start agent output against 15 gates and evals/RESULTS.md records blind runs with provenance; .github/workflows/ci.yml runs both the file gates and a real-render job ending in npm run test:gates.

## Issues Found

Minor: 13 GitHub Actions pinned to major-version tags (actions/checkout@v4) rather than commit SHAs in .github/workflows/ci.yml, release.yml, pages.yml - a supply-chain hardening gap; hooks/stop-require-measurement.mjs interpolates CLAUDE_PLUGIN_DATA into a printed shell command without escaping (message text, not executed by the hook); stale counts in prose: tests/README.md and a comment in scripts/gate.mjs say '51' gates/checks while stats.json and counts.test.mjs derive 52, and the README capability table still says '19 invocable /skills + 5 slash commands' while 26 skills ship (the install section states 14+12 correctly).

## Key Risks

Nothing was executed: 'tests exist' is not 'tests pass', though ci.yml demonstrably wires the full gate suite and negative fixtures into CI. 34 of 52 gates require Chrome/Playwright; without it they print SKIPPED and exit 0 unless DS_REQUIRE_BROWSER=1 (the kit sets it in CI, gate.mjs and the MCP server). Hooks and /critique enforcement exist only on the Claude Code plugin route; on AGENTS.md/Gemini every rule is a request. Vue and Swift sources get file-level checks only (no render), stated by the repo itself. The 2,144 design-system specs are third-party measurements whose accuracy I could not verify. Bus factor is 1 (single maintainer, deliberate no-PR policy).

## Reviewed Files

- `README.md`
- `package.json`
- `AGENTS.md`
- `CLAUDE.md`
- `bin/cli.js`
- `bin/port-skills.js`
- `mcp/server.mjs`
- `mcp/gates.mjs`
- `scripts/library.mjs`
- `scripts/verify_states.mjs`
- `scripts/validate_contrast.py`
- `scripts/check_no_emoji.py`
- `scripts/gate.mjs`
- `scripts/accuracy_report.mjs`
- `scripts/observe.mjs`
- `hooks/hooks.json`
- `hooks/posttooluse-fast-gates.mjs`
- `hooks/stop-require-measurement.mjs`
- `hooks/_ledger.mjs`
- `hooks/_events.mjs`
- `.claude/settings.json`
- `.claude/agents/design-critic.md`
- `.claude/skills/design-tokens/SKILL.md`
- `.claude/skills/gate/SKILL.md`
- `tokens/colors.json`
- `stats.json`
- `SECURITY.md`
- `.mcp.example.json`
- `docs/INSTALL.md`
- `evals/run.mjs`
- `evals/RESULTS.md`
- `tests/README.md`
- `tests/meta/browser-gates.test.mjs`
- `tests/meta/counts.test.mjs`
- `.github/workflows/ci.yml`
- `.github/workflows/release.yml`
