[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DF1FEZYZ92G9ZBF5D7BQ3J":3,"skill-same:01M6DF1FEZYZ92G9ZBF5D7BQ3J":237},{"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":28,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":14,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M6DF1FEZYZ92G9ZBF5D7BQ3J","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\u002Fskills\u002Fui-audit\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"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":54,"description":7},{"origin":55},"user","main","a298c929b6cbd662e1fce54302ce520d5ceea1a5","skills\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":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit",{"tool":68,"command":69},"bunx","bunx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit",{"tool":71,"command":72},"pnpm","pnpm dlx skills add Prekzursil\u002Fagent-skills-toolchain --skill ui-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002FSKILL.md",true,[76,82,86,90,94,98,102,106,110,114,118,124,128,132,136,140,144,148,152,156,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,225,229,233],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"_admin-audit.mjs","SCRIPT","脚本",7677,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_admin-audit.mjs",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"_analyze.cjs",1953,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_analyze.cjs",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"_fix_main_guard.py",4808,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_fix_main_guard.py",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"_mock-data.mjs",15825,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_mock-data.mjs",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"_p2probe.mjs",1208,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_p2probe.mjs",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"_rerun.mjs",1679,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_rerun.mjs",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"_smoke.mjs",1256,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_smoke.mjs",{"path":107,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":108,"sourceHtmlUrl":109},"_trace.mjs",1014,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002F_trace.mjs",{"path":111,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":112,"sourceHtmlUrl":113},"axe_scan.mjs",4526,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Faxe_scan.mjs",{"path":115,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":116,"sourceHtmlUrl":117},"capture.mjs",13452,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fcapture.mjs",{"path":119,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":122,"sourceHtmlUrl":123},"critique_rubric.md","REFERENCE","参考文档",12496,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fcritique_rubric.md",{"path":125,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":126,"sourceHtmlUrl":127},"critique_schema.mjs",30337,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fcritique_schema.mjs",{"path":129,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":130,"sourceHtmlUrl":131},"critique.mjs",28240,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fcritique.mjs",{"path":133,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":134,"sourceHtmlUrl":135},"critique.schema.json",4628,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fcritique.schema.json",{"path":137,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":138,"sourceHtmlUrl":139},"dead_button_crawl.mjs",11769,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fdead_button_crawl.mjs",{"path":141,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":142,"sourceHtmlUrl":143},"fixtures\u002Fcomponent_fixture.html",3016,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fcomponent_fixture.html",{"path":145,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":146,"sourceHtmlUrl":147},"fixtures\u002Ffixture.html",2202,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Ffixture.html",{"path":149,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":150,"sourceHtmlUrl":151},"fixtures\u002Frich_audit.json",3145,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Frich_audit.json",{"path":153,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":154,"sourceHtmlUrl":155},"fixtures\u002Fsample_audit.json",799,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fsample_audit.json",{"path":157,"resourceType":158,"resourceTypeDesc":159,"sizeBytes":160,"sourceHtmlUrl":161},"fixtures\u002Fsample_home.png","ASSET","资产文件",4257,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fsample_home.png",{"path":163,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":164,"sourceHtmlUrl":165},"fixtures\u002Fspa_fixture.html",1460,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ffixtures\u002Fspa_fixture.html",{"path":167,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":168,"sourceHtmlUrl":169},"layout_lint.mjs",17536,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Flayout_lint.mjs",{"path":171,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":172,"sourceHtmlUrl":173},"package.json",904,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fpackage.json",{"path":175,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":176,"sourceHtmlUrl":177},"run_audit.mjs",10752,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Frun_audit.mjs",{"path":179,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":180,"sourceHtmlUrl":181},"tests\u002Faxe_scan.test.mjs",2610,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Faxe_scan.test.mjs",{"path":183,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":184,"sourceHtmlUrl":185},"tests\u002Fcapture.test.mjs",4047,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fcapture.test.mjs",{"path":187,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":188,"sourceHtmlUrl":189},"tests\u002Fcritique_persona.test.mjs",14630,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fcritique_persona.test.mjs",{"path":191,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":192,"sourceHtmlUrl":193},"tests\u002Fcritique.test.mjs",19742,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fcritique.test.mjs",{"path":195,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":196,"sourceHtmlUrl":197},"tests\u002Fdead_button_component.test.mjs",4342,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fdead_button_component.test.mjs",{"path":199,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":200,"sourceHtmlUrl":201},"tests\u002Fdead_button_crawl.test.mjs",3111,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fdead_button_crawl.test.mjs",{"path":203,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":204,"sourceHtmlUrl":205},"tests\u002Flayout_lint.test.mjs",22518,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Flayout_lint.test.mjs",{"path":207,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":208,"sourceHtmlUrl":209},"tests\u002Frun_audit.test.mjs",4428,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Frun_audit.test.mjs",{"path":211,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":212,"sourceHtmlUrl":213},"tests\u002Fuiclip_wrapper.test.mjs",3579,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fuiclip_wrapper.test.mjs",{"path":215,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":216,"sourceHtmlUrl":217},"tests\u002Fvisual_diff.test.mjs",2442,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Ftests\u002Fvisual_diff.test.mjs",{"path":219,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":220,"sourceHtmlUrl":221},"uiclip_score.py",10451,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fuiclip_score.py",{"path":223,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":180,"sourceHtmlUrl":224},"uicrit-pack\u002F_test_pack.mjs","https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002F_test_pack.mjs",{"path":226,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":227,"sourceHtmlUrl":228},"uicrit-pack\u002Fexemplars.json",19781,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002Fexemplars.json",{"path":230,"resourceType":120,"resourceTypeDesc":121,"sizeBytes":231,"sourceHtmlUrl":232},"uicrit-pack\u002FREADME.md",5354,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fuicrit-pack\u002FREADME.md",{"path":234,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":235,"sourceHtmlUrl":236},"visual_diff.mjs",8114,"https:\u002F\u002Fgithub.com\u002FPrekzursil\u002Fagent-skills-toolchain\u002Fblob\u002Fmain\u002Fskills\u002Fui-audit\u002Fvisual_diff.mjs",[238,260,289,313,327,342],{"skillNo":239,"name":240,"nameZh":6,"description":241,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":242,"categories":243,"keywords":244,"publishedAt":49},"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",[],[245,246,247,248,249,250,251,252,253,254,255,256,257,258,259],"clarify requirements","clarify","requirements","risk","options","task","prompts","goal","scanning","use","context","repo","injection","execution","file",{"skillNo":261,"name":262,"nameZh":6,"description":263,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":264,"categories":265,"keywords":269,"publishedAt":49},"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",[266],{"categoryNo":267,"categoryName":268,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[270,271,272,273,274,275,276,277,278,279,280,281,282,283,254,284,285,286,287,288],"openmm md","how","decision","pick","linux","analyze","tool","stack","open","NVIDIA","gpu","license","workflow","windows","free","molecular dynamics","local","do","MCP",{"skillNo":290,"name":291,"nameZh":6,"description":292,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":293,"categories":294,"keywords":301,"publishedAt":49},"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",[295,298],{"categoryNo":296,"categoryName":297,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":299,"categoryName":300,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",[302,35,303,304,305,306,307,308,309,310,271,30,47,311,312],"review","visual review","pages","web","false","iteration","take","check","slides","playwright","screenshots",{"skillNo":314,"name":315,"nameZh":6,"description":316,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":317,"categories":318,"keywords":319,"publishedAt":49},"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",[],[315,320,321,322,323,324,325,326],"setup","report","project","installation","project setup","issues","state",{"skillNo":328,"name":329,"nameZh":6,"description":330,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":331,"categories":332,"keywords":334,"publishedAt":49},"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",[333],{"categoryNo":267,"categoryName":268,"taxonomyType":21,"taxonomyTypeDesc":22},[329,335,250,336,337,338,254,55,339,340,341],"start issue","issue","ready","work on issue","work","work on","development",{"skillNo":343,"name":320,"nameZh":6,"description":344,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":345,"categories":346,"keywords":347,"publishedAt":49},"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",[],[320,322,286,348,324,349],"files","interactive"]