Skip to main content

Dev tools and workflow · Beginner · 13 min

Write a README people actually read

By Padding · Updated 26 Nov 2026
Any text editor · GitHub-flavoured Markdown · GitHub, November 2026 · macOS, Windows or Linux

You will have rewritten the README of a small open-source tool so that a stranger can tell what it does, install it, run it and find help in under five minutes, and you will have proved it by following it in a fresh folder.

On this page

Most people who open your repository leave within a minute. They came with one question, usually "will this solve my problem?", and the README either answers it near the top or it does not. The ones who stay then want to know how to install it, how to run it once, and what to do when it breaks.

A weak README answers the questions the author finds interesting instead: the history of the project, the architecture, a wall of badges. This tutorial reorders yours around what a visitor needs, in the order they need it, and then tests it the only way that counts: by following it from nothing.

The running example is csvtidy, a small command-line tool (invented for this tutorial) that cleans up messy CSV headers. Work on your own project alongside it. Every step ends with a check you can see in your own README.md.

Step 1 · Read your README as a stranger and list what is missing

Open your current README.md in its rendered form, the way a visitor sees it on GitHub or your code host, not in your editor. Give yourself 30 seconds, then close it and write down the answers to four questions:

  1. What does this project do, in one sentence?
  2. Who is it for?
  3. What is the first command I would type?
  4. Where would I ask for help?

If you cannot answer one of them from those 30 seconds, that is a gap. Here is the kind of README this tutorial starts from:

Markdown
# csvtidy

csvtidy started as a weekend script in 2024 when I got tired of fixing exports
from our accounting system. It is built on a small streaming parser and has a
plugin architecture so you can add your own rules.

