Give the AI a terminal session that worked and ask it to turn the session into a README quickstart. Then open an empty directory and follow only the draft to see what a new reader would get.
The Short Answer
| Give the assistant | Ask it to write |
|---|---|
| The shell and tools you used | A prerequisite readers can check |
| The commands in order | A copyable example, including any input files |
| The output you saw | A visible sign that the example worked |
Where should an AI-written README start?
Say you're documenting how to pretty-print a JSON file with Python. You already have a file called trip.json on your laptop. You run one command and the terminal prints the city name on its own line. From your seat the quickstart is one line long.
Now picture the person who opens the README on GitHub and copies that line. Where does their copy of trip.json come from? A polished explanation of JSON formatting won't get them past a missing file. GitHub's guidance for READMEs puts getting started among the questions a repository should answer. For this example that means giving the reader something to format.

What should you put in the prompt?
Start with a small real session you can share. Use a made-up city itinerary here so there's no need to paste a customer's data. On macOS or Linux, open a shell in an empty directory with Python 3 installed as python3. Run:
printf '%s\n' '{"city":"Lima","days":2}' > trip.json
python3 -m json.tool trip.jsonThe first line creates the example file. The second uses Python's standard library to format its contents and prints this:
{
"city": "Lima",
"days": 2
}Hand the assistant those two blocks and a narrow assignment: “Write the Quickstart section for someone with Python 3 and a macOS or Linux shell. They start in an empty directory. Keep the commands as shown. Tell them where the formatted JSON appears and whether their file changes.”
That last request matters. A reader who opens the file afterward will still see compact JSON. Python sent the formatted text to the terminal. If the draft promises a reformatted file, the commands can succeed while the documentation teaches the wrong thing.

How do you test the draft before merging it?
Keep that terminal open. In a second empty directory, copy the commands from the draft exactly as a reader would. Before you go back to the editor to fix a typo or improve the wording, stop at the sentence immediately after the last command and check its promise against the terminal in front of you. For this example you can type cat trip.json to see the original one-line input.
If the first command in the draft assumes a file exists, restore the line that creates it. If the instructions suggest installing a formatter, ask which command needs it. This example runs with Python's standard library. Someone following it has no reason to install a separate package.

For a real repository, repeat the test in a fresh checkout of the version your readers will use. Unstoppable Code lets you put the README edit in its own Git worktree, a separate checkout where you can review the change before opening a pull request. A worktree still shares your machine's installed tools, so check the prerequisites separately if the guide promises to work on a newly set-up computer. See how worktree tools handle separate checkouts and how to take a worktree change through review.
Frequently Asked Questions
Can an AI write a README from source code alone? Yes, for a first draft. Give it a successful run as well if you want it to show what a new user should see.
How much terminal output belongs in a quickstart? Show the recognizable part. The four lines of formatted JSON fit comfortably here. A build log is different. Pick the message that confirms completion.
Does the same quickstart work in PowerShell? Label the example with the shell you tested. Add a PowerShell version when you can try it from an empty directory on Windows.
Sources
- GitHub Docs, About READMEs, accessed December 2, 2026.
- Python, JSON command-line interface, accessed December 2, 2026.
- Diátaxis, Tutorials and expected output, accessed December 2, 2026.
