An AI assistant cannot give a reliable answer from a page it cannot retrieve. But a successful request is only the first check: it might have fetched a login form, an empty application shell or an outdated explanation.
AI-readable documentation is information a compatible tool can find, retrieve and use correctly. Clean HTML can work. Markdown can reduce the surrounding navigation. An MCP server can provide a live retrieval interface. None of these guarantees that an answer engine will choose to cite you.
This is the implementation checklist. For measuring what happens afterward, use AI documentation visibility: citations, crawler access and conversions. If you want these outputs managed together, see DocsAlot's AI-readable documentation platform.
The checklist at a glance
| Check | What to verify | What passing does not prove |
|---|---|---|
| Public HTML | The requested page contains useful documentation text | That a search engine indexed it |
| Markdown | A discovered Markdown URL returns the correct page and content type | That every assistant requests it |
| Discovery | The index links to current, useful pages | That publishing a special file increases rankings |
| Content | An answer includes the constraints, version and complete example | That an LLM will answer correctly every time |
| MCP | A connected client can find and read the right page | That an unconnected chat can use your server |
| Access boundaries | Public interfaces cannot retrieve private material | That an allow-list in a text file is authentication |
1. Check the page without an interactive browser
Start with three representative pages: a getting-started guide, a frequently asked support question and a reference page. Testing only the homepage misses most of the useful content.
Here is an ordinary public HTTP check. Replace the example with your documentation URL:
1DOCS_URL="https://docs.example.com/getting-started"2
3curl --fail --location --max-time 20 \4 --dump-header /tmp/docs-headers.txt \5 --output /tmp/docs-page.html \6 "$DOCS_URL"7
8head -n 20 /tmp/docs-headers.txtOpen the saved HTML and search for a distinctive sentence from the article. Check that it is the actual article, not just a title or description in metadata.
Look for these failures:
- The response is an application shell whose main text appears only after JavaScript runs.
- A security challenge or sign-in form returns a misleading successful status.
- The URL redirects to the documentation homepage instead of the requested article.
- The page is a not-found screen served with status 200.
This check does not impersonate a particular AI crawler. A bot-specific access problem needs evidence from the relevant provider and your CDN or server logs, not just a successful curl request.
Keep the human HTML page crawlable as well. Google's AI Search guidance does not require a special AI file or a separate schema to participate in its AI search features.
2. Offer a clean Markdown version where it helps
Markdown is useful because a retrieval tool can spend less context on menus, footers and interactive controls. It is not a replacement for correct HTML, and it is not the only format an AI system can read.
Use the route your platform actually publishes. Some append .md; others use a dedicated path or content negotiation. Do not assume a guessed URL exists.
A page can advertise its alternate representation:
1<link2 rel="alternate"3 type="text/markdown"4 href="https://docs.example.com/getting-started.md"5/>Test the discovered URL:
1MARKDOWN_URL="https://docs.example.com/getting-started.md"2
3curl --fail --location --max-time 20 \4 --dump-header /tmp/docs-markdown-headers.txt \5 --output /tmp/docs-page.md \6 "$MARKDOWN_URL"7
8head -n 20 /tmp/docs-markdown-headers.txt9head -n 30 /tmp/docs-page.mdA Markdown test passes when it returns the intended document, with the expected headings, links and examples. A file extension alone proves nothing: an HTML fallback at a .md URL is still HTML.
If your server negotiates representations using Accept, also test the cache behavior. The HTML and Markdown variants must not overwrite one another in a shared cache. Stable, separate URLs are often simpler to debug.
3. Treat llms.txt as a useful index, not a ranking switch
The llms.txt proposal describes a concise, machine-readable map. Use it to help a compatible reader find your important documentation without traversing every navigation page.
A small illustrative index might look like this:
1# Example Product2
3> Public documentation for installing and operating Example Product.4
5This index covers the current public release.6Internal runbooks and customer-specific configurations are not included.7
8## Start here9
10- [Quickstart](https://docs.example.com/quickstart.md): Install and complete a first task.11- [Authentication](https://docs.example.com/authentication.md): Credentials, permissions and rotation.12
13## Operate the product14
15- [Troubleshooting](https://docs.example.com/troubleshooting.md): Common failures and recovery steps.16- [API limits](https://docs.example.com/api/limits.md): Quotas, pagination and retry behavior.Verify every listed URL, keep the descriptions specific, and regenerate the index with the published documentation. An index that points to a draft, an old locale or a removed page creates another stale source.
Some teams also publish llms-full.txt. That can help with a small collection, but a very large file may be truncated or waste context. Choose it based on the consumer and document size, not because another site's checklist awards points for having it.
4. Make each page answer a complete question
A well-delivered document can still be a poor source.
Consider a support article that says, "Change the setting in your dashboard." A useful answer needs the setting's name, who can change it, when it takes effect and what to do if the control is missing. The same principle applies to an API example that omits required authentication or error handling.
For each important task, include:
- Prerequisites: account permissions, supported version and required setup.
- The action: the actual steps or a runnable, sanitized example.
- Expected result: how the reader knows it worked.
- Failure path: the common error and the safe next step.
- Scope: what this instruction does not change.
Use the customer's vocabulary where it helps them find the answer. Do not add lists of synonyms or repeated keywords merely to attract a model.
For API references, keep the surrounding explanation aligned with the actual schema. An updated endpoint list beside an obsolete authentication guide is still incorrect documentation.
5. Add MCP for connected retrieval, not as a discovery promise
A documentation MCP server can give a compatible assistant tools to search and read your current content. The MCP architecture is a client-server protocol; a client must connect and use the available capabilities.
Test the journey rather than the badge:
- Can the connected client discover the server's search and read tools?
- Does a task-specific search find the correct article?
- Does reading the result return the complete current page?
- Are references usable URLs rather than unexplained internal identifiers?
- Can the client distinguish missing information from an empty successful result?
A documentation lookup server and a server that executes product actions are different products. Do not accidentally expose write operations when the goal is read-only documentation.
For a managed route, see hosted MCP for documentation. For a framework you operate yourself, see the Astro and Starlight implementation checklist.
6. Keep private content private in every representation
Test the Markdown route, search index, discovery files and MCP interface separately. Hiding a page from navigation does not protect it.
Public discovery files should not list internal pages or reveal customer-specific titles. Private retrieval should enforce the intended identity and authorization model; a public MCP endpoint must not bypass the website's access checks.
When you evaluate a migration, use a draft and verify those boundaries before moving any internal knowledge. Keep public and private content tests separate so a passing public-docs check does not hide a private-access problem.
7. Test answers with a small, fixed set of tasks
Pick five questions customers actually ask. Write the correct answer and expected source before testing a model.
Use an illustrative instruction like this for a controlled retrieval test:
1Use the connected documentation source to answer this question.2Include the source URL. If the source does not establish the answer,3say what is missing instead of inventing a procedure.4
5Question: [one real customer task]Record the client, model, date, connection and whether the expected source was retrieved. Keep a useful distinction:
A successful connected retrieval test is not evidence of unsolicited visibility in ChatGPT, Google or another answer engine. Measure those separately using the visibility tracking worksheet.
8. Recheck after publishing, not just in a local preview
Your local docs can look correct while production serves stale exports, an old search index or an access challenge.
After a release, verify the canonical HTML page, its machine-readable representation and its search result against the same published version. Include at least one recently changed page so the test can detect stale content.
If your team wants less infrastructure to operate, DocsAlot publishes human-readable docs and agent-facing outputs from the documentation workflow. See a live documentation site or create a docs draft to evaluate your own content before changing the live domain.
Common questions
Is llms.txt enough to make documentation AI-readable?
No. It is an index, not a repair for broken access, missing examples or stale articles. Start with useful, retrievable content.
Does Markdown guarantee AI citations?
No. Markdown can make content easier for a compatible tool to consume. Source selection and citations remain separate outcomes.
Do we need to abandon Astro or Starlight?
No. Both can be part of an agent-readable documentation setup. The choice is whether your team wants to own the integrations or use a managed publishing service.
Continue the workflow
- Measure AI documentation visibility: separate access, citations and conversions.
- Configure Astro/Starlight for agents: keep the framework and audit its published outputs.
- Compare Mintlify and Scalar: evaluate managed platforms and API tooling.
- Evaluate AI-readable documentation hosting: review the managed option.