Skip to content

Notes from Chat: Creating and Maintaining Good Documentation

Guiding Principles

  • Start with structure. Every doc should answer: what, why, how, who, when.
  • Use a clear hierarchy:
  • README.md β†’ overview
  • docs/specs/ β†’ functional + technical specs
  • docs/usage/ β†’ setup, API, usage guides
  • docs/dev/ β†’ architecture, code structure, contribution guide
  • Avoid prose. Prefer bullet points, diagrams (mermaid), tables, fenced code blocks.
  • Consistency matters more than perfection.
  • Treat docs as code: version-controlled, reviewed, refactored.
  • Use TODOs, last-updated tags, and changelogs to track relevance.

README.md Content

  • What is this? β†’ One-liner purpose.
  • Why does it exist? β†’ Problem it solves.
  • How to use it? β†’ Quickstart guide.
  • How to run locally? β†’ Dev setup, env vars, dependencies.
  • Where to go next? β†’ Links to deeper docs, issues, or contributors.

Documentation Order of Creation

  • README is written last, read first.
  • First document should be index.md or overview.md.

Purpose of First Document

  • Maps all incoming artefacts by type and relevance.
  • States the intent of the project as currently understood.
  • Lists what’s missing, unknown, or ambiguous.
  • Serves as scaffolding, not final truth.