Repository README Writer
Create or improve repository READMEs that help humans and agents understand the project quickly without overfitting to fragile implementation details.
Decision Tree
What kind of README work is this?
Creating a new README from a repository
Read references/repository-audit.md, then use templates/repository-readme.md.
Improving an existing README
Read references/rewrite-patterns.md, then preserve useful sections and remove stale or overly specific material.
Fixing only the setup path
Read references/quickstart-design.md and make the quickstart the shortest verified path from clone to useful local feedback.
Reviewing README quality without editing yet
Run python3 scripts/repo_readme_probe.py <repo> and use templates/readme-review.md.
Unsure which path applies
Start with references/foundations.md, then inspect the repository before writing.
Quick Reference
| Task |
Do this |
Read |
| Draft a new README |
Inspect purpose, package manager, commands, config, checks, and deployment signals before writing |
references/repository-audit.md |
| Improve an existing README |
Keep accurate high-signal content, cut brittle inventory, add or repair quickstart |
references/rewrite-patterns.md |
| Design quickstart |
Use the fewest commands needed to install, configure, run, and verify |
references/quickstart-design.md |
| Avoid over-documenting |
Keep implementation detail out unless it changes day-one usage |
references/foundations.md |
| Catch common failures |
Check version pins, path inventories, stale commands, and agent-hostile wording |
references/gotchas.md |
| Get repo signals quickly |
Run python3 scripts/repo_readme_probe.py <repo> |
references/repository-audit.md |
Operating Contract
- Inspect before writing. A README that guesses commands, package managers, ports, or deployment shape is worse than no README.
- Write for first successful use. The reader needs purpose, quickstart, local development, configuration, quality checks, and where to look next.
- Prefer stable concepts over fragile paths. Name apps, services, packages, and boundaries by role; avoid directory tours unless the layout is the user-facing interface.
- Avoid pinned tool versions in prose. Point readers to the repository's version manager, lockfile, manifest, or CI config when exact versions matter.
- Keep examples executable and few. A README should show the happy path and the main verification command, not every script in the project.
- Make it safe for AI agents. Do not over-constrain future agents with brittle rules, exhaustive inventories, or stale assumptions that they may follow verbatim.
Default README Shape
Use this shape unless the repository clearly calls for a different one.
- Title
- One-sentence project summary
- Quickstart
- Project shape or architecture boundary
- Configuration
- Local development
- Quality checks
- Deployment or release notes, if discoverable
- Troubleshooting, only for common day-one failures
For small repositories, merge related sections. For large repositories, keep the root README high-level and link to dedicated docs instead of copying them.
Section Standards
Summary
Say what the project is and what it is for in one or two sentences. Do not open with internal tooling unless the tooling is the product.
Quickstart
Always include a quickstart. It should move from install to running to a visible verification point. If configuration is required, include only the minimum local setup.
Project Shape
Explain boundaries and responsibilities at a level that survives file moves. Prefer "the CMS owns content and the website reads through server-side API routes" over a tree of paths.
Configuration
Name required environment variables or configuration groups only when they are necessary for local use or deployment. Avoid dumping every variable.
Quality
Give the single shared quality gate first. Add targeted commands only when they help a common workflow.
Deployment
Document the deployment model and required services. Avoid provider-specific minutiae unless the repository clearly depends on them.
Templates
Gotchas
- A path inventory feels helpful on day one and becomes stale after the first refactor.
- Exact version prose rots faster than manifests, lockfiles, version manager files, and CI.
- A giant command catalog hides the one command a new contributor actually needs.
- A README written only for humans may omit machine-useful commands; a README written only for agents may become too literal and brittle.
- If quickstart commands are not verified, label uncertainty or inspect further before presenting them as authoritative.
Reading Guide
| Need |
Read |
| Core README philosophy and section rules |
references/foundations.md |
| Repository inspection workflow and evidence ranking |
references/repository-audit.md |
| Quickstart structure, command selection, and verification |
references/quickstart-design.md |
| Existing README rewrite tactics |
references/rewrite-patterns.md |
| Failure modes and recovery patterns |
references/gotchas.md |
1---2name: repository-readme-writer3description: Create or improve concise, useful, agent-safe repository READMEs. Use for new README drafts, rewrites, quickstarts, local setup, getting started, contributor docs, or README reviews. Do NOT use for API reference, full product docs, changelogs, or landing pages.4---56# Repository README Writer78Create or improve repository READMEs that help humans and agents understand the project quickly without overfitting to fragile implementation details.910## Decision Tree1112What kind of README work is this?1314- Creating a new README from a repository15 Read `references/repository-audit.md`, then use `templates/repository-readme.md`.1617- Improving an existing README18 Read `references/rewrite-patterns.md`, then preserve useful sections and remove stale or overly specific material.1920- Fixing only the setup path21 Read `references/quickstart-design.md` and make the quickstart the shortest verified path from clone to useful local feedback.2223- Reviewing README quality without editing yet24 Run `python3 scripts/repo_readme_probe.py <repo>` and use `templates/readme-review.md`.2526- Unsure which path applies27 Start with `references/foundations.md`, then inspect the repository before writing.2829## Quick Reference3031| Task | Do this | Read |32|---|---|---|33| Draft a new README | Inspect purpose, package manager, commands, config, checks, and deployment signals before writing | `references/repository-audit.md` |34| Improve an existing README | Keep accurate high-signal content, cut brittle inventory, add or repair quickstart | `references/rewrite-patterns.md` |35| Design quickstart | Use the fewest commands needed to install, configure, run, and verify | `references/quickstart-design.md` |36| Avoid over-documenting | Keep implementation detail out unless it changes day-one usage | `references/foundations.md` |37| Catch common failures | Check version pins, path inventories, stale commands, and agent-hostile wording | `references/gotchas.md` |38| Get repo signals quickly | Run `python3 scripts/repo_readme_probe.py <repo>` | `references/repository-audit.md` |3940## Operating Contract41421. Inspect before writing. A README that guesses commands, package managers, ports, or deployment shape is worse than no README.432. Write for first successful use. The reader needs purpose, quickstart, local development, configuration, quality checks, and where to look next.443. Prefer stable concepts over fragile paths. Name apps, services, packages, and boundaries by role; avoid directory tours unless the layout is the user-facing interface.454. Avoid pinned tool versions in prose. Point readers to the repository's version manager, lockfile, manifest, or CI config when exact versions matter.465. Keep examples executable and few. A README should show the happy path and the main verification command, not every script in the project.476. Make it safe for AI agents. Do not over-constrain future agents with brittle rules, exhaustive inventories, or stale assumptions that they may follow verbatim.4849## Default README Shape5051Use this shape unless the repository clearly calls for a different one.52531. Title542. One-sentence project summary553. Quickstart564. Project shape or architecture boundary575. Configuration586. Local development597. Quality checks608. Deployment or release notes, if discoverable619. Troubleshooting, only for common day-one failures6263For small repositories, merge related sections. For large repositories, keep the root README high-level and link to dedicated docs instead of copying them.6465## Section Standards6667### Summary6869Say what the project is and what it is for in one or two sentences. Do not open with internal tooling unless the tooling is the product.7071### Quickstart7273Always include a quickstart. It should move from install to running to a visible verification point. If configuration is required, include only the minimum local setup.7475### Project Shape7677Explain boundaries and responsibilities at a level that survives file moves. Prefer "the CMS owns content and the website reads through server-side API routes" over a tree of paths.7879### Configuration8081Name required environment variables or configuration groups only when they are necessary for local use or deployment. Avoid dumping every variable.8283### Quality8485Give the single shared quality gate first. Add targeted commands only when they help a common workflow.8687### Deployment8889Document the deployment model and required services. Avoid provider-specific minutiae unless the repository clearly depends on them.9091## Templates9293- `templates/repository-readme.md`94 Use as the default shell for new READMEs.9596- `templates/readme-review.md`97 Use when reporting README issues before editing.9899## Gotchas1001011. A path inventory feels helpful on day one and becomes stale after the first refactor.1022. Exact version prose rots faster than manifests, lockfiles, version manager files, and CI.1033. A giant command catalog hides the one command a new contributor actually needs.1044. A README written only for humans may omit machine-useful commands; a README written only for agents may become too literal and brittle.1055. If quickstart commands are not verified, label uncertainty or inspect further before presenting them as authoritative.106107## Reading Guide108109| Need | Read |110|---|---|111| Core README philosophy and section rules | `references/foundations.md` |112| Repository inspection workflow and evidence ranking | `references/repository-audit.md` |113| Quickstart structure, command selection, and verification | `references/quickstart-design.md` |114| Existing README rewrite tactics | `references/rewrite-patterns.md` |115| Failure modes and recovery patterns | `references/gotchas.md` |