[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DC2PK1NVV3JGBYN55C78MA":3,"skill-same:01M6DC2PK1NVV3JGBYN55C78MA":243},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6DC2PK1NVV3JGBYN55C78MA","ui-audit",null,"Drive a running web or Electron app and emit a deterministic UI\u002FUX + functional audit - a11y, contrast, spacing, tap targets, dead buttons, motion, visual regression (Track-A) - then a design-quality VERDICT (Track-B) where Claude reasons over the numbers + screenshot on the DESIGN-EVAL v1 rubric (0-4, critical-error override, weighted composite) against Refactoring-UI\u002FHIG\u002FNielsen\u002FWCAG. READ-ONLY.","Prekzursil\u002Fagent-skills-toolchain","Prekzursil","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54636077?v=4","01M6DACZ1PCQHD99SCR1YXG28B","Andrei Mihai Visalon","01M6DACZ670WZF535V3WYYSS4Z",0,"MIT","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"audit","ui","ui audit","rubric","critical","app","visual","visual regression","deterministic","tap","motion","only","design","read","eval","regression","refactoring","WCAG","screenshot","ux","2026-11-10 10:12:30",false,"---\nname: ui-audit\ndescription: Drive a running web or Electron app and emit a deterministic UI\u002FUX + functional audit - a11y, contrast, spacing, tap targets, dead buttons, motion, visual regression (Track-A) - then a design-quality VERDICT (Track-B) where Claude reasons over the numbers + screenshot on the DESIGN-EVAL v1 rubric (0-4, critical-error override, weighted composite) against Refactoring-UI\u002FHIG\u002FNielsen\u002FWCAG. READ-ONLY.\nmetadata:\n  origin: user\n---\n\n# ui-audit Skill\n\nDrives a live web or Electron app and runs five deterministic audit gates. Produces a structured findings JSON that Claude (as orchestrator) then reasons over for design critique (Track-B).\n\n**Skill location:** `~\u002F.claude\u002Fskills\u002Fui-audit\u002F`\n\n---\n\n## When to use\n\n- Auditing your own running apps: **Reframe** (Electron+React), **momentstudio** (web), **bilbo-web** (web).\n- Spotting WCAG contrast failures, off-scale spacing, dead buttons, and tap-target violations before a PR.\n- Establishing a visual baseline and detecting regressions between builds.\n- This is the \"See\" step before Claude provides the \"Reason\" (Track-B design critique).\n\n---\n\n## Install once\n\n```powershell\ncd ~\u002F.claude\u002Fskills\u002Fui-audit\nnpm install\nnpx playwright install chromium\n```\n\nOptional (if pixelmatch\u002Fpngjs are missing):\n```powershell\nnpm install pixelmatch pngjs\n```\n\n---\n\n## Five gates — what each does\n\n| Script | Gate | Browser? |\n|--------|------|----------|\n| `capture.mjs` | Evidence bundle: screenshot + computed styles + a11y tree + console\u002Fnetwork + pageErrors | Yes |\n| `layout_lint.mjs` | Deterministic design heuristics (contrast, spacing, tap targets, type scale) | No — pure JSON |\n| `dead_button_crawl.mjs` | Clicks every interactive element (by handle); flags those with zero observable effect | Yes |\n| `axe_scan.mjs` | WCAG violations via `@axe-core\u002Fplaywright` | Yes |\n| `visual_diff.mjs` | Baseline screenshot compare via pixelmatch; flags regressions | No — pure PNG |\n\n`run_audit.mjs` is the **orchestrator** on top of the five gates — run it for a one-shot audit (see \"Orchestrated run\" below).\n\n---\n\n## Invocation per gate\n\n### 1. Capture evidence bundle\n\n**Web app** (one or more routes):\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --url http:\u002F\u002Flocalhost:3000 `\n  --screens \u002F,\u002Fsettings,\u002Fprofile `\n  --out .\u002Fui-audit-out\n```\n\n**Electron app** (point at the main entry):\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --electron .\u002Fapps\u002Freframe\u002Fdist\u002Fmain.js `\n  --out .\u002Fui-audit-out\n```\n\nWrites `\u003Cscreen>.bundle.json` + `\u003Cscreen>.png` into `--out`.\n\n**SPA renderers** (React\u002FAngular\u002FVue served by Vite, incl. Electron renderers like Reframe): the bundle waits for the app to actually render before snapshotting — `networkidle` + an optional `--wait-selector` and a short `--settle` delay — so you snapshot hydrated content, not an empty shell. Console errors **and uncaught exceptions during load are captured** (`consoleMsgs` + a dedicated `pageErrors[]`), so a renderer crash shows up as a recorded cause instead of an empty bundle. Both `--url` and `--electron` paths are robust out of the box (no patch files).\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --url http:\u002F\u002Flocalhost:5173 `\n  --wait-selector \"#root > *\" `   # block until the app mounts\n  --settle 500 `                  # extra paint\u002Fsettle ms (default 300)\n  --out .\u002Fui-audit-out\n```\nEach element also records its `inlineStyle` (raw `style` attr) so layout-lint can tell authored values from computed ones.\n\n### 2. Layout lint (no browser — runs on captured bundles)\n\n```powershell\n# Single bundle:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs `\n  --bundle .\u002Fui-audit-out\u002Fhome.bundle.json `\n  --out .\u002Fui-audit-out\u002Flint.json\n\n# All bundles in a directory:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs `\n  --bundle-dir .\u002Fui-audit-out `\n  --out .\u002Fui-audit-out\u002Flint.json\n```\n\nChecks:\n- `off-scale-spacing` — margin\u002Fpadding\u002Fgap not on 4px grid → **spacing-rhythm**\n- `wcag-contrast` — fg\u002Fbg contrast \u003C 4.5:1 (WCAG AA) → **color-contrast**\n- `tap-target` — interactive element \u003C 44×44px → **affordance**\n- `type-scale-sprawl` — > 6 distinct (fontSize\u002FfontWeight\u002FlineHeight) triples → **type-scale**\n- `color-inventory-sprawl` — near-duplicate grey palette → **color-contrast**\n- `motion-duration` *(new — motion collector)* — a transition\u002Fanimation outside the 200–500ms band → **motion**\n- `reduced-motion` *(new — motion collector)* — the page animates but ships no `prefers-reduced-motion` rule (no reduced-motion escape) → **motion**\n- `missing-focus-visible` *(new — affordance collector)* — interactive controls suppress the focus outline and the page has no `:focus-visible` rule → **affordance**\n\nThe two new collectors read per-element motion\u002Faffordance computed styles\n(`transitionDuration`\u002F`animationDuration`\u002F`outlineStyle`\u002F`cursor`) plus the page-level\n`pageSignals` (`hasReducedMotionRule` \u002F `hasFocusVisibleRule`) that `capture.mjs` now\nrecords. Dead-button findings (`effect:none`) also feed **affordance** (a primary action\nwith no feedback). These implement DESIGN-EVAL v1 dimensions #8 (affordance) and #9\n(motion); see `DESIGN-SKILLS-AND-EVAL.md` §1.1 \u002F §2.2.\n\n**`off-scale-spacing` confidence (noise control).** Headless Chromium renders Tailwind fractional utilities and rem→px conversions as sub-pixel values (`10.5px`, `22.5px`, `13.333px`) that are not authored errors and used to drown the report. Each finding now carries a `confidence`:\n- `high` — a clearly off-grid **integer** (e.g. `13px`, `30px`) or a value present in the element's inline `style` (authored). `severity: warning`.\n- `low` — a computed **sub-pixel** value. `severity: info`.\n\nValues within 0.5px of a 4px multiple are treated as on-grid (no finding). **Low-confidence findings are suppressed by default**; pass `--include-low-confidence` to surface them too:\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs --bundle .\u002Fui-audit-out\u002Fhome.bundle.json --include-low-confidence\n```\n\n### 3. Dead button crawl\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fdead_button_crawl.mjs `\n  --url http:\u002F\u002Flocalhost:3000\u002Fsettings `\n  --screen settings `\n  --wait-selector \"#root\" `   # optional: wait for SPA to render\n  --out .\u002Fui-audit-out\n```\n\nWrites `settings-dead.json`. Elements with `effect: \"none\"` are unwired controls.\n\n**Crawls by element handle, not selector.** On Angular\u002FReact component trees a regenerated `a:nth-of-type(1)` selector matches the first `\u003Ca>` inside *every* container, so Playwright strict-mode rejected the click and the old crawler reported `effect:'none'` for everything. The crawler now clicks the exact `ElementHandle` (re-queried on a fresh isolated page per element) and observes the URL \u002F DOM-mutation \u002F network \u002F console \u002F dialog delta in a tight click window:\n- `effect`: `nav` | `dialog` | `dom` | `network` | `console` | `none` | `error`\n- A click that can't be performed (hidden\u002Fnon-actionable) is reported as `error` (with `clickError`), never as a false `none`.\n- The reported `selector` is a **stable identifier**, preferring `id` > `[data-testid]` > `[aria-label]` > visible text > `tag.class` (never `:nth-of-type`).\n\n### 4. axe accessibility scan\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Faxe_scan.mjs `\n  --url http:\u002F\u002Flocalhost:3000 `\n  --out .\u002Fui-audit-out\u002Faxe.json\n```\n\nOptional tag filter (default = all WCAG rules):\n```powershell\n--tags wcag2a,wcag2aa\n```\n\n### 5. Visual diff (baseline compare)\n\n```powershell\n# After capture.mjs has written PNGs:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fvisual_diff.mjs `\n  --bundle-dir .\u002Fui-audit-out `\n  --baseline .\u002Fui-audit-baselines `\n  --out .\u002Fui-audit-diffs\n```\n\nFirst run writes baselines. Subsequent runs emit diff PNGs + `%changed` per screen. Findings with `percentDiff > 5` are flagged as `REGRESSION`.\n\n---\n\n## Orchestrated run (recommended — `run_audit.mjs`)\n\nOne command runs every gate, **consumes their findings**, writes a single annotated `audit.json`, and prints the skill's terminal-state marker `SUCCESS:ui-audit-\u003Cid>` (or `FAILED:ui-audit-\u003Cid> \u003Creason>`). This is the consumer the Track-B critique reads.\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Frun_audit.mjs `\n  --url http:\u002F\u002Flocalhost:5173 `      # web app, or an Electron renderer's Vite port (e.g. Reframe)\n  --screens \u002F,\u002Fsettings `\n  --wait-selector \"#root > *\" `      # SPA render gate (optional)\n  --baseline .\u002Fui-audit-baselines `  # enables visual-diff (optional)\n  --out .\u002Fui-audit-out\n# add --include-low-confidence to surface sub-pixel spacing; --tags wcag2a,wcag2aa to scope axe\n```\n\n`audit.json` shape:\n```jsonc\n{\n  \"id\": \"ui-audit-\u003Cid>\",\n  \"summary\": {\n    \"screens\": 2,\n    \"spacing\": { \"high\": 7, \"low\": 0, \"total\": 7 },  \u002F\u002F off-scale-spacing rolled up by confidence\n    \"findingsByRule\": { \"off-scale-spacing\": 7, \"wcag-contrast\": 3, \"tap-target\": 1 },\n    \"deadControls\": 2,        \u002F\u002F effect:'none' only\n    \"clickErrors\": 1,         \u002F\u002F effect:'error' (non-actionable) — NOT counted as dead\n    \"axeViolations\": 4,\n    \"pageErrors\": 1,          \u002F\u002F uncaught exceptions captured during load (e.g. a Reframe crash)\n    \"visualRegressions\": 0,\n    \"affordance\": { \"tapTarget\": 1, \"missingFocusVisible\": 1, \"deadControls\": 2, \"total\": 4 },  \u002F\u002F DESIGN-EVAL v1 #8\n    \"motion\": { \"durationOutOfBand\": 2, \"noReducedMotion\": 1, \"total\": 3 }                       \u002F\u002F DESIGN-EVAL v1 #9\n  },\n  \"findings\": [ \u002F* merged layout-lint + dead-button, each tagged {gate, screen, confidence?} *\u002F ],\n  \"axe\": [ \u002F* per-screen violations *\u002F ],\n  \"pageErrors\": [ { \"screen\": \"home\", \"name\": \"Error\", \"message\": \"…\" } ],\n  \"visual\": [ \u002F* per-screen percentDiff *\u002F ]\n}\n```\n\n`--include-low-confidence` is threaded straight into `layout_lint`; `pageErrors` and per-finding `confidence` are surfaced in both the summary and the merged arrays so a downstream critic can filter on them.\n\n---\n\n## Track-B — design critique (\"does it look good?\")\n\nTrack-A **SEES** (deterministic numbers + a screenshot). Track-B **REASONS**: Claude\n(the orchestrator) views the screenshot and scores design quality against a rubric,\nproducing a structured verdict. The two-track split is the hard architecture rule:\n\n> **Claude is the critic — it reasons over the PRE-COMPUTED numbers + the screenshot.\n> It NEVER pixel-measures or guesses coordinates (that is Track-A's job).**\n\nThe harness (`critique.mjs`) is pure plumbing — it never calls a model and never measures.\n\n### Flow\n\n```\nrun_audit.mjs ──▶ audit.json + \u003Cscreen>.png        (Track-A: SEE)\n        │\n        ▼\ncritique.mjs assemble ──▶ critique-input.json + critique-input.md\n        │   (projects the numbers onto the 9 scoring dimensions + embeds the rubric,\n        │    the per-dimension weights, the 0-4 scale, the screenshot path(s), schema)\n        ▼\nClaude views the screenshot & scores each dimension 0-4 per outputSchema   (Track-B: REASON)\n        │   (one dimension per pass; critical condition ⇒ score 0)\n        ▼\ncritique.mjs compute  ──▶ fills verdict.score from the §2.4 weighted composite + §2.3 cap\n        │\n        ▼\ncritique.mjs validate ──▶ SUCCESS:ui-critique-... \u002F FAILED:ui-critique-... reason\n```\n\n> **DESIGN-EVAL v1 (the rubric upgrade).** Each of the nine scoring dimensions gets an\n> ordinal `score` 0-4 (0=critical\u002Ffail … 4=excellent). A **critical-error override**\n> (`DESIGN-SKILLS-AND-EVAL.md` §2.3) forces a tripped dimension to 0 and caps the verdict\n> (1 critical → needs-work ≤60; ≥2 → poor ≤39). `verdict.score` is the **weighted\n> composite** (§2.4, `color-contrast` weight 2.0 highest) — `critique.mjs compute` fills\n> it; the validator rejects a free-handed score that defies the composite. Run one\n> dimension per pass for reliability (`--dimension \u003Cname>`, §2.5).\n\n### Commands\n\n```powershell\n# 1. assemble the critique INPUT from Track-A artefacts (auto-discovers \u003Cout>\u002F*.png)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs assemble `\n  --audit .\u002Fui-audit-out\u002Faudit.json `\n  --screenshot .\u002Fui-audit-out\u002Fhome.png `   # optional; omitted → auto-discovered\n  --rubric ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique_rubric.md `   # optional; defaults to this file\n  --out .\u002Fui-audit-out\n#   → writes critique-input.json (machine) + critique-input.md (the brief Claude reads)\n\n# 2. Claude (orchestrator) VIEWS the screenshot(s) and writes critique-output.json,\n#    SCORING each dimension 0-4 per outputSchema (see below). No model call in the harness.\n#    For the §2.5 reliability protocol, assemble ONE dimension per pass:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs assemble --audit .\u002Fui-audit-out\u002Faudit.json --dimension affordance --out .\u002Fui-audit-out\n\n# 3. fill the headline deterministically (the §2.4 weighted composite + §2.3 cap)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs compute --input .\u002Fui-audit-out\u002Fcritique-output.json\n#   → writes verdict.score + verdict.looksGood + verdict.eval (composite\u002Fmean\u002FcriticalCount\u002FshipGate)\n#   → add --dry-run to preview without writing\n\n# 4. gate the verdict\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs validate --input .\u002Fui-audit-out\u002Fcritique-output.json\n\n# (regenerate the committed JSON Schema after a schema change)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs schema --out ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.schema.json\n```\n\n### The nine scoring dimensions (DESIGN-EVAL v1)\n\n`visual-hierarchy` (w1.5) · `spacing-rhythm` (w1.0) · `alignment` (w0.75) · `type-scale`\n(w1.0) · `color-contrast` (**w2.0**) · `consistency` (w1.0) · `empty-error-states` (w1.5)\n· `affordance` (w1.5, new) · `motion` (w0.75, new) — plus the unweighted holistic\n`overall` line. Each scoring dimension carries a numeric `score` 0-4. The rubric for each\n(anchors at 0\u002F2\u002F4, the critical-error trigger, which Track-A signals feed it, weight)\nlives in **`critique_rubric.md`** — grounded in Refactoring UI, Material 3, Apple HIG,\nNielsen's heuristics, and WCAG. `critique.mjs assemble` deterministically routes each\nTrack-A finding to its dimension (`off-scale-spacing`→spacing-rhythm;\n`wcag-contrast`\u002F`color-inventory-sprawl`\u002Faxe-contrast→color-contrast;\n`type-scale-sprawl`→type-scale; landmark-axe→visual-hierarchy;\n`tap-target`\u002F`dead-control`\u002F`click-error`\u002F`missing-focus-visible`→**affordance**;\n`motion-duration`\u002F`reduced-motion`→**motion**; `pageError`→empty-error-states;\nvisual-regression→consistency) so every quantitative claim Claude makes is pre-grounded\nand traceable by `ref`. (Spec: `DESIGN-SKILLS-AND-EVAL.md` §2.2.)\n\n### OUTPUT schema (typed verdict)\n\nAuthoritative validator = `validateCritique()` in `critique_schema.mjs`; mirrored as a\ndraft-07 JSON Schema in **`critique.schema.json`**. Shape:\n\n```jsonc\n{\n  \"id\": \"ui-critique-…\",\n  \"audit_id\": \"ui-audit-…\",\n  \"verdict\": { \"looksGood\": \"good|needs-work|poor\", \"score\": \"0-100 (computed composite)\", \"headline\": \"…\", \"summary\": \"…\",\n               \"eval\": { \"composite\": 46.88, \"capped\": 46.88, \"mean\": 2.4, \"minScore\": 0, \"criticalCount\": 1, \"shipGate\": false, \"referenceGate\": false } },\n  \"dimensions\": [\n    { \"dimension\": \"one of the 9 scoring dims\", \"score\": \"0-4 (0 if a critical condition tripped)\",\n      \"rating\": \"pass|warn|fail\", \"confidence\": \"high|medium|low\",\n      \"findings\": [ { \"severity\": \"critical|high|medium|low|info\",\n                      \"evidence\": \"grounded in a number-by-ref OR an explicit visual observation\",\n                      \"evidenceRefs\": [\"spacing-0\", \"…\"], \"recommendation\": \"actionable fix\" } ] }\n  ],\n  \"prioritizedFindings\": [ { \"rank\": 1, \"dimension\": \"…\", \"severity\": \"…\", \"evidence\": \"…\", \"recommendation\": \"…\" } ],\n  \"uiclip\": { \"score\": 0.0-1.0, \"status\": \"ok\" } | null\n}\n```\n\nThe validator enforces DESIGN-EVAL v1: every scoring dimension needs a `score` in [0,4];\na **critical** finding forces that dimension's score to **0** (critical-error override,\n§2.3); and `verdict.score` must equal the harness-computed weighted composite within ±2\n(§2.4) — so the headline can't be free-handed. One critical caps `looksGood` at\n`needs-work`; two or more → `poor`. `validate` collects *every* violation at once.\n\n### Optional: UIClip numeric prior (`uiclip_score.py`)\n\nA weak design-quality number (0-1) from the local **UIClip** model\n(`biglab\u002Fuiclip-*`, CLIP-based, MIT, CPU-capable, ~600MB) — useful for regression-gating\nand best-of-N. **Opt-in and RAM-guarded** (the skill works fully rubric-only without it):\n\n```powershell\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --check            # readiness only: deps + free RAM + cache. No load, no download.\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png               # → status:\"skipped\" (scoring is opt-in)\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png --use-cache   # score ONLY if already cached (never downloads)\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png --allow-download --out uiclip.json   # fetch (~600MB) + score\n```\n\nThen pass `--uiclip .\u002Fui-audit-out\u002Fuiclip.json` to `critique.mjs assemble`.\n\nSafety contract (the user just hit an OOM — these are enforced in code):\n- **No auto-download:** weights are fetched ONLY with `--allow-download`.\n- **Opt-in:** scoring never runs without `--allow-download` or `--use-cache`.\n- **RAM guard:** refuses to load when free RAM \u003C `--min-free-gb` (default 2.0), or when\n  free RAM can't be measured, unless `--force`.\n- **Graceful:** missing deps \u002F no cache \u002F low RAM \u002F any error → a clean JSON object with\n  `status != \"ok\"`, `score: null`, and **exit 0**, so the chain degrades to rubric-only.\n- stdout is always a single JSON object (markers\u002Flogs go to stderr).\n\n## Full run (manual, gate-by-gate)\n\n```powershell\n$SKILL = \"$HOME\u002F.claude\u002Fskills\u002Fui-audit\"\n$URL   = \"http:\u002F\u002Flocalhost:3000\"\n$OUT   = \".\u002Fui-audit-out\"\n\n# 1. Capture\nnode $SKILL\u002Fcapture.mjs --url $URL --screens \u002F,\u002Fsettings --out $OUT\n\n# 2. Lint captured bundles\nnode $SKILL\u002Flayout_lint.mjs --bundle-dir $OUT --out $OUT\u002Flint.json\n\n# 3. Crawl for dead controls\nnode $SKILL\u002Fdead_button_crawl.mjs --url $URL --screen home --out $OUT\n\n# 4. axe WCAG scan\nnode $SKILL\u002Faxe_scan.mjs --url $URL --out $OUT\u002Faxe.json\n\n# 5. Visual diff (baseline on first run)\nnode $SKILL\u002Fvisual_diff.mjs --bundle-dir $OUT --baseline .\u002Fbaselines --out $OUT\u002Fdiffs\n```\n\n---\n\n## Output format\n\nEvery gate prints a terminal-state marker on its last line:\n- `SUCCESS:capture` \u002F `FAILED:capture \u003Creason>`\n- `SUCCESS:layout-lint` \u002F `FAILED:layout-lint \u003Creason>`\n- `SUCCESS:dead-button-crawl` \u002F `FAILED:dead-button-crawl \u003Creason>`\n- `SUCCESS:axe-scan` \u002F `FAILED:axe-scan \u003Creason>`\n- `SUCCESS:visual-diff` \u002F `FAILED:visual-diff \u003Creason>`\n\nJSON finding shape (layout_lint + dead_button_crawl):\n```json\n{\n  \"id\": \"spacing-0\",\n  \"severity\": \"warning\",\n  \"rule\": \"off-scale-spacing\",\n  \"selector\": \"div.header\",\n  \"property\": \"marginTop\",\n  \"value\": \"13px\",\n  \"rounded\": 13,\n  \"confidence\": \"high\",\n  \"screen\": \"home\",\n  \"message\": \"div.header marginTop: 13px is not on a 4px grid\"\n}\n```\n\n`dead_button_crawl` findings: `{ id, selector, tagName, text, screen, effect, clickError? }` where `effect ∈ nav|dialog|dom|network|console|none|error`. `capture` bundles additionally carry `pageErrors[]` (uncaught exceptions during load), per-element `inlineStyle`, the per-element motion\u002Faffordance computed styles (`transitionDuration`\u002F`animationDuration`\u002F`outlineStyle`\u002F`cursor`), and a page-level `pageSignals` object (`hasReducedMotionRule` \u002F `hasFocusVisibleRule`) consumed by the DESIGN-EVAL v1 motion + affordance lint rules.\n\nThe orchestrator collects all findings JSONs and passes them to Claude for Track-B design critique (\"does it look good, feel right, match the design language?\").\n\n---\n\n## Graceful degradation\n\nIf a dep is absent the gate **skips with a warning** — it does not crash:\n- Missing `@axe-core\u002Fplaywright` → axe gate skipped\n- Missing `pixelmatch` \u002F `pngjs` → visual diff gate skipped\n- Missing Playwright Chromium → browser gates fail with an install hint\n\n---\n\n## npm dependencies\n\n```powershell\nnpm install playwright @axe-core\u002Fplaywright pixelmatch pngjs\nnpx playwright install chromium\n```\n\n---\n\n## Composing with design-extract\n\nThe user's `Prekzursil\u002Fdesign-extract` fork is the complementary tool:\n- **ui-audit** — drives the *live running app* and emits behavioural + visual findings\n- **design-extract** — extracts design tokens, CSS health, and WCAG-remediation suggestions from *source files*\n\nRun both in sequence for a complete \"built vs. intended\" audit.\n\n---\n\n## TDD\n\nTests live in `tests\u002F`. Unit tests (no browser):\n```powershell\ncd ~\u002F.claude\u002Fskills\u002Fui-audit\nnode --test tests\u002Flayout_lint.test.mjs tests\u002Fvisual_diff.test.mjs\n```\n\nIntegration tests (browser + local server):\n```powershell\nnode --test tests\u002Fdead_button_crawl.test.mjs tests\u002Fdead_button_component.test.mjs tests\u002Faxe_scan.test.mjs tests\u002Fcapture.test.mjs\n```\n\nAll tests:\n```powershell\nnpm test\n```\n\nFixtures:\n- `fixtures\u002Ffixture.html` — flat page with deliberate defects (off-scale margin, low-contrast text, dead button, 30×30 tap target).\n- `fixtures\u002Fcomponent_fixture.html` — Angular\u002FReact-style component tree where sibling cards make `nth-of-type` selectors globally ambiguous; mixes wired + genuinely dead controls. Guards the BUG-1 handle-based crawl.\n- `fixtures\u002Fspa_fixture.html` — empty shell that hydrates asynchronously, logs a console error during load, and throws an uncaught \"render crash\". Guards the BUG-3 capture render-wait + crash capture.\n","# ui-audit Skill\n\nDrives a live web or Electron app and runs five deterministic audit gates. Produces a structured findings JSON that Claude (as orchestrator) then reasons over for design critique (Track-B).\n\n**Skill location:** `~\u002F.claude\u002Fskills\u002Fui-audit\u002F`\n\n---\n\n## When to use\n\n- Auditing your own running apps: **Reframe** (Electron+React), **momentstudio** (web), **bilbo-web** (web).\n- Spotting WCAG contrast failures, off-scale spacing, dead buttons, and tap-target violations before a PR.\n- Establishing a visual baseline and detecting regressions between builds.\n- This is the \"See\" step before Claude provides the \"Reason\" (Track-B design critique).\n\n---\n\n## Install once\n\n```powershell\ncd ~\u002F.claude\u002Fskills\u002Fui-audit\nnpm install\nnpx playwright install chromium\n```\n\nOptional (if pixelmatch\u002Fpngjs are missing):\n```powershell\nnpm install pixelmatch pngjs\n```\n\n---\n\n## Five gates — what each does\n\n| Script | Gate | Browser? |\n|--------|------|----------|\n| `capture.mjs` | Evidence bundle: screenshot + computed styles + a11y tree + console\u002Fnetwork + pageErrors | Yes |\n| `layout_lint.mjs` | Deterministic design heuristics (contrast, spacing, tap targets, type scale) | No — pure JSON |\n| `dead_button_crawl.mjs` | Clicks every interactive element (by handle); flags those with zero observable effect | Yes |\n| `axe_scan.mjs` | WCAG violations via `@axe-core\u002Fplaywright` | Yes |\n| `visual_diff.mjs` | Baseline screenshot compare via pixelmatch; flags regressions | No — pure PNG |\n\n`run_audit.mjs` is the **orchestrator** on top of the five gates — run it for a one-shot audit (see \"Orchestrated run\" below).\n\n---\n\n## Invocation per gate\n\n### 1. Capture evidence bundle\n\n**Web app** (one or more routes):\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --url http:\u002F\u002Flocalhost:3000 `\n  --screens \u002F,\u002Fsettings,\u002Fprofile `\n  --out .\u002Fui-audit-out\n```\n\n**Electron app** (point at the main entry):\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --electron .\u002Fapps\u002Freframe\u002Fdist\u002Fmain.js `\n  --out .\u002Fui-audit-out\n```\n\nWrites `\u003Cscreen>.bundle.json` + `\u003Cscreen>.png` into `--out`.\n\n**SPA renderers** (React\u002FAngular\u002FVue served by Vite, incl. Electron renderers like Reframe): the bundle waits for the app to actually render before snapshotting — `networkidle` + an optional `--wait-selector` and a short `--settle` delay — so you snapshot hydrated content, not an empty shell. Console errors **and uncaught exceptions during load are captured** (`consoleMsgs` + a dedicated `pageErrors[]`), so a renderer crash shows up as a recorded cause instead of an empty bundle. Both `--url` and `--electron` paths are robust out of the box (no patch files).\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcapture.mjs `\n  --url http:\u002F\u002Flocalhost:5173 `\n  --wait-selector \"#root > *\" `   # block until the app mounts\n  --settle 500 `                  # extra paint\u002Fsettle ms (default 300)\n  --out .\u002Fui-audit-out\n```\nEach element also records its `inlineStyle` (raw `style` attr) so layout-lint can tell authored values from computed ones.\n\n### 2. Layout lint (no browser — runs on captured bundles)\n\n```powershell\n# Single bundle:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs `\n  --bundle .\u002Fui-audit-out\u002Fhome.bundle.json `\n  --out .\u002Fui-audit-out\u002Flint.json\n\n# All bundles in a directory:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs `\n  --bundle-dir .\u002Fui-audit-out `\n  --out .\u002Fui-audit-out\u002Flint.json\n```\n\nChecks:\n- `off-scale-spacing` — margin\u002Fpadding\u002Fgap not on 4px grid → **spacing-rhythm**\n- `wcag-contrast` — fg\u002Fbg contrast \u003C 4.5:1 (WCAG AA) → **color-contrast**\n- `tap-target` — interactive element \u003C 44×44px → **affordance**\n- `type-scale-sprawl` — > 6 distinct (fontSize\u002FfontWeight\u002FlineHeight) triples → **type-scale**\n- `color-inventory-sprawl` — near-duplicate grey palette → **color-contrast**\n- `motion-duration` *(new — motion collector)* — a transition\u002Fanimation outside the 200–500ms band → **motion**\n- `reduced-motion` *(new — motion collector)* — the page animates but ships no `prefers-reduced-motion` rule (no reduced-motion escape) → **motion**\n- `missing-focus-visible` *(new — affordance collector)* — interactive controls suppress the focus outline and the page has no `:focus-visible` rule → **affordance**\n\nThe two new collectors read per-element motion\u002Faffordance computed styles\n(`transitionDuration`\u002F`animationDuration`\u002F`outlineStyle`\u002F`cursor`) plus the page-level\n`pageSignals` (`hasReducedMotionRule` \u002F `hasFocusVisibleRule`) that `capture.mjs` now\nrecords. Dead-button findings (`effect:none`) also feed **affordance** (a primary action\nwith no feedback). These implement DESIGN-EVAL v1 dimensions #8 (affordance) and #9\n(motion); see `DESIGN-SKILLS-AND-EVAL.md` §1.1 \u002F §2.2.\n\n**`off-scale-spacing` confidence (noise control).** Headless Chromium renders Tailwind fractional utilities and rem→px conversions as sub-pixel values (`10.5px`, `22.5px`, `13.333px`) that are not authored errors and used to drown the report. Each finding now carries a `confidence`:\n- `high` — a clearly off-grid **integer** (e.g. `13px`, `30px`) or a value present in the element's inline `style` (authored). `severity: warning`.\n- `low` — a computed **sub-pixel** value. `severity: info`.\n\nValues within 0.5px of a 4px multiple are treated as on-grid (no finding). **Low-confidence findings are suppressed by default**; pass `--include-low-confidence` to surface them too:\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs --bundle .\u002Fui-audit-out\u002Fhome.bundle.json --include-low-confidence\n```\n\n### 3. Dead button crawl\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fdead_button_crawl.mjs `\n  --url http:\u002F\u002Flocalhost:3000\u002Fsettings `\n  --screen settings `\n  --wait-selector \"#root\" `   # optional: wait for SPA to render\n  --out .\u002Fui-audit-out\n```\n\nWrites `settings-dead.json`. Elements with `effect: \"none\"` are unwired controls.\n\n**Crawls by element handle, not selector.** On Angular\u002FReact component trees a regenerated `a:nth-of-type(1)` selector matches the first `\u003Ca>` inside *every* container, so Playwright strict-mode rejected the click and the old crawler reported `effect:'none'` for everything. The crawler now clicks the exact `ElementHandle` (re-queried on a fresh isolated page per element) and observes the URL \u002F DOM-mutation \u002F network \u002F console \u002F dialog delta in a tight click window:\n- `effect`: `nav` | `dialog` | `dom` | `network` | `console` | `none` | `error`\n- A click that can't be performed (hidden\u002Fnon-actionable) is reported as `error` (with `clickError`), never as a false `none`.\n- The reported `selector` is a **stable identifier**, preferring `id` > `[data-testid]` > `[aria-label]` > visible text > `tag.class` (never `:nth-of-type`).\n\n### 4. axe accessibility scan\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Faxe_scan.mjs `\n  --url http:\u002F\u002Flocalhost:3000 `\n  --out .\u002Fui-audit-out\u002Faxe.json\n```\n\nOptional tag filter (default = all WCAG rules):\n```powershell\n--tags wcag2a,wcag2aa\n```\n\n### 5. Visual diff (baseline compare)\n\n```powershell\n# After capture.mjs has written PNGs:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fvisual_diff.mjs `\n  --bundle-dir .\u002Fui-audit-out `\n  --baseline .\u002Fui-audit-baselines `\n  --out .\u002Fui-audit-diffs\n```\n\nFirst run writes baselines. Subsequent runs emit diff PNGs + `%changed` per screen. Findings with `percentDiff > 5` are flagged as `REGRESSION`.\n\n---\n\n## Orchestrated run (recommended — `run_audit.mjs`)\n\nOne command runs every gate, **consumes their findings**, writes a single annotated `audit.json`, and prints the skill's terminal-state marker `SUCCESS:ui-audit-\u003Cid>` (or `FAILED:ui-audit-\u003Cid> \u003Creason>`). This is the consumer the Track-B critique reads.\n\n```powershell\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Frun_audit.mjs `\n  --url http:\u002F\u002Flocalhost:5173 `      # web app, or an Electron renderer's Vite port (e.g. Reframe)\n  --screens \u002F,\u002Fsettings `\n  --wait-selector \"#root > *\" `      # SPA render gate (optional)\n  --baseline .\u002Fui-audit-baselines `  # enables visual-diff (optional)\n  --out .\u002Fui-audit-out\n# add --include-low-confidence to surface sub-pixel spacing; --tags wcag2a,wcag2aa to scope axe\n```\n\n`audit.json` shape:\n```jsonc\n{\n  \"id\": \"ui-audit-\u003Cid>\",\n  \"summary\": {\n    \"screens\": 2,\n    \"spacing\": { \"high\": 7, \"low\": 0, \"total\": 7 },  \u002F\u002F off-scale-spacing rolled up by confidence\n    \"findingsByRule\": { \"off-scale-spacing\": 7, \"wcag-contrast\": 3, \"tap-target\": 1 },\n    \"deadControls\": 2,        \u002F\u002F effect:'none' only\n    \"clickErrors\": 1,         \u002F\u002F effect:'error' (non-actionable) — NOT counted as dead\n    \"axeViolations\": 4,\n    \"pageErrors\": 1,          \u002F\u002F uncaught exceptions captured during load (e.g. a Reframe crash)\n    \"visualRegressions\": 0,\n    \"affordance\": { \"tapTarget\": 1, \"missingFocusVisible\": 1, \"deadControls\": 2, \"total\": 4 },  \u002F\u002F DESIGN-EVAL v1 #8\n    \"motion\": { \"durationOutOfBand\": 2, \"noReducedMotion\": 1, \"total\": 3 }                       \u002F\u002F DESIGN-EVAL v1 #9\n  },\n  \"findings\": [ \u002F* merged layout-lint + dead-button, each tagged {gate, screen, confidence?} *\u002F ],\n  \"axe\": [ \u002F* per-screen violations *\u002F ],\n  \"pageErrors\": [ { \"screen\": \"home\", \"name\": \"Error\", \"message\": \"…\" } ],\n  \"visual\": [ \u002F* per-screen percentDiff *\u002F ]\n}\n```\n\n`--include-low-confidence` is threaded straight into `layout_lint`; `pageErrors` and per-finding `confidence` are surfaced in both the summary and the merged arrays so a downstream critic can filter on them.\n\n---\n\n## Track-B — design critique (\"does it look good?\")\n\nTrack-A **SEES** (deterministic numbers + a screenshot). Track-B **REASONS**: Claude\n(the orchestrator) views the screenshot and scores design quality against a rubric,\nproducing a structured verdict. The two-track split is the hard architecture rule:\n\n> **Claude is the critic — it reasons over the PRE-COMPUTED numbers + the screenshot.\n> It NEVER pixel-measures or guesses coordinates (that is Track-A's job).**\n\nThe harness (`critique.mjs`) is pure plumbing — it never calls a model and never measures.\n\n### Flow\n\n```\nrun_audit.mjs ──▶ audit.json + \u003Cscreen>.png        (Track-A: SEE)\n        │\n        ▼\ncritique.mjs assemble ──▶ critique-input.json + critique-input.md\n        │   (projects the numbers onto the 9 scoring dimensions + embeds the rubric,\n        │    the per-dimension weights, the 0-4 scale, the screenshot path(s), schema)\n        ▼\nClaude views the screenshot & scores each dimension 0-4 per outputSchema   (Track-B: REASON)\n        │   (one dimension per pass; critical condition ⇒ score 0)\n        ▼\ncritique.mjs compute  ──▶ fills verdict.score from the §2.4 weighted composite + §2.3 cap\n        │\n        ▼\ncritique.mjs validate ──▶ SUCCESS:ui-critique-... \u002F FAILED:ui-critique-... reason\n```\n\n> **DESIGN-EVAL v1 (the rubric upgrade).** Each of the nine scoring dimensions gets an\n> ordinal `score` 0-4 (0=critical\u002Ffail … 4=excellent). A **critical-error override**\n> (`DESIGN-SKILLS-AND-EVAL.md` §2.3) forces a tripped dimension to 0 and caps the verdict\n> (1 critical → needs-work ≤60; ≥2 → poor ≤39). `verdict.score` is the **weighted\n> composite** (§2.4, `color-contrast` weight 2.0 highest) — `critique.mjs compute` fills\n> it; the validator rejects a free-handed score that defies the composite. Run one\n> dimension per pass for reliability (`--dimension \u003Cname>`, §2.5).\n\n### Commands\n\n```powershell\n# 1. assemble the critique INPUT from Track-A artefacts (auto-discovers \u003Cout>\u002F*.png)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs assemble `\n  --audit .\u002Fui-audit-out\u002Faudit.json `\n  --screenshot .\u002Fui-audit-out\u002Fhome.png `   # optional; omitted → auto-discovered\n  --rubric ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique_rubric.md `   # optional; defaults to this file\n  --out .\u002Fui-audit-out\n#   → writes critique-input.json (machine) + critique-input.md (the brief Claude reads)\n\n# 2. Claude (orchestrator) VIEWS the screenshot(s) and writes critique-output.json,\n#    SCORING each dimension 0-4 per outputSchema (see below). No model call in the harness.\n#    For the §2.5 reliability protocol, assemble ONE dimension per pass:\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs assemble --audit .\u002Fui-audit-out\u002Faudit.json --dimension affordance --out .\u002Fui-audit-out\n\n# 3. fill the headline deterministically (the §2.4 weighted composite + §2.3 cap)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs compute --input .\u002Fui-audit-out\u002Fcritique-output.json\n#   → writes verdict.score + verdict.looksGood + verdict.eval (composite\u002Fmean\u002FcriticalCount\u002FshipGate)\n#   → add --dry-run to preview without writing\n\n# 4. gate the verdict\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs validate --input .\u002Fui-audit-out\u002Fcritique-output.json\n\n# (regenerate the committed JSON Schema after a schema change)\nnode ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.mjs schema --out ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fcritique.schema.json\n```\n\n### The nine scoring dimensions (DESIGN-EVAL v1)\n\n`visual-hierarchy` (w1.5) · `spacing-rhythm` (w1.0) · `alignment` (w0.75) · `type-scale`\n(w1.0) · `color-contrast` (**w2.0**) · `consistency` (w1.0) · `empty-error-states` (w1.5)\n· `affordance` (w1.5, new) · `motion` (w0.75, new) — plus the unweighted holistic\n`overall` line. Each scoring dimension carries a numeric `score` 0-4. The rubric for each\n(anchors at 0\u002F2\u002F4, the critical-error trigger, which Track-A signals feed it, weight)\nlives in **`critique_rubric.md`** — grounded in Refactoring UI, Material 3, Apple HIG,\nNielsen's heuristics, and WCAG. `critique.mjs assemble` deterministically routes each\nTrack-A finding to its dimension (`off-scale-spacing`→spacing-rhythm;\n`wcag-contrast`\u002F`color-inventory-sprawl`\u002Faxe-contrast→color-contrast;\n`type-scale-sprawl`→type-scale; landmark-axe→visual-hierarchy;\n`tap-target`\u002F`dead-control`\u002F`click-error`\u002F`missing-focus-visible`→**affordance**;\n`motion-duration`\u002F`reduced-motion`→**motion**; `pageError`→empty-error-states;\nvisual-regression→consistency) so every quantitative claim Claude makes is pre-grounded\nand traceable by `ref`. (Spec: `DESIGN-SKILLS-AND-EVAL.md` §2.2.)\n\n### OUTPUT schema (typed verdict)\n\nAuthoritative validator = `validateCritique()` in `critique_schema.mjs`; mirrored as a\ndraft-07 JSON Schema in **`critique.schema.json`**. Shape:\n\n```jsonc\n{\n  \"id\": \"ui-critique-…\",\n  \"audit_id\": \"ui-audit-…\",\n  \"verdict\": { \"looksGood\": \"good|needs-work|poor\", \"score\": \"0-100 (computed composite)\", \"headline\": \"…\", \"summary\": \"…\",\n               \"eval\": { \"composite\": 46.88, \"capped\": 46.88, \"mean\": 2.4, \"minScore\": 0, \"criticalCount\": 1, \"shipGate\": false, \"referenceGate\": false } },\n  \"dimensions\": [\n    { \"dimension\": \"one of the 9 scoring dims\", \"score\": \"0-4 (0 if a critical condition tripped)\",\n      \"rating\": \"pass|warn|fail\", \"confidence\": \"high|medium|low\",\n      \"findings\": [ { \"severity\": \"critical|high|medium|low|info\",\n                      \"evidence\": \"grounded in a number-by-ref OR an explicit visual observation\",\n                      \"evidenceRefs\": [\"spacing-0\", \"…\"], \"recommendation\": \"actionable fix\" } ] }\n  ],\n  \"prioritizedFindings\": [ { \"rank\": 1, \"dimension\": \"…\", \"severity\": \"…\", \"evidence\": \"…\", \"recommendation\": \"…\" } ],\n  \"uiclip\": { \"score\": 0.0-1.0, \"status\": \"ok\" } | null\n}\n```\n\nThe validator enforces DESIGN-EVAL v1: every scoring dimension needs a `score` in [0,4];\na **critical** finding forces that dimension's score to **0** (critical-error override,\n§2.3); and `verdict.score` must equal the harness-computed weighted composite within ±2\n(§2.4) — so the headline can't be free-handed. One critical caps `looksGood` at\n`needs-work`; two or more → `poor`. `validate` collects *every* violation at once.\n\n### Optional: UIClip numeric prior (`uiclip_score.py`)\n\nA weak design-quality number (0-1) from the local **UIClip** model\n(`biglab\u002Fuiclip-*`, CLIP-based, MIT, CPU-capable, ~600MB) — useful for regression-gating\nand best-of-N. **Opt-in and RAM-guarded** (the skill works fully rubric-only without it):\n\n```powershell\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --check            # readiness only: deps + free RAM + cache. No load, no download.\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png               # → status:\"skipped\" (scoring is opt-in)\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png --use-cache   # score ONLY if already cached (never downloads)\npython ~\u002F.claude\u002Fskills\u002Fui-audit\u002Fuiclip_score.py --screenshot home.png --allow-download --out uiclip.json   # fetch (~600MB) + score\n```\n\nThen pass `--uiclip .\u002Fui-audit-out\u002Fuiclip.json` to `critique.mjs assemble`.\n\nSafety contract (the user just hit an OOM — these are enforced in code):\n- **No auto-download:** weights are fetched ONLY with `--allow-download`.\n- **Opt-in:** scoring never runs without `--allow-download` or `--use-cache`.\n- **RAM guard:** refuses to load when free RAM \u003C `--min-free-gb` (default 2.0), or when\n  free RAM can't be measured, unless `--force`.\n- **Graceful:** missing deps \u002F no cache \u002F low RAM \u002F any error → a clean JSON object with\n  `status != \"ok\"`, `score: null`, and **exit 0**, so the chain degrades to rubric-only.\n- stdout is always a single JSON object (markers\u002Flogs go to stderr).\n\n## Full run (manual, gate-by-gate)\n\n```powershell\n$SKILL = \"$HOME\u002F.claude\u002Fskills\u002Fui-audit\"\n$URL   = \"http:\u002F\u002Flocalhost:3000\"\n$OUT   = \".\u002Fui-audit-out\"\n\n# 1. Capture\nnode $SKILL\u002Fcapture.mjs --url $URL --screens \u002F,\u002Fsettings --out $OUT\n\n# 2. Lint captured bundles\nnode $SKILL\u002Flayout_lint.mjs --bundle-dir $OUT --out $OUT\u002Flint.json\n\n# 3. Crawl for dead controls\nnode $SKILL\u002Fdead_button_crawl.mjs --url $URL --screen home --out $OUT\n\n# 4. axe WCAG scan\nnode $SKILL\u002Faxe_scan.mjs --url $URL --out $OUT\u002Faxe.json\n\n# 5. Visual diff (baseline on first run)\nnode $SKILL\u002Fvisual_diff.mjs --bundle-dir $OUT --baseline .\u002Fbaselines --out $OUT\u002Fdiffs\n```\n\n---\n\n## Output format\n\nEvery gate prints a terminal-state marker on its last line:\n- `SUCCESS:capture` \u002F `FAILED:capture \u003Creason>`\n- `SUCCESS:layout-lint` \u002F `FAILED:layout-lint \u003Creason>`\n- `SUCCESS:dead-button-crawl` \u002F `FAILED:dead-button-crawl \u003Creason>`\n- `SUCCESS:axe-scan` \u002F `FAILED:axe-scan \u003Creason>`\n- `SUCCESS:visual-diff` \u002F `FAILED:visual-diff \u003Creason>`\n\nJSON finding shape (layout_lint + dead_button_crawl):\n```json\n{\n  \"id\": \"spacing-0\",\n  \"severity\": \"warning\",\n  \"rule\": \"off-scale-spacing\",\n  \"selector\": \"div.header\",\n  \"property\": \"marginTop\",\n  \"value\": \"13px\",\n  \"rounded\": 13,\n  \"confidence\": \"high\",\n  \"screen\": \"home\",\n  \"message\": \"div.header marginTop: 13px is not on a 4px grid\"\n}\n```\n\n`dead_button_crawl` findings: `{ id, selector, tagName, text, screen, effect, clickError? }` where `effect ∈ nav|dialog|dom|network|console|none|error`. `capture` bundles additionally carry `pageErrors[]` (uncaught exceptions during load), per-element `inlineStyle`, the per-element motion\u002Faffordance computed styles (`transitionDuration`\u002F`animationDuration`\u002F`outlineStyle`\u002F`cursor`), and a page-level `pageSignals` object (`hasReducedMotionRule` \u002F `hasFocusVisibleRule`) consumed by the DESIGN-EVAL v1 motion + affordance lint rules.\n\nThe orchestrator collects all findings JSONs and passes them to Claude for Track-B design critique (\"does it look good, feel right, match the design language?\").\n\n---\n\n## Graceful degradation\n\nIf a dep is absent the gate **skips with a warning** — it does not crash:\n- Missing `@axe-core\u002Fplaywright` → axe gate skipped\n- Missing `pixelmatch` \u002F `pngjs` → visual diff gate skipped\n- Missing Playwright Chromium → browser gates fail with an install hint\n\n---\n\n## npm dependencies\n\n```powershell\nnpm install playwright @axe-core\u002Fplaywright pixelmatch pngjs\nnpx playwright install chromium\n```\n\n---\n\n## Composing with design-extract\n\nThe user's `Prekzursil\u002Fdesign-extract` fork is the complementary tool:\n- **ui-audit** — drives the *live running app* and emits behavioural + visual findings\n- **design-extract** — extracts design tokens, CSS health, and WCAG-remediation suggestions from *source files*\n\nRun both in sequence for a complete \"built vs. intended\" audit.\n\n---\n\n## TDD\n\nTests live in `tests\u002F`. Unit tests (no browser):\n```powershell\ncd ~\u002F.claude\u002Fskills\u002Fui-audit\nnode --test tests\u002Flayout_lint.test.mjs tests\u002Fvisual_diff.test.mjs\n```\n\nIntegration tests (browser + local server):\n```powershell\nnode --test tests\u002Fdead_button_crawl.test.mjs tests\u002Fdead_button_component.test.mjs tests\u002Faxe_scan.test.mjs tests\u002Fcapture.test.mjs\n```\n\nAll tests:\n```powershell\nnpm test\n```\n\nFixtures:\n- `fixtures\u002Ffixture.html` — flat page with deliberate defects (off-scale margin, low-contrast text, dead button, 30×30 tap target).\n- `fixtures\u002Fcomponent_fixture.html` — Angular\u002FReact-style component tree where sibling cards make `nth-of-type` selectors globally ambiguous; mixes wired + genuinely dead controls. Guards the BUG-1 handle-based crawl.\n- `fixtures\u002Fspa_fixture.html` — empty shell that hydrates asynchronously, logs a console error during load, and throws an uncaught \"render crash\". Guards the BUG-3 capture render-wait + crash capture.\n",{"name":5,"metadata":44,"description":7},{"origin":45},"user","main","a298c929b6cbd662e1fce54302ce520d5ceea1a5",".agents\u002Fskills\u002Fui-audit","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain","https:\u002F\u002Fgithub.com\u002FPrekzursil","2026-11-02 14:30:57",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit",{"tool":58,"command":59},"bunx","bunx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit",{"tool":61,"command":62},"pnpm","pnpm dlx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,114,118,122,126,130,134,138,142,146,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,231,235,239],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"_admin-audit.mjs","SCRIPT","脚本",7677,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_admin-audit.mjs",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"_analyze.cjs",1953,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_analyze.cjs",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"_fix_main_guard.py",4808,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_fix_main_guard.py",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"_mock-data.mjs",15825,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_mock-data.mjs",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"_p2probe.mjs",1208,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_p2probe.mjs",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"_rerun.mjs",1679,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_rerun.mjs",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"_smoke.mjs",1256,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_smoke.mjs",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"_trace.mjs",1014,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002F_trace.mjs",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"axe_scan.mjs",4526,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Faxe_scan.mjs",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"capture.mjs",13452,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fcapture.mjs",{"path":109,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":112,"sourceHtmlUrl":113},"critique_rubric.md","REFERENCE","参考文档",12496,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fcritique_rubric.md",{"path":115,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":116,"sourceHtmlUrl":117},"critique_schema.mjs",30337,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fcritique_schema.mjs",{"path":119,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":120,"sourceHtmlUrl":121},"critique.mjs",28240,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fcritique.mjs",{"path":123,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":124,"sourceHtmlUrl":125},"critique.schema.json",4628,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fcritique.schema.json",{"path":127,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":128,"sourceHtmlUrl":129},"dead_button_crawl.mjs",11769,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fdead_button_crawl.mjs",{"path":131,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":132,"sourceHtmlUrl":133},"fixtures\u002Fcomponent_fixture.html",3016,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fcomponent_fixture.html",{"path":135,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":136,"sourceHtmlUrl":137},"fixtures\u002Ffixture.html",2202,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Ffixture.html",{"path":139,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":140,"sourceHtmlUrl":141},"fixtures\u002Frich_audit.json",3145,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Frich_audit.json",{"path":143,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":144,"sourceHtmlUrl":145},"fixtures\u002Fsample_audit.json",799,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fsample_audit.json",{"path":147,"resourceType":148,"resourceTypeDesc":149,"sizeBytes":150,"sourceHtmlUrl":151},"fixtures\u002Fsample_home.png","ASSET","资产文件",4257,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fsample_home.png",{"path":153,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":154,"sourceHtmlUrl":155},"fixtures\u002Fspa_fixture.html",1460,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fspa_fixture.html",{"path":157,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":158,"sourceHtmlUrl":159},"layout_lint.mjs",17536,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs",{"path":161,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":162,"sourceHtmlUrl":163},"package.json",904,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fpackage.json",{"path":165,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":166,"sourceHtmlUrl":167},"references\u002Fapi-evaluation.md",11114,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fhermes\u002Flm-evaluation-harness\u002Freferences\u002Fapi-evaluation.md",{"path":169,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":170,"sourceHtmlUrl":171},"references\u002Fbenchmark-guide.md",10769,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fhermes\u002Flm-evaluation-harness\u002Freferences\u002Fbenchmark-guide.md",{"path":173,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":174,"sourceHtmlUrl":175},"references\u002Fcustom-tasks.md",13125,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fhermes\u002Flm-evaluation-harness\u002Freferences\u002Fcustom-tasks.md",{"path":177,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":178,"sourceHtmlUrl":179},"references\u002Fdistributed-eval.md",11426,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fhermes\u002Flm-evaluation-harness\u002Freferences\u002Fdistributed-eval.md",{"path":181,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":182,"sourceHtmlUrl":183},"run_audit.mjs",10752,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Frun_audit.mjs",{"path":185,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":186,"sourceHtmlUrl":187},"tests\u002Faxe_scan.test.mjs",2610,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Faxe_scan.test.mjs",{"path":189,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":190,"sourceHtmlUrl":191},"tests\u002Fcapture.test.mjs",4047,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fcapture.test.mjs",{"path":193,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":194,"sourceHtmlUrl":195},"tests\u002Fcritique_persona.test.mjs",14630,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fcritique_persona.test.mjs",{"path":197,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":198,"sourceHtmlUrl":199},"tests\u002Fcritique.test.mjs",19742,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fcritique.test.mjs",{"path":201,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":202,"sourceHtmlUrl":203},"tests\u002Fdead_button_component.test.mjs",4342,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fdead_button_component.test.mjs",{"path":205,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":206,"sourceHtmlUrl":207},"tests\u002Fdead_button_crawl.test.mjs",3111,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fdead_button_crawl.test.mjs",{"path":209,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":210,"sourceHtmlUrl":211},"tests\u002Flayout_lint.test.mjs",22518,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Flayout_lint.test.mjs",{"path":213,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":214,"sourceHtmlUrl":215},"tests\u002Frun_audit.test.mjs",4428,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Frun_audit.test.mjs",{"path":217,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":218,"sourceHtmlUrl":219},"tests\u002Fuiclip_wrapper.test.mjs",3579,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fuiclip_wrapper.test.mjs",{"path":221,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":222,"sourceHtmlUrl":223},"tests\u002Fvisual_diff.test.mjs",2442,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Ftests\u002Fvisual_diff.test.mjs",{"path":225,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":226,"sourceHtmlUrl":227},"uiclip_score.py",10451,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fuiclip_score.py",{"path":229,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":186,"sourceHtmlUrl":230},"uicrit-pack\u002F_test_pack.mjs","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002F_test_pack.mjs",{"path":232,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":233,"sourceHtmlUrl":234},"uicrit-pack\u002Fexemplars.json",19781,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002Fexemplars.json",{"path":236,"resourceType":110,"resourceTypeDesc":111,"sizeBytes":237,"sourceHtmlUrl":238},"uicrit-pack\u002FREADME.md",5354,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002FREADME.md",{"path":240,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":241,"sourceHtmlUrl":242},"visual_diff.mjs",8114,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-audit\u002Fvisual_diff.mjs",[244,266,292,310,324,338],{"skillNo":245,"name":246,"nameZh":6,"description":247,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":248,"categories":249,"keywords":250,"publishedAt":39},"01M6DF7D7478R55P46REYH4QAC","clarify-requirements","Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Fworkspace-hooks\u002Fskills\u002Fclarify-requirements\u002FSKILL.md",[],[251,252,253,254,255,256,257,258,259,260,261,262,263,264,265],"clarify requirements","clarify","requirements","risk","options","task","prompts","goal","scanning","use","context","repo","injection","execution","file",{"skillNo":267,"name":268,"nameZh":6,"description":269,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":270,"categories":271,"keywords":272,"publishedAt":39},"01M6DF79CA4BHJS66J8EZDBPWJ","openmm-md","Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein \u002F protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Fmcp\u002Fopenmm-md-mcp\u002Fskill\u002Fopenmm-md\u002FSKILL.md",[],[273,274,275,276,277,278,279,280,281,282,283,284,285,286,260,287,288,289,290,291],"openmm md","how","decision","pick","linux","analyze","tool","stack","open","NVIDIA","gpu","license","workflow","windows","free","molecular dynamics","local","do","MCP",{"skillNo":293,"name":294,"nameZh":6,"description":295,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":296,"categories":297,"keywords":298,"publishedAt":39},"01M6DF76C1MG85VEWP8VZCBNMN","visual-review","Take screenshots of web pages and UI using Playwright for visual review and iteration","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Feditor\u002Fmetaswarm\u002Fskills\u002Fvisual-review\u002FSKILL.md",[],[299,25,300,301,302,303,304,305,306,307,274,20,37,308,309],"review","visual review","pages","web","false","iteration","take","check","slides","playwright","screenshots",{"skillNo":311,"name":312,"nameZh":6,"description":313,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":314,"categories":315,"keywords":316,"publishedAt":39},"01M6DF73AQVCBZKEN0YXEX9FXP","status","Diagnostic status report — shows metaswarm installation state, project setup, and potential issues","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Feditor\u002Fmetaswarm\u002Fskills\u002Fstatus\u002FSKILL.md",[],[312,317,318,319,320,321,322,323],"setup","report","project","installation","project setup","issues","state",{"skillNo":325,"name":326,"nameZh":6,"description":327,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":328,"categories":329,"keywords":330,"publishedAt":39},"01M6DF6X6C2XB0P6GX76P7TTYV","start","Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Feditor\u002Fmetaswarm\u002Fskills\u002Fstart\u002FSKILL.md",[],[326,331,256,332,333,334,260,45,335,336,337],"start issue","issue","ready","work on issue","work","work on","development",{"skillNo":339,"name":317,"nameZh":6,"description":340,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":341,"categories":342,"keywords":343,"publishedAt":39},"01M6DF6QMJ9AJKFKHHKRT005PQ","Interactive project setup — detects your project, configures metaswarm, writes project-local files","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Ftools\u002Feditor\u002Fmetaswarm\u002Fskills\u002Fsetup\u002FSKILL.md",[],[317,319,289,344,321,345],"files","interactive"]