# Write a README a stranger can follow, with your coding agent's help

- Author: RomanMotion (https://wurk.fun/user/RomanMotion)
- Published: 2026-11-06
- Canonical (HTML): https://wurk.fun/blog/write-a-readme-a-stranger-can-follow-with-your-coding-agent-s-help
- Cover image: https://ik.imagekit.io/wurk/browser-uploads/f1c626b5c17e7f0a61dfbbe7a20d85ae7b33a20527243aeec2ee1d0a8b87562a/c7041c24-8f4e-4341-8c4c-93d3cb9becb4/cover-readme.jpg?wurkUpload=v1.pvZMAhAMZK9vJSDuOA_guNuJzJHaQYieBtSmz9jp2hg

---

Your app runs on your machine, so you ask your coding agent to write the README and send the repo to the client. The client follows the instructions, hits a missing setup step, and the handoff turns into a support thread. A fresh-clone test shows you where the instructions need work before delivery.

Ask the agent to draft the README from the repository and record the commands it actually runs. Then follow the draft literally in a fresh clone, note every failure and guess, and give those notes back to the agent. Repeat the test with the updated files until you can install, configure, run, and test the project using the README.

## Cover the questions a new person will have

A useful README answers the reader’s next question before they have to ask you. For a delivered repo, cover:

- **What it is:** What does the project do, and what should the reader see when it runs?
- **Requirements:** Which operating systems, runtimes, tools, and versions are needed? Distinguish required versions from the versions you tested.
- **Install:** Which commands install dependencies, and where should the reader run them?
- **Configure:** Which environment variables are required, where do values come from, and which are optional?
- **Run:** What starts the app, and how does the reader open or use it?
- **Test:** Which command runs the checks, and what does a successful result look like?
- **Common errors:** What should the reader check when a known problem occurs?

Include an `.env.example` with variable names and safe placeholder values, plus instructions for creating the local configuration file. Never include real secrets in the example, README, screenshots, or test notes.

Add the real environment file to your ignore rules, and check whether it is already tracked. [Git’s ignore documentation](https://git-scm.com/docs/gitignore) notes that ignore rules do not affect files already tracked. If a secret was committed, removing it from the latest file alone is not enough: revoke or rotate it and handle its exposure appropriately.

## Ask the agent for evidence, not a polished guess

Give your agent access to the repository and ask it to inspect the project before drafting. It should look at configuration files, existing scripts, tests, and any setup instructions already in the repo.

Use this prompt as a starting point:

```
Read this repository and draft a README for someone who has
never seen it.

Cover what the project does, requirements and versions,
installation, configuration, running, testing, and known
setup errors. Include an .env.example with placeholders only
if configuration is needed.

Run the setup, run, and test commands where safe. List each
command you actually ran, its working directory, and the
result. Do not present assumed commands as verified.

Flag missing access, unclear requirements, and anything you
could not test. Do not use or expose real secrets. Do not
deploy or change production data.
```

Review the report alongside the draft. A command appearing in a configuration file is a lead, not evidence that it worked in the handoff environment. If the agent cannot run a step because it lacks a service or credential, keep that limitation visible and test it later with an appropriate account.

If you want a harness to try this in, you can [try the zcode agent harness free](https://zcode.z.ai/invite/ALWM9JUA) (our invite link).

## Follow the README from a fresh clone

Test the version the recipient will receive. Make sure the README, scripts, and other required files are included in the branch or revision you plan to deliver. A clone won’t include uncommitted changes from your working directory.

Git’s [`clone` documentation](https://git-scm.com/docs/git-clone) describes cloning a repository into a new directory. Replace the placeholders below with your repository address and delivery branch:

```bash
git clone --branch "BRANCH" "REPO_URL" readme-check
cd readme-check
```

Use a new folder name for another attempt. For a private repo, confirm the client has the access and clone instructions they need; don’t put credentials in the URL or README.

Now follow the README from the top. Don’t borrow a configuration file, dependency folder, or generated asset from your original checkout. At each step, record the command, result, and anything you had to infer. For example: “Install succeeded, but I had to guess where to create the environment file.”

A fresh folder is not a clean machine. It can still use tools, credentials, services, and environment variables already on your computer. Note those dependencies. If you need a stronger check, use a clean container or another machine with the documented prerequisites, and record which environment you tested. [Docker’s container guide](https://docs.docker.com/engine/containers/run/) explains how to run a container from an image.

Use test services and non-production data. If a real service is required, document that requirement without sharing its credentials.

## Fix the instructions, then start over

Hand the failure notes to the agent with the exact command and relevant error output. Remove secrets and private data before sharing logs. Ask it to fix the underlying setup or documentation, explain which files changed, and identify anything still unverified.

Don’t settle for adding “if this fails, try reinstalling” when the actual problem is a missing prerequisite or an incorrect command. Put the required step in the main path; reserve troubleshooting for errors that genuinely need a separate remedy.

After changes are included in the version you’re testing, start again in another fresh folder or clean environment. Follow the revised README from the beginning, not only from the step that failed. A change to installation can affect configuration or tests later in the sequence.

A successful handoff check has a concrete result: the app starts, the documented way to access it works, and the documented tests produce their expected outcome. Record the tested revision, environment, and commands. If a service, platform, or feature wasn’t checked, say so rather than calling the whole setup verified.

This loop means several agent runs per handoff. If you want a coding plan for that kind of work, here's our coupon for [10% off GLM coding plans](https://z.ai/subscribe?ic=R0K78RJKNW).

## Keep commands in the repo and recheck them

When practical, put repeatable run and test commands in version-controlled scripts or a Makefile, then point the README to those entry points. A Makefile target like `make test` or a `scripts/test.sh` gives each command one name the README can point to.

This reduces the places where someone has to update a long command, but it doesn’t make drift impossible. A script can become outdated too. Run the README steps again when setup changes, and check that each script still does what the surrounding text promises.

Keep troubleshooting tied to observed problems. For each known error, include what the reader can check and how to resolve it. If a step requires external access or a manual action, name the prerequisite and what remains blocked without it.

## The checklist

Before sending the repo, run through this:

```
[ ] Purpose and expected result are clear
[ ] Requirements and tested versions are listed
[ ] Install commands include the working directory
[ ] .env.example has placeholders, not real secrets
[ ] Run and test commands were actually exercised
[ ] Delivery revision was tested in a fresh clone
[ ] Every guess and failure was fixed or documented
[ ] Test environment and unverified steps are noted
[ ] README, scripts, and delivered files agree
```

For instructions that guide the agent while it works in the repo, read [Write an AGENTS.md file your coding agent actually follows](https://wurk.fun/blog/write-an-agents-md-file-your-coding-agent-actually-follows). There's [more on our blog](https://jackgross-five.vercel.app) too.

If this helped make a handoff less painful, a small tip on WURK is a nice way to say so.
