llms-txt
Skill0 starsChanged 18 days agoMITView on GitHub
Generate or update an llms.txt file at the root of a code repository, following the llmstxt.org spec — making the project navigable by language models. Use when the user asks to create llms.txt, generate an LLM index, document a repo for AI consumption, audit existing llms.txt, or invokes /llms-txt, /llms-txt full, /llms-txt validate.
- Reads credentials
13 other projects use a version of this.
Adopted by
Most recently taken up by
- 6t9xstar/one-step-seotheir own version, first seen Nov 8, 2026
- genericService/claude-skillstheir own version, first seen Nov 8, 2026
- akii-technologies-ltd/akii-seo-ai-search-optimizertheir own version, first seen Nov 1, 2026
- Anas660/claude-seo-desktheir own version, first seen Nov 1, 2026
- try-era/geo-skillstheir own version, first seen Oct 17, 2026
- jsath/claude-skillstheir own version, first seen Oct 13, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- akii-technologies-ltd/akii-seo-ai-search-optimizer★ 79same name
- jsath/claude-skills★ 14same name
- littlebearapps/pitchdocs★ 8same name
- 6t9xstar/one-step-seo★ 5same name
- Anas660/claude-seo-desk★ 3same name
- AgentCTO/claude-skills★ 2same name
- jstanx/aeo-toolkit★ 2same name
- marcelo-earth/llms-txt-generator★ 2same name
- genericService/claude-skills★ 1same name
- howseen-ai/howseen-geo-skills★ 1same name
3 more not listed
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 repository8 other files it gives its agents.
- llms.txtllms.txt
- bpmnemonicSkill
- break-timeSkill
- memoriaSkill
- poet-commitSkill
- repo-badgesSkill
- seo-geo-auditSkill
- vibeasfuncSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Create a high-quality llms.txt file at the root of a repository, following the llmstxt.org proposed standard.
- Distinctive: line 29
Not really applicable — this is a one-shot generator, not a session mode.
- Very specific: line 35
Discover candidates: Run scripts/discover.sh to enumerate:
- Distinctive: line 41
Read and synthesize: Read the README and primary metadata file.
- Distinctive: line 83
Don't invent URLs: All links must point to real files in the repo (relative paths) or URLs explicitly present in the README.
- Very specific: line 84
Respect
.gitignore: If a candidate file is gitignored, don't index it.
“Common” is measured: kept by at least 6 in 10 of the 13 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
Create a high-quality llms.txt file at the root of a repository, following the llmstxt.org proposed standard. The file is a curated, machine-readable index of the project — a "table of contents for LLMs" — that fits comfortably in a model's context window.
Why this exists
LLMs reading a repo blind have to guess what matters. llms.txt lets a project tell them: here is the project, here is the summary, here are the canonical docs in priority order, here are the secondary resources you can skip if context is tight. It's robots.txt for the model era — except it helps the model do its job better, not worse.
Invocation
The only slash command is /llms-txt; modes are arguments to it.
| Trigger | Behavior |
/llms-txt | Generate llms.txt at the repo root |
/llms-txt full | Also generate llms-full.txt (concatenated full docs, no truncation) |
/llms-txt validate | Validate an existing llms.txt against the spec |
/llms-txt update | Refresh an existing llms.txt with current repo state, preserving manual edits |
| Natural language: "create an llms.txt", "make this repo LLM-friendly", "generate the llm index" | Same |
Stop / disable
Not really applicable — this is a one-shot generator, not a session mode. Just don't invoke it.
Execution flow
Paths below (scripts/, playbook/, checks/ and the rest) are relative to this skill's directory, ${CLAUDE_SKILL_DIR}, not to the working directory, which is the user's project. Run a script as bash "${CLAUDE_SKILL_DIR}/scripts/<name>.sh" and read reference files from the same place.
- Discover candidates. Run
scripts/discover.shto enumerate:- Project metadata files:
README*,package.json,pyproject.toml,Cargo.toml,Gemfile,go.mod, etc. - Root-level markdown:
README.md,CHANGELOG.md,CONTRIBUTING.md,LICENSE,ARCHITECTURE.md, etc. docs/directory contents (.md,.mdx,.rst)- Other markdown at depth 2–3 (excluding
node_modules,.git,vendor)
- Project metadata files:
- Read and synthesize. Read the README and primary metadata file. Extract:
- Project name (from
package.json:name,pyproject.toml:[project].name, or README H1) - One-sentence summary (from README's first paragraph or
package.json:description) - Longer context (1–2 paragraphs from the README intro, no headings)
- Project name (from
Categorize candidates into H2 sections. Reasonable defaults:
- Docs — primary user-facing documentation
- Examples — sample code, tutorials, quickstarts
- API Reference — generated or hand-written API docs
- Optional — secondary resources (CHANGELOG, contributing guides, RFCs, internal notes)
The
## Optionalsection has special meaning in the spec: LLMs with tight context budgets should skip it. Put anything non-essential there.- Generate
llms.txtfollowing the format informat.md. Strict structure:# Project Name > One-sentence summary in a blockquote. Optional 1-2 paragraph context, no headings. ## Section - [Title](relative-or-absolute-url): one-line description - [Title](url): description ## Optional - [Title](url): description - Validate with
scripts/validate.sh. If errors, fix and re-validate. - Preview the generated file to the user before writing it. Ask confirmation.
- Write to
./llms.txt. If a file already exists, diff against it and ask before overwriting — preserve any manual sections the user added. - Optional
llms-full.txt(only iffullarg given): concatenate the full content of every linked doc into a single file, with# File: <path>headers between them. This is the "give me everything" variant.
Safety guardrails
- Never overwrite an existing
llms.txtwithout preview + confirmation. It may contain manual curation. - Never include secrets in the generated file. Skip any candidate file matching
.env*,*.pem,*key*,credentials*,*.secret. Warn the user if found. - Never link to private paths (anything inside
.git/,node_modules/,vendor/,target/,build/,dist/). - Don't invent URLs. All links must point to real files in the repo (relative paths) or URLs explicitly present in the README. Don't guess the project's homepage.
- Respect
.gitignore. If a candidate file is gitignored, don't index it.
Style rules for the generated file
- H1 is the project name, nothing else. Not a slogan, not a tagline.
- Blockquote summary is one sentence, present tense, factual. No marketing language.
- Descriptions on link items are one line, ~12 words max. Tell the LLM why this file matters, not what it says verbatim.
- Order matters within a section — most important first. The model may stop reading partway through.
- No emojis, no decorative markdown, no nested lists. The format is intentionally flat.
- Prefer relative paths for files in the repo (
docs/getting-started.md), absolute URLs only for external resources.
Files in this skill
SKILL.md— this fileformat.md— the llmstxt.org format reference, distilledscripts/discover.sh— enumerate candidate files for indexingscripts/validate.sh— lint a generatedllms.txtagainst spec basics
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.

