Workflow · Build

Screenshot to spec

The AnvilSmall, checked changes to real code, with you holding the hammer.

Start with

A screenshot or sketch of a screen you want built or changed.

The steps

  1. Blur or crop out any private details in the image before you upload it.
  2. Upload it to a chat assistant that can read images and say what the screen is for.
  3. Ask for a spec listing each part of the screen, what it shows and what happens when you use it.
  4. Fix anything it misread, and add the states the picture can’t show, like empty, loading and error.
  5. Ask for a short list of open questions and answer them.
  6. Hand the finished spec to whoever is building it, and compare the result against the picture.

A prompt to start from

This image shows {what the screen is for}. Write a spec for building it: list each part of the screen, what it shows, and what happens when someone clicks or types in it. Add the empty, loading and error states. End with a list of questions about anything the image doesn't make clear.

Fill in the {blanks} with your own words, then send it.

Done when

Every part of the picture is in the spec, the hidden states are covered, and the open questions have answers.

Works best for

Getting from a mockup, a whiteboard photo or a competitor’s screen to something buildable.

Watch out for

Models misread small text and layouts in images, so check every label and number against the picture.

Prompt patterns to use

Skills that help

Models worth knowing

Agents worth knowing

Words worth knowing

More in Build