A README your teammate can actually use

It is 11 pm the night before your project demo. Your teammate finally clones the group repository to add their part. They find 43 files, three folders all called "final", and not one line that says how to run anything. They message the group chat. Nobody is awake.

That is the moment a README is for. Not for marks, not for the teacher - for the next human who opens the folder. And the next human is often you, three weeks later, wondering what past-you was thinking.

What a README actually is

A README is a plain text file, usually named README.md, that sits in your project's main folder. That is the whole technology. GitHub automatically shows it as the front page of your repository when it lives in the root folder (or in the docs or .github folders), and it is written in Markdown: ordinary text with a few light symbols for headings and lists. If you can write a WhatsApp message, you can write a README.

GitHub's own documentation says a README exists to tell visitors why your project is useful, what they can do with it, and how to use it. Notice what is not on that list: impressing anyone. A README is instructions, not a brochure.

Answer five questions and stop

A README your teammate can actually use answers five questions, in this order, as briefly as possible:

Card: the five questions every README answers - what is this, what do I need first, how do I run it, where does everything live, who do I ask
Five questions. If your README answers these, it works.

1. What is this? One honest line. "A site that shows our hostel's mess menu for the week." Not a paragraph about your passion for technology.

2. What do I need first? The exact things that must be installed before anything works, with versions. "Python 3.11" is helpful. "Python" alone sends your teammate into an hour of guessing.

3. How do I run it? The exact commands, in order, that take a fresh laptop from empty folder to working project. This is the section everyone actually opens the README for, so put it early and make every command copy-pasteable.

4. Where does everything live? A small map of the folders. Which folder has the code, which has the data, which one is the report. Thirty seconds of writing saves every new person twenty minutes of clicking.

5. Who do I ask? Names and how to reach them. "Anu handles the backend, message her on the group" is enough. A README that ends in a dead end just moves the panic elsewhere.

The 10-minute skeleton

You do not need to invent the structure. Here is a skeleton that covers all five questions. Copy it, fill in the blanks, and you are done in about ten minutes. (The project in the example is invented, just to show the shape.)

Card: an invented example README skeleton with five sections - project name and one line, what you need, how to run, where things live, who to ask
Invented example for illustration. Five headings, filled in, beats a blank page.

Short, slightly boring, and complete. That is the goal. A teammate who lands on this at midnight is running your project in five minutes instead of waking you up.

The copy-paste test

Here is the test that separates real READMEs from decorative ones. Open a fresh, empty folder - or better, borrow a friend's laptop - and follow your own README exactly as written, word for word, pretending you know nothing. Do not use anything you remember. If you have to ask the group chat even one question, the README has failed, and whatever the answer was, that answer now belongs in the README.

This test catches the two most common gaps: a step you do so automatically you forgot to write it down, and a command that only works on your laptop because of something you installed months ago. Both are invisible to you and fatal to everyone else.

Keep it short on purpose

Resist the urge to document everything. GitHub's own guidance is that a README should only contain the information necessary to get started, and that longer documentation belongs elsewhere, like a docs folder or a wiki. The project report, the research, the meeting minutes - none of that is README material. The front page is for getting the next person running; everything else can live one click away, linked from the bottom.

One last rule, the one that decides whether any of this survives the semester: when the setup changes, the README changes in the same edit. New library installed? Add it to "what you need" before you commit. A README that lies is worse than no README, because it costs the next person their trust along with their evening.

That is the whole craft. Five questions, a skeleton, one honest test, kept up to date. Twenty lines of kindness to the next person who opens the folder at midnight - who, statistically speaking, is probably you.

Comments

Popular posts from this blog

The code works. Now explain it.

How to verify AI answers: did anyone open the citations?

It works on my laptop. That's the problem.