Skip to main content

Pick the Right Doc Type

Type: ReferenceCreated: Last reviewed: Team: Platform
published

Why types matter

Every doc in the handbook is exactly one type. The type sets the shape of the doc, the reading mode the reader expects, and which template you start from. Mixing types — half tutorial, half reference — is the number one way docs become unreadable.

Pick the right type

A short decision tree:

  1. Is the reader learning something new? → Tutorial
  2. Are they trying to do a task?
    • A routine task → How-to
    • An incident-response playbook → Runbook
  3. Are they trying to understand or look up?
    • Look up a specific fact → Reference
    • Grasp a concept or why something is the way it is → Explanation
  4. Are you recording a moment in time?
    • A decision you made → ADR (Architectural Decision Record)
    • An incident that happened → Postmortem

The seven types

TypeFor a reader who...ExampleTemplate
Tutorialis learning — needs to be taught"Build your first API endpoint"tutorial.md
How-toknows the area, needs a recipe"Add a new OAuth provider"how-to.md
Runbookis on-call, fixing a known issue"Database connection pool exhausted"runbook.md
Referenceis looking up a factAPI endpoint listingreference.md
Explanationis trying to understand"How auth tokens work"explanation.md
ADR (Architectural Decision Record)wants to know why we chose X (frozen)"Postgres over MongoDB for the user store"adr.md
Postmortemis reading lessons from an incident (frozen)"Cache stampede caused 8-minute outage"postmortem.md

Append-only types

ADR and Postmortem are append-only. Once published, they don't get edited (not the updates but corrections or extentions might allowed) even if the decision later changes or new evidence emerges. Instead, write a new doc that supersedes the old one. This preserves the historical record: a future reader can see what was known at the time, not just where we ended up.

Adding a doc type

Carefully check the implementation and add it in places needed and do the through test. Don't add slugs preemptively — only when a real type needed.