Community라이팅 & 에디팅github.com

llms-txt-generator

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".

llms-txt-generator란 무엇인가요?

llms-txt-generator is a Claude Code agent skill that 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".

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/varunrajurkar/claude-geo-skills/tree/HEAD/skills/llms-txt-generator

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

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.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

관련 스킬