# Documentation

> Use when authoring, restructuring, splitting, or auditing any docs page or content collection in this repo — choosing what type a page should be, deciding what belongs on it, or checking accuracy, structure, and completeness before a release.

- Skill: `tomevault-io/documentation-85` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/documentation-85`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/documentation-85/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/documentation-85

---


# Documentation

Docs are part of the product. This skill governs their **structure and quality**; for the *voice* of the prose, **REQUIRED SUB-SKILL: marketing-voice**.

## The backbone rule

**Every page is exactly ONE Diátaxis type — tutorial, how-to, reference, or explanation. A page that serves four needs serves none.**

This is the defect agents miss most, because a clean layout *hides* it. Both observed baselines failed here: an authoring agent fused explanation + a "quick-start arc" + four reference tables into one page and called it a "task-completion arc"; an audit agent praised the same fusion as "progressive disclosure" and never flagged it. Comprehensive ≠ correct. Tidy ≠ single-purpose.

So, before writing or reviewing a page, **name its one type out loud.** Then read `diataxis.md` and hold the page to that type's must / must-not list. Content that belongs to another type gets a one-line **cross-link**, never an inlined section.

## Which file

```dot
digraph d {
  "Task?" [shape=diamond];
  "Authoring or restructuring a page" [shape=box];
  "Auditing existing docs" [shape=box];
  "Task?" -> "Authoring or restructuring a page" [label="write"];
  "Task?" -> "Auditing existing docs" [label="review"];
  "Authoring or restructuring a page" -> "diataxis.md";
  "Auditing existing docs" -> "audit.md (type purity = Layer 2)";
}
```

- **Authoring / restructuring / splitting** → `diataxis.md` — the four types, their must/must-not rules, the three-flatland IA mapping, mode-mixing smells, and the split recipe.
- **Auditing** → `audit.md` — the four-layer audit (accuracy, engagement, LLM files, JSDoc). Type purity is Layer 2, criterion #5. Run it *in addition to* accuracy drift, not instead.
- Supporting reference (loaded as needed by `audit.md`): `loved-docs-patterns.md`, `visual-devices.md`, `react-best-practices.md`.

## Red flags — STOP and name the type

| Rationalization | Reality |
|---|---|
| "The page is comprehensive / progressive disclosure." | A clean layout is not a single purpose. Name the one type; the rest is a split candidate. |
| "It's a task-completion arc." | That fuses tutorial + how-to + reference. Pick one; link the others. |
| "Splitting causes duplication." | It doesn't — you cross-link. Each page does one job; the link carries the rest. |
| "One page is more convenient for the reader." | Convenient to skim, useless to *use*. The learner, the task-doer, and the looker-up each need a different page. |
| "A reference table fits naturally in this how-to." | Then the table belongs on the Reference/API page; link to it. A how-to shows the *one* call you need, not every option. |

These all mean: stop, name the page's single type, and move other-type content out per `diataxis.md`.

---
> Source: [thejustinwalsh/three-flatland](https://github.com/thejustinwalsh/three-flatland) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

