diataxis
Write, restructure and review documentation with the Diataxis framework - tutorials, how-to guides, reference and explanation, each page exactly one kind. Use when writing or editing any documentation, deciding which kind a page is, splitting a page that mixes kinds, or reviewing docs for structure.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- diataxis
- description
- Write, restructure and review documentation with the Diataxis framework - tutorials, how-to guides, reference and explanation, each page exactly one kind. Use when writing or editing any documentation, deciding which kind a page is, splitting a page that mixes kinds, or reviewing docs for structure.
- allowed-tools
- Read Grep Glob Edit Write
02 资源文件 21
- 参考文档ATTRIBUTION.md1.6 KB
- 参考文档evals/eval_queries.json655 B
- 参考文档evals/evals.json2.9 KB
- 参考文档references/application.rst1.7 KB
- 参考文档references/CITATION.cff632 B
- 参考文档references/compass.rst2.6 KB
- 参考文档references/explanation.rst7.7 KB
- 参考文档references/foundations.rst4.3 KB
- 参考文档references/how-to-guides.rst11.1 KB
- 参考文档references/how-to-use-diataxis.rst7.3 KB
- 参考文档references/index.rst4.3 KB
- 许可证references/LICENSE.rst18.4 KB
- 参考文档references/map.rst6.3 KB
- 参考文档references/quality.rst11.1 KB
- 参考文档references/README.rst1.0 KB
- 参考文档references/reference-explanation.rst3.5 KB
- 参考文档references/reference.rst6.1 KB
- 参考文档references/start-here.rst8.7 KB
- 参考文档references/theory.rst1.2 KB
- 参考文档references/tutorials-how-to.rst15.0 KB
- 参考文档references/tutorials.rst16.5 KB
03 SKILL.md 正文
Diataxis
Diataxis, by Daniele Procida, sorts documentation by what the reader needs. Every page you write
or change is exactly one of four kinds. The framework text is pinned in this skill's references/
folder: read it there rather than from memory.
The four kinds
| Kind | The reader is | The page | Its form |
|---|---|---|---|
| Tutorial | learning, by doing | a lesson that leads a beginner through an experience to a result | "we" and steps, one safe path, no choices |
| How-to guide | working, with a goal in mind | directions to reach a stated goal | a title that says the goal, steps, no teaching |
| Reference | working, needing a fact | neutral, complete description of the thing | structured like the thing, no instruction or opinion |
| Explanation | studying, wanting to understand | the why: context, reasons, alternatives | discussion, no steps and no lookup tables |
Never mix kinds in one page
A page is one kind. When a draft drifts into another kind, do not blend it in: cut that part and link to a page of the right kind, writing that page if it is missing. A tutorial that stops to explain, a how-to guide that teaches, a reference that advises, and an explanation that lists steps are the usual faults.
To decide a page's kind, use the compass in references/compass.rst: does it inform action or
cognition, and does it serve acquisition of skill or its application.
The Wheelhouse house rule: as specific as possible
Whatever the kind, our docs are as specific as they can be:
- exact commands, as they are typed, not a description of them;
- full paths to files on the machine, such as
/home/sam/work/widget/AGENTS.md, not relative ones, except in code and config, which keep portable relative paths; - pull requests, issues and other web resources by short name and as a link, such as
[widget #12](https://github.com/example/widget/pull/12), never a bare number or URL.
Where to look for which kind
The pages in references/ are the pinned source (see ATTRIBUTION.md). Read the one you need:
- To see the framework in brief and how to start, read
references/start-here.rstandreferences/index.rst. - To tell which kind a page is, read
references/compass.rstandreferences/map.rst. - To write a tutorial, read
references/tutorials.rst, andreferences/tutorials-how-to.rstfor how it differs from a how-to guide. - To write a how-to guide, read
references/how-to-guides.rstandreferences/tutorials-how-to.rst. - To write reference, read
references/reference.rst, andreferences/reference-explanation.rstfor how it differs from explanation. - To write explanation, read
references/explanation.rstandreferences/reference-explanation.rst. - To use the framework on a real body of documentation, read
references/how-to-use-diataxis.rst; the same folder holds a further page on putting Diataxis into practice, found with Glob. - For the reasons behind it, read
references/theory.rst,references/foundations.rstandreferences/quality.rst.
references/ holds one further page that is not listed above; find it with Glob. Use Grep and Glob on references/ to find a term, and Read the page before relying on it.
Working method
- Name the reader and what they need, then pick the one kind.
- Read the matching page in
references/. - Write or edit the page, keeping to that kind and to the house rule above.
- Check the finished page for any sentence of another kind and move it out.
Do not edit the files in references/: they are copied unmodified and are share-alike licensed.
04 同仓库更多 Skills
doctor
暂无简介
add-seat
Add a named seat to a Wheelhouse - a crew member, a standing role (such as a dispatcher) or a worker - as a ynh harness with its charter, standing orders and only the tools its job needs, named from the Wheelhouse's roster. Use when asked to add, create or set up a seat, role, worker or agent in a Wheelhouse (a release manager, a PR watcher, a dispatcher, a designer, more workers), or to give a role a name, or to start on a Wheelhouse's team (its starter team), one role at a time. Also use to trial, make official or drop a seat.
voice
How voices work - what a voice skill contains, how to write a new one, and how several voices compose into one reply. Use whenever drafting a reply in a named voice, or when asked to create or change a voice.
voice-warm
A friendly voice that acknowledges the person and their effort. Compose with direct for friendly but brief.
voice-formal
A careful, complete voice for people outside the team - customers, partners, senior stakeholders.
voice-direct
A plain, brief voice that leads with the answer. The default when no voice is named.