Back to blog

Your site is invisible to AI agents. Here's how to fix it.

updated 10 min readprodlint

AI agents read your site differently

An AI assistant reaches your site two ways: through a search index, and by fetching your pages itself when someone asks about you. Either way, what it can do with them depends on signals most sites never set. Which crawlers may fetch what. What your content may be used for. Where the short version of your site lives. Ranking well on Google settles none of that. It's a different set of files and headers, and few sites have them.

What AI discoverability actually means

Traditional SEO answers one question: where does your site rank on Google? AI discoverability answers four different ones. Can an AI agent find your site? Can it understand what you do? Does it know what content it's allowed to use? Can it interact with your services programmatically? Fourteen signals cover this. Some are well-established things you probably have already: robots.txt, sitemap.xml, meta tags, structured data, a fast first response. Others are new and still rare: llms.txt, ai.txt, TDMRep, Content-Usage, A2A agent cards, WebMCP, HTTP Message Signatures, AI-Disclosure. The established ones are table stakes. The emerging ones are drafts and proposals: cheap to add, and some will matter more than others.

robots.txt AI directives

You have a robots.txt. Good. But if it only mentions Googlebot, it says nothing to AI crawlers by name. GPTBot, ClaudeBot, PerplexityBot and the rest each have their own user-agent string. Without rules that name them, they fall under your catch-all, and nothing shows you made a choice. It's also the biggest single step in the Site Score: the two robots.txt checks together are worth more points than any other pair.

Bad: no AI bot directives
# robots.txt
User-agent: Googlebot
Allow: /

User-agent: *
Disallow: /admin
Site Score output
✗ AI robots.txt Directives   0/15  No AI-specific user-agent directives found.
Good: explicit rules for AI crawlers
# robots.txt
User-agent: GPTBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: *
Disallow: /admin

llms.txt

The llms.txt spec (proposed by Jeremy Howard) puts a machine-readable summary of your site at the root. Name, what you do, key pages. Without it, an LLM has to scrape your homepage and guess. With it, the LLM gets your pitch in 30 lines. Think of it like a README for AI. A human reads your About page. An LLM reads your llms.txt.

Bad: no llms.txt
GET /llms.txt
404 Not Found

# LLMs have to scrape your homepage and guess
# what your product does. Most get it wrong.
Good: structured site summary for LLMs
# prodlint

> Open-source linter for AI-generated code. Catches hallucinated imports, leaked secrets, missing auth checks and dozens of other patterns that compile but aren't production-ready.

Run it with npx prodlint. No config, no account.

## Docs

