audit_llms_txt
Generate an llms.txt file from a sitemap: parse sitemap.xml and nested indexes, group URLs by top-level path, and output a Markdown document with sectioned link lists.
Instructions
Generate an llms.txt file (https://llmstxt.org spec) from a sitemap. Parses sitemap.xml + nested indexes, groups URLs by top-level path, and emits a Markdown document with H1+description+sectioned link lists. Set fetch_titles=true to pull per URL (slower, richer output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max URLs to include. Truncated after sitemap parse, before title fetch. | |
| site_title | Yes | Site title - top H1 in the generated llms.txt file. | |
| sitemap_url | Yes | URL of sitemap.xml (or sitemap index). Nested sitemaps are followed. | |
| fetch_titles | No | If true, fetch each URL to extract <title> for richer links. Slower (one HEAD-ish GET per URL). Default false uses the URL path as the link text. | |
| site_description | No | One-paragraph site description placed under the H1. Optional but strongly recommended. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| content | Yes | Generated llms.txt file content; save to /llms.txt at site root. | |
| sections | Yes | Number of top-level sections in the generated file. | |
| fetched_at | Yes | UTC ISO-8601 timestamp. | |
| sitemap_url | Yes | Sitemap URL that was processed. | |
| urls_included | Yes | URLs included after applying the limit. | |
| titles_fetched | Yes | Number of pages fetched to extract <title>. | |
| total_urls_in_sitemap | Yes | Total URLs found in the sitemap. |