1---2name: readme-writer3description: Writes or improves a project README that explains what the project does, how to install, use and configure it, and how to contribute, based on the actual code. Use when the user asks for a README, better docs for a repository or onboarding instructions.4license: MIT5version: 1.0.16use_when:7 - A project has no README or an outdated one8 - Onboarding new contributors or users9avoid_when:10 - API reference documentation generated from code11---12 13# README writer14 15A README answers, in this order: what is it, why would I use it, how do I get it running, and16where do I go next. Everything in it must be true for the current code.17 18## Research first19 201. Read the package manifest (`package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`, …) for21 the name, scripts, entry points and supported runtime versions.222. Find how the project is started and tested (scripts, `Makefile`, CI workflow files).233. Collect configuration: `.env.example`, config files, command-line flags.244. Check the license file and existing docs so you link instead of duplicating.25 26## Structure27 28```markdown29# Project name30 31One sentence: what it does and for whom.32 33## Features (3–6 bullets, only real ones)34 35## Quick start (copy-pasteable commands from clone to first result)36 37## Usage (the 2–3 most common tasks with examples)38 39## Configuration (table: variable, default, description)40 41## Development (install, test, lint, build commands)42 43## Contributing (or link CONTRIBUTING.md)44 45## License (name + link to the LICENSE file)46```47 48## Style49 50- Commands in fenced code blocks with a language (`bash`, `json`, …), one command per line.51- Use the exact script names from the project (`pnpm test`, not "run the tests").52- Short sentences, second person ("Run …", "Set …"). Explain _why_ only where it is not obvious.53- No badges or screenshots that do not exist yet; leave a TODO comment for the user instead.54- If something is unclear (for example, how to deploy), ask the user rather than inventing it.
README writer
A README answers, in this order: what is it, why would I use it, how do I get it running, and
where do I go next. Everything in it must be true for the current code.
Research first
- Read the package manifest (
package.json, pyproject.toml, Cargo.toml, go.mod, …) for
the name, scripts, entry points and supported runtime versions.
- Find how the project is started and tested (scripts,
Makefile, CI workflow files).
- Collect configuration:
.env.example, config files, command-line flags.
- Check the license file and existing docs so you link instead of duplicating.
Structure
# Project name
One sentence: what it does and for whom.
## Features (3–6 bullets, only real ones)
## Quick start (copy-pasteable commands from clone to first result)
## Usage (the 2–3 most common tasks with examples)
## Configuration (table: variable, default, description)
## Development (install, test, lint, build commands)
## Contributing (or link CONTRIBUTING.md)
## License (name + link to the LICENSE file)
Style
- Commands in fenced code blocks with a language (
bash, json, …), one command per line.
- Use the exact script names from the project (
pnpm test, not "run the tests").
- Short sentences, second person ("Run …", "Set …"). Explain why only where it is not obvious.
- No badges or screenshots that do not exist yet; leave a TODO comment for the user instead.
- If something is unclear (for example, how to deploy), ask the user rather than inventing it.