Skip to main content

Templates

Type: ExplanationCreated: Last reviewed: Team: Platform
published

What templates are for

A template per doc type. They're reference examples, not enforcement — copy one when you start a doc to skip the blank-page problem and inherit a valid frontmatter shape and a sensible heading skeleton. The validator enforces the actual rules; templates just show what a conforming doc looks like.

The seven templates

TemplateDoc type
Tutorial Templatetutorial — guided learning by doing
How-to Templatehow-to — task-oriented recipe
Reference Templatereference — flat lookup
Explanation Templateexplanation — narrative context
ADR Templateadr — architectural decision (frozen)
Runbook Templaterunbook — operational playbook
Postmortem Templatepostmortem — incident retrospective (frozen)

When templates change

Templates are examples, not enforcement (see above) — editing a template's sections needs no validator change. The one coupling that matters: when you add or remove a doc type, add or remove its template in the same PR as the shared/doc-types.ts entry, so every type has exactly one template.