Published · 8 min read
How to create an llms.txt file for your docs
Learn how to create llms.txt for your documentation: what goes in it, how to write or generate one, and how to keep it accurate after each release.
Published · 7 min read
Docs PRs drafted by AI can look right and still be wrong. Here is a practical checklist for checking accuracy, completeness, and what has actually shipped.
A product PR merged this morning. By lunch there's a docs PR in your queue, drafted by an AI. Is it right? Is it complete? Is it describing something that has actually shipped?
Those are the three questions behind how to review AI-generated docs changes. You're not there to admire the prose. You're there to confirm that every edit traces back to something that changed in the code, and that nothing reaches readers before you say so.
This matters more as volume rises. Google's 2025 DORA report links AI adoption to higher software delivery throughput, meaning teams are releasing more software. In Postman's 2025 State of the API survey, 41% of respondents rely on AI to generate API documentation, while 55% struggle with inconsistent documentation. More merges and more drafts mean your review is the control point.
Don't start with the docs draft. Start with the code PR that triggered it.
Read the PR description and skim the diff for public surface area: endpoints, parameters, CLI flags, config keys, defaults, error messages, UI labels, limits. Before you open the draft, write down what you think changed for users. Three or four bullet points is enough.
Then open the draft and compare it to your list. You're looking for two kinds of mismatch:
Google's engineering practices put the baseline plainly: if a change alters how users build, test, interact with, or release code, check that it also updates the associated documentation. The same standard applies in reverse when the docs change arrives as its own PR.
The reference page is rarely the only place that mentions a behavior. Drift commonly comes from changes nobody flagged as user-facing, such as a refactor that quietly changes an error message, a default timeout, or the order of setup steps. It also comes from guides, tutorials, support articles, and marketing pages that mention a behavior without being "the docs for" that feature.
So ask where else the old behavior is stated:
If the draft only touches the reference page, search for the old value yourself before you approve.
A drafted edit is a claim about your product. Every claim needs a source you can click.
For each changed passage, look for the specific evidence behind it: a line in the diff, a field in the OpenAPI spec, a changed test, a renamed constant. If the draft says the default timeout is now longer, you should be able to find the line where the default was changed. If you can't, treat the edit as unverified, however confident it sounds.
Developers already apply this skepticism to AI output. In Stack Overflow's 2025 Developer Survey, 46% of developers said they don't trust the accuracy of the output from AI tools, up from 31% the year before. That's a reasonable default for a reviewer, and evidence is what lets you move past it one edit at a time.
A workable check for each edit:
That last check is easy to skip. Google's review guidance notes that sometimes you have to look at the whole file to be sure the change makes sense. A corrected paragraph can contradict a code sample two screens down that the draft left alone.
This is where tooling earns its keep. Thally's Automation opens each drafted update as a pull request on your docs repo with the evidence attached, so you check a claim against its source instead of reconstructing it from tickets and diffs.

Plausible isn't the bar. Supported is. Remove any edit you can't tie to the merged change, even if it reads well.
Watch for these patterns:
Deletions cut both ways. Google's guidance says that if a change deletes or deprecates code, you should consider whether the documentation should also be deleted. So a removal can be right, but the diff has to show it.
When you reject an edit, say why in the PR. "No evidence in diff for the retention claim" helps the next reviewer and leaves a record. For small fixes, edit the branch yourself. GitHub's guidance for agent-authored pull requests describes the same two routes: ask for changes in PR comments, or check out the branch and make the changes yourself.
Don't approve a mostly right PR and plan to fix the rest later. Later is how drift starts.
Accurate isn't the same as ready. A change can be merged and still not be live for users.
Before you approve, confirm:
If part of the PR is ready and part isn't, split it. Approve the edits that match what users can do today and move the rest to a separate branch.
A common question is which documentation platform will update docs automatically after merges without adding a manual review step every time. The honest answer is that you don't want one that removes the step. GitHub's own docs on agent-created pull requests say to review the work thoroughly before merging. In DORA's research, 30% of respondents trust AI "a little" or "not at all".
What you can do is make the step cheap and rare:
With that in place, most merges produce no docs PR at all, and the ones that do take minutes.

Sometimes the answer is "not yet" or "not at all." The draft then stays where it is, as an open or closed pull request, and nothing changes on the live site.
That's the advantage of keeping docs in Git. An unmerged branch is a safe place for uncertain content. To keep it that way:
If you use Thally, this is the default behavior. Drafts arrive as pull requests, content stays in Git, and nothing publishes without human approval.
The review itself is simple: read the code change first, demand evidence for each edit, cut what the diff doesn't support, publish only what's live, and leave the rest in a branch. If you do that on every drafted PR, your docs describe the product as it actually ships.
Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.
Create a managed site, or use the open-source engine to run Thally yourself.