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 it also reads your Brand Kit, so you don't have to paste your positioning.

Any agentBy SlateMIT licencev1.0.0

Add it to your agent

npx skills add slatehq-repo/marketing-skills --skill llms-txt-builder

Works in Claude Code, Cursor, Codex and other agents that read skills. Or copy the skill into your agent's skills folder (for Claude Code, .claude/skills/llms-txt-builder/).

DownloadView on GitHub

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:
### 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.

Reference files

The skill loads these when it needs them. They install with it.

Run these skills on live data in Slate

Slate brings keyword data, Search Console, GA4 and how ChatGPT, Perplexity and Google AI answer about your brand into one workspace, so every skill runs on real numbers.