Diátaxis documentation
SkillDocs & knowledgeDesign, classify, write, audit, or restructure technical documentation with the Diátaxis framework. Use for tutorials, how-to guides, reference material, explanations, documentation maps, README routing, documentation audits, or requests to separate mixed-purpose docs. Do not apply it automatically to internal plans, ADRs, research logs, or specifications unless the user wants those artifacts organized as product documentation.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Diátaxis documentation skill
What this skill tells your AI
The instructions your AI receives, as published by pmndrs/glyph in .agents/skills/diataxis-docs/SKILL.md and read by ahel’s review.
Use Diátaxis as a decision tool, not a four-folder template. Start from the reader's immediate need, give each page one primary purpose, and link across purposes when the reader is likely to need a different kind of help.
Read references/framework.md before a broad documentation audit, information-architecture change, or ambiguous classification. It records the primary sources, the compass, and the distinctions most often lost in shorter skills.
Classify the need
Ask two questions internally:
- Does the reader need action or understanding?
- Are they acquiring skill or applying existing skill?
Map the answers:
| Reader need | Mode | Documentation type |
|---|---|---|
| Learn by doing | action + acquisition | Tutorial |
| Complete a real task | action + application | How-to guide |
| Look up facts while working | cognition + application | Reference |
| Understand reasons and relationships | cognition + acquisition | Explanation |
Infer the type when the evidence is clear. Ask only when choosing incorrectly would materially change the requested artifact.
Choose the operation
Create or revise one page
- State the intended reader and outcome in working notes.
- Select one primary documentation type.
- Preserve accurate repository-specific facts and examples.
- Write according to the type rules below.
- Move substantial off-purpose material to a better page, or link to an existing page.
- Check navigation so the reader has an obvious next destination.
Audit a documentation set
- Inventory pages and their apparent audience.
- Classify each page by its dominant need; record uncertain or mixed pages.
- Find user journeys and missing destinations, not merely empty quadrants.
- Flag misleading titles, duplicated material, stale facts, dead ends, and mixed-purpose pages.
- Recommend the smallest useful restructure. Do not create empty sections merely to complete a matrix.
- Report evidence and concrete moves, splits, merges, or links.
Restructure mixed documentation
- Preserve the source material and map every substantive section.
- Choose a primary page for each distinct reader need.
- Split only where the mix harms usability; short context or a small example may remain.
- Replace duplication with purposeful cross-links.
- Keep landing pages and READMEs as routing surfaces. They may summarize several types without pretending to be one of them.
- Verify that no claims or operational steps were lost.
Write by type
Tutorial
- Own the learner's success.
- Provide one reliable path with an early visible result.
- Use concrete steps, expected observations, and a coherent learning sequence.
- Minimize branching, alternatives, and extended theory.
- Test commands and examples when the repository permits it.
How-to guide
- Start from a specific real-world goal.
- Assume a competent practitioner and omit foundational teaching.
- Use ordered actions and conditionals only where the task requires them.
- Include prerequisites and success checks.
- Link to reference facts instead of reproducing exhaustive option lists.
Reference
- Describe the machinery accurately, completely, and consistently.
- Mirror the product or API structure.
- Prefer stable headings, tables, signatures, defaults, constraints, and edge cases.
- Keep instruction and rationale subordinate; link outward for tasks and concepts.
- Generate from authoritative interfaces where possible, then verify the result.
Explanation
- Explain why the subject exists and how its parts relate.
- Discuss constraints, history, alternatives, and tradeoffs.
- Connect the topic to adjacent concepts.
- Avoid turning the page into a numbered procedure or an exhaustive field catalog.
Respect repository context
- Follow existing terminology, style, navigation, and contribution rules.
- Treat plans, decision records, research notes, release notes, and issue backlogs as valid genres outside the four product-documentation types.
- Keep a README focused on orientation, first success, status, and routes to deeper documentation.
- Preserve existing document frontmatter; Diátaxis classification does not authorize removing or rewriting repository metadata conventions.
- Treat
index.mdfiles as navigation surfaces. Do not flag their purposeful links and short descriptions as duplicated human-facing documentation. - Prefer gradual improvement over a repository-wide rewrite without evidence.
- Do not sacrifice accuracy, runnable examples, accessibility, or source attribution for quadrant purity.
Final check
- Identify the primary reader need in one sentence.
- Confirm the title signals that need.
- Confirm the page behaves like its chosen type.
- Split or link only where another need would interrupt the page's flow.
- Verify facts and examples against current sources.
- Make the next step discoverable.
- Confirm existing frontmatter remains intact and navigation indexes were not mistaken for duplicate content.
Signals
- GitHub stars
- 134
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
diataxis-docs- Source
- github.com/pmndrs/glyph