Diataxis Classification Review
Scope
Diataxis classification only: identify whether each page is a tutorial,
how-to guide, explanation, or reference; note structural mismatches
between content type and declared category, and suggest improvements
where real issues exist.
Ground classification in the Diataxis foundations: the two axes of craft
(action vs cognition, acquisition vs application) define four user needs
(learning, goals, information, understanding).
This skill identifies flaws and provides actionable recommendations;
it does not enforce compliance or apply pass/fail criteria.
Inputs
- Documentation file(s) under review.
- Diataxis framework principles (embedded in classification criteria below).
Actions
Identify intended category: Determine the declared category
based on directory location
(tutorial/, how-to/, explanation/, reference/)
and file metadata (front matter keys such as category, type,
diataxis, or reST .. meta:: entries).
Infer actual category: Analyse the text's structure, tone,
and progression to determine which quadrant it actually resembles.
Use these classification criteria:
Tutorial indicators:
- Step-by-step progression building a complete project
- Imperative mood ("Create a file", "Run this command")
- Learning-focused language ("you will learn", "by the end")
- Safe, controlled environment (specific versions, no branching)
- Frequent reassurance and checkpoints
- Teaches by doing, not explaining
How-to guide indicators:
- Problem-solution format with clear goal
- Assumes existing knowledge and competence
- Clearly states prerequisites and applicability scope
- Action-oriented ("To achieve X, do Y")
- Flexible, allows for variation
- Focuses on results, not learning
- Omits explanations unless critical to success
Reference indicators:
- Descriptive, declarative statements
- Comprehensive coverage of subject
- Neutral, technical tone
- Structured for lookup (tables, lists, alphabetical)
- Parameters, options, API signatures
- Accuracy over narrative
Explanation indicators:
- Conceptual focus ("why" and "how it works")
- Discursive, exploratory tone
- Comparative analysis
- Context, background, relationships
- Illuminates understanding, not action
- May include history, design decisions, alternatives
- May contain subjective opinions and personal perspectives
Check user need alignment:
Map the page to the user need implied by the action/cognition and
acquisition/application axes (learning, goals, information,
understanding).
- Tutorials: Is it a learning-oriented lesson?
Does it build confidence through doing? Is it linear and safe?
- How-to guides: Is it a task-oriented recipe?
Does it help a competent user solve a specific problem?
Is it goal-focused?
- Reference: Is it information-oriented?
Does it describe things accurately and completely?
Is it structured for lookup?
- Explanation: Is it understanding-oriented?
Does it clarify concepts, context, and relationships?
Is it discursive?
Note hard-to-fit genres: Some documentation types do not align
cleanly with a single quadrant (for example, release notes or
contributing guides). Flag these cases explicitly, reference the
Diataxis guidance on complex hierarchies
(https://diataxis.fr/complex-hierarchies/), and choose the closest
fit category for reporting.
Evaluate quality:
Functional quality: Is the content accurate, complete,
consistent, useful, and precise?
- Missing prerequisites or dependencies
- Incomplete steps or procedures
- Inconsistent terminology or naming
- Outdated information (version mismatches, deprecated features)
Deep quality: Does the content have good flow?
Does it anticipate user questions?
Is the cognitive load appropriate? Is the experience clear?
- Paragraph length (>4 sentences may suggest need for breaking)
- Sentence complexity (nested clauses, dense jargon)
- Transition quality (abrupt topic changes, missing connectives)
- Progressive disclosure (introducing too much too soon)
- User journey mapping (gaps in expected flow)
Document misalignments: Explicitly identify where the document
fails to meet the needs of its category, jumps between categories,
or where quality breaks down. For each issue, provide:
- Specific location (section, paragraph)
- Nature of the problem
- Impact on user experience
- Concrete suggestion for improvement
Verify completion: Confirm the analysis completed:
- Category classification completed (declared vs inferred)
- User need alignment analyzed
- Quality assessment performed (functional and deep quality)
- Misalignments documented with recommendations
State the completion status:
✓ Diataxis analysis complete: [declared category] → [inferred category], [N] issues found
- OR
✓ Diataxis analysis complete: Content aligns well with [category]
Constraints
- Do not ignore the Diataxis framework.
- Assign each page to exactly one quadrant.
- Do not introduce categories beyond the four quadrants.
Output
A Diataxis Analysis Report detailing:
- Declared category (from metadata/directory structure).
- Inferred category (from content analysis).
- User need alignment analysis (which quadrant best serves the user).
- Functional quality findings (with specific examples).
- Deep quality findings (with specific examples).
- Identified issues and actionable recommendations for improvement.
If no significant issues are found, state that the documentation
aligns well with its intended category.
1---2name: documentation-diataxis-23description: Analyzes documentation against Diataxis framework (Tutorial, How-to, Reference, Explanation). Use when reviewing documentation structure or classifying content type. Identifies misalignments between declared category and actual content.4---56# Diataxis Classification Review78## Scope910Diataxis classification only: identify whether each page is a tutorial,11how-to guide, explanation, or reference; note structural mismatches12between content type and declared category, and suggest improvements13where real issues exist.14Ground classification in the Diataxis foundations: the two axes of craft15(action vs cognition, acquisition vs application) define four user needs16(learning, goals, information, understanding).1718This skill identifies flaws and provides actionable recommendations;19it does not enforce compliance or apply pass/fail criteria.2021## Inputs2223- Documentation file(s) under review.24- Diataxis framework principles (embedded in classification criteria below).2526## Actions27281. **Identify intended category**: Determine the declared category29 based on directory location30 (`tutorial/`, `how-to/`, `explanation/`, `reference/`)31 and file metadata (front matter keys such as `category`, `type`,32 `diataxis`, or reST `.. meta::` entries).33342. **Infer actual category**: Analyse the text's structure, tone,35 and progression to determine which quadrant it actually resembles.36 Use these classification criteria:3738 - **Tutorial indicators**:39 - Step-by-step progression building a complete project40 - Imperative mood ("Create a file", "Run this command")41 - Learning-focused language ("you will learn", "by the end")42 - Safe, controlled environment (specific versions, no branching)43 - Frequent reassurance and checkpoints44 - Teaches by doing, not explaining4546 - **How-to guide indicators**:47 - Problem-solution format with clear goal48 - Assumes existing knowledge and competence49 - Clearly states prerequisites and applicability scope50 - Action-oriented ("To achieve X, do Y")51 - Flexible, allows for variation52 - Focuses on results, not learning53 - Omits explanations unless critical to success5455 - **Reference indicators**:56 - Descriptive, declarative statements57 - Comprehensive coverage of subject58 - Neutral, technical tone59 - Structured for lookup (tables, lists, alphabetical)60 - Parameters, options, API signatures61 - Accuracy over narrative6263 - **Explanation indicators**:64 - Conceptual focus ("why" and "how it works")65 - Discursive, exploratory tone66 - Comparative analysis67 - Context, background, relationships68 - Illuminates understanding, not action69 - May include history, design decisions, alternatives70 - May contain subjective opinions and personal perspectives71723. **Check user need alignment**:7374 Map the page to the user need implied by the action/cognition and75 acquisition/application axes (learning, goals, information,76 understanding).7778 - **Tutorials**: Is it a learning-oriented lesson?79 Does it build confidence through doing? Is it linear and safe?80 - **How-to guides**: Is it a task-oriented recipe?81 Does it help a competent user solve a specific problem?82 Is it goal-focused?83 - **Reference**: Is it information-oriented?84 Does it describe things accurately and completely?85 Is it structured for lookup?86 - **Explanation**: Is it understanding-oriented?87 Does it clarify concepts, context, and relationships?88 Is it discursive?89904. **Note hard-to-fit genres**: Some documentation types do not align91 cleanly with a single quadrant (for example, release notes or92 contributing guides). Flag these cases explicitly, reference the93 Diataxis guidance on complex hierarchies94 (https://diataxis.fr/complex-hierarchies/), and choose the closest95 fit category for reporting.96975. **Evaluate quality**:9899 - **Functional quality**: Is the content accurate, complete,100 consistent, useful, and precise?101 - Missing prerequisites or dependencies102 - Incomplete steps or procedures103 - Inconsistent terminology or naming104 - Outdated information (version mismatches, deprecated features)105106 - **Deep quality**: Does the content have good flow?107 Does it anticipate user questions?108 Is the cognitive load appropriate? Is the experience clear?109 - Paragraph length (>4 sentences may suggest need for breaking)110 - Sentence complexity (nested clauses, dense jargon)111 - Transition quality (abrupt topic changes, missing connectives)112 - Progressive disclosure (introducing too much too soon)113 - User journey mapping (gaps in expected flow)1141156. **Document misalignments**: Explicitly identify where the document116 fails to meet the needs of its category, jumps between categories,117 or where quality breaks down. For each issue, provide:118 - Specific location (section, paragraph)119 - Nature of the problem120 - Impact on user experience121 - Concrete suggestion for improvement1221237. **Verify completion**: Confirm the analysis completed:124125 - Category classification completed (declared vs inferred)126 - User need alignment analyzed127 - Quality assessment performed (functional and deep quality)128 - Misalignments documented with recommendations129130 State the completion status:131 - `✓ Diataxis analysis complete: [declared category] → [inferred category], [N] issues found`132 - OR `✓ Diataxis analysis complete: Content aligns well with [category]`133134## Constraints135136- Do not ignore the Diataxis framework.137- Assign each page to exactly one quadrant.138- Do not introduce categories beyond the four quadrants.139140## Output141142A Diataxis Analysis Report detailing:143144- Declared category (from metadata/directory structure).145- Inferred category (from content analysis).146- User need alignment analysis (which quadrant best serves the user).147- Functional quality findings (with specific examples).148- Deep quality findings (with specific examples).149- Identified issues and actionable recommendations for improvement.150151If no significant issues are found, state that the documentation152aligns well with its intended category.