Skip to content
Tactiverge

README files and project documentation

What a README must tell a newcomer, a skeleton you can copy, and the other documents that help someone build, use and maintain a project.

Lesson 3 of 6 · 25 min · Self-paced · Free

The front door of a project

Open almost any software or hardware project shared online and the first thing you see is a file called README (often README.md, where .md means it is written in Markdown, a simple text format). As the name suggests, it is the file you should read first.

A README is the front door of a project. Someone who has never seen your work — including future you — lands there and needs to answer a few questions quickly: What is this? Does it work? Can I use it? How? If the README does not answer those, most people leave, or waste hours guessing.

Where a notebook records the history of your work, a README describes its current state. It should always be true now.

What a README should answer

  1. What is it? One or two sentences, in plain words. What does the project do, and for whom?
  2. What state is it in? Working prototype? Half-finished? Tested on one track only? Honest status saves people from relying on something that is not ready.
  3. What do I need? Software versions, hardware, materials. Point to the bill of materials if there is one.
  4. How do I build, install or run it? Exact steps, in order, with commands someone can copy.
  5. How do I use it? A minimal example of it doing its job.
  6. What is in this folder? A short guide to the files and directories.
  7. What are the known limitations and problems?
  8. Who made it, what did they build on, and can I reuse it? Credits, acknowledgements and the licence.

A README skeleton you can copy

Here is a skeleton for a hypothetical project. The project, its numbers and its details are made up for illustration; replace them with yours.

# Line-follower simulation

A Python simulation of a two-wheeled robot that follows a black line
using two downward-facing light sensors. Written as a learning project.

## Status

Working prototype. Tested on the oval and figure-eight tracks in
tracks/. Fails on corners tighter than about 10 cm radius (see
Known limitations). Last checked 2026-03-20.

## Requirements

- Python 3.10 or newer
- No extra libraries (standard library only)

## Quick start

    git clone <repository-url>
    cd line-follower-sim
    python3 simulate.py tracks/oval.txt

You should see the robot's position printed every 0.1 s and a final
line saying "Lap complete".

## Files

- simulate.py      main program
- controller.py    the steering rule (proportional control)
- tracks/          example tracks as text files
- notebook.md      dated design log
- docs/decisions.md  why the main design choices were made

## Known limitations

- Sensor noise is modelled as uniform random noise, which is simpler
  than real sensors.
- Wheel slip is not modelled.

## Credits and licence

Track file format adapted from <source>, used under its licence.
This project is released under the MIT License; see LICENSE.

A few things to notice. The status section is specific and dated. The quick start includes what you should see when it works, so a newcomer can tell success from failure. The limitations are stated plainly rather than hidden. The placeholders in angle brackets (like the repository URL) are things you would fill in. In real Markdown, the indented commands under Quick start would usually be put in a fenced code block of their own; they are indented here only because this example is itself inside a code block.

Writing instructions people can actually follow

The hardest part of a README is the instructions, because you already know how everything works and cannot easily see the gaps. Some habits help:

  • Number the steps and put them in the order they must be done.
  • Make commands copyable: exactly as typed, in a code block, no hidden steps.
  • State versions. "Python 3.10 or newer" is useful; "Python" is not.
  • Say what success looks like after important steps.
  • Test it on someone else. Give the README to a friend who has never seen the project, watch them follow it without help, and note every place they get stuck. Each one is a fix. This is the single most effective way to improve documentation.
  • Keep it current. When you change how the project is run, change the README in the same session.

Beyond the README

A README should be short enough to read in a few minutes. Larger projects add other documents, linked from the README:

  • A design-decision log (often docs/decisions.md): one short entry per important decision, saying what was decided, the options considered, the reason and the date. This keeps the why from the previous lessons alive in a place everyone can find.
  • A changelog (CHANGELOG.md): a dated list of notable changes between versions, written for users.
  • A licence file (LICENSE): the terms under which others may reuse your work.
  • Build or assembly guides for hardware: step-by-step instructions with diagrams, referring to the bill of materials by item number.
  • Diagrams: a block diagram of the system, a wiring or connection diagram, drawings of parts. Each should have a date or version.
  • Test procedures and results: how to check the project still works.

A sensible folder layout makes all of this findable:

line-follower-sim/
  README.md
  LICENSE
  CHANGELOG.md
  simulate.py
  controller.py
  tracks/
  docs/
    decisions.md
    block-diagram.png
  data/
    raw/
    processed/

Keeping data/raw/ separate from data/processed/ is a small habit with a big payoff: raw data is never overwritten, and anyone can rerun your processing to check it.

Project

Software project: write and test a README

Choose a project you have made — a program, a spreadsheet model, a paper model with instructions, or the notebook experiment from the previous lesson. Write a README for it using the skeleton in this lesson, with an honest, dated status section.

Then ask someone who has never seen the project to follow the README without any help from you. Sit quietly and note every point where they hesitate, misunderstand or get stuck. Revise the README to fix each one.

Deliverables

  • A README covering what, status, requirements, steps, files, limitations and credits
  • A list of every point where your tester got stuck
  • A revised README with those problems fixed

Knowledge check

Check your understanding

  1. 1. What is the main difference between a README and a lab notebook?
  2. 2. Which requirement line is most helpful?
  3. 3. What is the most effective way to find gaps in your README's instructions?
  4. 4. Where is the best place to record why a major design choice was made, so the whole team can find it?