THE GITHTML FIELD GUIDE
Choose README screenshots that explain a task
Use a README screenshot when it explains a workflow or result more clearly than text alone. State what the reader should notice, identify relevant version context, and provide meaningful alternative text. Avoid decorative galleries that hide setup instructions, and review screenshots whenever the pictured workflow changes rather than waiting for the whole README to be rewritten.
Choose the question the image answers
A screenshot should show something a reader needs to understand before trying the project: the kind of output produced, the location of a control, or the result of a successful task. Name that question first. Crop unnecessary surrounding interface so the important state remains visible, but do not remove context that changes the meaning. Use authorized sample data rather than real customer information. A visually impressive screen that cannot be connected to the project's current behavior is misleading. If the interface is still a mockup, label it as such and do not present it as a released feature.
Pair the image with searchable explanation
Write a caption explaining the useful observation, such as the sample report showing three validated records. Alternative text should convey the image's purpose in context rather than merely saying screenshot. Keep essential values and instructions in ordinary text so readers can search, copy, translate, or understand them without seeing the image. The example uses an illustrative asset path and a caption with a version placeholder to be verified. Avoid placing a long command solely inside a terminal screenshot. Provide the command and expected output as text, using the image only when its visual arrangement adds something necessary.

The report lists each validated record and its status.
Captured for [verified version]; review when the report layout changes.Create a specific maintenance trigger
Record what event makes the screenshot stale: a renamed control, changed output format, new navigation layout, or altered supported platform. Link the asset to the documentation owner or review task so updating the image includes checking its caption and surrounding instructions. Inspect the README at a narrow width and ensure the screenshot does not become the only source of tiny unreadable details. Check that the file exists in the published context and that its use complies with the project's asset policy. Remove redundant images before adding new ones. A small set of explanatory screenshots is easier to maintain and more useful than a gallery with uncertain provenance.
- Write the question the image answers before capturing or selecting it.
- Use safe sample data and label mockups or historical screens clearly.
- Keep essential instructions and values in text alongside the image.
- Name the workflow change that should trigger a screenshot review and assign ownership.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.