Skip to content
Documentation & Writing / Agent-Readable Docs

Write docs agents can act on

  • BP-0007
  • v1.1.0
  • draft
  • guideline
  • role: any
  • stage: build
  • updated 2026-11-25
  • reviewed 2026-11-25
  • next review 2027-05-25
  1. MUST put the actionable rules first, as a numbered list using RFC 2119 keywords (MUST, SHOULD, MAY).
  2. MUST make each page self-contained: it can be fetched and used without reading other pages.
  3. MUST give each page a stable ID and a version so agents can cite and cache it.
  4. MUST publish raw Markdown alongside HTML, and an llms.txt index with one line per page.
  5. SHOULD use the same section order on every page so agents can jump to a section by name.
  6. SHOULD state when a rule applies and when it does not.
  7. SHOULD show a good and a bad example for each non-obvious rule.
  8. SHOULD link to primary sources instead of restating them.
  9. MAY provide a machine-readable catalogue (JSON) for filtering.
  10. MUST publish a content_hash for each versioned page in the machine-readable catalogue.
  11. MUST NOT change a page’s version or content_hash when only metadata refreshes: a star count, a build timestamp, a generated-at date.
  12. SHOULD have consumers cache by content identity and refetch on a change to it, never on a clock.

Any documentation an agent will read: practices, runbooks, API docs, skills, READMEs, AGENTS.md files.

This site: every practice follows Rules → When to apply → Procedure → Examples → Anti-patterns → Checklist → References, has a BP-NNNN ID and semver, and is served as .md. Its catalog.json carries a content_hash per practice, computed over the content only, so a scheduled star-count refresh moves generated and no hash.

  • Long narrative pages where the rule is in paragraph six.
  • Content only available as rendered HTML or images.
  • Renaming pages without keeping the old ID resolvable.
  • A consumer that refetches on a timer, or when a generated-at timestamp moves with no content change behind it.
  • Rules first, RFC 2119 keywords
  • Stable ID + version
  • content_hash per page, unchanged by metadata refreshes
  • Raw .md and llms.txt published