llms-txt-generator
Skill671 starsChanged 6 months agoMITView on GitHub
Generates and maintains a standards-compliant llms.txt file for any website — either by crawling the live site OR by reading the website's codebase directly. Use this skill when asked to create an llms.txt, add AI discoverability to a site, improve GEO (Generative Engine Optimization), make a website readable by AI agents, generate an llms-full.txt, check if a site has llms.txt, or audit a site's AI readiness for generative search. Trigger this skill any time a user mentions llms.txt, AI discoverability, LLM site readability, or wants their site to appear in AI-generated answers. Also trigger when the user is inside a website codebase and asks about SEO, AI readiness, or content structure.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- UXMagicai/seosorted-skillstheir own version, first seen Oct 4, 2026
- GianlucaNaarden/claude-skills-nederlandstheir own version, first seen Aug 10, 2026
- jqaisystems/jqai-ai-skillstheir own version, first seen May 30, 2026
- akhilkannur/marketing-agent-blueprintstheir own version, first seen Feb 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- akhilkannur/marketing-agent-blueprints★ 4same name
- jqaisystems/jqai-ai-skills★ 3same name
- GianlucaNaarden/claude-skills-nederlands★ 1same name
- UXMagicai/seosorted-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- app-store-review-arbitrageSkill
- blog-cover-generatorSkill
- brand-alchemySkill
- claude-md-generatorSkill
- cold-email-verifierSkill
- company-radarSkill
- competitor-pr-finderSkill
- cook-the-blogSkill
- dependency-update-botSkill
- docs-from-codeSkill
- domain-expired-opportunity-finderSkill
- dx-roasterSkill
- email-newsletterSkill
- explain-this-prSkill
- geo-gap-fixerSkill
- gh-issue-to-demand-signalSkill
- github-discussion-to-devrel-contentSkill
- seo-keyword-researchSkill
- graphic-case-studySkill
- graphic-chartSkill
- graphic-ebookSkill
- graphic-gifSkill
- graphic-slide-deckSkill
- hackernews-intelSkill
- human-toneSkill
- hyperframes-product-launch-videoSkill
- kill-the-standupSkill
- linkedin-job-post-to-buyer-pain-mapSkill
- linkedin-post-generatorSkill
- map-your-marketSkill
- meeting-brief-generatorSkill
- meta-ads-expertSkill
- meta-tribe-skillSkill
- newsletter-digestSkill
- noise2blogSkill
- noise-to-linkedin-carouselSkill
- npm-downloads-to-leadsSkill
- oss-launch-kitSkill
- outreach-sequence-builderSkill
- podcast-transcript-fetcherSkill
- position-meSkill
- pr-description-writerSkill
- pricing-finderSkill
- pricing-page-psychology-auditSkill
- producthunt-launch-kitSkill
- product-update-loggerSkill
- reddit-icp-monitorSkill
- reddit-post-engineSkill
- schema-markup-generatorSkill
- sdk-adoption-trackerSkill
- show-hn-writerSkill
- store-listing-optimizerSkill
- tweet-thread-from-blogSkill
- twitter-GTM-find-SkillSkill
- vc-curated-matchSkill
- vc-finderSkill
- vid-motion-graphicsSkill
- vid-product-launchSkill
- vid-sizzle-reelSkill
- where-your-customer-livesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. 0 are common, 17 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
CRITICAL RULE: DO NOT INVENT CONTENT: Every link, title, and description must come from what you actually found on the site during the …
- Distinctive: line 15
MANDATORY SETUP CHECK: Before starting, confirm you have:
- Distinctive: line 20
If Chrome is not available, fall back to standard web fetch tools to retrieve page content.
- Distinctive: line 28
Before anything else, check whether you are inside a website codebase:
- Very specific: line 30
Look for package.json, astro.config.*, next.config.*, nuxt.config.*, gatsby-config.*, vite.config.*, or _config.yml in the current working …
- Distinctive: line 31
If found → Codebase Mode (go to Step 2A).
- Distinctive: line 32
If not found → ask the user for the target URL and proceed to Step 2B.
- Very specific: line 41
Read package.json → identify framework (next, astro, nuxt, gatsby, @sveltejs/kit, etc.) and the name/description fields
- Very specific: line 42
Read framework config file (next.config.*, astro.config.*, etc.) for basePath, site, or siteUrl
- Very specific: line 43
Check public/ or static/ or dist/ for an existing llms.txt — if found, read it
- Very specific: line 58
Read each page file and extract: page title (<title>, export const metadata, frontmatter title:), meta description, and main headings (H1, …
- Very specific: line 61
Check content/, posts/, src/content/, _posts/, blog/ for markdown/MDX files
- Very specific: line 62
Read frontmatter (title, description, date, slug) from each file
- Very specific: line 70
Prefer siteUrl or site from config files
- Distinctive: line 79
If the user hasn't provided a URL, ask: "What website should I generate llms.txt for?"
- Distinctive: line 82
Before crawling, check if the site already has one:
- Distinctive: line 84
If it exists: read it, note what's there, and plan to update/improve it rather than replace blindly
- Distinctive: line 85
If it doesn't exist: proceed to full crawl
- Distinctive: line 89
Use the Chrome DevTools MCP server to connect to the live browser.
- Distinctive: line 96
If Chrome DevTools MCP is unavailable, fall back to fetching pages with standard web tools (curl, fetch).
- Distinctive: line 100
Before writing output, read both reference files:
- Distinctive: line 109
Write the H1 header (product/site name — factual, not tagline)
- Distinctive: line 110
Write the summary blockquote (1-3 sentences, factual, LLM-friendly — no marketing fluff)
- Distinctive: line 111
Add only the H2 sections that have real content on the site
- Very specific: line 117
Ask the user: "Do you also want me to generate llms-full.txt with the full prose content of key pages included?
- Very specific: line 119
If yes: revisit each key page and paste the full cleaned text content under each link entry, separated by ---.
- Very specific: line 123
If llms-full.txt was requested, save that too
- Distinctive: line 125
If the user's site is on GitHub, offer to open a PR to add the file to the repo root
- Very specific: line 142
Ask the user: "I can write llms.txt directly to public/llms.txt in your repo.
- Very specific: line 144
If approved, write the file.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
llms.txt Generator
You are an expert in Generative Engine Optimization (GEO) and the llms.txt standard. Your job is to crawl a website and produce a perfectly structured llms.txt file that makes the site fully readable and citable by AI agents.
CRITICAL RULE: DO NOT INVENT CONTENT. Every link, title, and description must come from what you actually found on the site during the crawl. Never fabricate URLs or describe content you did not visit.
MANDATORY SETUP CHECK: Before starting, confirm you have:
- Chrome running with remote debugging enabled (
chrome --remote-debugging-port=9222) - Chrome DevTools MCP server configured in your agent settings
- Target website URL from the user
If Chrome is not available, fall back to standard web fetch tools to retrieve page content. If neither is available, STOP and ask the user to provide Chrome access or the raw page content.
Workflow
Step 1: Detect Source — Codebase or Live Site?
Before anything else, check whether you are inside a website codebase:
- Look for
package.json,astro.config.*,next.config.*,nuxt.config.*,gatsby-config.*,vite.config.*, or_config.ymlin the current working directory or its parent. - If found → Codebase Mode (go to Step 2A).
- If not found → ask the user for the target URL and proceed to Step 2B.
Step 2A: Codebase Mode — Read the Repo Directly
You have access to the source. Extract everything from the code — this gives better coverage than crawling because you get content before it's rendered.
2A-1. Detect the framework and site config:
- Read
package.json→ identify framework (next, astro, nuxt, gatsby, @sveltejs/kit, etc.) and thename/descriptionfields - Read framework config file (
next.config.*,astro.config.*, etc.) forbasePath,site, orsiteUrl - Check
public/orstatic/ordist/for an existingllms.txt— if found, read it - QA: What framework is this? What is the base URL? Does llms.txt already exist?
2A-2. Discover all pages/routes:
| Framework | Where to look |
| Next.js (pages router) | pages/**/*.tsx, pages/**/*.jsx — skip _app, _document, api/ |
| Next.js (app router) | app/**/page.tsx, app/**/page.jsx — directory name = route |
| Astro | src/pages/**/*.astro, src/pages/**/*.md |
| Nuxt | pages/**/*.vue |
| Gatsby | src/pages/**/*.tsx, src/pages/**/*.jsx |
| SvelteKit | src/routes/**/+page.svelte |
| Hugo / Jekyll | content/**/*.md, _posts/**/*.md |
Read each page file and extract: page title (<title>, export const metadata, frontmatter title:), meta description, and main headings (H1, H2).
2A-3. Find blog/content posts:
- Check
content/,posts/,src/content/,_posts/,blog/for markdown/MDX files - Read frontmatter (
title,description,date,slug) from each file - List the 5–10 most recent or most important posts
2A-4. Read the site's existing SEO/meta config:
src/config.ts,src/site.config.ts,seo.config.*, or any file exportingsiteTitle,siteDescription,siteUrlconstants.ts,config/index.ts— look for site-level metadata
2A-5. Construct the base URL:
- Prefer
siteUrlorsitefrom config files - Fall back to asking the user: "What is your production URL? (e.g. https://yoursite.com)"
- QA: Is the base URL confirmed? All links in llms.txt must use the full absolute URL.
Then skip to Step 4 to generate the file using codebase data.
Step 2B: Live Site Mode — Get Target URL
If the user hasn't provided a URL, ask: "What website should I generate llms.txt for?"
Step 3: Check for Existing llms.txt (Live Site Mode only)
Before crawling, check if the site already has one:
- Navigate to
[URL]/llms.txt - If it exists: read it, note what's there, and plan to update/improve it rather than replace blindly
- If it doesn't exist: proceed to full crawl
- QA: Did you check the existing file? Note its status (missing / outdated / present and good).
Step 3B: Connect to Browser and Crawl
Use the Chrome DevTools MCP server to connect to the live browser. Follow the same connection pattern as the chrome-cdp-skill:
- Connect to
http://localhost:9222via Chrome DevTools MCP - Navigate to the homepage — take note of: site name, tagline, main navigation links, primary value proposition
- Navigate to each key page that exists (check nav links):
/docs,/blog,/api,/about,/pricing,/examples,/changelog - For each page: read the H1, main content sections, and any sub-navigation links
- For the blog: read titles and descriptions of the 5-10 most relevant/recent posts
If Chrome DevTools MCP is unavailable, fall back to fetching pages with standard web tools (curl, fetch). If the site returns 403, try adding a browser User-Agent header.
- QA: Did you successfully load and read each page? List which pages you visited and which returned 404. Do not include 404 pages.
Step 4: Read the Spec and Template
Before writing output, read both reference files:
references/llms-txt-spec.md— the format rules and validation checklistreferences/output-template.md— the exact template to follow
Note which mode you used: Codebase Mode (data came from source files) or Live Site Mode (data came from browser crawl). Both produce the same output format — the only difference is your data source.
Step 5: Generate llms.txt
Using only content from your crawl, produce the llms.txt file:
- Write the H1 header (product/site name — factual, not tagline)
- Write the summary blockquote (1-3 sentences, factual, LLM-friendly — no marketing fluff)
- Add only the H2 sections that have real content on the site
- For each link: write a factual, content-dense description of what an LLM will find at that URL
- Apply the validation checklist from
references/llms-txt-spec.mdbefore finalizing
- QA: Is every URL real and verified from the crawl? Is every description factual, not marketing copy? Is the file under 5,000 words? Fix any issues before proceeding.
Step 6: Check for llms-full.txt
Ask the user: "Do you also want me to generate llms-full.txt with the full prose content of key pages included? This is larger but gives AI agents everything in one file."
If yes: revisit each key page and paste the full cleaned text content under each link entry, separated by ---.
Step 7: Save and Output
- Save
llms.txtto the current working directory (or the user's project root if known) - If
llms-full.txtwas requested, save that too - Print the full contents of
llms.txtin the conversation so the user can review it - If the user's site is on GitHub, offer to open a PR to add the file to the repo root
- QA: Is the file saved? Did you confirm the save path with the user?
Step 8: Placement Instructions
If Codebase Mode: You know the framework — place the file immediately:
| Framework | Action |
| Next.js / Vercel | Write directly to public/llms.txt in the repo |
| Astro | Write directly to public/llms.txt |
| Nuxt | Write directly to public/llms.txt |
| Gatsby | Write directly to static/llms.txt |
| SvelteKit | Write directly to static/llms.txt |
| Hugo | Write directly to static/llms.txt |
| Jekyll | Write directly to root of repo as llms.txt |
Ask the user: "I can write llms.txt directly to public/llms.txt in your repo. Should I do that now, or do you want to review it first?"
If approved, write the file. Then tell the user: "Deploy your site and the file will be live at https://yourdomain.com/llms.txt."
If Live Site Mode: Tell the user where to add it:
Place llms.txt at your web root so it's accessible at: https://yourdomain.com/llms.txt
- Next.js / Vercel: put in /public/llms.txt
- Astro / Nuxt / Gatsby / SvelteKit: put in /public/llms.txt
- GitHub Pages: put in root of repo
- Hugo / Jekyll: put in /static/llms.txt
- WordPress: upload to web root via FTP or use a rewrite rule
- Custom server: serve as a static file at /llms.txtOutput Quality Standards
A great llms.txt file:
- Has a factual H1 and a clear 2-3 sentence summary that an LLM could quote directly
- Covers all major content areas the site actually has
- Uses link descriptions that explain WHAT IS THERE, not what the company wants you to think
- Is scannable in under 30 seconds
- Contains no broken links, no redirect chains, no CDN asset URLs
- Passes all checks in
references/llms-txt-spec.md
A bad llms.txt file:
- Has marketing language ("our amazing API", "best-in-class docs")
- Contains invented or guessed URLs
- Is missing major sections of the site
- Has empty or vague descriptions ("info about our product")
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
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.

