agentleFS
varunrajurkarvarunrajurkar/claude-geo-skills/skills/llms-txt-generator/SKILL.md

llms-txt-generator

Skill0 starsChanged 9 days agoMITView on GitHub

Create or improve an llms.txt file (the llmstxt.org format) for a website by reading its sitemap, page titles and meta descriptions, then editing the draft into a clean, curated map for large language models. Use this whenever someone asks for an llms.txt or llms-full.txt, wants to make their site easier for ChatGPT, Claude, Perplexity or other AI tools to understand, asks what llms.txt is or whether they need one, or is doing GEO/AEO work on a site, even if they only say "AI-friendly sitemap" or "file for AI crawlers".

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the bundled script (standard-library Python 3.9+) by its full path: in Claude Code, ${CLAUDE_SKILL_DIR} is this skill's folder.

    line 35
  2. Distinctive:

    If the script can't run, build the draft by hand from the sitemap and the key pages.

    line 48
  3. Distinctive:

    Fix titles and descriptions: remove brand suffixes and marketing fluff, and make each description say what the page answers ("Prices for …

    line 58
  4. Very specific:

    If the user wants llms-full.txt too, it holds the full text of the key pages in Markdown.

    line 65

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

llms.txt generator

llms.txt is a Markdown file at the site root (https://example.com/llms.txt) that gives language models a short, curated summary of a site and links to its most useful pages. Format (llmstxt.org):

# Site or brand name

> One-paragraph summary: who you are, what you offer, for whom.

Optional extra context in plain paragraphs (no headings).

## Section name

- [Page title](https://example.com/page): one-line description of what the page answers

## Optional

- [Less important page](https://example.com/other)

Be straight with the user about what it does: it's an emerging convention. Some AI tools and agents read it; Google has said it doesn't use it for Search. It's cheap to add and harmless, but it's not a ranking factor and doesn't replace crawlable pages, good titles or structured data.

Step 1: Draft from the sitemap

Run the bundled script (standard-library Python 3.9+) by its full path: in Claude Code, ${CLAUDE_SKILL_DIR} is this skill's folder; elsewhere, use the folder this SKILL.md was loaded from.

python "${CLAUDE_SKILL_DIR}/scripts/llms_txt.py" https://example.com --json                # draft + stats
python "${CLAUDE_SKILL_DIR}/scripts/llms_txt.py" https://example.com --out llms.txt         # write the draft
python "${CLAUDE_SKILL_DIR}/scripts/llms_txt.py" https://example.com --max-pages 60 --json  # big sites

It finds the sitemap (robots.txt Sitemap: lines, then /sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml, else homepage links), reads titles and meta descriptions of the shallowest pages, and groups pages by their first path segment. Unread pages go under ## Optional.

If the script can't run, build the draft by hand from the sitemap and the key pages.

Step 2: Edit the draft (this is where the value is)

The script's output is raw material. A good llms.txt is curated, so before handing it over:

  • Rewrite the summary line so it says plainly who the business is, what it offers, where and for whom. One or two sentences, no slogans. This line is what a model is most likely to repeat.
  • Keep the pages that answer real questions: services or products, pricing, about, contact, key guides, case studies, docs. Drop thin, duplicate, legal-boilerplate, tag and paginated pages.
  • Fix titles and descriptions: remove brand suffixes and marketing fluff, and make each description say what the page answers ("Prices for Shopify stores in Dubai, AED ranges").
  • Order sections by importance, most useful first, and give them human names ("Services", "Guides"), not URL slugs.
  • Keep it short: usually 10–40 links. Put long-tail pages under ## Optional or leave them out.
  • Check every URL is a canonical, indexable, 200 page on the same domain.

If the user wants llms-full.txt too, it holds the full text of the key pages in Markdown. Only suggest it for documentation-style sites, because it's long and needs upkeep.

Step 3: Deliver

Give the final file in a code block (or write it to llms.txt if you have file access), then the install step: upload it to the web root so it loads at https://their-domain/llms.txt as text/plain or text/markdown. On WordPress that means the site root via FTP/file manager or an SEO plugin that supports it; on Shopify, upload it under Content → Files and add a URL redirect from /llms.txt to it. Suggest adding a reminder to update it when key pages change.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.