From armor
Classifies docs into Diátaxis modes (tutorials, how-to guides, reference, explanation) and reviews for boundary violations. Helps structure new or improve existing docs.
npx claudepluginhub markacianfrani/armor --plugin armorThis skill uses the workspace's default tool permissions.
Diátaxis identifies four fundamentally different kinds of documentation, each serving a different
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Diátaxis identifies four fundamentally different kinds of documentation, each serving a different need and requiring a different writing approach: tutorials, how-to guides, reference, and explanation. Crossing or blurring the boundaries between them is at the heart of most documentation problems.
A tutorial is a lesson — it takes a learner by the hand through a practical experience. The purpose is to develop skills and confidence, not to get from A to B. The user learns through what they do, not because someone tried to teach them. Like a driving lesson: the goal is the student's growth, not the destination.
A how-to guide addresses a real-world goal or problem with practical directions. It serves an already-competent user who needs help getting their work done. Concerned with work rather than study. Examples: "How to configure frame profiling", "Troubleshooting deployment problems."
Reference contains technical description — accurate, complete, reliable facts free of distraction and interpretation. It's neutral and not concerned with what the user is doing. Where possible, the architecture of reference docs should mirror the structure of the thing being described, like a map mirrors terrain.
Explanation provides context and background — it helps answer why? and puts things in a bigger picture. It can contain opinions and take perspectives. It often needs to circle around its subject from different directions.
Use this table to classify documentation and spot boundary violations:
| If the content… | …and serves the user's… | …then it belongs 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 |
Key axes:
The most frequent documentation problem: a doc tries to serve multiple purposes and serves none of them well. Watch for:
When a doc is straddling categories, the fix is usually to split it — not to try harder to make one doc do both jobs.
Diátaxis is a guide, not a plan. Don't try to reorganize all documentation at once. Don't create empty sections for tutorials/how-to/reference/explanation with nothing in them.
Then repeat.
Five minutes improving one paragraph using the Diátaxis compass is more valuable than spending a day planning a reorganization you never execute.
When triaging or reviewing existing docs: use the compass to classify each doc's content. Flag boundary violations. Recommend splits where a doc is trying to do two jobs poorly.
When writing new docs: decide which of the four types this doc is before writing. Let that choice constrain the style, structure, and content.
When improving docs: pick one thing in front of you, assess it against the compass, make one improvement, ship it.
Framework by Daniele Procida. Full details at diataxis.fr