Inverted pyramid documentation model #
Organize technical articles, README.md files, API references, and developer guides by reader utility rather than author chronology. Put runnable value above the fold so readers get answers fast, then layer deeper details below.
1. Core model: information cascading #
Structure every document from highest immediate utility at the top to deep reference details at the bottom:
graph TD
A["1. High value: summary and runnable quickstart"] --> B["2. Medium value: usage recipes and CLI flags"]
B --> C["3. Detail value: local development, testing, and architecture"]
C --> D["4. Reference value: internals, limits, and license"]Three reader depths #
Every technical document serves three distinct reading budgets:
- Scanner (
5sto10s): Reads the one-line summary, copies the install and run commands, and tests the tool right away. - Operator (
2mto5m): Scans usage tables, CLI flags, configuration keys, and common task recipes. - Contributor or architect (
10m+): Studies module boundaries, local test commands, design trade-offs, and license terms.
2. Standard document hierarchies #
A. README and project documentation #
Follow this sequence for user-facing repository documentation:
- Title and one-sentence summary:
- State what the project is, what problem it solves, and who uses it in a single active sentence.
- Immediate quickstart:
- Provide a copy-paste install command (
uv tool install ...,uv add ...,npx ...,go install ..., orcargo install ...). - Show the single highest-value command that verifies setup and produces real output.
- Provide a copy-paste install command (
- Usage workflows and configuration:
- Present CLI flags, environment variables, and configuration keys in compact Markdown tables.
- Show copy-paste recipes paired with expected terminal output.
- Development and testing:
- Show how to clone, build locally, run tests, and run linters.
- Architecture and internals:
- Explain subsystem boundaries, data schemas, and design trade-offs.
- License and compliance:
- List the SPDX license identifier, copyright notice, contributing guide, and security policy.
B. Technical articles and blog posts #
- Outcome lead (first
150words):- Open with the core result, benchmark change, or direct answer.
- Skip throat-clearing preambles about how fast modern software changes.
- Working example above the second scroll:
- Show a runnable code snippet, terminal session, or system diagram before diving into theory.
- Implementation breakdown and trade-offs:
- Walk through the key steps, failure modes, configuration choices, and measured benchmarks.
- Concrete next steps:
- Close with runnable follow-up commands, repository links, and primary references.
3. Editorial and structural rules #
- Zero silent edits on existing drafts: When auditing or refactoring an existing
README.mdor article, propose a numbered list of structural moves and wait for user approval before rewriting user prose on disk, unless the user explicitly asks to rewrite the file directly. - Preserve author voice: Reorder sections without stripping the author’s tone, contractions, or natural idioms into stiff corporate phrasing.
- Lead with runnable action: Never bury install or quickstart commands behind architectural history. Let the reader run the tool first.
- Sentence-case headings: Write concise sentence-case headings that lead with concrete nouns or active verbs.
- Tables over loose lists: Use Markdown tables for CLI flags, configuration keys, and option comparisons.
- Clean punctuation without em dashes: Break clauses with periods, commas, or colons. Never use mid-sentence em dashes, en dashes, or spaced double hyphens.
