Docs that live in the repo
Who this is for
Section titled “Who this is for”Everyone who changes a repo.
When to use it
Section titled “When to use it”When you add a system, a script, or a way of running the project.
- Must: Every repo has a README that says what it is, how to run it locally, and how to test it.
- Must: If you add a script, env var, or deploy step, document it in the same change.
- Must: Do not put secrets in the README. Point to how secrets are loaded. See Secrets.
- Should: Keep runbooks next to the code they describe. Link them from the ticket when they matter to ship.
- Should: Delete docs that are wrong. Wrong docs are worse than missing docs.
- Team decides: Extra docs (ADRs in
/docs, wiki). Decision records still follow writing.
What good looks like
Section titled “What good looks like”A new engineer can clone, run, and test without a hallway walkthrough.
What to do
Section titled “What to do”- Update the README when run steps change.
- Document new env vars and scripts in the same PR.
- Link longer specs from the ticket, not only from chat.
- Remove or fix any step you just proved is false.