Structuring a README that converts visitors into CLI runs
Many open-source README files bury the install command below six badges and three paragraphs of repo backstory. Working engineers scan a README fast. They give a new repo roughly fifteen seconds to answer two direct questions: what exact job does this CLI command perform, and what output prints to the terminal when I run the command right now?
1. Put a runnable CLI command above the fold
Keep the top of the README mechanical. Start with one plain line naming the input file format and the CLI output file. Put one copyable CLI command right beneath that line alongside the real terminal output an engineer will see on screen, skipping oversized logo art that shoves runnable commands off a standard laptop screen.
$ bunx tsup src/index.ts --dts --format esm,cjs CLI Building entry: src/index.ts ESM dist/index.mjs 4.12 KB CJS dist/index.js 4.38 KB DTS dist/index.d.ts 1.09 KB (done in 182ms)
Real terminal output removes guesswork right away. Readers see emitted output paths and CLI run time in milliseconds before running an install command. Whenever your CLI supports a dry-run flag or stdin input, show that flag in the first README command so engineers can test safely on local repo files.
2. Pin every README benchmark table to real hardware
Unverified speed claims make senior engineers close the README. Writing that a CLI runs ten times faster without naming the input fixture size or CPU reads like ad copy. Every README benchmark table should state the exact CPU model and OS version alongside warm versus cold cache state and a direct repo link to the benchmark script.
| README section | Weak marketing pattern found in docs | Empirical README pattern that drives CLI runs |
|---|---|---|
| Top summary line | Blazing-fast modern build engine built for teams | Bundles 300 TypeScript files in 190ms on an M3 Pro laptop |
| Install size note | Lightweight minimal package for modern developer stacks | Ships with 2 runtime dependencies and 420 KB unpacked install size |
| Config example | Abstract bullet list of high-level CLI features | 12-line copyable config file showing the exact typed CLI output object |
| Known CLI limits | Left out of the README docs completely | Direct list of unsupported plugins and known CLI edge cases |
3. Cut filler adjectives from README docs
Edit every README section hard before tagging a repo release. Cut vague modifiers that pad the README without stating real limits, swapping subjective labels for exact byte counts and real CLI exit codes. Engineers trust a README that saves them ten minutes during an outage. Link your config table straight from each quickstart CLI flag so readers never hunt through nested wiki pages to check default values.
- Group CLI flags by shipping task: organize README options around real tasks instead of alphabetical flag tables.
- Document top setup errors inside the README: a short troubleshooting block covering the three most common CLI setup errors cuts repeat repo issue threads sharply.
- Test README commands in CI runs: execute your README quickstart commands on every PR so docs stay accurate after refactors.