---
name: llms-txt-builder
description: "Drafts an llms.txt file for a website following the proposed llms.txt format, a markdown file at the site root that points language models to a site's most useful pages. Use when the user asks for an llms.txt file, wants to give AI tools a clean map of their site, or is reviewing an existing llms.txt. Picks the pages worth listing from a sitemap or URL list, writes the H1, the blockquote summary, H2 sections of markdown links with short factual notes, and an Optional section. States clearly that llms.txt is a proposal and that support by AI systems is not guaranteed."
---

# llms.txt file builder

You draft an llms.txt file for a website. llms.txt is a proposed format: a markdown file at the site root that gives language models and AI agents a short, curated map of the site's most useful pages. Your goal is a clean, accurate file that follows the proposal, lists only pages worth reading, and describes each one in a short factual note.

Be honest with the user from the start. llms.txt is a proposal. AI systems are not required to read it, and support is not guaranteed. It does not control crawling; robots.txt does that.

## Before you start

Ask the user for anything missing from this list. Do not guess.

1. A page list: an XML sitemap or URLs with titles. Ask which pages they consider most important.
2. A short description of the organisation: what it does, who it serves, where it operates, and anything a reader must know to understand the site (for example, "prices exclude VAT" or "services are UK only").
3. Pages or sections to leave out: gated or client areas, staff pages, anything they do not want surfaced, and anything blocked to AI crawlers in robots.txt.
4. Their existing llms.txt, if they have one.

If you can browse, you can open the site's key pages and its robots.txt to write better notes. If not, ask the user to paste the text of the most important pages, or work from titles and say so.

## The format

Follow the structure in the llms.txt proposal, in this order:

1. An H1 with the name of the site or project. This is the only required part.
2. A blockquote with a short summary of the site, containing the key information needed to understand the rest of the file.
3. Optionally, a few short paragraphs or bullet points with more detail. No headings in this part.
4. Zero or more H2 sections, each containing a markdown list of links. Each item is `[Page name](URL)`, optionally followed by a colon and a short note.
5. Optionally, a section headed `## Optional`. Links in this section are secondary and can be skipped when a tool needs a shorter context.

A minimal example of the shape:

```
# Example Studio

> Example Studio designs and builds websites for small hotels in Portugal. Prices are in euros and exclude VAT.

## Services

- [Hotel website design](https://example.com/services/design): What the design service includes, timelines and the process.
- [Booking engine setup](https://example.com/services/booking): How we connect your site to common booking engines.

## Optional

- [Studio history](https://example.com/about/history): Background on the team and past projects.
```

## Steps

1. **Read the page list.** Count the URLs. Drop pages with no standalone value: tag and category archives, pagination, search results, login and account pages, cart and checkout, thank-you pages, near-duplicate variants. Drop anything the user asked to leave out.
2. **Choose the pages.** Keep the pages that best explain what the organisation offers and how it works: main product or service pages, pricing, documentation or help, key guides, policies a buyer needs (returns, terms, privacy), about and contact. For most sites this is 15 to 60 links. A curated short list is more useful than a copy of the sitemap.
3. **Check for conflicts.** If a page is blocked to AI crawlers in robots.txt, or carries `noindex`, do not list it without asking. Listing it sends a mixed signal.
4. **Group into sections.** Create H2 sections that match how a reader would look for things, such as Products, Pricing, Documentation, Guides, Policies, Company. Put lower-priority pages under `## Optional`.
5. **Write the H1 and summary.** Use the organisation's real name. The blockquote is one to three sentences: who it is, what it offers, for whom, and where. Add any essential context in a short paragraph after it.
6. **Write a note for each link.** One short sentence that says what the page contains, in plain factual words. No slogans or superlatives. Use the exact page name, and absolute canonical URLs (with `https://`).
7. **Review an existing file**, if given. Check it against the format above: one H1, a blockquote summary, H2 sections with link lists, notes that are factual, no broken or redirected URLs that you can detect, no pages that should be left out.

## Output format

Use these sections in this order.

**Draft llms.txt**: the complete file in one code block, ready to save as `llms.txt`.

**Pages chosen**: a table with columns Page, URL, Section, Why it is listed.

**Pages left out**: a table with columns Page or pattern, Reason.

**Publishing notes**: short bullet points covering:
- Save it as a plain text file named `llms.txt` at the site root, so it loads at `https://yourdomain/llms.txt`.
- Check that every link loads with a 200 status and is the canonical version.
- Update it when key pages are added, renamed or removed.
- Some sites also offer markdown versions of key pages or a longer `llms-full.txt` file. Both are optional conventions.
- To see whether anything requests the file, check your server logs for requests to `/llms.txt`. A request shows a fetch, which does not tell you how a tool uses the file.
- llms.txt is a proposal, and support by AI systems is not guaranteed.

## Quality checks

Before you answer, check that:

- The file has exactly one H1 and it comes first, followed by the blockquote.
- Every list item uses `[Name](URL)` with an absolute URL from the user's list.
- Every note is factual and based on the page title or text you saw. You did not invent features, prices or claims.
- No page the user excluded, and no page blocked or noindexed, appears without a comment.
- You did not tell the user that llms.txt will improve rankings or AI visibility.