- [Rules](https://prodlint.com/rules): every rule, with examples
- [MCP server](https://prodlint.com/mcp): use it from an AI editor

## Optional

- [Blog](https://prodlint.com/blog): longer write-ups

ai.txt

ai.txt says whether your site's media may be used to train AI models. The format comes from Spawning, and it reads like robots.txt: Allow and Disallow lines, one per file type, so you can keep your images out of training sets while leaving your text in, or the other way round. It covers training and nothing else; search and AI answers are what Content-Usage is for. Like robots.txt, it's a stated preference: it works to the extent that the people building datasets read it.

Bad: no ai.txt
GET /ai.txt
404 Not Found

# You've stated no preference about AI training.
Good: explicit training permissions
# ai.txt: images stay out of training sets, text may be used

User-Agent: *
Disallow: *.jpg
Disallow: *.png
Disallow: *.webp
Allow: *.html
Allow: *.md
Allow: /

TDMRep and Content-Usage

Two ways to say what your content may be used for, each with per-path control. TDMRep, from a W3C Community Group, is a JSON file at /.well-known/tdmrep.json (or a header, or a meta tag) that says whether you reserve text-and-data-mining rights. EU copyright law, in Article 4 of the DSM Directive, lets rightsholders opt out of mining by machine-readable means, and TDMRep is one way to do that. Nothing requires it. Content-Usage, from the IETF's AI Preferences working group, is a line in robots.txt or a response header that says whether your content may be used for AI training, as input to AI, or in search. It's still a draft. The two overlap in purpose and come from different places; setting both covers readers of either.

A2A AgentCard

The Agent2Agent (A2A) protocol, started at Google and now a Linux Foundation project, uses a JSON file at /.well-known/agent-card.json to describe an agent: where it listens, what it can do, and how to authenticate. Other agents fetch the card to find out how to talk to yours. It only applies if you run an A2A server. A site with no agent behind it has nothing to describe, and can skip this one.

Bad: no AgentCard
GET /.well-known/agent-card.json
404 Not Found

# Other agents can't find your A2A server,
# if you run one.
Good: discoverable agent identity
{
  "name": "YourApp Agent",
  "description": "Product search and recommendations",
  "supportedInterfaces": [
    {
      "url": "https://yoursite.com/a2a/v1",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "version": "1.0.0",
  "capabilities": { "streaming": false, "pushNotifications": false },
  "defaultInputModes": ["text/plain"],
  "defaultOutputModes": ["application/json"],
  "skills": [
    {
      "id": "product-search",
      "name": "Product Search",
      "description": "Search by keyword or category",
      "tags": ["search", "products"]
    }
  ]
}

HTTP Message Signatures and AI-Disclosure

RFC 9421 HTTP Message Signatures let agents cryptographically prove who they are. When an AI agent signs its requests, your server can verify that the request actually came from OpenAI, Anthropic, or whoever claims to be asking. Without signatures, you're trusting a User-Agent string that anyone can fake. It matters most on the receiving end: a site that wants to tell real crawlers from impostors. The AI-Disclosure header is simpler. It's a response header that says how much of the content AI wrote: none, AI-modified, AI-originated, or machine-generated. It comes from an individual Internet-Draft, and neither is widely adopted yet. They cost little to add, and whether they catch on is still open.

What a scan looks like

Here's a real one: example.com, the placeholder domain reserved for documentation. It's a single bare page, so it's close to the floor: the only check it passes is answering quickly. A site that already has a robots.txt, meta tags and a sitemap starts well above this.

Site Score output
  prodlint site score  example.com · 14 checks  Score: 8 F  ██░░░░░░░░░░░░░░░░░░  ✗ robots.txt                            0/7  No robots.txt found.  ✗ AI robots.txt Directives             0/15  No robots.txt found. AI bots have no guidance.  ✗ Content-Usage (IETF aipref)           0/5  No Content-Usage directives found.  ✗ llms.txt                              0/6  No llms.txt found.  ✗ ai.txt                                0/3  No ai.txt found at site root.  ✗ TDMRep (W3C)                          0/4  No TDMRep configuration found.  ✗ AI-Disclosure Header                  0/2  No AI-Disclosure header found.  ✗ A2A AgentCard                         0/5  No A2A AgentCard found.  ✗ WebMCP Tools                          0/5  No WebMCP tools detected.  ✗ HTTP Message Signatures (RFC 9421)    0/3  No HTTP signature support detected.  ✗ Structured Data                      0/12  No structured data found.  ✗ OpenGraph & Meta                     0/10  No OpenGraph tags or meta description.  ✗ sitemap.xml                          0/10  No sitemap.xml found.  ✓ Page Load Time                        8/8  0.1s.  1 passed · 13 failed  Full results: https://prodlint.com/score?url=example.com

Check your site in 10 seconds

Run npx prodlint --web yoursite.com in your terminal. Or use the web scanner at prodlint.com/score. Paste your URL, get your score. If you're missing files, prodlint.com/tools has 7 free generators that create them for you: robots.txt AI directives, llms.txt, ai.txt, Content-Usage headers, TDMRep policies, A2A AgentCards, and AI-Disclosure headers. Fill in the form, copy the output, deploy. Some of these are settled and some are drafts that will change. The established ones are worth having today. The emerging ones take a few minutes each, and you can revisit them as the drafts move.

Check your own code.

52 production readiness checks. Zero config.