Find a course

Module 4: Common Document TypesLesson 9 of 1312 min

READMEs and Getting-Started Guides

Write a README that answers what, why and how in the first screen, and a getting-started guide that takes a new user to a first success fast.

Step 1 of 12Learn

The front door of a project

For a software project, the README is the front door. It is usually the first thing a potential user, contributor or employer sees, and many decide within a minute whether to keep going.

A good README answers, in roughly this order:

  1. What is it? One or two sentences: "Tidy is a command-line tool that renames photo files by the date they were taken."
  2. Why would I use it? The problem it solves, and for whom.
  3. How do I install it? The exact command or steps.
  4. How do I use it? The smallest useful example, with its output.
  5. Where do I learn more? Links to full docs, configuration, FAQ.
  6. How do I get help or contribute? Issue tracker, contribution guide, code of conduct.
  7. License. Which license applies.

The most common README failure is starting with the wrong thing: a long history of the project, a wall of badges, or installation instructions before the reader knows what the tool does. The second most common is an example that doesn't run, because the README was written for an older version.

Think of the first screen of the README as an elevator pitch plus a demo. If a reader stops after 30 seconds, they should still know what it is and whether it's for them.

Step 2 of 12Practice · Put in order

Put these README sections in a sensible order.

Drag the items, or use the arrow buttons, to put them in order.

  1. The problem it solves and who it is for
  2. One-sentence description of what the project is
  3. How to contribute and the license
  4. Links to full documentation
  5. Installation
  6. A minimal usage example

Step 3 of 12Diagram

Who reads how far into a README

Every section loses readers, so the top must answer "is this for me?" fast.

Who reads how far into a READMEFunnel diagram: Everyone who lands, Think it fits their need, Decide to try it, Become users, Contribute.Everyone who landsThink it fits their needDecide to try itBecome usersContribute

Tap a shape with to see more.

Everyone who lands

Reads the one-line description.

Think it fits their need

Reads the problem and audience.

Decide to try it

Install and run the example.

Become users

Follow links to full docs.

Contribute

Read the contributing guide and license.

Step 4 of 12Learn

The quick start

A getting-started guide or quick start takes a new user from nothing to a first meaningful success as fast as possible. Developer experience teams sometimes track a metric for this, often called time to first success or time to first "hello world": how long it takes a new user to get something working.

What makes a quick start work:

  • One path. Make choices for the reader. If there are four ways to install, pick the most common one here and link to the others.
  • Real, copyable commands. Every command should run as written. Use code blocks so readers can copy them, and avoid putting the shell prompt symbol inside the block, which breaks copy and paste.
  • Expected output. After each command, show what the reader should see. It confirms success and makes errors obvious.
  • Placeholders that are clearly placeholders. Write YOUR_API_KEY in capitals, and explain where to find the real value.
  • A visible finish line. End with the result: "You've sent your first message. It appears in the dashboard under Activity."
  • Next steps. Two or three links to what most users do next.

Keep explanations short. The quick start is not the place to teach the whole architecture; link to explanation pages for readers who want depth.

Step 5 of 12Practice · Diagram

A quick start in five moves

One path from nothing to a first success. Tap each move.

Tap the move that lets readers confirm it worked.

Tap the shape that answers the question, then press Check.

A quick start in five movesProcess diagram: Install → Add your key → Run one command → See the expected output → Finish line and next steps.InstallAdd your keyRun one commandSee the expectedoutputFinish line and nextsteps
Install

One command, the most common method.

Add your key

YOUR_API_KEY in capitals, with where to find it.

Run one command

Copyable, no prompt symbol in the block.

See the expected output

Confirms success, exposes errors.

Finish line and next steps

"You've sent your first message."

Step 6 of 12Practice · Select all that apply

Which of these make a quick start guide more effective? Select all that apply.

Select all that apply.

Step 7 of 12Note

Step 8 of 12Learn

Code samples that help

In developer documentation, code samples are often the part people read first and copy most. Treat them as carefully as the prose.

  • Make them runnable. A sample should work when pasted, apart from clearly marked placeholders. Snippets that depend on undefined variables frustrate readers.
  • Keep them minimal. Show the one concept the section is about. Remove unrelated configuration, logging and error handling unless they are the point.
  • Use realistic names. customer_email and order_total teach more than foo and bar.
  • Explain what matters, either in a sentence before the sample or a short comment inside it. Don't comment every line.
  • Show output where it helps the reader confirm the result.
  • Specify the language and version when behavior depends on it.
  • Test samples automatically if you can. Many teams extract samples from the docs and run them as part of their build, so broken examples are caught before readers see them.

One more point about security: never use real credentials, tokens or customer data in samples, even old ones. Use placeholders or obviously fake values.

Step 9 of 12Compare

Code sample: before and after

AspectFrustratingHelpful
Runs?Fragment missing importsComplete and runnable
Copy-paste$ npm install tidy (prompt included)npm install tidy
Placeholderskey = "abc123"key = "YOUR_API_KEY"
OutputNot shownExpected output shown below

Step 10 of 12Practice · Spot the mistake

Tap the three problems in this quick start excerpt.

Step 11 of 12Practice · True or false

In a quick start guide, it's better to offer every installation method so all readers are covered.

Step 12 of 12Practice · What would you do?

What would you do?

Analytics show that most visitors to your project's README leave before reaching the installation section. The README opens with a three-paragraph history of the project and a row of 14 badges. What's the best change?