← ClaudeAtlas

responsive-auditlisted

Audit a web interface at phone, tablet and desktop widths with Playwright, measure what's broken (horizontal overflow, small touch targets, tiny text, console errors), make a contact sheet to review by eye, fix, and re-run until clean. Use when the user asks to check or fix mobile, responsive or "looks wrong on my phone" issues.
ham7a311/Vitrine · ★ 13 · Web & Frontend · score 77
Install: claude install-skill ham7a311/Vitrine
# /responsive-audit Measure first, then look, then fix. Numbers catch overflow you can't see; your eyes catch layouts that are technically fine and still wrong. This skill finds **defects**: what's broken. To decide what's **better** (composition, spacing, hierarchy) across rounds of changes, use `/screenshot-iteration`; to design each width on purpose, use `/responsive-art-direction`. ## 1. Set up - The app must be running locally (for example `npm run dev`). Find its URL and the pages to check: every route, or the pages the user named. - Playwright must be available: `npm i -D playwright && npx playwright install chromium` if it isn't. - Work in a scratch directory, not in the project. ## 2. Run the measurement Save this as `audit.mjs` in the scratch directory and run it: ``` node audit.mjs <base-url> <out-dir> <path> [path…] ``` For example `node audit.mjs http://localhost:3000 ./audit / /pricing /about`. ```js // Responsive audit: measures each page at three widths, saves a screenshot per page and width, // writes report.json, and builds sheet.html (a contact sheet) to review by eye. import { chromium } from "playwright"; import fs from "node:fs"; import path from "node:path"; const [base, out, ...paths] = process.argv.slice(2); if (!base || !out || !paths.length) { console.error("usage: node audit.mjs <base-url> <out-dir> <path> [path…]"); process.exit(1); } const WIDTHS = [ { name: "phone", width: 375, height: 812, mobile: true }, { name: "tablet", wid