202603031312-diataxis-framework
🎯 Core Idea
Diátaxis is a systematic method for authoring and structuring technical documentation. Its core move is to treat documentation as a set of distinct products that serve distinct user needs, rather than a single continuum of “beginner to advanced” material. Diátaxis names four documentation forms and insists that each has its own purpose, tone, structure, and success criteria: tutorials, how-to guides, reference, and explanation.
The framework is useful because most documentation problems are not caused by a lack of content, but by mixing incompatible intents. A page that tries to both teach and serve as an authoritative spec often fails at both: it becomes too verbose for lookup, too fragmented for learning, and too shallow for understanding. Diátaxis provides an explicit architecture for separating these intents while keeping them cross-linked.
In practice, Diátaxis is both a content taxonomy and a workflow: it helps you diagnose what kind of writing you are doing, choose the right structure, and place it in a navigable system. It also acts as a checklist for coverage: a product with only reference docs is not complete for novices; a product with only tutorials is not usable for experienced users solving specific tasks.
🌲 Branching Questions
➡ What are the four documentation types in Diátaxis, and what user needs do they serve?
Diátaxis splits documentation by user intent, not by topic. Tutorials serve the need to learn by doing: they are guided lessons designed to build a beginner’s competence through a carefully chosen path. How-to guides serve the need to accomplish a specific goal: they assume some prior knowledge and focus on a practical task, often framed as conditional instructions. Reference serves the need to look up authoritative facts: it should be complete, accurate, consistent, and easy to scan. Explanation serves the need to understand: it provides background, mental models, reasoning, and context, answering “why” and “how it works” rather than “how to do it right now.”
A useful way to internalize this is to notice the different success metrics. A tutorial succeeds if a learner completes it and gains confidence. A how-to guide succeeds if a user solves a problem quickly. Reference succeeds if it prevents ambiguity and supports precise use. Explanation succeeds if it changes what the reader can predict or reason about.
➡ How do I decide whether a piece of content should be a tutorial, how-to, reference, or explanation?
Start by identifying what the reader is trying to do at the moment they land on the page. If the goal is skill acquisition, it is a tutorial. If the goal is completing a task, it is a how-to guide. If the goal is retrieving exact information, it is reference. If the goal is building a model of the system, it is explanation.
Then validate using structure and language tests. Tutorials are sequential and narrative; they deliberately hide complexity until the learner is ready. How-to guides are modular and goal-driven; they commonly use imperative steps and focus only on what is needed for the task. Reference is organized for lookup; it uses consistent terminology, enumerations, and stable identifiers. Explanation tolerates breadth and nuance; it can discuss trade-offs, history, rationale, and alternative designs.
If a page feels conflicted, it usually means it contains two different user intents. The fix is rarely to rewrite it “better” as one page; it is often to split it into multiple pages of different types and link them.
➡ How can Diátaxis be applied to improve an existing documentation set without rewriting everything?
Treat it as an audit and refactoring process rather than a rewrite. First, inventory your docs and label each page with its dominant intent. Pages that cannot be labeled cleanly are high-priority candidates for splitting. Second, check for coverage gaps across the four types. Many projects over-invest in reference and under-invest in tutorials and explanations; others ship tutorials but have weak reference.
Next, create navigation that reflects the four forms. This can be as simple as four top-level sections, plus cross-links from tutorials and how-to guides to reference pages, and from reference to explanations that provide rationale. Over time, you can refactor incrementally: as you touch a page, make its type explicit, remove mixed-intent sections, and move that content into a better-fitting page.
Finally, apply quality criteria specific to each type. For example, if a how-to guide starts explaining theory, that explanation likely belongs in an explanation page. If a reference page includes long step-by-step walkthroughs, that content likely belongs in a how-to guide or tutorial.
➡ What are common failure modes Diátaxis helps prevent, and what does “good” look like for each type?
The most common failure mode is intent mixing. Tutorials become bloated when they try to be comprehensive; how-to guides become hard to follow when they try to teach fundamentals; reference becomes untrustworthy when it contains conversational guidance and exceptions scattered across paragraphs; explanation becomes fragmented when it is scattered as small asides across other pages.
Good tutorials are opinionated and carefully scoped: they choose a path that forms a coherent learning experience, and they prioritize momentum over completeness. Good how-to guides are ruthlessly task-focused: they describe prerequisites, then provide clear steps that lead to a result, with minimal detours. Good reference is structured like a specification: predictable layout, complete coverage of parameters and behaviors, and consistency over time. Good explanation respects the reader’s intelligence: it builds causal models, articulates constraints and trade-offs, and helps readers reason about consequences.
📚 References
- https://diataxis.fr/
- https://diataxis.fr/start-here/
- https://diataxis.fr/application/
- https://diataxis.fr/tutorials/
- https://diataxis.fr/how-to-guides/
- https://diataxis.fr/reference/
- https://diataxis.fr/explanation/