X.4.1 · Skill in Communication

Technical writing and documentation

Clear, accurate writing about technical things.

Technical writing covers design docs, READMEs, specs and documentation. Good technical writing is structured, concrete and written for a specific reader. It scales an engineer's influence beyond the people they talk to.

Your status · Technical writing and documentation

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Code shows what a system does, not why it was built that way or how to use it. Design docs, READMEs, specs and runbooks carry that knowledge to people you will never talk to, including future you. A clear document lets a reviewer find a problem while it is still cheap to fix. It also lets a new teammate start without a meeting. As more code is written by agents, written intent matters more: it is what both people and agents work from.

How to do it

  1. Name the reader and what they need to do after reading.
  2. Start with the context and the goal, then the details.
  3. Keep one kind of document per page: a tutorial, a how-to guide, a reference or an explanation.
  4. Use short sentences, lists for steps, and a diagram where words get long.
  5. Ask someone from the target audience to use the document, and fix where they get stuck.

Common mistakes

  • Writing for yourself, with steps you skip because you already know them.
  • A wall of text where a list or a table would be clearer.
  • Mixing a tutorial, a reference and a design rationale in one page.
  • Documents that are never updated, so readers stop trusting them.

Example

Malte Ubl describes how Google uses design docs. They are informal, but most follow the same structure, and the part that matters most is the trade-offs. Non-goals are things that could reasonably be goals but were chosen not to be. Alternatives considered explain why the other designs lost. For a larger project, the sweet spot is about 10 to 20 pages, and a one-to-three-page “mini design doc” is also possible.

Anatomy

The usual sections of a design doc at Google

Context and scope1 Goals and non-goals2 The actual design3 Alternatives considered4 Cross-cutting concerns5

  1. 1The factsA rough overview of the landscape and what is being built
  2. 2What it must do, and what it will not
  3. 3Overview first, then the details
  4. 4Why the other designs lost
  5. 5Security, privacy, observability

Most of the value is in the trade-offs: what the design will not do, and why the alternatives were not chosen.

ReportedMalte Ubl, Design docs at Google

Sources: Design docs at Google (Malte Ubl) ↗ · Technical writing one (Google for Developers) ↗ · Diátaxis (Daniele Procida) ↗

Resources

3
  • courseStart here
    Technical writing one ↗
    Google for Developers · free course

    Google's free course for engineers on clear sentences, lists, paragraphs and audience.

  • articleStart here
    Design docs at Google ↗
    Malte Ubl · 2020 · 21 min

    How a short document with goals, non-goals and alternatives considered makes trade-offs explicit before code.

  • docsStart here
    Diátaxis ↗
    Daniele Procida · free guide

    Four kinds of documentation (tutorials, how-to guides, reference, explanation) and why mixing them fails.

Tools

2
  • ToolOpen source
    Vale

    Prose linter that checks docs against a style guide, in the editor or in CI.

  • ToolOpen source
    Mermaid

    Diagrams written as text, rendered in docs, READMEs and pull requests.