Skip to main content

Beyond Page Views: My Experiment with Agent-First Docs, MCP, and Skills

· 10 min read
Sajeetharan Sinnathurai

Good documentation shouldn't stop being useful when a developer switches from the browser to an AI assistant.

That is the idea behind my experiment with agent-first docs. I refreshed two developer documentation sets, covering agent workflows, Model Context Protocol (MCP), skills, and documentation indexes. I'll refer to them as documentation set A and documentation set B.

I started by asking whether this would bring more visits. But the more useful question is what happens next: can a developer get the right documentation into an assistant and turn it into a working result?

The results gave me encouraging signals about the overall refresh, especially the practical setup and usage guides. They also helped me separate what I observed from what I still need to test.

A developer, documentation, and an AI assistant connected through navigation, Markdown, and prompts

What actually changed in my docs​

I compared the same documentation pages across equal 28-day windows before and after the refresh, excluding publication day and internal/test traffic.

MetricBeforeAfterChange
Set A page views557823+47.8%
Set A distinct visitors350479+36.9%
Set B page views392629+60.5%
Set B distinct visitors226458+102.7%

The strongest shift was in set A's focused guides: overview, setup, usage, and compatibility. Together, their page views grew from 54 to 381, about 7.1 times the baseline. Page views with a copy interaction increased from 2 to 32, although that started from a small base.

The setup guide alone went from 15 to 122 views, with copy-interaction views increasing from 2 to 19.

There is an important counterpoint: across all pages, copy-interaction views fell from 40 to 36 for set A and 37 to 28 for set B. For set A, copying shifted toward the focused guides rather than growing across the documentation as a whole.

My reading is that the refreshed docs reached more people, and the practical guides in set A attracted more views involving copying. That is a useful outcome to investigate further.

It isn't proof that any one feature caused the improvement. The refresh combined content changes, indexes, and AI handoff guidance. The copy metric also doesn't distinguish Copy as Markdown from other copy actions, or show whether a copied example worked.

Why I chose focused documentation indexes​

An assistant can read a documentation page and still struggle to find the next one.

Perhaps the answer needs an authentication guide, a setup tutorial, and a reference page. Without a useful index, the assistant may guess URLs or spend several requests finding its way around.

The llms.txt proposal addresses that navigation problem with a Markdown entry point: a short introduction and links to relevant content. Think of it as a map, not a replacement for the documentation.

In our docs, we chose dedicated llm.txt files for each core area of Cosmos DB rather than one file covering the entire documentation set. The intention was to keep each index focused and make the relevant content easier to navigate. Here, llm.txt refers to our files; llms.txt is the filename used by the linked proposal.

That choice raised a useful question in a discussion with Waldek Mastykarz: how would an agent discover those files? Were we providing a discovery path, or expecting it to find a file under a product-specific path?

We don't currently have an explicit discovery mechanism for those per-area files. An agent must find the URL or be given it. Creating a focused index and making that index discoverable are separate pieces of work.

I would address that with a root index linking to the area-specific files and links from relevant documentation pages. Explicitly supplying an index URL is another useful test, but it tests the file's usefulness when provided, not automatic discovery.

External research is useful background here: Mintlify's Docs URL Benchmark reports more efficient navigation when Markdown pages link to an index. That supports testing the approach; it isn't a result from my docs.

Why Copy as Markdown is part of the approach​

Not every developer starts inside an agent. Sometimes you find the right page yourself and want to ask an assistant to adapt it to your project.

That handoff should be simple.

A Copy as Markdown action can provide the article's headings, instructions, links, and code blocks without asking someone to select around navigation menus and page furniture. A directly accessible Markdown URL gives agents another way to retrieve the same content.

A documentation page copied into a clean document for an AI assistant, retaining its heading, warning, and code block without the navigation sidebar

Cloudflare's AI consumability guide documents both approaches: a page action for copying Markdown and machine-readable versions of individual pages.

That is a useful implementation reference, not evidence that my visitors used the same workflow. My own copy-interaction results show increased activity on focused guides, but don't establish which copy feature people used or what happened after the copy.

There is an important detail here. A clean export must preserve meaning, not just remove HTML. If a guide has tabs for different platforms, the copied content still needs to associate each command with the right platform. Warnings, prerequisites, and code examples need to survive too.

For me, the test isn't whether the button copies something. It is whether the copied content gives the assistant enough context to help without losing an important condition.

A prompt in the docs turns reading into a next step​

Even with the right page, a developer still has to decide what to ask.

