Ch04 Screenshot Loop
# Chapter 4 — Fix the Ugly (the Screenshot Verification Loop)
> **Hours 9-14.** The book's signature workflow, and eighteen prompts around it.
**The premise:** Claude does not have eyes. "It processes text. Code is text. HTML
is text. CSS is text. Claude can write pixel-perfect CSS for a button, but it
cannot look at the button and tell you whether it's ugly." (ch04:11)
When Claude says "I've reviewed the code and the layout appears correct," it is not
lying. The code *is* correct. The code produces something that looks like garbage.
Claude can't tell the difference because it never sees the output.
**The fix is not a better description.** "Visual design is spatial: spacing, font
weight, contrast, hierarchy, all taken in at once when you look at a page. Text
describes them one at a time. Claude gets the words. It doesn't get the picture."
(ch04:17)
---
## ⭐ The Screenshot Verification Loop — the four steps
**ch04:23-61** · See [`docs/screenshot-loop.md`](../docs/screenshot-loop.md) for the diagram.
### Step 1 — Claude writes the codewhen to use it
Community prompt sourced from the open-source GitHub repo regardo911/claude-code-beginners (MIT). A "Ch04 Screenshot Loop" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
regardo911/claude-code-beginners · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions