# perfect-docs

> Claude/Codex skill by [@mattpocock](https://omgskills.com/library/mattpocock/index.md) · 337k stars · 1.7k installs · Updated 2026-11-30

The target state for a library's documentation site: quick starts, Learn, Guides and Reference, one home per fact, concepts taught in learning-graph order, every code example checked against the source, every export covered, rigorous cross-links, redirects for every moved URL. Use when writing, restructuring or auditing a docs site, deciding where a piece of documentation belongs, or adding a check that keeps docs true to the code.

## Install

```sh
tmp="$(mktemp -d)" && { git clone -q --filter=blob:none --no-checkout https://github.com/mattpocock/skills "$tmp" && git -C "$tmp" checkout -q fe3b143d813e0d9f0b22531e4e4c5f239745d643 && { [ ! -L ~/.claude/skills/perfect-docs ] || rm ~/.claude/skills/perfect-docs; } && { [ ! -e ~/.claude/skills/perfect-docs ] || { echo "~/.claude/skills/perfect-docs already exists; move it away to reinstall." >&2; false; }; } && mkdir -p ~/.claude/skills/perfect-docs && cp -R "$tmp/skills/in-progress/perfect-docs/." ~/.claude/skills/perfect-docs/; ok=$?; rm -rf "$tmp"; [ "$ok" = 0 ]; }
```

## From README

Perfect Docs Measure a docs site against this target: every gap is a finding, and every change moves the site toward it. The target holds for any language and any docs tool. Each automated check below says what it must guarantee; the project picks the tool. Vocabulary Use these words exactly, each in this one sense. Learn: the reader's first journey through the library. It names the problems the library solves, then teaches every concept in learning-graph order. the shortest path from to working code, for one mode of use. Mode: a distinct way to use the library, such as a CLI and a library API, or one framework among several. Guide: one task, titled the way a developer searches for it. Reference: one entry per public export, written by hand. Concept: an idea a reader must hold to use the library. Its home is a heading in Learn. Learning graph: concepts as nodes, with an edge from A to B when B makes sense only after A. It has no cycles.

## Links

- HTML page: https://omgskills.com/library/mattpocock/skills/perfect-docs/
- GitHub: https://github.com/mattpocock/skills
- Author: [@mattpocock](https://omgskills.com/library/mattpocock/index.md)

## More from this repo

- [software-factory](https://omgskills.com/library/mattpocock/skills/software-factory/index.md) — Shared language for designing a software factory: the tasks it runs and the services it plugs into.
   - [@mattpocock](https://omgskills.com/library/mattpocock/index.md) · 336k stars
- [chief-of-staff](https://omgskills.com/library/mattpocock/skills/chief-of-staff/index.md) — Pursue a long-running goal in a single session by co-ordinating subagents.
   - [@mattpocock](https://omgskills.com/library/mattpocock/index.md) · 328k stars
- [tdd](https://omgskills.com/library/mattpocock/skills/tdd/index.md) — Test-driven development.
   - [@mattpocock](https://omgskills.com/library/mattpocock/index.md) · 323k stars
