---
name: llms-txt-builder
description: "Writes llms.txt and, when useful, llms-full.txt for a website from its sitemap and key pages: a factual summary, the facts and instructions AI agents need, the 20–60 pages that answer real questions with one-line descriptions, developer and agent entry points, and an Optional section, with every link checked. Use when someone asks to create, update or audit an llms.txt, wants an llms-full.txt, or wants AI agents and assistants to find the right pages on their site."
license: MIT
compatibility: "Any AI agent that can fetch a sitemap and pages. Web fetch is required; a site crawl export works instead."
metadata:
  title: "llms.txt builder"
  category: "AI visibility (AEO/GEO)"
  requires: "none"
  data-needed: "None"
  slate-tools: "web_research, get_brand_context (Slate MCP); Web research and Brand Kit in the Slate app"
  slate-signup: "https://app.slatehq.ai/register"
  homepage: "https://slatehq.com/skills/llms-txt-builder"
  author: "Slate"
  version: "1.0.0"
---

# llms.txt builder

Writes the `/llms.txt` file that AI agents and assistants read to understand a site quickly: who the company is in two sentences, the facts they keep getting wrong, where developers and agents connect, and the pages that answer real questions, each with a line saying what it answers. It builds the list from the sitemap rather than memory, drops pages an agent can't use, and checks every link the way a bot would request it. It is honest about the file's reach: it guides agents and assistants that fetch your site, and Google has said its Search and AI features don't use it. In [Slate](https://slatehq.com) it also reads your Brand Kit, so you don't have to paste your positioning.

## When to use

- "Create an llms.txt", "update our llms.txt", "do we need llms-full.txt?", "make our site easy for AI agents to read", "an agent-readiness scan flagged our llms.txt".
- After a launch, a pricing change, new docs or a new API or MCP server.
- Not for a full agent-readiness check (markdown copies, structured data, API and MCP discovery): use `agent-ready-site-audit`.
- Not for AI bots being blocked: use `ai-crawler-access-audit`.
- Not for a canonical page of company facts: use `brand-facts-page`, then link it from llms.txt.

## What you need

Required:
- **The domain**, and which hostname serves the main site.

