/docs:diataxisfrom docs
Router for documentation work under the Diátaxis methodology. Use whenever the user wants to write, add to, expand, reorganize, or audit documentation — "write docs for X", "document this feature", "add a page about", "improve our README", "does this doc work", "audit our docs", "--audit" — or mentions Diátaxis, the compass, or a documentation type when no single type skill is the obvious match. Applies the compass (action or cognition? acquisition or application?) to classify the reader's need, then hands off to diataxis-tutorial, diataxis-how-to, diataxis-reference, or diataxis-explanation. When the user points at existing docs or supplies paths, assume the work is adding to or expanding those articles. With --audit, runs an improvement pass instead: classify each unit, run the matching type's drift checklist, and propose relocations and splits that fit the docs to the model without rewriting their substance. Prefer this router over a type skill whenever the type isn't already certain.
Ships in docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Diátaxis holds that documentation answers four distinct user needs — tutorials (learning), how-to guides (goals), reference (information), explanation (understanding) — and that a large share of documentation problems are one piece of content trying to serve two needs at once. Each unit of content should be one of the four types.
How to hold it: Diátaxis is a guide, not a plan — a map for checking that you're in the right place and heading the right way, not a structure you must complete, a specification, or railway tracks. Structure is an outcome: documentation assumes the Diátaxis shape because it has been improved, not the other way around. So never open by carving out four sections.
This skill is the router. It figures out which need the work in front of you serves, then hands off to the matching type skill, where the craft rules live.
Two questions classify any piece of content — proposed or existing:
| If the content… | …and serves the user's… | …then it must belong to… |
|---|---|---|
| informs action | acquisition of skill | a tutorial |
| informs action | application of skill | a how-to guide |
| informs cognition | application of skill | reference |
| informs cognition | acquisition of skill | explanation |
Use the terms flexibly — don't fixate on the exact names. The questions work at any scale (a doc set, a page, a paragraph, a sentence) and in any phrasing: "is the reader at study or at work here?", "do they need to do or to know?" The compass earns its keep precisely when something feels off but you can't yet say why — it forces you to stop and reconsider.
When intuition is shaky on the cognition side: if it's boring and unmemorable, it's probably reference; lists and tables almost always are. If you'd read it in the bath, it's explanation. And on the action side, the axis is study vs. work — never basic vs. advanced. A tutorial can be complex; a how-to guide can be basic.
--audit or phrasing like "audit our docs" or "does this doc work". An audit is an improvement/refactoring pass: make the docs fit the Diátaxis model better, without necessarily changing what they say. Follow "Audit mode" below.If the user mentioned existing documentation or gave paths, read those articles first — the default assumption is that this work adds to or expands them, so establish what type each already is (or is trying to be) before writing a word. For new content, find where it will live among any existing docs, and what neighbors it will link to.
Expanding an article never overrides the compass. When Step 2 classifies the requested material as a different type than the article it was aimed at, "expanding" means expanding the article's family: the material lands in a linked sibling of the right type, and the original gets at most a one-clause pointer. The compass decides the type; the user's path only decides the neighborhood.
Classify what the user actually needs written. If their request doesn't settle both questions, ask — one question, in reader terms ("is this for someone learning the system, or someone mid-task trying to get something done?") rather than in Diátaxis jargon.
A request that spans types is normal, not a failure: "document the deploy pipeline" may need a how-to guide and a reference page and a paragraph of explanation. Split it into pieces, one type each, and link them — splitting along the straddled axis is the standard repair, in writing as in auditing.
Invoke the matching type skill(s) via the Skill tool — diataxis-tutorial, diataxis-how-to, diataxis-reference, diataxis-explanation — passing along what Steps 1–2 established: the reader, the classification, the target file(s), and the neighbors to link. For multi-type work, handle one piece at a time to completion rather than drafting everything at once; each finished piece sharpens the next.
Establish which doc(s) the user wants examined — a file, a directory, a whole docs set. If unclear, ask. Prefer a scope you can actually finish: Diátaxis works by small, completed improvements, not surveys that trail off.
Read the target docs and run the compass over each unit. The unit is whatever holds one type: usually a page, but for container documents it's the section — a README whose overview, setup walkthrough, and options table sit side by side is applying Diátaxis sectionally, and that's legitimate. Judge each section on its own; the finding "this file is four types stacked" is only a problem if the sections themselves are muddled or the readers can't find their part. A title and a sentence or two of framing at the top of a page isn't a unit — don't classify it, and don't invent drift findings about it.
When a unit's classification is genuinely ambiguous — it could be serving either of two needs, and the answer changes the findings — ask the user, the same way writing mode does: one question, in reader terms. Record the answer in the report rather than silently picking a side.
For each unit, record: what user need it serves (or is trying to), which type that makes it, and where it blurs — explanation inside a tutorial, teaching inside a how-to, recipes inside reference, procedure inside explanation.
For each type present, invoke the matching type skill, telling it this is an audit: it applies only its drift checklist — no drafting, no edits. The checklists are the per-type audit lens; this router only contributes the classification and the cross-cutting findings.
Produce a findings report before touching anything:
Then stop and confirm which moves to apply. On approval, apply them one at a time, each left complete — not as one big-bang restructure.
For any mode: work in single small improvements — each thing done reveals the next. Don't tear a mess down to start over, and don't work on the big picture; small steps arrive there on their own. Documentation is never finished, but at every stage it can be complete: useful, healthy, ready for its next step.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub esond/skills --plugin docs5 skills in this plugin
/diataxis-explanationWrite, expand, or audit explanation — understanding-oriented documentation in the Diátaxis sense: discursive discussion that deepens the reader's grasp of a topic, read away from the work itself. Use whenever the user wants an architecture overview, design-rationale or "why did we build it this way" doc, concept guide, background or theory piece, ADR-style context, a "philosophy of X" or "about X" article, or asks to capture the reasoning behind a decision — even if they never say "explanation". Also loaded by the `diataxis` router when the compass points to cognition + acquisition: the reader wants to *understand*, as *study*. If the content is facts to consult mid-work, that's `diataxis-reference`; if it directs a task, that's `diataxis-how-to`. When the type is in doubt or mixed, consult the `diataxis` skill first./diataxis-how-toWrite, expand, or audit a how-to guide — goal-oriented documentation in the Diátaxis sense: directions that help an already-competent reader accomplish a specific real-world task. Use whenever the user wants a "how to X" doc, a runbook, playbook, recipe, troubleshooting guide, setup/configuration/ migration/deployment/integration instructions, or step-by-step directions for practitioners — even if they never say "how-to guide". Also loaded by the `diataxis` router when the compass points to action + application: the reader will *do* something to *get work done*. If the reader is a beginner who needs to learn by doing in a safe setting, that's `diataxis-tutorial` instead; if the content mostly enumerates options and facts, that's `diataxis-reference`. When the type is in doubt or mixed, consult the `diataxis` skill first.Other plugins' skills for the same job