Are you an agent? View this page in Markdown.Read our AI instructions.
  • Pricing
  • Docs
  • Blog
  • Changelog
  • Agent Picks runner on GitHub
  • AI Search
  • Visibility
  • Response accuracy
  • Brand positioning
  • AI Traffic
  • Actions
  • Results
  • Agents
  • API & MCP
  • Agent Picks
  • Pick rate
  • Agent Experience
  • Why agents leave
  • Fixes and re-tests
  • Agent runs
  • Local Runner
  • How we test
  • State of AI Search for Dev Tools
  • Developer tool AI search landscape
  • Leaderboards
Sign InSign Up

Make AI describe you the way you'd describe yourself.

Start free trial

No card required

Get recommended by AI search and coding agents.

Product

  • Results
  • How we test
  • Landscape
  • Integrations
  • AI agent directory
  • Free AI visibility checker
  • AI robots.txt checker
  • Pricing
  • FAQ
  • AI instructions

Compare

  • Compare DevTune
  • Peec AI alternatives
  • Profound alternatives
  • OtterlyAI alternatives
  • Profound vs Peec AI
  • DevTune vs Peec AI
  • DevTune vs Profound
  • DevTune vs OtterlyAI
  • DevTune vs Semrush
  • DevTune vs Ahrefs

About & resources

  • About DevTune
  • Free AI search tools
  • Blog
  • Best AI visibility tools
  • Coding agent visibility tools
  • AI visibility APIs, MCP & webhooks
  • Contact
  • Press kit

Legal

  • Terms of Service
  • Privacy Policy
  • Cookie Policy

© Copyright 2026 DevTune. All Rights Reserved. PLGeek Ltd, registered in England and Wales, company number 14492509. Registered office: C/O Aardvark Accounting, 1 Cedar Office Park, Cobham Road, Wimborne, BH21 7SB.

Are you an agent? View this page in Markdown.Read our AI instructions.
Blog

llms.txt, Markdown Mirrors and JSON-LD: Make Your Site Readable to AI Agents

How to write an llms.txt file to the llmstxt.org format, serve Markdown versions of your pages with Accept: text/markdown, and add Organization, SoftwareApplication and FAQPage JSON-LD, with working examples.

Dec 4, 2026·Ben WilliamsThe Product-Led Geek · CEO, DevTune
On this page+−
  1. llms.txt
  2. Markdown versions of your pages
  3. JSON-LD
  4. Check all three

AI search crawlers, answer fetchers and coding agents read your site over HTTP, and what they want from each page is its text, not its layout. Three files make that read cheaper and more accurate: an llms.txt that maps your important pages, a Markdown version of each page served to any client that asks for one, and JSON-LD that states your company, product and prices as data. This guide shows how to write each one, with devtune.ai as a working example, and how to check them.

None of the three replaces readable HTML. An AI search crawler that indexes your page reads the HTML first, and many crawlers run no JavaScript, so the text a buyer needs has to be in the server response. Check that first with the AI crawler preview, which shows the text each crawler gets back. These files add to that page; they don't stand in for it.

llms.txt

llms.txt is a Markdown file at the root of your site that tells a language model what the site is and which pages to read. The format is defined at llmstxt.org:

  1. An H1 with the site or project name. It's the only required part and must come first.
  2. A blockquote with a one- or two-sentence summary.
  3. Optional paragraphs or lists with more context.
  4. ## sections, each a list of links in the form - [Name](https://url): optional note.
  5. An optional section titled ## Optional for links a reader can skip when its context is short.

A starter for a software company:

# Acme

> Acme is a hosted job queue for Node.js and Python. It runs scheduled and
> event-driven jobs with retries, concurrency limits and per-job logs.

## Docs