"Help me set this up" leaves a lot open. Which environment? What is already installed? Should the assistant explain, edit files, or run commands?

A task-specific prompt can carry those expectations across. Mintlify's Prompt component is an example of this pattern: documentation authors can provide prompts that readers copy or open directly in Cursor.

Here is the kind of starter prompt I'd put beside a setup guide. Replace the bracketed values before using it:

Help me complete [task] using this documentation: [documentation URL].

My environment is [OS, language, framework, and version].
Read the guide and its prerequisites before proposing changes.
Ask for any missing configuration; don't invent values.
Never ask me to paste secrets into chat.
Explain required permissions and ask before changing external resources.
Use the documented steps and finish with the guide's verification check.
Link to the documentation you used.

This isn't a magic prompt or a guarantee of success. It is a clearer starting point: the task, source, constraints, and expected finish line travel together.

I would maintain these prompts alongside the examples. If the setup process changes but the prompt doesn't, the docs now have two conflicting sets of instructions.

Check that the docs agree with each other​

Waldek also suggested a practical check: look for inconsistent facts across the documentation. He described trying this with the Dev Proxy docs cloned locally.

The premise is worth testing. If a setup guide, reference page, and sample give conflicting requirements, an assistant has to decide which one to follow. A cleaner export won't resolve that conflict.

I don't have his original prompt, so this is an example I would use, not a reproduction of his prompt or a check I've completed:

Review the documentation in this local repository for conflicting facts.
Do not edit files.

Compare prerequisites, supported versions, authentication, permissions,
configuration values, commands, defaults, and feature limitations across
guides, reference pages, and examples.

For each potential conflict:
- Cite both file paths and line numbers, with short supporting excerpts.
- Explain whether the statements apply to the same version and scenario.
- Distinguish contradictions from intentional differences or missing context.
- Describe what needs verification; don't invent the correct answer.

Prioritize conflicts that could prevent setup or lead to unsafe permissions.
Report only findings supported by the repository.

I would review each finding before changing anything. Different instructions can be correct for different versions or environments; the goal is to find real contradictions, not make every page identical.

MCP and skills keep the guidance close to the work​

These pieces have different jobs:

  • llms.txt helps an assistant locate relevant pages.
  • Markdown and copy actions make the content easier to bring into its context.
  • Prompts explain the task and how to approach it.
  • MCP can connect the assistant to documentation search or other tools, depending on the server.
  • Skills provide reusable task guidance, including when and how to use those tools.

Microsoft Learn's MCP getting-started guide illustrates why the last two matter together. It covers connecting the server, using it, and setting instructions when the assistant doesn't use the documentation tools as expected. It also describes a plugin combining the Learn MCP server with agent skills.

Making a tool available and helping an assistant use it appropriately are different problems. Good documentation needs to cover both, including permissions and a way to verify the first successful operation.

The workflow is the real test​

Conceptual journey from an llms.txt navigation map through Markdown, a prompt, MCP tools, and reusable skills to a completed task

Complementary parts of an agent-friendly workflow, not a required execution order. Illustrations are AI-generated.

The experience I want is straightforward:

  1. A developer starts with a task.
  2. The assistant finds the right guidance through the index, a direct link, or documentation search.
  3. The developer can hand over a clean Markdown page and a relevant starter prompt.
  4. The assistant follows the prerequisites, uses any required tools with appropriate approval, and checks the result.

To test the benefit locally, I'd run the same representative tasks with and without these aids, keeping the assistant version, environment, and task instructions consistent. I'd check whether it reached the right page, avoided broken links, preserved important warnings, and completed the documented verification.

That would help isolate which parts of my implementation contributed, rather than treating the overall increase as proof for every feature.

The before-and-after results already show stronger reach and more copy activity on specific guides. What they don't tell me is whether an assistant discovered an index, used a prompt, or helped someone complete a task.

My takeaway​

My documentation refresh was followed by higher page views and distinct visitor counts for both documentation sets, with a particularly strong shift toward practical guides in set A.

That is the result I can share. I can't attribute it to a text file alone, and I wouldn't describe copying as a success everywhere when the overall totals declined.

Focused indexes, portable Markdown, task-specific prompts, MCP, and skills are the pieces I'm exploring together. The discussion also exposed two things worth checking next: whether agents can discover those indexes, and whether the instructions they find agree with each other.

Better reach is encouraging. A consistent, discoverable path to a working result is the next thing to verify.

That is the direction I want to keep building toward: documentation that helps developers finish the task, wherever they choose to work.

Further reading​

Ask Sajee

A contact guide, not live chat.

What would you like help with?