Skip to main content

How to Keep Docs Agent-Ready After a 100/100 Agent Score

Pull request checks, a weekly AFDocs run, a baseline guard, and documentation health signals, with sample GitHub Actions workflows

Updated 21 min readMarkdown
Part of seriesBuild AI-Ready Docs
How to Keep Docs Agent-Ready After a 100/100 Agent Score

This is Part 3 of my Build AI-Ready Docs series. In Part 1, I shared how we took the Rootstock Developer Portal from 71 to 100 on Fern's Agent Score. In Part 2, I walked through the nine areas we changed to get there.

In September 2026, the Rootstock Developer Portal reached 100/100 on Fern's Agent Score. Grade A+, 22 of 23 checks passed, and one was skipped.

When I shared the result with the team, I also named the next step: protect the score as new contributions come in. I ended Part 1 on the same note. This post is about what that work looks like in practice and how you can set up the same thing for your own docs.

If you've already done a first round of agent readiness work and you're wondering how to keep it, this one is for you. If you're just starting, start with Part 2.

You can check all of this yourself. I've kept the article light on code and put the full workflows, scripts, and reference tables in a companion gist. If you (or your coding agent) want every detail, that's the place to go.

TLDR

  • Docs change every week, and almost any change can undo one of the checks behind your score.
  • I keep the portal's Agent Score in place with three layers: checks on every pull request, a weekly run against the live site, and a small script I call the baseline guard.
  • Not every check should block a merge. I sort them into blocking, advisory, and informational.
  • I watch a handful of documentation health signals side by side. My first version leaned on page freshness. That was a mistake, and I'll tell you why.
  • You can copy the workflows and the guard from the gisoff.t.

The 588-character problem

Here's how close we were to losing a check.

