agentleFS
saizulsaizul/seo-audit-skills/skills/llms-txt/SKILL.md

llms-txt

Skill0 starsChanged 13 days agoMITView on GitHub

Create, update and validate an llms.txt file (the llmstxt.org proposal) that gives AI assistants and agents a curated Markdown map of a website or documentation - H1 name, blockquote summary, and H2 sections of annotated links, with an Optional section - built from a sitemap, a page list or a static HTML build. Use when the user asks for llms.txt, an AI-readable site index, "make my docs readable for LLMs/agents", or wants to check an existing llms.txt.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecommerce-seo, internal-linking and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MYehia565Skill

    ecommerce-seo

    Applies Google ecommerce SEO guidance: IA/URLs, product data, and shopping-related structured data. Use when building or fixing product/category/store search presence.

    Also in 3 projects that use this

  • akii-technologies-ltdSkill

    internal-linking

    Analyze and improve internal linking strategy. Use when the user asks about "internal links", "link structure", "site architecture", "link strategy", "orphan pages", "link equity", "page authority distribution", "anchor text", "topical clusters", "siloing", or wants to improve how pages connect.

    Also in 3 projects that use this

  • huiferSkill

    local-seo

    本地 SEO 分析和优化专家。自动检测项目是否需要本地 SEO,分析 NAP(Name, Address, Phone)一致性、本地关键词优化、Google Business Profile (GBP) 优化和本地结构化数据生成。提供本地商家搜索引擎排名优化建议,包括 NAP 标准化、本地关键词策略、GBP 完整性检查、评论策略、地图嵌入和本地 SEO 审计。

    Also in 3 projects that use this

  • AnthropicSkill

    seo-audit

    Run a comprehensive SEO audit — keyword research, on-page analysis, content gaps, technical checks, and competitor comparison. Use when assessing a site's SEO health, when finding keyword opportunities and content gaps competitors own, or when you need a prioritized action plan split into quick wins and strategic investments.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a short, curated index that tells language models what the site is and which pages matter, in the format proposed at llmstxt.org.

    line 9
  2. Very specific:

    Place it at /llms.txt (or /docs/llms.txt for a docs subtree).

    line 33

“Common” is measured: kept by at least 6 in 10 of the 16 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

Write a short, curated index that tells language models what the site is and which pages matter, in the format proposed at llmstxt.org.

Paths below are relative to this skill's directory.

When to use

  • "Create an llms.txt for my site/docs", "update llms.txt after we added pages"
  • Validating an existing /llms.txt
  • Deciding which pages to expose to AI assistants and in what order

When not to use

  • Controlling AI crawler access: that is robots.txt (see robots-sitemap-check). llms.txt grants nothing and blocks nothing.
  • Expecting a search ranking effect: llms.txt is a proposal for AI tools, not a Google ranking signal. Say so if the user assumes otherwise.

Format (in order)

  1. # Name - the only required part.
  2. > Summary - one or two sentences on what the site/project is.
  3. Optional free-form paragraphs or lists (no headings) with context: who it is for, how docs are organised, key terms.
  4. ## Section blocks, each a list of - [Title](https://url): optional notes.
  5. ## Optional - secondary links agents may skip when context is short.

Place it at /llms.txt (or /docs/llms.txt for a docs subtree). The proposal also suggests offering clean Markdown versions of pages at the same URL plus .md (or index.md for directory URLs); link those .md URLs when they exist.

Workflow

  1. Collect inputs: site name, one-sentence summary, the audience, and a page source - sitemap.xml, a CSV/JSON page list (url,title,description,section), or a built HTML directory.
  2. Generate a draft: python3 scripts/llms_txt.py build --name "Example" --summary "..." --sitemap sitemap.xml --section "Docs=/docs/" --section "API=/api/" --section "Blog=/blog/" --optional Blog -o llms.txt
    • From HTML (uses <title> and meta descriptions, skips noindex pages): --html-dir dist --base-url https://example.com
    • Pagination, tag, author, feed, cart, login and query-string URLs are dropped by default (--no-default-excludes keeps them); add --exclude REGEX for more.
  3. Curate - this is the real work. Cut it down to the pages an assistant needs to answer questions about the product: getting started, core concepts, API reference, pricing/limits, policies. Order sections from most to least important. Rewrite link notes as one plain sentence about what the page answers. Move changelogs, old posts and marketing pages to ## Optional or drop them. Aim for tens of links, not thousands.
  4. Add context paragraphs under the summary: product names, versions, terminology, what not to confuse it with.
  5. Validate: python3 scripts/llms_txt.py validate llms.txt --strict
  6. Ship it from the site's static root (public/llms.txt, static/llms.txt) or a route that renders it with Content-Type: text/plain; charset=utf-8 (Markdown also works). Regenerate it in the build if pages change often.

Output

  • The final llms.txt content in a fenced markdown block (or written to the static folder if the user asked for a file).
  • The validator result.
  • A short note listing what you left out and why, and whether .md page versions exist.

Files

  • scripts/llms_txt.py - build (sitemap, CSV/JSON pages, or HTML dir; sections by path prefix; Optional section; default excludes) and validate (structure, link list syntax, absolute URLs, duplicates).
  • references/example.md - a complete example and curation guidelines.

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.