Open a repository you have never seen before. The README is the first thing you read, and you decide in about three seconds whether to stay or close the tab. You do not read it. You scan it for four answers: what is this, can I install it, can I see it work, and can I legally use it?

Most READMEs fail that scan. Not because the project is bad, but because the README never answers those four questions. Here is a real example — a short, 27-line README — and the 10 things wrong with it.

The README I tested

This is the risky sample bundled with a README checker. It is a small project, and every line below is the kind of thing that shows up in real repositories:

# Risky Project  ### Advanced Options  Use the advanced mode for more power. ## Installation  Install it somehow, it is easy. [See setup](#setup) and [jump to license](#license). TODO: write the real docs. ## Usage  Just run the tool and it works. ## Contributing  ## Notes  Some notes here. ```text example output with no closing fence 

It renders. It looks like a README. A visitor still leaves in three seconds, because nothing here answers the four questions: what is this, how do I install it, how do I use it, and can I legally use it?

The run

I ran a checker over that file. It has 13 rules — 9 critical, 4 warnings — and checks structure only: headings, sections, links, code fences, placeholders. Verbatim output:

README: references/risky.md Verdict: FAIL findings: 10 (7 critical, 3 warning) Headings: 6; sections found: contributing, install, usage [CRITICAL] missing-intro references/risky.md:1: no intro paragraph after the title [CRITICAL] missing-section-license references/risky.md:1: no license section found [WARNING] skipped-heading-level references/risky.md:3: heading jumps from H1 to H3 [CRITICAL] install-without-command references/risky.md:7: installation section names no install command [CRITICAL] broken-internal-anchor references/risky.md:11: internal anchor '#setup' matches no heading [CRITICAL] broken-internal-anchor references/risky.md:11: internal anchor '#license' matches no heading [WARNING] placeholder-text references/risky.md:13: placeholder text found [CRITICAL] usage-without-example references/risky.md:15: usage section shows no code example [CRITICAL] empty-section references/risky.md:19: section 'Contributing' has no content [WARNING] unclosed-code-fence references/risky.md:26: fenced code block is never closed 

10 findings, 7 of them critical. Exit code 1 — it fails the gate. Every finding names the file and line, so you know exactly where to fix.

The 7 critical ones, in plain words

1. No intro paragraph. The title is followed by a heading, not a sentence. A visitor learns the project name and nothing else. What to write: one sentence under the title saying what it is and who it is for.

2. No license section. There is no license heading at all, so a visitor cannot tell whether they are allowed to use the code. What to add: a License section naming the license and pointing at the license file.

3. Installation names no command. "Install it somehow, it is easy" is not an instruction. Nobody can install from that sentence. What to write: the exact command, in a code block, copy-pasteable.

4. Two links point nowhere. [See setup](#setup) and [jump to license](#license) both 404 inside the file itself — there is no #setup heading and no license section. A reader who clicks gets nothing, and the README's own links prove nobody tested them. What to do: link only at headings that exist, and check the anchors after every heading rename.

5. Usage shows no example. "Just run the tool and it works" tells the reader nothing about how to run it. What to write: one real command with a real argument, and what it prints.

6. An empty section. The Contributing heading has no content under it. An empty section is worse than no section: it promises guidance and delivers a blank. What to do: either write the two sentences that belong there, or delete the heading.

The 3 warnings

Skipped heading level. The file jumps from H1 straight to H3. It renders fine, but the document outline is broken for screen readers and for anyone navigating by headings. Keep the levels in order: H1, then H2, then H3.

Placeholder text. "TODO: write the real docs" is still in the file. It tells every visitor the docs were never finished. Remove every TODO before you push — or write the docs.

Unclosed code fence. The last fenced block never closes, so everything after it renders as code. One missing triple-backtick swallows the rest of the page. Close every fence you open.

The fixed version

Same project, same intent, all 10 findings gone:

# Risky Project  A small command-line tool that prints a greeting. It runs offline and has no dependencies. ## Installation  Install it from PyPI: ```sh pip install risky-project ```  ## Usage  Run it with a name: ```sh risky-project world ```  ## Examples  More greetings: ```sh risky-project Mars risky-project "the Moon" ```  ## Advanced Options  Use the advanced mode for more power: ```sh risky-project world --loud ```  ## Contributing  Contributions are welcome. Please open an issue first so we can agree on the change. ## License  MIT. See [LICENSE](LICENSE) for the full text. [Back to installation](#installation) 

I verified this passes:

README: /tmp/readme-article5/fixed.md Verdict: PASS findings: 0 (0 critical, 0 warning) Headings: 7; sections found: contributing, install, license, usage 

Exit code 0. The fixes are boring on purpose: one sentence saying what it is, a real install command, a real usage example, a license section, links that point at real headings, no placeholders, no empty sections, every fence closed.

The 3-second test you can run on your own README

Before you push, answer these seven questions. If any answer is no, a visitor will feel it in three seconds:

  1. Is there one sentence under the title saying what this is and who it is for?
  2. Does Installation contain a command I can copy and paste?
  3. Does Usage show a real example, not "just run it"?
  4. Is there a License section?
  5. Does every internal link point at a heading that exists?
  6. Is there any TODO, lorem ipsum, or empty section left?
  7. Is every code fence closed?

What the checker does not catch

Honest limits. It checks structure, not writing. It cannot tell whether your intro is clear, whether your install command actually works, or whether your example is correct — a README can pass all 13 rules and still confuse a reader. It does not fetch external links, so a dead link to another site will not be flagged. It does not judge tone or completeness of the explanation. A PASS means the structure is complete, not that the README is good. Read it once out loud as a first-time visitor: if you cannot install and run the project from the README alone, the structure was never the problem.

How to run it

The tool is a single Python script, standard library only, offline. Point it at a README file or a directory:

python3 scripts/readme_check.py check --readme README.md 

Default mode fails on critical findings only. Add --fail-on warning to make every finding block the gate, and --json-out report.json --md-out report.md for reports you can keep with the release. Reports never contain the README text itself.

For comparison, a clean README passes with 0 findings — I verified that too:

README: references/clean.md Verdict: PASS findings: 0 (0 critical, 0 warning) Headings: 6; sections found: contributing, install, license, usage 

The tool

The checker above is README Structure Checker — 13 rules, offline. If you would rather not proofread your README by hand before every push, it is there.

Disclosure: this is my own tool, listed on Capafy. The README above is the checker's bundled risky sample; the checker output is real and unedited.