Skip to main content
reopt Handbook
reopt Handbook
Agentic Documentation

Paradigm Shift

Why Documentation Must ChangeAI-readable Design PrinciplesAI-assisted Writing Process

Practice by Document Type

Project Rule DocumentsFrom Docs to Skills, Plugins, and MCPAgent Documentation SecurityAPI Docs and SpecsREADME and OnboardingArchitecture Decision RecordsRunbooks and OperationsUser Guides and TutorialsKnowledge Bases and Internal Wikis

Operations

Maintenance StrategyTeam Documentation Culture

Appendix

TemplatesVerification ReportUpdates
Handbook›에이전틱 시대의 문서화 혁신›AI-readable Design Principles
한국어English

AI-readable Design Principles

Structure, density, declarative writing, navigability, and executable completion criteria.

Key takeaways

  • AI-readable docs are designed so agents can locate context, understand the contract, and know how to verify completion, not just written as shorter prose.
  • Five principles drive the design: structured format, information density, declarative rules, navigable structure, and executability.
  • Maximize information value (project-specific insight per consumed token) by omitting generic background like "what REST is" and keeping only this project's endpoints and constraints.
  • Write declarative rules and give every change procedure an explicit "Done when" list so the agent knows what completion means.
  • Keep AGENTS.md startup instructions concise and move long procedures to Skills or MCP Resources loaded only when needed.

AI-readable documentation is not just shorter prose. It is documentation designed so agents can locate the right context, understand the contract, and know how to verify completion.

Principle 1: Structured Format

Agents handle structured text better than free-form prose. Use frontmatter, headings, tables, code blocks, stable IDs, and explicit links.

---
title: User Authentication API
description: JWT-based authentication and authorization
version: v2.3
status: stable
owner: auth-team
last-reviewed: 2026-05-24
---

Why Frontmatter

Frontmatter lets search, RAG, docs tooling, and agents judge relevance before reading the entire body.

Principle 2: Information Density

information value = project-specific insight / consumed tokens
Omit when possibleKeep
What REST isThis project's endpoints and constraints
Git basicsThis project's branching and commit rules
Docker conceptsThis project's runtime settings
TypeScript basicsThis project's type conventions

Principle 3: Declarative Rules

Agents follow precise rules better than vague taste statements.

## Commit Convention

- Format: `<type>: <description>`
- Allowed types: feat, fix, docs, refactor, test, chore
- Description: lowercase start, no period, 50 characters or less

Principle 4: Navigable Structure

Agents jump through headings and file paths. Make titles unique and task-oriented.

Anti-patternProblemBetter
Long proseWastes contextTables, lists, code blocks
"As above"Ambiguous in retrieved chunksExplicit references
Giant single pagePoor retrievalSplit by topic
Screenshot-only docsText may be missedText plus image
Duplicated factsDriftSingle source of truth
No date/versionFreshness unclearupdated, review_after, version

Principle 5: Executability

Good agent documentation tells the agent what done means.

## Change Procedure

1. Update `src/api/orders.ts`.
2. Update `openapi/orders.yaml`.
3. Run:

\`\`\`bash
pnpm test orders
pnpm openapi:check
\`\`\`

Done when:
- tests pass
- OpenAPI diff has no breaking change
- `docs/api/orders.md` reflects the change

Format Guidance

llms.txt

Use llms.txt as a Markdown index proposal, not as a crawler or SEO guarantee.

# Project Name
> One-line project summary

## Docs
- [API Reference](/docs/api.md): API contract
- [Runbooks](/docs/runbooks/index.md): operational procedures

AGENTS.md and CLAUDE.md

Keep startup instructions concise. Put long procedures in Skills or runbooks.

AGENTS.md     -> short rules loaded at task start
Skill         -> procedure loaded when needed
MCP Resource  -> external context fetched when needed

Checklist

ItemCheck
Frontmatter exists[ ]
Generic background is omitted[ ]
Rules are declarative[ ]
Headings are specific and navigable[ ]
Commands and completion criteria exist[ ]
Long references are split into Skills or MCP Resources[ ]

Related docs

Why Documentation Must Change

From documents that are read to documents that agents can operate from.

Project Rule Documents

Design AGENTS.md, CLAUDE.md, and path-scoped rules without conflicts or drift.

AI GTM Principles

AI-Era GTM · Strategic principles for redesigning go-to-market in the AI era.

Design Systems for the AI Era

A guide to building design systems that AI agents can understand, verify, and use.

Why Documentation Must Change

From documents that are read to documents that agents can operate from.

AI-assisted Writing Process

Source scan, draft, deterministic validation, agent smoke test, owner review, and freshness monitoring.

On this page

Principle 1: Structured FormatPrinciple 2: Information DensityPrinciple 3: Declarative RulesPrinciple 4: Navigable StructurePrinciple 5: ExecutabilityFormat Guidancellms.txtAGENTS.md and CLAUDE.mdChecklist