On the day we hit 100, AFDocs (the open-source checker behind Fern's Agent Score) reported this about our llms.txt file:

llms.txt is 49,412 characters (under 50,000 threshold)

The file listed 335 pages, so each page took about 147 characters. That left room for roughly four more pages before the check would fail.

Four pages. That's one small new section, written by someone doing their job well.

That's what makes this tricky. The things that break agent readiness are usually ordinary: someone adds pages, moves URLs, publishes a long API reference, or upgrades a plugin that changes how Markdown gets built. None of it is a mistake. It just adds up.

I mapped common changes to the check that catches each one. The full table is in the gist's reference file, and here are the ones I see most:

What changed? What can break for agents?
New pages llms.txt goes over its size limit, or misses the new pages
A new section with an auto-generated landing page The landing page never makes it into llms.txt
A big API reference page The page goes past 50,000 characters, and agents cut it off
A plugin or dependency upgrade Markdown copies of pages go missing or come out broken.
A hosting config change The server stops returning Markdown when an agent asks for it.

A quick word on what the score checks

AFDocs runs a set of checks against your live site. Version 0.18.7, the one on Fern's leaderboard for the portal, ran 23 of them. Together they answer one big question: can software find, fetch, and read your docs?

That's a useful question, and it's the only one the score answers. It won't tell you whether a page is correct, whether an agent finished a task with it, or whether developers found what they searched for. For those, I look at other signals.

The signals I watch

Alongside the agent readiness work, I built an internal health dashboard for the portal. It's private, so I'll share how it's designed and leave the data out.

It tracks six signals:

  • Discovery: Can developers find what they need?
  • Search: Do searches return useful results?
  • Reliability: Do links, pages, and builds work?
  • Content health: Are important pages up to date and accurate?
  • Machine access: Can software fetch the docs in a usable form?
  • Agent readiness: Has the machine-facing side of the docs slipped since the last good run?

Three rules shaped the design, and I'd keep all three if I started again:

  1. No single score for everything. Each signal gets its own panel. Content health has its own score, built from a few of these signals, but nothing rolls all six into one number, where a gain in one area could hide a drop in another.
  2. Say when data is missing. If a source isn't connected yet, the panel says "not connected." The dashboard never guesses a number.
  3. Keep readiness and AI traffic apart. Readiness tells you agents can fetch your docs. AI traffic tells you whether they did. One doesn't prove the other.

The part I got wrong: freshness

My first version of the content health score gave 20% of its weight to stale content, based on freshness: the share of pages updated in the last 90 days. Freshness also had its own target of 80%.

It seemed reasonable, and it was easy to explain. Then, in a review with stakeholders, we talked through how a team would respond to that target.

The quickest way to raise it is to edit pages. Fix a typo, reword a sentence, and the page looks fresh again, even if nobody checked whether its commands still work. We'd be rewarding edits for their own sake.

So I took stale content out of the score and added page engagement in its place. Freshness is still on the dashboard as background information, with no target. The score now leans on a review stamp: two lines in a page's front matter that a person adds after checking the page.

---
freshness_review_date: 2026-10-08
owner: your-github-handle
---

Git tells you when a page was edited. The stamp tells you when someone confirmed it's still right. The Rootstick style guide only allows a stamp after five checks: commands and versions work, network values are correct, links resolve, terminology and Vale pass, and the page description is the right length. If the page is accurate, the stamp is the only change. No cosmetic edits to justify it.

The full content health formula, with its weights, is in the gist's reference file.

Three layers that keep the score in place

Here's the whole system in one picture:

A pull request goes through three layers. Layer 1, pull request checks that give the same result every time and block a merge: the build including llms.txt and .md exports, artifact verification, the coverage audit, the internal link check, the middleware unit checks and Vale on changed lines. After merge and deploy, Layer 2 is the weekly run against the live site: AFDocs at a pinned version and a full link crawl. Layer 3, the baseline guard, compares the AFDocs result with a reviewed baseline and opens an issue labelled docs-health when a check regresses. All results feed the health signals and the maintenance cycle, which also produce issues with owners. Each issue becomes a new pull request.

Most of this already runs on the portal. The baseline guard is the new piece, and I wrote and tested it for this post.

Piece Status
Pull request checks Running today in verify-llms-build.yml, check-broken-links.yml and docs-linting.yml
Weekly run Running today in docs-health-reliability.yml
Health dashboard Running today (private)
Baseline guard New, in the gist

Layer 1: checks on every pull request

These run whenever a pull request touches the docs or the build. Each one gives the same answer every time for the same input, and none of them needs the live site. That's what makes it fair to block a merge on them.

On the portal, a pull request has to pass these:

  • The build, including the step that writes llms.txt and the Markdown copy of each page.
  • Artefact checks: the expected files exist, the URLs are clean and llms.txt stay under 50,000 characters. Part 2 shows this script.
  • A coverage audit: every page in the sitemap should appear in llms.txt. This is the one that catches a new section that never made it in.
  • Middleware checks: the small piece of server code that sends Markdown to agents who ask for it still maps each page to the right file.
  • Internal links, in all four languages the portal supports.
  • Vale, our prose linter, but only on the lines the pull request changed. That way nobody has to fix a page's old warnings before merging a typo fix.

Here's the heart of the workflow:

- name: Build site
  run: yarn build

- name: Verify machine-readable artifacts
  run: node scripts/verify-llms-build.mjs

- name: Audit llms.txt coverage
  run: node scripts/audit-llms-coverage.mjs --min-coverage 95

One lesson I'd pass on: have the workflow watch your build files too, along with your docs/ folder. A plugin or dependency upgrade can change how Markdown gets built without touching a single page. The full workflow in the gist also watches the plugins, scripts, server config, and lockfile.

Layer 2: the weekly run

Some checks can't run on a pull request. AFDocs scores the live site, so it only sees a change after it's deployed. A full link crawl depends on other people's servers being up.

So on the portal, these run every Monday at 06:00 UTC, after the weekend's merges have gone out. One job crawls every link. The other runs AFDocs and saves the result as a small JSON file the dashboard can read.

Two settings in that AFDocs run are easy to miss:

const AFDOCS_VERSION = process.env.AFDOCS_VERSION || '0.18.7';

// ...
'--sampling', 'deterministic',

Pin the version. AFDocs is in early development, and its README warns that check names, flags, and output can change between minor versions. Our April run had 22 checks. Our June run had 23. The current docs describe 28. If you let the version float, you can't tell whether your docs changed or the checker did.

Use deterministic sampling. AFDocs tests a sample of your pages. By default it picks a random sample each time. With deterministic checks in place, it picks the same spread of pages as long as your list of URLs stays the same. Adding pages can still shift the sample a little, so if you need the same pages every week, the curated option lets you list them.

Layer 3: the baseline guard

A weekly run tells you where you are today. It doesn't tell you whether that's a problem. For that, you need something to compare against.

The baseline guard is a small Node.js script. It compares each weekly result with a baseline: a result you've reviewed and committed to the repository as "this is what good looks like." Then it exits with a code your workflow can act on:

Exit code What it means What the workflow does
0 Nothing got worse. Nothing
1 A check started failing. Opens an issue and turns the run red
4 Some checks couldn't reach the site. Note it in the run summary.
5 The AFDocs version changed. Note it in the run summary.

There are two more codes for bad input. The full script and the weekly workflow are in the gist.

The day the portal scored 0/100

Exit code 4 exists because of something that happened while I was preparing this post.

I ran AFDocs 0.18.7 against the portal from a sandboxed environment that blocked outbound requests to the site. It came back with 0/100, Grade F. Thirteen checks failed, nine were skipped, and one passed.

Nothing about the docs had changed. Fern's leaderboard still showed 100. Every one of those failures came from a request that never reached the site, and AFDocs counted them as failures anyway.

Picture that landing in a team channel as an urgent alert. Now picture it happening every time the network has a bad day. People would stop reading the alerts pretty quickly, including the ones that matter.

So the guard sets those checks aside as "unavailable" and opens no issue. If a different check fails in the same run, it still flags that one. Here's what it printed for the sandbox run:

AFDocs 0.18.7. Baseline 100, current 0.
UNAVAILABLE: 13 of 23 checks could not reach the site.
These checks say nothing about the docs. Re-run from a runner that can reach the site.

You can see its output for seven different cases in guard-sample-output.txt. The raw sandbox result is in the gist too.

The maintenance cycle

Automation catches regressions. A person still has to decide what the signals mean and what to fix first. I do that in a maintenance cycle.

I ran the first one in October 2026, starting from the dashboard. I looked at three things: searches that returned nothing over the previous 30 days, broken links from the crawl and pages with no review stamp.

The work merged in November as one pull request. I reviewed and stamped 45 pages, replaced two auto-generated landing pages with written ones, fixed a bug in our link checker and added search metadata for the queries that were coming up empty. A few broken external links needed a decision from the people who own them, so those stayed open for follow-up.

From here, the plan is to run the cycle every month and add the advisory findings from the weekly run to it. If you don't have a dashboard, a monthly issue that lists your signals and what changed works fine.

Deciding what's allowed to block a merge

Some checks give the same answer every time. Others depend on the network, on which pages got sampled, on someone else's website or on a person's judgment. When both kinds can block a merge, people start rerunning failed jobs or ignoring them.

So every check gets one of three policies:

  • Blocking: the pull request can't merge, or the weekly run turns red and opens an issue.
  • Advisory: the result is recorded, and a person looks at it.
  • Informational: the result is recorded for context.

On the portal, everything in Layer 1 is blocking. External links are advisory, because other sites go down. A failing AFDocs check is blocking once the guard confirms it, and informational when the run couldn't reach the site. Search data and review stamps are informational.

One more example: I tested automated checks for generic, machine-sounding writing on one section of our docs. They flagged too much to block merges on. My recommendation was to keep them advisory, with a person reviewing the results.

The full policy table is in the gist.

When lots of people write the docs

On a developer portal, plenty of changes come from outside the docs team. Engineers document their features. Product teams update guides. Other repositories open automated pull requests. On our portal, the node software repository does that for setup and troubleshooting pages.

A few things keep everyone working the same way:

  • Same checks for everyone, bots included. An automated update that breaks the coverage audit fails the same way a person's change does. It's worth agreeing on page structure with the teams that own those generators.
  • Clear ownership. A CODEOWNERS file requests the right reviewers automatically and keeps the docs team on every file that enforces the rules.
  • Keep the rules out of content changes. If one pull request can edit a page and the baseline, it can approve its own regression. Change baselines and policy in their own pull requests.
  • A checklist for contributors. A pull request template lets people catch problems before CI does.
  • The same checklist for coding agents. If your repo has an AGENTS.md, add the checks there so agents run them before opening a pull request.

All three files are ready to copy in the gist's contributor kit.

Where the Docs Agent Readiness Toolkit fits

After going through all this on one portal, I wanted to see which parts could work for any docs site. That became the Docs Agent Readiness Toolkit, an open-source project I maintain.

It's early, and it's deliberately narrow. It works offline on evidence you collect: source files, build output, saved responses from the live site and recorded AFDocs results. It tells you where a problem came from, whether that's the source, the build or the live site, so you can fix it in the right place.

Five places a problem can come from, left to right. SOURCE: Markdown, MDX and front matter, checked by Vale and review stamps. BUILD: HTML, .md exports, llms.txt and the sitemap, checked by the verify and coverage scripts. LIVE: what the CDN serves, checked by AFDocs and a link crawl. RUNTIME: what agents fetched, measured with request logs as estimates. TASK: whether the agent finished the job, measured with task evaluations.

The Agent Score only covers the first three. The last two need their own tools, which I come back to at the end.

Two of its ideas shaped the baseline guard. First, a check's result and what CI does about it are separate decisions. Second, missing evidence never counts as a fix: if something disappears, it shows up as "unavailable" and stays open.

Before calling it useful, I asked a technical writer, a DevEx engineer and a documentation engineer to try it and tell me what confused them. They found real problems, which I fixed. The results are public, including what didn't work.

How to set this up for your Docs or Devportal

If I were starting again, this is the order I'd go in. Each step is useful on its own, so you can stop anywhere.

  1. Record where you are. Run AFDocs against your live site with a pinned version and save the result:

    npx -y afdocs@0.18.7 check https://docs.example.com \
      --format json --score --sampling deterministic > afdocs-baseline.json
    
  2. Build everything in one command. Whatever writes llms.txt and your Markdown files should run inside your normal build.

  3. Check the build output on every pull request: required files, clean URLs and the llms.txt size limit.

  4. Check llms.txt coverage against your sitemap.

  5. Lint only the changed lines with Vale.

  6. Check internal links on every pull request, and external links weekly.

  7. Schedule the weekly run for after the week's merges have deployed.

  8. Commit a reviewed baseline and add the guard.

  9. Write down your policy: blocking, advisory or informational, and who responds.

  10. Add review stamps, and give freshness no target.

  11. Put your signals side by side, even in a monthly issue.

  12. Run a maintenance cycle every month.

The gist's README has a quick start for steps 7 and 8.

Not on Docusaurus? The same approach works elsewhere:

  • On a static site generator like MkDocs, Sphinx, Hugo or Astro Starlight, swap in your build command and point the scripts at your output folder.
  • On a hosted platform that builds llms.txt for you, like Fern or Mintlify, you don't control the build. Start with the weekly run and the guard, which only need your public URL.
  • On GitLab CI or another CI system, the scripts are plain Node.js, so you can move the steps into your pipeline.

What this can't tell me yet

This setup tells me a few things with confidence: agents can still reach the docs, links work, new writing follows our style rules and someone confirmed each stamped page was accurate on a given date.

It can't tell me whether an agent finished a task using our docs, how long onboarding takes or what happened to support requests. Those need other tools.

Usage is the one I'm looking at now. Evil Martians shared their own request logs and found that in September and October 2026, more than half of agent reads on their site were Markdown. Almost all of it came through content negotiation, where the agent asks the normal page URL for Markdown and the server sends it. I'm testing something similar on the portal: counting how often AI tools fetch our machine-readable files, without recording anything that identifies a person. Agents can fake who they are, so every count is an estimate. It's still a proof of concept.

What this means for technical writers

Most of what got us to 100 was systems work: llms.txt, Markdown files, content negotiation and CI. Keeping it there is systems work too, plus one more thing. Every signal needs someone who owns the response when it drops.

I've written before about treating documentation as a product, with its own lifecycle and goals you can measure. Keeping docs agent-ready is that same idea, for a new kind of reader. For technical writers, the job doesn't stop at publish. We also need to know whether people and agents can find, read and trust what we wrote, months later.

Wrapping up

The score gave us a clear starting point. We worked through the failures, changed the system, ran the checks again and went from 71 to 90 to 100.

Since then, the work has been about keeping it there while the docs keep growing. It comes down to a simple loop:

A five-step loop: Measure (score, links, search, stamps), Investigate (which page, which boundary), Change (fix in source or build), Validate (pull request checks and a re-run), Monitor (weekly run and baseline guard). When a signal moves, the loop returns to Measure.

Measure, find the cause, fix it in the right place, check the fix and keep watching.

What I want now is docs that keep working for people and agents long after the score stops being news. If you're working on the same thing, I'd love to hear what's working for you.

FAQ

How do you keep an Agent Score from dropping?

Block merges on checks that give the same result every time, run AFDocs every week against your live site with a pinned version, and compare each run with a reviewed baseline. Only open an issue when a check gets worse.

Which documentation checks should block a pull request?

The build, the artefact checks (including the llms.txt size limit), the llms.txt coverage audit, internal links, middleware checks and Vale errors on changed lines.

Why pin the AFDocs version?

AFDocs is in early development, and its check names, flags and output can change between minor versions. The portal's runs went from 22 checks to 23, and the current docs describe 28.

Why would AFDocs report 0/100 for a site that scores 100?

If the machine running it can't reach your site, AFDocs 0.18.7 counts the failed requests as failed checks. Treat that run as unavailable, and run it again from somewhere that can reach the site.

Is page freshness a good documentation health metric?

A freshness target rewards edits for their own sake. A review stamp, added after someone checks the page, is a clearer sign that the page is accurate.

Does an llms.txt file mean AI agents read your docs?

It means they can find them. Request logs show what they fetch, so it's worth tracking that separately.

Resources

#BuildWorldClassWeb3Docs #BuildAIReadyDocs

About the author

  • I’m Owanate Amachree, a Lead Technical Writer at RootstockLabs with 6+ years of experience in developer documentation and Developer Experience. I write about documentation systems, information architecture, machine-readable documentation, AI agent readiness, documentation health, and the tools and practices that help teams maintain better developer documentation.

The baseline guard is the idea I will steal first. A weekly score tells you where you are, but without a committed baseline you cannot tell a real regression from a checker change or a network blip. Separating blocking, advisory and informational checks also feels right — making everything blocking is how teams end up ignoring the whole run. The review stamp instead of a freshness target is a neat fix too.

Nnetproxy23h ago

The review stamp idea stood out to me. Freshness as a metric always seemed easy to game with small edits, so separating when a page was last edited from when someone last checked that it is still correct makes a lot of sense. The baseline guard also seems like the right way to stop a good score from quietly slipping.