| ai-context |
|
|---|
"Documentation is an API for LLMs." AIRD defines a standardized way to structure information so that Large Language Models (LLMs) can consume it with minimum token waste and maximum accuracy.
Goal: Enable AI to map the entire documentation in a single request.
-
Requirement: A root-level
llms.txtfile. -
Standard: Must include: Project Overview
$\rightarrow$ Core Index$\rightarrow$ Quickstart Links.
Goal: Ensure seamless semantic chunking.
-
Requirements:
-
Strict Heading Hierarchy: No skipping levels (e.g., H1
$\rightarrow$ H3). - Deterministic Naming: Consistent file naming conventions.
-
Strict Heading Hierarchy: No skipping levels (e.g., H1
Goal: Eliminate "hidden assumptions" and provide instant grounding.
- Required Component: Every standalone page MUST begin with an AI-Context Block:
--- ai-context: topic: "Topic Name" prerequisites: ["file-path-1.md", "file-path-2.md"] critical-warning: "Critical constraint for AI" ---
- Semantic Validation: All
prerequisitesmust resolve to existing files in the repository.
Goal: Create a feedback loop between AI and human authors.
-
Mechanism: The
.ai-feedback.mdlog. -
Standard: Implement the
Capture $\rightarrow$ Analyze $\rightarrow$ Refine $\rightarrow$ Verifyworkflow to evolve L1-L3 layers based on AI failure points.
Compliance is measured on a 0-100 scale based on the following weights:
| Layer | Weight | Criteria |
|---|---|---|
| L1 | 30% | Existence and completeness of llms.txt. |
| L2 | 20% | Heading hierarchy consistency and structure. |
| L3 | 40% | Presence of context blocks and resolution of prerequisites. |
| L4 | 10% | Existence and activity of .ai-feedback.md. |
Rankings:
- Elite (90-100): Fully AI-Ready.
- High (70-89): AI-Compatible.
- Medium (50-69): Partially AI-Ready.
- Low (<50): Human-Centric.
-
llms.txtis present and maps core modules. - All
.mdfiles start with a validai-contextblock. - All
prerequisitesin context blocks are valid file paths. - No heading level jumps in documentation.
-
.ai-feedback.mdis established for evolutionary tracking.