From documentation-review
Classify, create, review, and maintain documentation using the Diátaxis framework — the four-quadrant system (tutorials, how-to guides, reference, explanation) that separates documentation by user need. Use this skill whenever the user wants to classify documentation into quadrants, perform a documentation gap analysis, check for mode mixing, create documentation following a specific quadrant template, organize docs by type, review documentation for Diátaxis alignment, add diataxis_type frontmatter, split mixed-mode documents, or structure new docs as tutorials vs how-to guides vs reference vs explanation. Also applies when discussing documentation taxonomy, learning-oriented vs task-oriented content, quadrant coverage matrices, cross-reference audits between doc types, or when the user is unsure whether something should be a tutorial or a how-to guide. If the user mentions "Diataxis", "documentation types", "tutorials vs guides", "quadrants", "mode purity", "gap analysis", "documentation classification", "documentation structure", or "documentation organization", this skill likely applies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/documentation-review:diataxisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Most documentation problems stem from mixing different types of content in ways that serve nobody well. A tutorial that drifts into reference material loses beginners; a reference page with step-by-step instructions frustrates experts looking up specifics. Diátaxis solves this by identifying four distinct documentation modes, each serving a different user need at a different moment. Keeping the...
Most documentation problems stem from mixing different types of content in ways that serve nobody well. A tutorial that drifts into reference material loses beginners; a reference page with step-by-step instructions frustrates experts looking up specifics. Diátaxis solves this by identifying four distinct documentation modes, each serving a different user need at a different moment. Keeping these modes separate and well-executed is the foundation of documentation that actually works.
Two fundamental axes classify all documentation:
| Acquisition (study/learning) | Application (work/doing) | |
|---|---|---|
| Action | Tutorial | How-to Guide |
| Cognition | Explanation | Reference |
Diagnostic questions:
The answers place content in exactly one quadrant.
Purpose: Guide a learner through a series of steps to acquire skills and understanding.
Defining characteristics:
Effective tutorials: (A learner in acquisition mode needs confidence and momentum — these principles protect that.)
Anti-patterns to avoid: (These break the learner's momentum and confidence.)
Language and tone:
Structure template:
# Tutorial: [What You Will Build/Learn]
## What you'll learn
[Brief description of skills acquired]
## Prerequisites
[Minimal list — keep this short]
## Steps
### Step 1: [Action]
[Direct instruction]
[Expected result]
### Step 2: [Action]
[Direct instruction]
[Expected result]
...
## What you've accomplished
[Summary of what was built and skills gained]
## Next steps
[Links to related how-to guides and explanation]
Frontmatter:
---
diataxis_type: tutorial
diataxis_learning_goals:
- [skill or concept acquired]
---
Purpose: Direct a competent user through the steps to solve a specific, real-world problem.
Defining characteristics:
Effective how-to guides: (The reader already knows the basics — they need a path to their goal, not a lesson.)
Anti-patterns to avoid: (These slow down a competent user who just wants to get something done.)
Language and tone:
Naming convention:
Structure template:
# How to [Achieve Specific Goal]
## Overview
[One sentence: what this guide helps you accomplish]
## Prerequisites
[What the reader needs before starting]
## Steps
### 1. [First action]
[Instructions with context for decisions]
### 2. [Second action]
[Instructions]
...
## Verification
[How to confirm success]
## Troubleshooting
[Common issues and solutions — optional but valuable]
## Related
- [Link to reference docs for detailed options]
- [Link to explanation for deeper understanding]
Frontmatter:
---
diataxis_type: how-to
diataxis_goal: [what the user accomplishes]
---
Purpose: Provide authoritative, accurate technical descriptions of the machinery and how to operate it.
Defining characteristics:
Effective reference documentation: (A practitioner mid-task needs facts fast — structure and predictability are everything.)
Anti-patterns to avoid: (These force the reader to filter noise while looking up a parameter or return type.)
Language and tone:
Structure template:
# [Component/API/Module Name]
## Overview
[One-line description of what this is]
## [Section matching product structure]
### `function_name(param1, param2)`
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| param1 | string | Yes | Description |
| param2 | int | No | Description (default: 0) |
**Returns:** `ReturnType` — description
**Raises/Errors:**
- `ErrorType` — when condition
**Example:**
\```language
brief_usage_example()
\```
## See also
- [Related reference pages]
- [How-to guides using this component]
Frontmatter:
---
diataxis_type: reference
diataxis_describes: [component, API, or system being documented]
---
Purpose: Deepen understanding through discursive treatment of a topic, providing context, history, and interconnected knowledge.
Defining characteristics:
Effective explanation documentation: (The reader wants to understand the "why" — give them connections and context, not procedures.)
Anti-patterns to avoid: (These pull the reader out of reflective mode into action mode, defeating the purpose.)
Language and tone:
Structure template:
# [Topic]: [Understanding/Context Aspect]
## Background
[Historical context, design decisions, constraints]
## How [topic] works
[Conceptual description — not step-by-step]
## Why [approach] was chosen
[Design rationale, alternatives considered, trade-offs]
## Comparison with alternatives
[Other approaches, their strengths and weaknesses]
## Implications
[What this means for users, architecture, future decisions]
## Further reading
- [Links to tutorials for hands-on learning]
- [Links to reference for technical details]
- [Links to related explanation topics]
Frontmatter:
---
diataxis_type: explanation
diataxis_topic: [conceptual subject being discussed]
---
To classify a document into its Diátaxis quadrant:
diataxis_type based on the dominant modeWhen reviewing documentation against Diátaxis, evaluate:
Per-quadrant criteria:
| Criterion | Tutorial | How-to | Reference | Explanation |
|---|---|---|---|---|
| Purpose clarity | Learning goals stated | Goal/problem stated | Component identified | Topic bounded |
| Mode purity | No reference dumps | No teaching | No instructions | No step-by-step |
| Audience fit | Beginner-appropriate | Competent user | Working practitioner | Curious learner |
| Structure | Step-by-step path | Logical sequence | Mirrors product | Topic-driven |
| Tone | Guided, encouraging | Direct, practical | Austere, factual | Discursive, reflective |
| Completeness | Achieves stated goal | Solves stated problem | Covers all elements | Provides full context |
| Cross-references | Links to how-to, explanation | Links to reference | Links to how-to | Links to reference, tutorial |
Strictness levels:
When creating new documentation:
diataxis_typeWhen updating existing documentation:
diataxis_type from frontmatter (or classify if missing)Analyze a project's documentation to identify missing quadrants:
## Diátaxis Coverage Matrix
| Feature/Component | Tutorial | How-to | Reference | Explanation |
|-------------------|----------|--------|-----------|-------------|
| Authentication | - | Yes | Yes | - |
| API Endpoints | - | - | Yes | - |
| Configuration | - | Yes | - | - |
| Architecture | - | - | - | Yes |
### Gaps Identified
- Authentication: Missing tutorial (getting started) and explanation (auth concepts)
- API Endpoints: Missing how-to guides and tutorials
- Configuration: Missing reference (full config options list)
Verify documentation links correctly between quadrants:
Flag documents with no outgoing cross-references to other quadrants.
The Diátaxis skill reads configuration from .claude/documentation-review.local.md frontmatter:
diataxis:
enabled: true # Default: true — Diátaxis is enabled for all projects
strictness: strict # Default: strict — advisory | standard | strict
require_frontmatter: true # Require diataxis_type in doc frontmatter
doc_paths: [] # Paths to scan (empty = use plugin doc_paths)
quadrant_directories: # Optional: organize docs by quadrant directory
tutorials: docs/tutorials/
how-to: docs/guides/
reference: docs/reference/
explanation: docs/explanation/
Defaults (no config required): Diátaxis is enabled at strict strictness for all projects using the documentation-review plugin. Projects can override by setting diataxis.enabled: false or adjusting strictness in their .claude/documentation-review.local.md.
When diataxis.doc_paths is empty, the skill falls back to the plugin's top-level doc_paths configuration. When that is also absent, require the user to specify paths.
This skill augments the existing documentation-review commands:
/doc-review — When Diátaxis is enabled, adds a "Diátaxis Alignment" dimension to the review report with quadrant classification, mode purity score, and cross-reference completeness/doc-create — When Diátaxis is enabled, asks which quadrant the new document belongs to and applies the appropriate structure template, tone, and frontmatter/doc-update — When Diátaxis is enabled, checks proposed changes for quadrant drift and warns before introducing mixed-mode content/doc-cleanup — When Diátaxis is enabled, includes gap analysis showing missing quadrants per feature/componentFor detailed guidance, consult:
references/compass.md — Full Diátaxis classification decision tree with examplesreferences/quality-criteria.md — Detailed per-quadrant quality criteria and scoring rubricsWorking examples in examples/:
tutorial-example.md — Well-structured tutorial following Diátaxis principleshowto-example.md — Well-structured how-to guide following Diátaxis principlesreference-example.md — Well-structured reference following Diátaxis principlesexplanation-example.md — Well-structured explanation following Diátaxis principlesnpx claudepluginhub zircote-plugins/documentation-reviewApplies the Diátaxis framework to create, restructure, and improve technical documentation. Guides decisions on content type: tutorials, how-tos, reference, or explanation.
Creates, structures, and reviews technical documentation using the Diátaxis framework (tutorials, how-to guides, reference, explanation).
Generates Diataxis four-quadrant docs: tutorials (learn-by-doing), how-to guides (tasks), references (facts), explanations (concepts). For creating, auditing, classifying documentation.