Azqato's Prompts

Mobile Audit

Claude Code Prompt

Runs a full mobile-friendliness and responsive-design pass across an entire site, following the Template Interface Web Design Standard and Color Standard, which it reads in full first. It checks three surfaces, mobile, desktop and print: every page at a fixed set of widths (320px through 1920px) for horizontal overflow, container overflow, unwrapped toolbars, modal sizing, and clipped text. It also targets four specific CSS bug patterns that are common and easy to miss: the overflow shorthand silently canceling an overflow-x setting, bare 1fr grid tracks forcing page-level overflow from wide content, flexbox children ignoring their flex parent's width because of the default min-width: auto, and doubled spacing when margin stacks with a flex/grid gap.

It also measures color contrast in light and dark mode against the Color Standard's required pairings, prints every page to a US Letter PDF and reads each sheet (ink on white, no controls or stale live state, hidden tab content included, a header and footer on every page, nothing split across a break), and checks that each page ends with a hidden brief for AI agents.

Verification is done by injecting a debug script that reads scrollWidth/clientWidth and element bounding rectangles, not by eyeballing screenshots, since headless browsers enforce a minimum viewport width that makes narrow screenshots unreliable; the print check reads the PDF, not the print CSS. Any fix that changes how content is presented (not a pure CSS correctness fix) is flagged for a design decision before implementation. The prompt ends with updating the project's existing changelog and planning docs with the root cause and fix, following whatever documentation conventions the project already has.