Skip to content
PreviewFix
Email authentication & AI search7 min readReviewed

Clean llms.txt indexes and factual JSON-LD graphs.

How the llmstxt.org specification works in strict validators, how robots.txt rules govern AI retrieval vs training bots, and how to link Organization, WebSite, Service, Product and Article JSON-LD nodes via @id without inventing facts.

  • llmstxt.org
  • Schema.org @graph
  • RFC 9309 robots.txt
  • Zero fabricated ratings

Key engineering takeaways

Summary
  • A valid /llms.txt file follows a strict markdown grammar: one # Title H1 first, a > Summary blockquote immediately beneath, optional plain-text details (zero # headings), ## Section link lists using absolute https:// URLs with zero duplicates, and ## Optional last.
  • Separate search-retrieval user agents (OAI-SearchBot, PerplexityBot) from corpus-training user agents (GPTBot, Google-Extended, CCBot) in robots.txt rather than blocking retrieval crawlers by accident.
  • Connect Schema.org entities in a single @graph using stable fragment @id URIs (#organization, #website, #webpage, #service) so crawlers do not parse disconnected duplicate cards.
  • Never emit AggregateRating or Review JSON-LD unless genuine, verifiable customer reviews are visibly rendered on the page itself.

Published by MeWeBe Limited · Factual engineering reference

1. The exact llmstxt.org grammar enforced by strict parsers

Web pages ship navigation chrome, cookie banners, inline scripts and hydrated bundles that waste context tokens when an AI coding assistant, RAG retriever or answer engine tries to understand your product catalogue and documentation. The llmstxt.org convention solves this with two plain UTF-8 files at the root of your origin: /llms.txt (a curated index of canonical URLs with concise factual notes) and /llms-full.txt (concatenated clean markdown of core documentation).

Hand-written /llms.txt files frequently fail machine parsers because authors treat them like free-form README files. Our @repo/engine-geo-ai-visibility validator (validateLlmsTxt / POST /api/v1/engines/llms/validate) checks 15 structural rules:

Minimal valid /llms.txt passing validateLlmsTxt with 0 errors and 0 warningsSpecimen
# Example Industrial Controls Ltd

> UK manufacturer of DIN-rail Modbus power meters and calibration software for commercial buildings.

All technical datasheets, Modbus register maps and firmware checksums are published as public HTML and PDF documents under the URLs below.

## Documentation

- [Modbus TCP Register Map](https://controls.example.co.uk/docs/modbus-registers): Holding and input registers for EM-400 series meters
- [Wiring & CT Sizing Guide](https://controls.example.co.uk/docs/ct-wiring): Three-phase current-transformer installation diagrams

## Products

- [EM-400 Three-Phase Meter](https://controls.example.co.uk/products/em-400): Class 0.5S MID-approved DIN-rail meter with RS-485 and Ethernet

## Optional

- [Terms of Sale](https://controls.example.co.uk/legal/terms): Standard B2B supply terms and 24-month warranty conditions

2. Common /llms.txt mistakes that trigger parser warnings

When compiling /llms.txt programmatically or by hand, avoid the six defects most frequently flagged by validateLlmsTxt:

  • Subheadings (###) or free prose inside ## sections: Once the first ## Section heading begins, consumers expect exclusively markdown link list items (- [Title](https://...): optional single-line note). Put narrative context above the first ## heading.
  • Relative URLs (/docs/api instead of https://domain.tld/docs/api): When /llms.txt is pasted into an external LLM context window or cached offline, relative paths lose their origin; always emit canonical absolute https:// URLs.
  • Duplicate URLs across sections (duplicate-url): Listing the same URL under both ## Main pages and ## Services wastes context tokens and triggers duplicate-link warnings.
  • Placing ## Optional before another ## section (optional-not-last): Short-context agents truncate everything from ## Optional onwards; placing core product or API links after ## Optional hides them from compact retrievers.

3. Building @id-linked Schema.org JSON-LD without invented claims

Search engines and AI citation systems cross-check visible HTML copy against <script type="application/ld+json"> blocks. Instead of scattering five unlinked JSON-LD snippets emitted by competing CMS plugins, publish a clean @graph array where page entities reference site-wide entities via @id ({ "@id": "https://example.co.uk/#organization" }).

Our jsonld.build engine follows one strict rule: missing inputs are omitted, never invented. If a page has no street address, PostalAddress / LocalBusiness is omitted in favour of Organization; if a product page has no visible verified customer reviews, aggregateRating is never fabricated (emitting fake review stars violates Google Search spam policies and UK DMCC / EU Unfair Commercial Practices rules).

SPEC · GEO-LLMS-06 · Reviewed 18 November 2026

AI search & structured-data readiness checks

Technical signals evaluated across robots.txt, /sitemap.xml, /llms.txt and JSON-LD

Engineering checklist
SurfaceEndpoint / selectorTarget stateEngine operation
Crawler access policy/robots.txtRFC 9309 valid, intentional rules for retrieval vs training bots, Sitemap: pointerDeterministic check
Canonical URL inventory/sitemap.xml200 OK XML, canonical https:// URLs only, accurate <lastmod>, zero 404/redirect entriesDeterministic check
LLM index file/llms.txt (text/plain; charset=utf-8)# H1, > summary, ## Sections with unique absolute URLs, ## Optional lastllms.validate (0 units)
Entity graphscript[type="application/ld+json"]@graph linking #organization, #website, #webpage, #breadcrumb & primary entityjsonld.build (2 units)

Before deploying /llms.txt and JSON-LD to production

  • Run your /llms.txt text through llms.validate (or /tools/llms-txt) and resolve both errors and warnings.
  • Escape < as \u003c whenever serialising JSON-LD inside HTML <script> tags to prevent script-breakout injection.
  • Ensure /robots.txt does not accidentally Disallow: /llms.txt or block public documentation paths.
  • Confirm every price, currency, SKU and availability status in Product/Offer JSON-LD matches the visible DOM exactly.

Publishing clean structured data and llms.txt removes technical indexing friction; no ethical tool can guarantee rankings or citations in third-party AI assistants.

Technical questions

Common edge cases & boundaries

Does publishing /llms.txt override robots.txt?
No. robots.txt (RFC 9309) governs what automated crawlers are permitted to fetch. /llms.txt is an opt-in index helping permitted assistants find your canonical pages without scraping noisy layout markup.
Should /solve/ or /portal/ private URLs ever appear in /llms.txt or /sitemap.xml?
Never. Ephemeral preview tokens, customer portals, admin screens, checkout sessions and /api/ endpoints belong in robots.txt Disallow rules and must be excluded from both /sitemap.xml and /llms.txt.
Can we inspect a real /llms.txt file right here?
Yes — visit /llms.txt on this domain to inspect our live machine-readable index covering our main pages, tools, services, guides and developer contract.

Run on your own input

Paired services & previews.

Every digital deliverable starts with a free preview on your own file, URL or domain; managed services lock your quote upfront and hold supplier payout until completion proof clears.

Continue reading

Related technical guides.

8 min read

BYOK vs prepaid credits: micro-API & licences

How our 25 HTTP engine endpoints separate zero-LLM deterministic checks from optional AI operations, how Bring-Your-Own-Key (BYOK) vs prepaid credits prevent surprise overage bills, and how AKL1 Ed25519 tokens verify offline.

7 min read

EU Digital Product Passport & GS1 Digital Link

How to encode GTIN, batch/lot and serial identifiers in GS1 Digital Link URIs and JSON-LD product records across active EU rules (Regulation (EU) 2023/988 GPSR and Regulation (EU) 2023/1542 Batteries) while ESPR delegated acts remain in progress.

7 min read

DMARC, SPF, DKIM & BIMI staged rollout

How to audit DNS TXT records against RFC 7208's 10-lookup SPF ceiling, align DKIM selectors across third-party senders, advance DMARC enforcement in safe stages, and meet mailbox-provider bulk-sender rules.

Test before checkout

Inspect a free preview first.

Run our deterministic checks or live quote tool on your own file, URL, domain or postcode before paying a penny.