- [Quickstart](https://acme.dev/docs/quickstart): Install the SDK and run a first job
- [API reference](https://acme.dev/docs/api): Every REST endpoint with request and response examples
- [Retries and backoff](https://acme.dev/docs/retries): How failed jobs are retried

## Product

- [Pricing](https://acme.dev/pricing.md): Plans, limits and what each includes
- [Changelog](https://acme.dev/changelog): Releases by date

## Optional

- [Blog](https://acme.dev/blog): Engineering posts and case studies

What makes one useful:

  • Absolute URLs. A relative link such as /docs/quickstart has no host once the file is pasted into a prompt or cached elsewhere.
  • Notes on every link. The note after the colon is what a model reads to decide whether to fetch the page. "Every REST endpoint with request and response examples" picks the right page; "API docs" doesn't.
  • The pages a buyer or agent needs. Pricing, the quickstart, the reference, integrations and comparisons. Leave out legal pages and anything thin.
  • Links to Markdown where you have it. If /pricing.md exists, link it rather than /pricing.
  • Plain text. Serve it at /llms.txt with a 200 and Content-Type: text/plain or text/markdown, not an HTML page your router falls back to.

devtune.ai's file is at /llms.txt. It opens with what DevTune is, then says when to use it and how agents should connect before listing pages. Prose like that is allowed between the summary and the link sections, and it is often the part an agent quotes.

Some sites also publish /llms-full.txt, the full text of their docs in one file, for tools that load a whole documentation set at once. It's a convention outside the llmstxt.org format. Publish one only if you can regenerate it automatically on every docs change, because a stale full-text file is worse than none.

Markdown versions of your pages

A Markdown copy of a page drops the navigation, scripts and layout, so an agent reading it spends its budget on your content. Serve it two ways at once:

  1. A .md URL. /pricing.md next to /pricing. Easy to link from llms.txt and to fetch by hand.
  2. Content negotiation on the normal URL. When a request sends Accept: text/markdown, return the Markdown from /pricing itself. Agents that support it ask for Markdown without knowing your .md convention.

Try both on devtune.ai:

curl https://devtune.ai/pricing.md
curl -H 'Accept: text/markdown' https://devtune.ai/pricing
curl -I -H 'Accept: text/markdown' https://devtune.ai/

The homepage's Markdown response carries these headers:

HTTP/2 200
content-type: text/markdown; charset=utf-8
vary: Accept, Accept-Encoding
link: </llms.txt>; rel="service-doc"; type="text/plain"
  • Content-Type: text/markdown. Clients decide what they got from this header.
  • Vary: Accept. Without it, a CDN can cache the Markdown and serve it to browsers, or cache the HTML and serve it to agents. Check Vary on the final response, after your framework and CDN have set their own headers, since some frameworks replace it.
  • HTML stays the default. A request with no Accept header, or one that prefers text/html, gets HTML.
  • Link on the homepage. A Link header pointing at /llms.txt lets an agent that starts at your homepage find the map without guessing the path.

Then tell clients the Markdown exists. In each page's HTML head:

<link
  rel="alternate"
  type="text/markdown"
  href="https://devtune.ai/pricing.md"
/>

In Next.js App Router, alternates.types in a page's metadata renders that tag. The implementation for the negotiated URL is a middleware or proxy rule that checks Accept for text/markdown and rewrites to the .md route, plus the Vary header.

Write the Markdown from the same source as the page, not by converting rendered HTML. Converted HTML carries cookie banners, menu labels and repeated calls to action into the text. Keep the real headings, tables and code blocks, and keep prices and limits as text rather than images.

JSON-LD

JSON-LD states facts about the page as schema.org data in a <script type="application/ld+json"> block. A crawler can read it without interpreting your layout. Three types cover most software sites.

Organization, once on the home page, says who you are and links your other profiles through sameAs:

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://acme.dev/#organization",
  "name": "Acme",
  "url": "https://acme.dev",
  "logo": "https://acme.dev/logo.png",
  "sameAs": [
    "https://github.com/acme",
    "https://www.linkedin.com/company/acme",
    "https://x.com/acme"
  ]
}

SoftwareApplication, on the product or pricing page, says what the product is and what it costs. Each offer needs both price and priceCurrency:

{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Acme",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Web",
  "publisher": { "@id": "https://acme.dev/#organization" },
  "offers": [
    {
      "@type": "Offer",
      "name": "Starter",
      "price": "0",
      "priceCurrency": "USD"
    },
    { "@type": "Offer", "name": "Team", "price": "49", "priceCurrency": "USD" }
  ]
}

FAQPage, on a page with real questions and answers visible to readers. Each answer's text must match what the page shows:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Does Acme retry failed jobs?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Failed jobs retry up to five times with exponential backoff by default."
      }
    }
  ]
}

Rules that keep it trustworthy:

  • Server-render it. JSON-LD added by client-side JavaScript is invisible to crawlers that don't run scripts.
  • Match the page. Prices, names and answers in JSON-LD must be the ones a reader sees. When the pricing page changes, the markup changes in the same commit.
  • Link nodes by @id. Reference the Organization from the product's publisher rather than repeating it.
  • Valid JSON. A trailing comma invalidates the whole block.

Check all three

  • The llms.txt checker reads /llms.txt and /llms-full.txt, flags a missing H1 or summary, link items that aren't [name](url) links, and relative links. It also tests whether your homepage answers Accept: text/markdown, whether its HTML links an llms.txt or Markdown version, and which /.well-known/ agent discovery files you serve. With no llms.txt, it writes a starter file for your domain.
  • The schema markup checker lists the JSON-LD types on a page and flags invalid JSON, an Organization without sameAs, url or logo, offers without a price or currency, and empty FAQ answers. It also generates Organization, SoftwareApplication and FAQPage markup from a form.
  • The AI agent directory lists the AI crawlers, answer fetchers and coding agents that read these files, and what each one does on your site.

Once they're in place, the question is whether AI systems fetch the pages and cite them. Your server logs answer the first part; How to track AI crawler and answer-fetch traffic shows how to read them, and robots.txt for AI search crawlers covers letting the right crawlers in.

Related posts

  • robots.txt for AI Search Crawlers: Allow ChatGPT, Claude and Perplexity, Block TrainingDec 4, 2026
  • How to Track AI Crawler and Answer-Fetch Traffic in Cloudflare, Vercel and NginxDec 4, 2026
  • Best AI visibility tools in 2026, by what each is best forNov 25, 2026
Are you an agent? View this page in Markdown.Read our AI instructions.
Sign InSign Up
Are you an agent? View this page in Markdown.Read our AI instructions.