1. Why this matters now 2. How humans read docs 3. How LLMs consume content 4. Writing for humans 5. Writing for AI 6. What you can do today 7. Measuring success
(SEO) or directly 2. Skimming through your docs 3. Reading from top to bottom 4. Uses navigation 5. Needs: clarity, logical flow, examples and use case, troubleshooting.
2. Pattern recognition across content 3. Context building from available text 4. No visual cues or navigation 5. LLMs need: structured data, complete context, clear relationships
Clear, jargon-free language 2. Logical structure (overview → concepts → reference → tutorials). 3. Working, copy-paste-ready code samples. 4. Error handling and edge cases. 5. Guides: getting started, API reference, integrations, examples, use cases. 6. Well thought out navigation and layout. 7. Search functionality and AI search embedding.
1. Chunking: Break content into self-contained sections (300–500 words max). 2. Use OpenAPI specifications for better explanation of API capabilities. 3. Consistent naming and patterns 4. Complete parameter descriptions for all endpoints ❌ Bad: "Use the token from step 2" ✅ Good: "Use your API token (format: sk_live_xxx)"
the webhook as described above" AFTER (Human + AI friendly): "Configure the webhook endpoint: • URL: https://your-domain.com/webhook • Method: POST • Headers: Authorization: Bearer {your_api_key} • Expected response: 200 OK" Complete context in every section.
pages for standalone clarity 2. Add OpenAPI spec if you have REST APIs 3. Create /llms.txt with your key documentation URLs 4. Review your most-copied code examples 5. Test: Can someone understand each section independently? Start small, measure impact. Actionable steps you can take this weekend
strategy needs to evolve. Optimize for: • Google (traditional search) • ChatGPT, Claude, GitHub Copilot (AI search) • Future AI tools your developers will use. The new Reality: SEO → GEO (Generative Engine Optimization)
1. Accuracy of AI-generated code using your docs. 2. Citation frequency in AI responses. 3. Developer success rate when using AI assistance. Human Metrics: 1. Bounce rate 2. Time on page 3. Time to "wow" factor 4. Dev feedback 5. Support tickets. Set up tracking for both