The most useful single idea in technical writing is that documentation comes in distinct kinds. The Diátaxis framework identifies four distinct needs, and four corresponding forms of documentation: tutorials, how-to guides, technical reference and explanation. It proposes organizing documentation around those needs.
Diátaxis's primer describes each one.
| Kind | Purpose | Reader's situation | Example |
|---|
| Tutorial | A lesson that builds skill through doing | Learning, new to the product | "Build your first integration" |
| How-to guide | Directions for a real-world goal | Working, already competent | "How to rotate API keys" |
| Reference | Accurate technical description | Working, looking something up | Endpoint parameters, config options |
| Explanation | Context and background, the why | Studying, wants to understand | "How our caching works" |
The distinctions are practical. The primer describes a tutorial as a lesson in which the instructor is responsible for the learner's safety and success, while a how-to guide addresses an already-competent user and is concerned with work rather than study. Reference material is neutral and should mirror the structure of the thing it describes, so a method that belongs to a class appears under that class in the docs.
The most common mistake the framework warns about is overloading tutorials with explanation. The primer's advice is to give the learner the most minimal explanation, such as one sentence on why a step uses HTTPS, and link to an in-depth article for later.
Tom Johnson's overview of Diátaxis on I'd Rather Be Writing summarizes the premise: each content type serves a different user need, and keeping them separated lets each be structured for its own goal. How-to guides, for example, take a recipe shape with prerequisites and ordered steps.
GitHub's documentation guide suggests using the framework as an audit: check whether a tool you use has a reference page, whether there are enough tutorials for contributors to get started, and whether how-to guides explain some of the common tasks people need to accomplish.