Skip to content

blog: How to Make Your Docs Agent-Ready - #8092

Merged
ankur-arch merged 5 commits into
mainfrom
blog/docs-agent-readiness-score
Jul 24, 2026
Merged

blog: How to Make Your Docs Agent-Ready#8092
ankur-arch merged 5 commits into
mainfrom
blog/docs-agent-readiness-score

Conversation

@ankur-arch

@ankur-arch ankur-arch commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

A practical post on making documentation readable by AI coding agents, grounded in the work that took the Prisma docs through Mintlify's Agent Readiness Score.

Framing

The post deliberately does not anchor on the score (it moved 85 → 99 → 100 while this PR was open, and will keep drifting). It leads with what agent-ready means and the five fixes, names the score once as a dated snapshot, and treats the CI guard (lint-agent-ready.ts) as the durable outcome. The voice is "we", and the closing section is a five-step playbook a reader can run on their own docs.

Structure

Definition + four properties in the lead → why agents read docs differently → five fixes (summary table, then one subsection each: index split, per-page pointer, Markdown parity, link resolution via the /docs basePath mechanism, skill.md + MCP discovery) → CI section → reader playbook → FAQ (4 accordions, date-qualified).

Honest caveats sit inline where each claim is made: the Markdown Content Parity check still flags 1 of 15 sampled pages, the MCP Server Discoverable check probes /mcp with an initialize request (discovery documents alone don't count; endpoint work ships separately), and the pointer-placement warning is disclosed where the technique is taught.

Verification

  • Five adversarial review rounds in fresh contexts (fact refuter, reader skeptic, positioning lenses). Rounds 1–4 produced findings that were fixed; round 5 returned three minor items (fixed) and the verdict "I would act on this post for my own docs."
  • Every quoted block re-verified byte-exact against live endpoints on 2026-07-24: the llms.txt excerpt, postgres.md opening lines, the .well-known/mcp JSON (both paths), and the Mintlify report language (100/100, 30 checks, two failing checks, one warning, the data-markdown-ignore remediation text).
  • All links return 200. pnpm check passes 6/6 (unrelated reformats excluded from the commit).
  • New hero/meta imagery in the Eclipse house style (four document tiles: llms.txt, postgres.md, skill.md, .well-known/mcp), replacing the score-card design.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added a new blog post, “How to Make Your Docs Agent-Ready.”
    • Explains how coding agents consume documentation and outlines improvements for discoverability, Markdown/HTML parity, link correctness, and agent integration metadata.
    • Includes an audit checklist, CI enforcement guidance, known limitations, and an FAQ.

Adds a post walking through the agent-readiness work merged in #8087:
the llms.txt split, per-page directives, Markdown parity, the llms-full.txt
link fixes, skill.md, and MCP discovery, plus a process readers can follow
on their own docs.

Includes the two checks that still fail (Markdown Content Parity and MCP
Server Discoverable) rather than presenting the work as complete.
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jul 24, 2026 12:55pm
docs Ready Ready Preview, Comment Jul 24, 2026 12:55pm
eclipse Ready Ready Preview, Comment Jul 24, 2026 12:55pm
site Ready Ready Preview, Comment Jul 24, 2026 12:55pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 04c16fed-bc8b-40e4-9382-c2b9b5f8315c

📥 Commits

Reviewing files that changed from the base of the PR and between 1439a26 and 06b173f.

📒 Files selected for processing (1)
  • apps/blog/content/blog/make-your-docs-agent-ready/index.mdx

Walkthrough

Adds a new MDX blog post explaining agent-ready documentation, Prisma’s documented remediation work, audit results, CI enforcement, an audit checklist, and related FAQs.

Changes

Agent readiness blog post

Layer / File(s) Summary
Readiness context
apps/blog/content/blog/make-your-docs-agent-ready/index.mdx
Adds frontmatter and introduces agent-ready documentation alongside five documented problem areas.
Documentation remediation details
apps/blog/content/blog/make-your-docs-agent-ready/index.mdx
Describes llms.txt restructuring, page pointers, Markdown parity, absolute links, feed pruning, skill files, and MCP discovery metadata.
Results and audit guidance
apps/blog/content/blog/make-your-docs-agent-ready/index.mdx
Documents CI enforcement, audit results, an audit checklist, public artifact links, and FAQs.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a blog post about making docs agent-ready.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch blog/docs-agent-readiness-score

Comment @coderabbitai help to get the list of available commands.

@argos-ci

argos-ci Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected 1 ignored Jul 24, 2026, 1:02 PM

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/blog/content/blog/docs-agent-readiness-score-85-to-99/index.mdx`:
- Line 33: Update the paragraph describing the llms.txt size issue to
distinguish Mintlify’s 50,000-character cutoff from the CI-enforced 50,000-byte
budget in apps/docs/scripts/lint-agent-ready.ts. Use explicit units
consistently, and avoid referring to the same limit interchangeably as
characters and KB.
- Line 39: Update the URL-resolution wording in the document’s affected
explanation sections to distinguish root-relative links such as /docs/page,
which preserve the /docs prefix, from path-relative links such as page or
../page, which can drop it. Apply the correction consistently at both referenced
locations without changing the surrounding context.
- Line 53: Update the `llms-full.txt` row in the readiness score table to avoid
claiming that 4.5 MB guarantees agents can hold the feed without truncation;
describe the smaller size as reducing truncation risk, since the CI budget does
not establish a client limit for this file.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 6532ede5-9306-42a4-9ba1-479a72342c17

📥 Commits

Reviewing files that changed from the base of the PR and between b6806c8 and 6355b1f.

⛔ Files ignored due to path filters (2)
  • apps/blog/public/docs-agent-readiness-score-85-to-99/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/docs-agent-readiness-score-85-to-99/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/docs-agent-readiness-score-85-to-99/index.mdx

Comment thread apps/blog/content/blog/docs-agent-readiness-score-85-to-99/index.mdx Outdated
Comment thread apps/blog/content/blog/docs-agent-readiness-score-85-to-99/index.mdx Outdated
Comment thread apps/blog/content/blog/docs-agent-readiness-score-85-to-99/index.mdx Outdated
Retitle from the score-anchored "85 to 99" framing to "How to Make Your
Docs Agent-Ready" (new slug, hero, and meta image to match): the live
score already moved to 100 and will keep drifting, so the post now leads
with the process and treats the number as a dated snapshot.

- Pyramid structure: definition and four properties in the lead, five
  fixes with a summary table, CI section, then the reader playbook
- Voice switched from I to we; date bumped to 2026-07-24
- Five adversarial review rounds (fact, reader-skeptic, positioning
  lenses in fresh contexts); all quoted output re-verified byte-exact
  against live endpoints and the live Mintlify report on 2026-07-24
- Honest caveats moved inline to where each claim is made (parity check
  still failing, MCP probe mechanism, pointer-placement warning)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/blog/content/blog/make-your-docs-agent-ready/index.mdx`:
- Line 118: Update the CI description in the surrounding documentation to say
the llms.txt pointer is required on every indexed page, matching the indexPages
scope enforced by lint-agent-ready.ts, rather than claiming coverage of every
page.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cc40c3ba-d78c-4d86-bb81-0d6719cb1db5

📥 Commits

Reviewing files that changed from the base of the PR and between 6355b1f and 1439a26.

⛔ Files ignored due to path filters (2)
  • apps/blog/public/make-your-docs-agent-ready/imgs/hero.svg is excluded by !**/*.svg
  • apps/blog/public/make-your-docs-agent-ready/imgs/meta.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • apps/blog/content/blog/make-your-docs-agent-ready/index.mdx

Comment thread apps/blog/content/blog/make-your-docs-agent-ready/index.mdx Outdated
Split long paragraphs into short ones and lists: the four properties in
the lead, the three silent failure modes, and the CI invariants are now
bullets. Dropped the prose enumeration of the five problems (the table
carries it row for row). No factual changes; all reviewed claims,
hedges, and caveats intact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ankur-arch
ankur-arch merged commit 04f5a0f into main Jul 24, 2026
17 checks passed
@ankur-arch
ankur-arch deleted the blog/docs-agent-readiness-score branch July 24, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants