/aeo-docs:diataxisfrom aeo-docs
Authors user-facing technical documentation in the four Diataxis modes: tutorials, how-to guides, reference material, and conceptual explanations. Picks the correct mode and applies its structural template.
Ships in aeo-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.
The Diataxis framework splits user-facing documentation into four modes that serve different reader needs. Most "bad documentation" comes from mixing modes — a tutorial that gets reference-dumpy, a reference that wanders into design rationale, a how-to that pauses to teach concepts. Pick the mode first; the template flows from that.
Typical requests: "write a tutorial", "create a how-to", "document the API", "explain why we chose", "generate config docs", "build a reference", "write user docs for X", and any open-ended request to produce user-facing documentation.
Cross-mode bleed to avoid: no comprehensive API listings inside a tutorial, no learning exercises inside reference docs, no step-by-step procedures inside an explanation.
| Mode | Reader is | Reader wants | Output is |
|---|---|---|---|
| Tutorial | a beginner | to learn by doing | a guided practice exercise |
| How-to guide | competent | to solve a specific problem | a goal-oriented procedure |
| Reference | already knows what they need | to look up exact specifications | comprehensive, scannable lookup |
| Explanation | experienced | to understand why | a conceptual narrative |
The reader's state and intent decide the mode, not the topic. The same feature can have all four — a tutorial that walks a beginner through using it, a how-to that solves a specific problem with it, a reference that lists every option, and an explanation of why it works the way it does.
Two questions resolve the choice:
hands-on conceptual
┌───────────────────┬──────────────────┐
learning │ Tutorial │ Explanation │
├───────────────────┼──────────────────┤
doing │ How-to │ Reference │
└───────────────────┴──────────────────┘
When a request fits multiple modes, write multiple short docs rather than one cross-mode doc. A "guide to X" that's three modes glued together helps no one.
Beginner-safe, hands-on, single linear path, every step verified. The reader follows along; the doc holds their hand. Goal is confidence and basic familiarity, not comprehensive knowledge.
→ Output: docs/tutorials/. Read references/tutorial.md for the section template, anti-patterns, and quality checklist.
Goal-oriented procedure for someone who already knows the basics. Imperative voice ("Set", "Configure", "Run"), real-world conditions, troubleshooting included. Shortest reasonable path from problem to solution.
→ Output: docs/how-to/. Read references/howto.md for the section template.
Comprehensive, factual, scannable. Reader knows what they need; the doc tells them exactly. No tutorials, no opinions, no design rationale — those live elsewhere and get linked.
→ Output: docs/reference/. Read references/reference.md for the API, config, CLI, schema, and error-code templates (different reference types have different shapes).
Builds mental models. Discusses trade-offs, alternatives, history, and design rationale. The reader should come away thinking differently about the system, not knowing how to do something new.
→ Output: docs/explanation/. Read references/explanation.md for the section template.
docs/
├── tutorials/ # Tutorial mode
├── how-to/ # How-to mode
├── reference/ # Reference mode
└── explanation/ # Explanation mode
If the project doesn't have a docs/ tree yet, create the relevant subdirectory the first time you write into it. Don't create empty siblings preemptively — they accrete cruft.
Kebab-case, lead with the verb or topic noun:
| Mode | Examples |
|---|---|
| Tutorial | getting-started-[tool].md, build-[thing].md, learn-[concept].md, connect-[a]-to-[b].md |
| How-to | configure-[feature].md, integrate-[system].md, troubleshoot-[problem].md, migrate-[from]-to-[to].md, deploy-[target].md |
| Reference | [component]-api.md, [feature]-config.md, [tool]-cli.md, [data]-schema.md, error-codes.md |
| Explanation | [concept]-design.md, [system]-architecture.md, understanding-[topic].md, [pattern]-explained.md |
Each mode links out to the other three when the reader's next question would be better served there. The four-way footer is a good default at the end of any doc:
## See also
- **Want to follow along?** → `../tutorials/<topic>.md`
- **Solving a specific problem?** → `../how-to/<task>.md`
- **Looking up specs?** → `../reference/<component>.md`
- **Want to understand why?** → `../explanation/<concept>.md`
Drop bullets that don't have a corresponding doc on the other end — broken-link rot is worse than a shorter footer.
These are the patterns that mean you've drifted out of mode. If you catch yourself writing one, stop and ask whether the content belongs in a different doc.
| Drift | Fingerprint | Fix |
|---|---|---|
| Tutorial → reference | Listing every option of a thing the reader is just trying to use once | Pick one good default, link to the reference for the rest |
| How-to → tutorial | Pausing to teach basics the audience should already know | State the prereqs, link to a tutorial |
| Reference → explanation | Design rationale interleaved with specs | Keep the reference factual, push rationale into an explanation doc |
| Explanation → how-to | Step-by-step instructions creeping into the conceptual narrative | Link to a how-to for the procedure |
Common cases and how to resolve them:
For diagrams inside any of the four modes:
aeo-docs:markdown-mermaid skill. Renders natively on GitHub and most MD viewers.aeo-docs:d2 skill. More powerful, requires the d2 CLI to render to SVG/PNG.For C4 architecture / ADR / OpenAPI work, that's a different kind of documentation entirely — use the aeo-docs:architecture-docs skill, not Diataxis.
The four-mode separation is the substance. The voice differences (encouraging in tutorials, terse in how-tos, factual in references, thoughtful in explanations) fall out of the mode choice — once you've picked the right mode, the right register comes with it. Writing in mode is more about what not to include than what to add.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aeyeops/aeo-skill-marketplace --plugin aeo-docs4 skills in this plugin
/architecture-docsUse when someone asks to document system architecture for a technical audience — write an ADR, capture an
architectural decision, generate C4 diagrams (Context / Container / Component / Code), produce an OpenAPI spec
for an HTTP API, draft a system or component design document, or document how services integrate. Covers the
C4 model, Architectural Decision Records, OpenAPI specifications, and design documents for engineers who need
to build against or reason about the architecture. Not for: end-user-facing docs (use the `aeo-docs:diataxis`
skill instead — tutorials, how-tos, references, explanations live there), README content, or code-level inline
documentation.
/d2Use whenever the user wants to produce, edit, or render any kind of diagram with D2, the Terrastruct
text-to-diagram language at https://d2lang.com — architecture, flowchart, sequence, ER/SQL schema, UML class,
network topology, mind map, deployment, org chart, state machine, grid layout, mermaid-style flow, or anything
similar — even when they don't say "D2" explicitly. Trigger on requests for `.d2` files, mentions of
`d2`/`d2lang`, or open-ended diagramming tasks ("draw me a system diagram", "make a flowchart of X", "diagram
the request flow", "give me an ER diagram for these tables"). Covers the full DSL — shapes, connections,
containers, classes, vars, globs/filters, imports, layers/scenarios/steps, styling, themes, sketch mode,
icons, markdown/LaTeX/code blocks, layout engines, CLI flags, and the specialized diagram shapes.
Other plugins' skills for the same job