Back to HTML Pub

Your AI-Built Site Looks Fine on Your Laptop. Run This QA Prompt Before You Ship It.

Michael Sacca•
AI-Native Publishing
LLM Engineering
Frontend Development

Every AI website tutorial ends the same way: "and just deploy it!" The generated files look great in the preview pane, the laptop screen is generous, the wifi is fast, and everything the LLM rendered is legible at desktop width. Then you open it on your phone in a parking lot and the hero text overflows, the nav collapses into a mystery hamburger, and the buttons are stacked like an accident.

The build tutorials cover this. We covered the responsive-breakpoints part of it already in Your AI Built the Website in 10 Minutes. Here's the 3 Days of Work Nobody's Tutorial Covers. — that post is about doing the second-order work. This one is about a different phase entirely: the audit. Not "make Claude build the site right," but "make Claude try to break the site it just built."

That distinction matters because of how LLMs behave. When you ask Claude to review its own output, it is remarkably good at finding problems it skipped the first time — provided you ask it to act as an adversary, not an author. Same model, same files, different prompt, different job.

Why "looks fine" is the most dangerous sentence in AI web dev

Your laptop lies to you in three specific ways:

  1. Viewport. Your dev preview is 1200+ pixels wide. The majority of real visits to a solopreneur landing page come from phones. Nothing in the default AI output warns you about this because the output renders — it just renders badly at 375 pixels.
  2. Connection. You're on fast wifi with a warm cache. Your visitor is on cellular, cold cache, first load. An AI-generated page that pulls in a heavy font, three script blocks, and an unsized hero image feels instant to you and glacial to them.
  3. Your own familiarity. You know where the form is, you know what the button does. A first-time visitor doesn't, and accessibility failures that seem minor to you — low-contrast text, missing labels, keyboard traps — are hard walls for them.

An LLM can check all three systematically. You just have to stop asking it "is this good?" — a question it will answer "yes" to every time — and start asking it to fail the site on purpose.

The QA prompt: make the author play the auditor

Here's the prompt I run on any AI-built site before it ships. Paste it into the same conversation where Claude built the site (so it has full context), or paste your HTML/CSS/JS files into a fresh one.

You are now a hostile QA engineer, not the author of this code. Your job is
to find reasons NOT to ship this site. Do not praise anything.

Audit the following files in three passes and report findings as a table:
issue, severity (blocker / major / minor), and the exact fix with code.

PASS 1 — RESPONSIVE. For viewport widths 320px, 375px, 768px, and 1024px:
identify any element that overflows, overlaps, becomes illegible, or loses
its tap target size. Check the nav, hero, forms, and any multi-column
layouts specifically. Give me corrected CSS (media queries or fluid units)
for each finding.

PASS 2 — PERFORMANCE. List every resource this page loads (fonts, images,
scripts, external stylesheets). For each: is it necessary, is it sized
correctly, is it lazy-loaded where appropriate, are images in a modern
format with width/height attributes to prevent layout shift? Flag anything
that would make first load slow on cellular. Give me the optimized version
of each line.

PASS 3 — ACCESSIBILITY. Check against WCAG 2.1 AA: color contrast ratios
for all text, alt text on images, label association on every form input,
heading hierarchy (no skipped levels), focus visibility, keyboard operability
of every interactive element including any hamburger menu, and ARIA usage.
Give corrected markup for every failure.

End with: a list of BLOCKERS only — the minimum I must fix before launch —
and a one-line verdict: SHIP or DO NOT SHIP.

Three things in that prompt do the heavy lifting:

  • "Not the author of this code." It breaks the assistant's default politeness. You're asking for a defect report, not a peer review.
  • Specific widths, specific checks. "Is it responsive?" gets you vibes. "320px, 375px, 768px, 1024px, nav and hero specifically" gets you fixes.
  • A table with severity and a SHIP/DO NOT SHIP verdict. Structure forces completeness, and the blocker list gives you a shippable scope instead of a wall of nitpicks.

Running the fixes without losing your weekend

The audit will usually return more findings than you want to fix. Don't. Work the blocker list only, in this order:

  1. Anything that makes content unreadable or unclickable on mobile — overflow, overlapping elements, tap targets.
  2. Form breakage — unlabeled inputs don't just fail accessibility, they fail on autofill and mobile keyboards too.
  3. Layout shift and images — missing width/height attributes cause the page to jump while loading, which reads as "broken" to visitors even when it technically isn't.

Then, and only then, dip into the minors if you feel like it. Everything else is a v1.1.

One workflow tip: fix the blockers, then re-run the same prompt on the updated files. The second pass typically comes back much shorter, and the DO NOT SHIP verdict flips to SHIP — which is a far better feeling than "I think it's probably fine."

What this prompt can't do (and the two manual checks that cover it)

Claude auditing code is code-review. It can't render pixels. So two things still need your eyeballs:

  • Open the site on an actual phone. Chrome's device toolbar is decent, but nothing replaces loading the deployed URL on your real device over cellular. Ten seconds. Do it before every launch.
  • Tab through the page with your keyboard. No mouse. If you can't reach the form and submit it with tab, enter, and nothing else, the accessibility pass missed something only rendering reveals.

And note the boundary of this whole approach: it audits what exists in the files. It can't tell you whether your offer is convincing or your copy lands — that's the conversion-structure work, which is a different prompt for a different post (the landing-page workflow in Building Landing Pages With AI: Ship a One-Pager That Converts Before You Ever Touch a Template covers that side).

Make it a step, not a save

The real upgrade is turning this from a prompt you remember into a step that always happens. Save the QA prompt as a text file next to your project — qa-prompt.txt in the repo. If you build through Claude Projects or an MCP-driven workflow, make the QA pass a required step in your instructions file: no deployment until the audit returns SHIP.

That's the difference between AI-assisted web dev that feels fragile and a process you actually trust. The generation is the easy part. The adversarial pass — the one where the model stops being your builder and starts being your QA engineer — is what separates a site that looks fine on your laptop from one that works in a parking lot.

Keep Reading