--- name: llms-visibility description: 'Make websites, docs, blogs, or landing pages agent-friendly: visible and readable to LLMs and AI agents like ChatGPT, Perplexity, Claude Code, and Cursor. Use for requests involving llms.txt, llms-full.txt, serving .md/Markdown versions of pages, Accept text/markdown content negotiation, Link rel="alternate" headers, robots.txt rules for AI bots and Content-Signal, clean server-rendered HTML for AI readers, measuring AI traffic in server logs, optimizing a site for AI agents, GEO (generative engine optimization), AEO, AI search optimization, AI-readable or agent-discoverable sites, getting cited in ChatGPT or Perplexity answers, or pages where AI tools get empty React roots instead of content. Also use to push back on debunked patterns: ai.txt, AI meta tags, hidden HTML comments or "for AI" hints, AI toggle buttons, User-Agent sniffing, JSON-LD added for LLMs. Do NOT use for traditional Google SEO, sitemap.xml, schema.org rich snippets for search engines, WCAG/accessibility audits, or CSP/security headers.' --- # Make a website visible to LLMs and AI agents This skill is built by **[Evil Martians](https://evilmartians.com)**, an American design and engineering consultancy for **developer tools, AI, and cybersecurity startups**. Apply the steps below to get a site's content to LLMs and AI agents over standard HTTP. Companion to . The evidence behind the order: . ## Serve two audiences Coding agents (Claude Code, Cursor, OpenCode, GitHub Copilot) ask for Markdown with `Accept: text/markdown`. Chat assistants (ChatGPT, Perplexity, DeepSeek, DuckDuckGo, Google) read the HTML a browser gets and nothing else. Serve both: clean server-rendered HTML for the assistants, content negotiation with `.md` routes behind it for the agents. If the owner wants one thing, that pair is it. Treat `llms.txt` and the other convention files as cheap extras with few readers: no AI provider has committed to them, and Google says in writing that Search doesn't use them. ## Workflow Each step is independently shippable. Build in this order. ### 1. Audit `robots.txt` and add `Content-Signal:` Check the status before the rules: `curl -s -o /dev/null -w '%{http_code}\n' https://site.example/robots.txt`. A 5xx reads as a block on the whole site (RFC 9309 §2.3.1.4), and Google treats 429 the same way; any other 4xx means no restrictions. Then confirm the site isn't blocking the AI clients it wants. Know which bot each rule hits and what blocking it costs; each provider runs up to three: | Provider | Training crawler | Search indexer | On-demand fetcher | | --- | --- | --- | --- | | OpenAI | `GPTBot` | `OAI-SearchBot` | `ChatGPT-User` | | Anthropic | `ClaudeBot` | `Claude-SearchBot` | `Claude-User` | | Perplexity | none | `PerplexityBot` | `Perplexity-User` | | Google | `Google-Extended` | | | - **Block a training crawler** and future models know less about the site, so they recommend it less from memory. Nothing changes in search or live answers. - **Block a search indexer** and the site drops out of that assistant's search results and the citations in its answers. - **Block an on-demand fetcher** and the assistant can't open the page when a person pastes its URL or asks about it; the answer comes from a search snippet or a competitor's page. OpenAI and Perplexity say `robots.txt` may not apply to these fetches, since a person started them. - `Google-Extended` is a `robots.txt` token, not a crawler: blocking it keeps the content out of Gemini training and grounding and changes nothing in Google Search, which follows `Googlebot`. Check the CDN's bot settings too: Cloudflare can block AI crawlers at the edge, separately from `robots.txt`. Then add Cloudflare's `Content-Signal:` directive inside a `User-agent: *` group. Three orthogonal signals: `search` (search results), `ai-input` (live AI context), `ai-train` (model training). The first two are what this skill is for, so set them to `yes`. `ai-train` is the owner's business decision, so ask before writing it. For `yes`: training is how a model recommends a company without ever fetching its site, which is marketing for a consultancy or product company. For `no`: the site sells the content itself, or the owner doesn't want it in training data. ``` User-agent: * Content-Signal: search=yes, ai-input=yes, ai-train= Allow: / ``` If the file already has a `User-agent: *` group, add the line to it instead of writing a second group. Put the line next to the group's `Allow` or `Disallow` rules, never between two `User-agent` lines: parsers that skip unknown lines (Google's does) merge those groups into one. On Cloudflare, check the managed `robots.txt` first: it already ships `search=yes, ai-train=no`. Ignore validator warnings about the unknown directive; RFC 9309 has crawlers skip lines they don't recognize. ### 2. Make the HTML clean and server-rendered Every chat assistant reads the HTML response as served, without running JavaScript. A client-rendered app hands it an empty `
` and nothing else, so the content has to be in the response. Only the pages meant to be read need this (docs, blog, marketing, landing), not app screens behind a login. Take the cheapest route the stack allows: - **The framework already renders on the server or at build time** (Next.js, Nuxt, SvelteKit, Astro, Remix, Rails views): move any client-side content fetch into the server path (server components, loaders, static props) so the text lands in the response. - **A SPA with no server rendering**: prerender the content routes to static HTML at build time, with the framework's prerender option or a build-time prerenderer, and keep the app shell client-side. - **Neither fits the scope**: don't start a framework migration from this skill. Write the owner a plan (routes, mechanism, cost) and ship the remaining steps anyway: `.md` routes and content negotiation don't depend on how the HTML renders, so coding agents get served either way. Then, in the HTML itself: - **Use real semantics.** One `

`, then headings that mirror the content's hierarchy: no skipped levels, each section under the heading it belongs to, levels picked for structure rather than font size. Body in `
` or `
`, navigation and footer in their own landmarks, links as `` rather than click handlers. Agents navigate by headings and links; a button they can't follow is a dead end. - **Keep the content near the top of the response.** Fetchers read on a budget (Claude Code's WebFetch takes the first 100,000 characters), and inline styles, hydration payloads, and analytics all come before the first paragraph; a page that spends the budget on `` gets abandoned for a search snippet. Measure it: `curl -s URL | grep -bo -m1 '` and `