[![build](https://img.shields.io/badge/build-passing-brightgreen)]()
[![made with love](https://img.shields.io/badge/made%20with-love-red)]()

## Architecture

The core reads rows lazily and passes each header through a rule chain...

## Usage

Run it on your file.

It tells a story, explains internals, and then says "run it on your file" without saying how. A visitor learns that the author was tired, not what the tool does to their data.

Now sort what you have into three piles: keep (things a new user needs), move (useful, but for contributors or advanced users) and cut (things nobody needs, such as decorative badges or a changelog pasted into the README).

Check it worked

You have a written list with an answer, or the word "missing", for each of the four questions, and every section of your current README is marked keep, move or cut.

Step 2 · Open with what it is, who it is for and what it produces

The first screen of the README does most of the work. Put three things there, in this order:

  • The project name as the only top-level heading.
  • One sentence that says what the tool does and for whom. Use the words your users would search for, not your internal names.
  • A sample of what it produces. For a command-line tool, that is a short before-and-after in a code block. For an app or a library with a visual result, it is one screenshot with alt text.
Markdown
# csvtidy

csvtidy renames messy CSV column headers to clean, consistent snake_case,
for anyone who imports spreadsheet exports into a database or a script.

Before:

```text
"Customer Name ", "E-mail Address", "Amount (NGN)", "Date of Purchase"
```

After running `csvtidy sales.csv`:

```text
customer_name,email_address,amount_ngn,date_of_purchase
```

A text sample beats a screenshot of a terminal. It is searchable, it can be copied, a screen reader can read it, and it costs a few bytes rather than hundreds of kilobytes. That matters to the many readers in Nigeria and across Africa who pay for prepaid mobile data by the megabyte. If you do use an image, keep it small, describe it in the alt text, and avoid animated GIFs on the first screen.

Write the sentence in plain words. Many of your readers are working in their second or third language, and some will paste your README into a translation tool. Short sentences without idioms survive that.

Check it worked

Show only the first screen of the rendered README to someone (or to yourself after a break). They can say in their own words what the tool does and whether it is for them, and the sample shows a real input and output, not a placeholder.

Step 3 · Write an install and quick start a stranger can paste

This section is where most READMEs fail. The author has the tool installed already, so steps that only work on their machine go unnoticed.

Write it as a short sequence that starts from a computer that does not have your tool:

  1. Say what must be installed first, with versions: "Python 3.12 or later", not "a recent Python".
  2. Give one install command per supported route. Do not list five package managers if you only test one.
  3. Give one quick-start command that produces a visible result, using a sample file you ship with the project, so the reader does not need their own data.
  4. Say what they should see.
Markdown
## Install

You need Python 3.12 or later and pipx.

```bash
pipx install csvtidy
csvtidy --version
```

## Quick start

Download the sample file from the repository into a new `examples` folder.
On macOS or Linux:

```bash
mkdir examples
curl -L -o examples/sales.csv https://raw.githubusercontent.com/example/csvtidy/main/examples/sales.csv
```

On Windows (PowerShell):

```powershell
mkdir examples
Invoke-WebRequest -Uri https://raw.githubusercontent.com/example/csvtidy/main/examples/sales.csv -OutFile examples\sales.csv
```

Then clean it and print the first line of the result. On macOS or Linux:

```bash
csvtidy examples/sales.csv --output clean.csv
head -1 clean.csv
```

On Windows (PowerShell):

```powershell
csvtidy examples\sales.csv --output clean.csv
Get-Content clean.csv -TotalCount 1
```

You should see:

```text
customer_name,email_address,amount_ngn,date_of_purchase
```

Rules that keep this section copy-pasteable:

  • No $ ` prompts in front of commands. Readers copy the whole block, and the `$ breaks it.
  • Mark every code block with its language (bash, text, python) so it is highlighted and readers can tell commands from output.
  • Never use a path that only exists on your machine, such as /Users/you/projects.
  • If a command differs on Windows, give the Windows version in its own block rather than a footnote.
  • If your sample file lives in the repository, the quick start must show how to get it. A reader who installed from a package manager does not have your examples/ folder.

Check it worked

Your Install section names every prerequisite with a version, the Quick start shows how to fetch its sample file before using it, every command has a Windows block where it differs, and every command block can be copied in one go with no $ or personal path in it.

Step 4 · Document configuration in one place

Once a visitor has run the tool once, the next question is "how do I make it do what I want?". Answer it with a table of every option, its default, an example and what it does, followed by one realistic config file.

Markdown
## Configuration

csvtidy reads options from the command line, or from `csvtidy.toml` in the
current folder. Command-line options win.

| Option           | Default         | Example                | What it does                                 |
| ---------------- | --------------- | ---------------------- | -------------------------------------------- |
| `--case`         | `snake`         | `--case camel`         | Header style: `snake`, `camel` or `kebab`    |
| `--output`       | print to screen | `--output clean.csv`   | File to write the cleaned CSV to             |
| `--keep-accents` | off             | `--keep-accents`       | Keep letters such as é and ñ instead of e, n |

Example `csvtidy.toml`:

```toml
case = "snake"
keep_accents = true
```

Keep the README to the options a typical user changes. If your tool has 40 options, list the five that matter here and link to the full reference in docs/ (step 7). If an option takes a secret, such as an API key, tell readers to set it in an environment variable and never show a real-looking key in the example.

Check it worked

Every option your tool accepts either appears in the table with a default or is covered by a link to a full reference, and the example config file uses only options from the table.

Step 5 · Say how to get help, how to contribute and what the licence is

A visitor who hits a problem looks for these three answers near the end of the README. Give each one a short section with a link.

Markdown
## Getting help

- Read the [FAQ](docs/faq.md) first.
- Ask questions in [Discussions](https://github.com/example/csvtidy/discussions).
- Report bugs as [issues](https://github.com/example/csvtidy/issues). Include
  your csvtidy version (`csvtidy --version`) and the first lines of your CSV.
- Report security problems privately, as described in [SECURITY.md](SECURITY.md).

## Contributing

Pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for how to
set up a development copy and run the tests.

## Licence

MIT. See [LICENSE](LICENSE).

Replace example/csvtidy with your own account and repository name. Three details matter here:

  • Say what a good bug report includes. It saves a round of questions on every issue.
  • Put contributor setup in CONTRIBUTING.md, not the README. GitHub links to that file when someone opens an issue or pull request, so contributors find it at the right moment.
  • Add a real LICENSE file at the root. Without a licence, default copyright applies and others have no permission to reuse your code, even if the repository is public. GitHub detects a standard licence file and shows it at the top of the repository page; choosealicense.com helps you pick one.

Use relative links (docs/faq.md, LICENSE) for files in your repository. They keep working on other branches and in forks.

Check it worked

Each of the three sections exists, every link in them opens a page or file that exists (click each one in the rendered README), and your repository page shows the licence you named.

Step 6 · Test the README by following it in a fresh folder

You cannot test a README by reading it. You test it by doing exactly what it says, on a machine or account that has never seen your project.

Pick one of these, in order of how honest the result is:

  1. Ask someone who has never used the tool to follow the README while you watch and say nothing.
  2. Use a second computer, a new user account, or a fresh virtual machine or cloud shell.
  3. At the least, make a new empty folder, open a new terminal there, and follow the README top to bottom without using anything you did not just install from it.

Copy every command from the rendered README, not from your memory. Write down each place you had to guess, look something up or fix an error. Typical findings:

  • A prerequisite you forgot because it was already installed.
  • A quick-start file that is in your working copy but was never committed.
  • A command that changed name two releases ago.
  • An output sample that no longer matches what the tool prints.

Fix each one in the README, then repeat the run until you get from the first line to the quick-start result with no guesses.

Check it worked

You have a list of what went wrong during the run, each item is fixed in the README, and a second run from an empty folder reaches the output shown in your Quick start without any step that is not written down.

Step 7 · Keep only badges that carry information and move long material to docs/

Badges are small images, usually from a service such as Shields.io, that sit under the title. Each one is another image to download and another thing to read before the useful content. Keep a badge only if it answers a question a visitor has and stays true on its own:

  • Keep: the latest released version, the build status of the main branch, the supported language versions, the licence.
  • Cut: "made with love", social follower counts, badges that link nowhere, and any badge whose status you set by hand.

In the starting example, the "build passing" badge is a static image that says passing whatever the real build does, and its link is empty. Replace it with one that your CI updates, or remove it.

Then look at the "move" pile from step 1. Anything a new user does not need on day one goes into a docs/ folder, with one link from the README:

Text
README.md            what it is, install, quick start, config summary, help, licence
CONTRIBUTING.md      development setup, tests, code style, how to send a pull request
SECURITY.md          how to report a vulnerability privately
docs/
  configuration.md   every option in full
  architecture.md    the rule chain and plugin internals
  faq.md             answers to the questions people keep asking

GitHub builds an outline (a table of contents) from your headings automatically, so you do not need to maintain one by hand in a short README. Keep the README short enough that its outline fits on one screen: around six to eight ## sections.

Finally, read the finished README top to bottom in its rendered form once more. Every section should be in the order a newcomer needs it: what it is, what it produces, install, quick start, configuration, help, contributing, licence.

Check it worked

Every remaining badge updates itself or states a fact that will not drift, your README has no more than eight ## sections, the architecture and full option reference live in docs/ with a link from the README, and the four questions from step 1 now all have answers within the first two screens.

Next steps

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Platform Engineering

Get new tutorials

New tutorials, about twice a month.