# Making this site readable for agents

> What I changed so coding agents and AI answers can read this site, why, and how to check it with curl.

- Author: Dawid Roch
- Kind: note
- Published: 2026-12-01
- Canonical: https://dawidroch.com/writing/agent-ready/

This site now gives agents what they read best: every page has a markdown version they can find, `robots.txt` says what AI systems may do with the content, and the site follows Cloudflare's agent-readiness checks wherever they apply to a personal site.

I want my work to be found, including by people who ask a coding agent or an AI answer to read pages for them. My pages are heavy for that. The HTML carries a WebGL sea, a command menu, and easter eggs, and an agent only needs the words.

## What was already there

Before this work, the site had [`llms.txt`](https://llmstxt.org/) and `llms-full.txt`, a markdown file for each log and writing entry, and the CV as `cv.txt` and `cv.json`. The other pages, such as the homepage, the log, and About, had no markdown at all. The entries advertised their markdown only in the HTML `<head>`, so a client that read just the response headers never found it.

## Every page as markdown

Every page now has a markdown version at its own address plus `index.md`, such as `/log/index.md`, and also at `/<page>.md`, such as `/about.md`. Entries answer at both `/log/<slug>.md` and `/log/<slug>/index.md`.

The markdown is generated at build time from the same data as the HTML. Copy that used to be written into the page templates moved into one shared file, so the two versions can't drift apart. Each file starts with a `# Title`, a one-line `> summary`, and a `Canonical:` line pointing to the HTML page. It has no HTML, components, or easter-egg text, and drafts and placeholders never appear in it.

Agents find it in two places:

- A `<link rel="alternate" type="text/markdown">` in each page's `<head>`.
- The same link as an HTTP [`Link` header](https://www.rfc-editor.org/rfc/rfc8288), for clients that send `HEAD` or only read headers. The build reads each page's finished HTML and writes the matching rule into Cloudflare's [`_headers` file](https://developers.cloudflare.com/workers/static-assets/headers/), so the header and the `<head>` link can't disagree.

The Workers documentation doesn't say which content type a `.md` file gets, so the site sets `text/markdown; charset=utf-8` itself. The markdown files are left out of the sitemap, so search engines index only the HTML.

You can check it yourself:

```sh
# The homepage points to its markdown in a header.
curl -sI https://dawidroch.com/ | grep -i '^link'

# The markdown itself, with its content type.
curl -sI https://dawidroch.com/about.md | grep -i '^content-type'
curl -s https://dawidroch.com/about.md | head -5
```

## Saying what AI may do with the content

`robots.txt` used to say only that every crawler was allowed. That says nothing about what a crawler may do with what it reads. The [Content Signals Policy](https://contentsignals.org/) adds a line for that, with three uses:

- `search`: building a search index and showing links and short excerpts.
- `ai-input`: using the content as live input to an AI answer, such as grounding.
- `ai-train`: training or fine-tuning models.

The site says yes to all three. I kept training on, because the point of this site is to make my work known. The three values are one constant in the code, so changing my mind is a one-line edit. Preview builds still say `Disallow: /` and give no signals.

The IETF's [AI Preferences working group](https://datatracker.ietf.org/wg/aipref/documents/) is defining a similar `Content-Usage` line. Its [vocabulary](https://datatracker.ietf.org/doc/draft-ietf-aipref-vocab/) and [robots.txt attachment](https://datatracker.ietf.org/doc/draft-ietf-aipref-attach/) were still drafts without working group consensus when I checked, so the site doesn't use them yet. I'll revisit once they're RFCs.

One trap: Cloudflare can [rewrite `robots.txt`](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/) for the whole domain and block AI crawlers from the dashboard. That would silently contradict the file. So the real test is what the live site returns:

```sh
curl -s https://dawidroch.com/robots.txt | grep -iE '^(user-agent|content-signal|allow|disallow)'
```

It should print `Content-Signal: search=yes, ai-input=yes, ai-train=yes` under `User-agent: *`.

## Cloudflare's agent-readiness checks

Cloudflare published [a set of agent-readiness checks](https://blog.cloudflare.com/agent-readiness/) and [a scanner](https://isitagentready.com/) that grades a site on them. Before this last step, it rated dawidroch.com level 2, "Bot-Aware", on a scale from 0 to 5: the robots file, sitemap, Link headers, and content signals passed, and markdown negotiation didn't.

### Markdown when you ask for it

The markdown files need an agent to find them first. [Content negotiation](https://www.rfc-editor.org/rfc/rfc9110#name-accept) skips that step: a client that sends `Accept: text/markdown` gets markdown at the page's normal address. When Cloudflare tested seven agents in February 2026, three of them sent that header by default: Claude Code, OpenCode, and Cursor.

The site had no server code until now, only static files. Negotiation needs something to read the request, so a small Worker now [runs in front of page addresses](https://developers.cloudflare.com/workers/static-assets/routing/worker-script/) only. Files like scripts, images, and the `.md` files still skip it. When a request ranks markdown at least as high as HTML, the Worker returns the page's existing `index.md` with `Vary: Accept` and a canonical link back to the page. Browsers don't ask for markdown, so they get HTML as before.

Cloudflare also offers [Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/), a setting that converts the HTML to markdown on the fly. I didn't turn it on. The site already writes its own markdown, which leaves out the navigation and decoration a conversion would have to guess about.

```sh
# Markdown at the page's own address, and HTML for everyone else.
curl -s -H 'Accept: text/markdown' https://dawidroch.com/cv/ | head -5
curl -sI -H 'Accept: text/markdown' https://dawidroch.com/cv/ | grep -iE '^(content-type|vary|link)'
curl -sI https://dawidroch.com/cv/ | grep -i '^content-type'
```

### A skill for reading the site

The site now publishes an [Agent Skills](https://agentskills.io/) index at `/.well-known/agent-skills/index.json`, following Cloudflare's [discovery draft](https://github.com/cloudflare/agent-skills-discovery-rfc). It lists one skill. Its `SKILL.md` tells an agent where everything lives: the markdown, `llms.txt`, `llms-full.txt`, the CV as JSON, the RSS feed, and search. It also asks agents to keep my own contribution apart from my team's when they cite a log entry. The index carries a SHA-256 digest of the skill, computed from the same text the site serves.

```sh
curl -s https://dawidroch.com/.well-known/agent-skills/index.json
```

### Tools for an assistant in the browser

[WebMCP](https://webmachinelearning.github.io/webmcp/) is a draft from a W3C community group that lets a page offer tools to an assistant built into the browser. The site registers three: search the site, read a page as markdown, and open a page on this site. They reuse the command menu's index and the markdown files, so they add no new content. They register only in a browser that supports WebMCP. Everywhere else, the script does nothing.

### Where it ended up

After these three changes went live on December 1, 2026, the scanner rated the site level 4, "Agent-Integrated". Markdown negotiation, the skills index, and the three WebMCP tools all pass. You can run the same scan on [isitagentready.com](https://isitagentready.com/).

The checks it still fails are the ones below.

### What doesn't apply

Several checks describe things a static personal site doesn't have, so I left them alone rather than build something just to pass them:

- **API Catalog, MCP Server Card, A2A Agent Card**: there's no API, MCP server, or agent to describe. `cv.json` is a static file, and the skill already points to it.
- **Web Bot Auth**: it's for bots that sign their requests. Cloudflare's post says a site that only serves content doesn't need it.
- **OAuth discovery and auth metadata**: nothing here needs a sign-in.
- **Commerce protocols**: the scanner already treats them as not relevant for a site that sells nothing.
- **DNS for AI Discovery**: the scanner finds agent records only because the domain answers for any subdomain. There are no agent endpoints to point them at.
- **The ARD manifest and the Personal Agent Protocol**: both are early drafts, and here they would only repeat the skills index. That follows the same rule as the AI Preferences lines.

Cloudflare's own [Search for Agents](https://developers.cloudflare.com/ai-search/how-to/search-for-agents/) is turned on for the domain. It serves search results as markdown at `/.well-known/search` and adds tags to the HTML that point agents to it:

```sh
curl -s 'https://dawidroch.com/.well-known/search?q=stripe' | head -5
```

## What's left

- When the AI Preferences drafts become RFCs, add their `Content-Usage` line next to the content signals.
- WebMCP only does something in browsers that implement it, so those tools wait on browser support.
- Cloudflare's dashboard settings sit outside the code. If a dashboard change ever rewrites `robots.txt` or blocks AI crawlers, the `curl` above is how to notice.

> **How this was made**
> This site was designed and built by coding agents running on [dstack](https://github.com/RochDawid/dstack), my own skills and agent setup. I decided what the site would allow and kept training on. The agents built the markdown, the signals, and the agent-readiness work, and checked each claim here against the live site.
