diataxis

Installation
SKILL.md

Diataxis — User-Facing Documentation

The Diataxis framework splits user-facing documentation into four modes that serve different reader needs. Most "bad documentation" comes from mixing modes — a tutorial that gets reference-dumpy, a reference that wanders into design rationale, a how-to that pauses to teach concepts. Pick the mode first; the template flows from that.

Typical requests: "write a tutorial", "create a how-to", "document the API", "explain why we chose", "generate config docs", "build a reference", "write user docs for X", and any open-ended request to produce user-facing documentation.

Cross-mode bleed to avoid: no comprehensive API listings inside a tutorial, no learning exercises inside reference docs, no step-by-step procedures inside an explanation.

The four modes

Mode Reader is Reader wants Output is
Tutorial a beginner to learn by doing a guided practice exercise
How-to guide competent to solve a specific problem a goal-oriented procedure
Reference already knows what they need to look up exact specifications comprehensive, scannable lookup
Explanation experienced to understand why a conceptual narrative

The reader's state and intent decide the mode, not the topic. The same feature can have all four — a tutorial that walks a beginner through using it, a how-to that solves a specific problem with it, a reference that lists every option, and an explanation of why it works the way it does.

Installs
2
GitHub Stars
6
First Seen
Aug 24, 2026