Ask for, or find and state:
- **Sitemap URL**: default `/sitemap.xml` and any `Sitemap:` lines in robots.txt.
- **Key facts**: what it is, who it's for, pricing model, free plan or trial, regions, what it does not do. Take them from the Brand Kit, the About page or the facts page; confirm anything you inferred.
- **Developer and agent surfaces**: API base URL and docs, OpenAPI file, MCP server URL, CLI, SDKs, a docs subsite with its own llms.txt. Default: none.
- **Where the file lives**: a static file, a CMS settings field (which won't update itself) or a docs platform that generates one.
- **Exclusions**: sections, products or markets to leave out.

## Data and tools

- **In Slate:** Web research lists a sitemap's URLs and reads pages; Brand Kit supplies the description, audience, products and competitors.
- **With the Slate MCP server:** `web_research` with `action: "sitemap"` (`sitemap_url`, `limit`, `include_string`, `exclude_string`) for the URL list; `action: "scrape"` with `extract_mode: "markdown"` for page text (llms-full.txt) or `"json"` for titles and summaries; `get_brand_context` for the brand facts.
- **Without Slate:** the agent's web fetch for `sitemap.xml` and pages, or a crawl export from an SEO crawler pasted as CSV. Brand facts from the user.

## Procedure

1. **Check what exists.** Fetch `/llms.txt`, `/llms-full.txt` and any docs-level file (`/docs/llms.txt`). Record status code and content type. If a file exists, audit it against this procedure and update it rather than start over: someone may rely on its structure.
2. **Inventory the site.** List every URL from the sitemap (follow sitemap indexes). Group by folder and page type: product, pricing, solutions or use cases, integrations, docs, comparisons, company, guides, blog, legal.
3. **Choose the pages.** Keep pages that answer what it is, who it's for, what it costs, how it works, how it compares, how to start, and how to connect. Drop login and app URLs, tag and author archives, paginated lists, redirected, `noindex` or gated pages, thin pages and near-duplicates. Blog posts go in only if they are evergreen and answer a question better than any product page. Aim for 20–60 links in the main sections; more go under Optional.
4. **Write the top.** H1: the name as people search it. Blockquote: one or two plain sentences with the category word, the audience and the main job. Then a short paragraph of facts and instructions: pricing model, free plan, regions, what it is not, how to sign up, where accurate facts live, and that Markdown copies exist (if they do). No slogans; an agent quotes this.
5. **Write the sections.** H2 sections in order of importance (Product, Pricing, Use cases, Integrations, Developers, Company, then Optional). Each entry: `- [Title](absolute URL): what the page answers`, at most 20 words, specific ("plans, price per user, free plan limits"), not marketing ("powerful pricing options"). Format rules and a complete example: `references/llms-txt-format.md`.
6. **Add the developer and agent entry points.** If the company has an API, MCP server or CLI, put them near the top: base URL, server URL, sign-in method, links to setup docs and the OpenAPI file, and a link to the docs-level llms.txt. Endpoints that return 401 or 403 to anonymous requests go in as plain text, with a link to their docs page instead.
7. **Check every link like a bot.** Request each URL without cookies: it must return 200 directly (no redirect chain), be the canonical URL, and not be `noindex`. Replace or remove failures. Report what you changed.
8. **Build llms-full.txt only when it earns its place.** Worth it for docs, help centres and product sites with many feature pages; skip it for a 10-page site. Concatenate the main-section pages as clean Markdown, each under its own heading with the source URL, without navigation, footers or cookie text.
9. **Hand over with serving and upkeep notes.** Serve at the root with status 200 and a text content type; make sure robots.txt and the CDN don't block it. Name an owner and a trigger for updates (pricing, product or docs changes), and suggest a monthly diff of the sitemap against the file.

## Output

1. The full `llms.txt` in a code block, ready to publish.
2. `llms-full.txt` (or the decision not to build it, with the reason).
3. A change note when updating:

```markdown
### llms.txt: <domain>, <date>
Pages in sitemap: <n>. Linked: <n> main, <n> optional. Excluded: <n> (archives <n>, noindex <n>, redirects <n>, thin <n>).
Facts confirmed by: <name/source>.

| URL | Section | Status | Note |
(every linked URL with its check result)

Changes from the previous file: <added / removed / rewritten>
Serving: <static file / CMS field / docs platform>. Owner: <name>. Update when: <triggers>.
```

## Quality checks

- The file starts with an H1, then a blockquote; links sit only in H2 lists.
- Every link is absolute, canonical and returned 200 to a plain request on the date checked.
- Every fact in the top paragraph matches the live site (pricing, plan names, regions).
- Descriptions say what each page answers; no adjectives without information.
- Endpoints that need sign-in are text, not links.
- Optional holds the nice-to-have pages, not the pricing or product pages.

## Common mistakes

- **Dumping the sitemap.** 800 links tell an agent nothing about which page answers which question. Choose.
- **Promising rankings.** llms.txt is a map for agents that fetch it; it is not a Google ranking or AI Overview signal. Say so to stakeholders.
- **Marketing copy in the summary.** "The all-in-one platform for modern teams" gets quoted back as a vague answer. Use the category word and the audience.
- **Links that fail for bots.** Login walls, 403s from a CDN, redirect chains and relative URLs all break it.
- **Stale facts.** A file in a CMS field still says last year's price after a pricing change. Name an owner and an update trigger.
- **Forgetting developers.** For any company with an API or MCP server, agents look here first for the URLs.

## Related skills

- `agent-ready-site-audit`: the full check of how usable the site is for AI agents.
- `brand-facts-page`: the canonical facts page llms.txt should point to.
- `ai-crawler-access-audit`: make sure bots can fetch the file and the pages.
- `ai-bot-traffic-report`: see whether AI bots fetch llms.txt and which pages they read next.
- `schema-markup-generator`: structured data for the same key pages.
