Skill

llms.txt Builder skill for Claude

llms.txt Builder checks the llms.txt file on your domain, scores it out of 100, or writes a new file from your homepage, sitemap and key pages

A 3-minute read, updated

The recorded run

Read the run as text

Write our first llms.txt for bramblecrestcoffee.com in under 25 entries from the attached crawl of all 50 URLs and 90 days of the Search Console Pages report

  • site-crawl.csv50 rows
  • gsc-pages-90d.csv40 rows
Using the skill llms.txt Builder
Reading 50 URLs from site-crawl.csv and 40 pages from gsc-pages-90d.csv

Found 50 URLs and 13,168 organic clicks in 90 days. Two pages are excluded: /shop/kenya-nyeri-aa redirects (301) and /brew-guides/chemex is a 404 that still gets 24 clicks.

Top pages by organic clicks, last 90 days
  • Cold brew guide1,842
  • Dark roast caffeine article1,515
  • Home1,288
  • Pour-over guide1,046
  • Grind size chart967
  • Subscriptions744pricing page
Pages picked for llms.txt
SectionEntriesLeads with
Docs8Home, Subscriptions
Products5Ethiopia Guji Natural
Brew Guides5Cold Brew Ratio and Recipe
Resources6Dark roast caffeine lab test

Skipped 19 more: legal, login, cart, tag, pagination and hub pages, stale posts and low-click pages. Five are borderline for later, such as Colombia Huila (141 clicks) and Sustainability.

Validating the file5 passed1 to check
  • passed: H1 title and a 149-character summary line
  • passed: 24 entries, under the 25 limit
  • passed: All 24 URLs absolute and returning 200
  • passed: Descriptions 12 to 25 words, no marketing words
  • passed: 56 lines, inside the 50 to 150 range
  • needs a look: Chemex guide is a 404 with 24 clicks

llms.txt ready to upload

  • 24 entries covering 12,384 of 13,168 organic clicks (94.0%)
  • Key Facts and Contact sections from the About, Cafe and Contact pages
  • Restore the Chemex guide or redirect it to /brew-guides
  • Update monthly as seasonal coffees rotate

The run is one sample task, kept exactly as it came out

How it works

How llms.txt Builder works step by step

Audit a file or write one

The skill checks your existing /llms.txt, or recommends one and can write it from scratch if the file returns 404

Step 1 of 7

What the file has to contain

llms.txt is a Markdown file at the root of the domain. It opens with an H1 site name, then a blockquote summary under 200 characters, then H2 sections such as Docs, Products, Resources or Optional. Each entry is a link with a full https:// URL followed by a 10 to 30 word description. Key Facts and Contact sections are recommended rather than required.

How an audit runs

Claude fetches /llms.txt and /llms-full.txt and records the status code: 200 goes on to validation, 404 means build one, 403 is flagged as a misconfiguration and redirects are followed and noted. The format table checks the title, summary line, sections, entry count, absolute URLs, whether every URL returns 200, descriptions, Key Facts, Contact, length of 30 to 200 lines and broken Markdown. Claude then compares the file with the site navigation and sitemap to list important pages that are missing, broken or redirected, and entries that went stale.

How the score is built

Completeness asks whether the file covers the main navigation sections, the highest-traffic pages and recent content. Accuracy asks whether descriptions match the pages, URLs work and Key Facts are current. Usefulness asks whether an AI system could understand the site from this file alone and tell pages apart. The overall score is Completeness x 0.40 + Accuracy x 0.35 + Usefulness x 0.25.

How a new file is written

Claude reads the site name, meta description, navigation and footer links from the homepage, then the sitemap, and decides the business type (SaaS, e-commerce, local, publisher or agency). With traffic data, pages inside each section are ordered by Search Console organic clicks first, then GA4 sessions from AI assistants, then key events.

For each picked page it reads the H1, meta description and first 2 to 3 paragraphs and writes a factual description, avoiding words like "best", "leading" and "revolutionary". It then adds Key Facts such as founding year, headquarters and top 3 to 5 products.

llms.txt and llms-full.txt

The skill checks for both files. llms.txt stays short: 10 to 30 entries, 50 to 150 lines, 3 to 6 sections. llms-full.txt is the long version with 30 to 100 or more pages and 30 to 100 word descriptions. The build mode writes llms.txt.

Rules it keeps

Thresholds and limits written into the skill, each with the reason behind it

  1. The file lists 10 to 30 pages, starting with the most useful and trusted ones

    The file is meant to point AI systems to the main pages rather than to mirror the whole sitemap

  2. Every link is a full URL with the domain

    Relative links are flagged with high severity in the audit, and the build mode writes only full https:// links

  3. Each page gets a description of 10 to 30 words saying what it covers

    A specific description lets an AI system tell pages apart and cite the right one for a topic

  4. The overall score weights completeness at 40%, accuracy at 35% and usefulness at 25%

    Coverage of the important pages carries the most weight, so a tidy file that misses key pages still scores low

  5. Every URL is checked to load without an error

    A file that points AI systems to a 404 or a redirect sends them to a dead or wrong page

What it needs and what comes back

You give it

  • Your domain
  • An existing /llms.txt, fetched by Claude (audit mode)
  • Search Console Pages export, last 90 days (optional)
  • GA4 landing page or AI referral export (optional)

It hands back

An audit report with scores, missing pages and a rewritten file when needed, or in build mode a ready llms.txt with a note on how the pages were picked

When it helps

  • Your site has no llms.txt and you want one live this week
  • The file was written a year ago and half the URLs have changed
  • ChatGPT or Perplexity describes your pricing or products wrongly

Prompts to start with

Check the llms.txt on example.com and tell me what to fix

Write an llms.txt for our SaaS site, docs.example.com included, and keep it under 25 entries

Compare our llms.txt with the sitemap and list the pages we forgot

Adding it to Claude

claude.ai

Download llms-txt-builder.zip, upload it still zipped in Settings, Capabilities, Skills and ask for the job in a new chat, as Anthropic's help article on using skills in Claude shows

Claude Code

unzip llms-txt-builder.zip -d ~/.claude/skills/

To use it in one project only, move the folder inside the zip (it is called geo-llmstxt) into that project's .claude/skills/, as the Claude Code skills docs describe

Inside the zip

llms-txt-builder.zip3 files in 10 KB
  • geo-llmstxt/
  • CHANGES.md2 KB
  • SKILL.md21 KB

Questions

What is the difference between llms.txt and llms-full.txt?

llms.txt is the short file with 10 to 30 pages of one line each and llms-full.txt the long version with 30 to 100 or more pages, and the skill checks for both and writes llms.txt

Does it upload the file to my site?

No, it gives you the finished file to save at the root of your domain, and after you upload it you run the audit once to confirm it loads without a redirect

More in AI search visibility