Index of every page on this site: llms.txt
All skills
Run it yourself

llms.txt checker and AI SEO audit. Checks whether ChatGPT, Perplexity, Claude and Google AI Overviews can read a website (AI crawler access, llms.txt, markdown for AI agents, api-catalog, JSON-LD) and fixes what fails. Use when the user asks about AI SEO, GEO (generative engine optimization), AEO, llms.txt, AI visibility, ranking in ChatGPT, or why AI tools cannot read their site. Cloudflare Pages templates included; the check works on any host.

  • 9 files
  • 16.9 KB
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/51aitech/llms-txt-check/llms-txt-check

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈116 tokens for metadata: the name and description. ≈676 when used: this file. ≈1.7k more on demand in 1 file.

Description uses 5.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈466 characters, or 5.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

llms.txt check (AI SEO)

Five layers an AI agent or answer engine reads. Add them, then prove them on the live site with scripts/check.sh, never by reading your own code.

layer what template
1. Permission robots.txt with Content-Signal: search=yes, ai-train=yes, ai-input=yes, and no Disallow: / for GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot templates/robots.txt
2. Map /llms.txt: who you are, sections with links, a "notes for answer engines" block. Every claim must also be on a page: engines cite page text, not llms.txt templates/llms.txt
3. Clean text Accept: text/markdown on any HTML page returns the page's <main> as markdown; HTML responses say Vary: Accept templates/functions/_middleware.js (Pages Functions)
4. Discovery Link: </.well-known/api-catalog>; rel="api-catalog" header and a linkset JSON at that path templates/_headers, templates/.well-known/api-catalog
5. Structure JSON-LD on pages; list pages (categories, collections) carry an ItemList of their items build step of your site

Steps

  1. Run scripts/check.sh <domain> first. It prints one PASS/FAIL row per layer and exits 1 on any FAIL; exit 2 (UNKN site-access) means the site refuses non-browser clients, so tell the user AI agents are blocked at the door and stop there. Keep this output as the "before".
  2. Copy the templates for the FAILed layers. Replace example.com. On Cloudflare Pages, keep /llms.txt, /robots.txt, /sitemap.xml, /.well-known/* and static assets out of the function in _routes.json exclude.
  3. Deploy, then run scripts/check.sh <domain> again and also with a deep page: scripts/check.sh <domain> /some/page/. Done = every row PASS on the live site.

Traps found on real sites

  • Edge cache ignores Vary. A zone rule that caches HTML ("Cache Everything") serves the cached HTML to a markdown request before your function runs. Symptom: markdown-on-accept FAILs on / but PASSes on /?x=1 or deep pages, with cf-cache-status: HIT/REVALIDATED. Fix: bypass cache when the request Accept contains text/markdown, or don't cache HTML at the edge.
  • Never cache the markdown response (cache-control: no-store): cache keys ignore Accept.
  • An AI-crawler block in the host's bot settings beats your robots.txt. On Cloudflare, check the zone's AI crawler / bot settings too; blocking "training" can also block search crawlers.
  • llms.txt with numbers that are not on any page is not GEO; put the facts in page text first.
  • curl of the root returning 200 proves nothing about layer 3: test with the Accept header, on the path agents actually fetch.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 17e7407. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago

README badge

README badge for 51aitech/llms-txt-check