Skip to content

Docs that live in the repo

Editor
Engineering leadership

Everyone who changes a repo.

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.

A new engineer can clone, run, and test without a hallway walkthrough.

  1. Update the README when run steps change.
  2. Document new env vars and scripts in the same PR.
  3. Link longer specs from the ticket, not only from chat.
  4. Remove or fix any step you just proved is false.