Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
docs(ux-audit, ux-extract): post-process screenshots to work around Retina 2x capture
Jeremy Dawes48b79a410c17
diff --git a/plugins/dev-tools/skills/ux-audit/SKILL.md b/plugins/dev-tools/skills/ux-audit/SKILL.mdindex 2becc7ca..565e0e07 100644--- a/plugins/dev-tools/skills/ux-audit/SKILL.md+++ b/plugins/dev-tools/skills/ux-audit/SKILL.md@@ -62,6 +62,18 @@ The audit needs a persona. Without one, findings drift toward generic "looks finCapture: role, tech comfort, time pressure, emotional state, device context. A good persona predicts what they'd miss ("A receptionist between phone calls won't scroll below the fold").+### 5. Screenshot post-processing++On Retina Macs, Chrome captures screenshots at 2× the logical viewport — a 1440×900 window produces a 2880×1800 PNG. That's larger than the vision pipeline needs and wastes context. Downsize screenshots after each capture phase:++```bash+img-process batch ./screenshots --action optimise --max-width 1440+```++The `optimise` action is idempotent — no-op if already ≤ 1440px, downsize otherwise. Safe to run unconditionally, on every folder, at any point. At minimum, run it after each thread traversal and after the responsive sweep.++Playwright MCP users can set `deviceScaleFactor: 1` in the browser context to sidestep this entirely — screenshots match viewport 1:1. Chrome MCP has no equivalent flag, so post-process instead.+## Discovery### Sitemap crawldiff --git a/plugins/dev-tools/skills/ux-extract/SKILL.md b/plugins/dev-tools/skills/ux-extract/SKILL.mdindex 41f994b3..3115d08d 100644--- a/plugins/dev-tools/skills/ux-extract/SKILL.md+++ b/plugins/dev-tools/skills/ux-extract/SKILL.md@@ -49,6 +49,16 @@ See [../ux-audit/references/browser-tools.md](../ux-audit/references/browser-tooPin 1440×900 as baseline (MacBook standard). Also capture 768 and 375 for responsive patterns. Don't exceed 2000px wide.+### 2b. Screenshot post-processing++On Retina Macs, Chrome captures at 2× the logical viewport — a 1440-wide window produces a 2880-wide PNG. Post-process after each batch so the library isn't full of oversized files:++```bash+img-process batch ./screenshots --action optimise --max-width 1440+```++Idempotent — no-op on already-small files. Run at the end of each route's capture, or across the whole `screenshots/` folder at the end of the extract. Playwright MCP users can set `deviceScaleFactor: 1` in the context options and skip this step.+### 3. ScopeDecide before starting: