Agent Skill
llmstxtdb skills
Put this site’s llms.txt checking rules inside your coding assistant: write, check and fix right in the repository, with no copying and pasting back and forth.
View source on GitHub (opens in a new window)How to install
Open source, MIT license · skill name llmstxtdb · the validation script uses only the Python standard library
What it does
Write
Generate llms.txt for a project or documentation site: which pages to include, how to group and order them, how to describe each link. It lists only pages confirmed to exist and never invents addresses.
Check
Check a local file or a live address with the bundled validation script. Results come in three parts that are never merged: proposal, usability, and editorial advice.
Fix
Fix issues one code at a time: each code explains why it is checked, how it affects readers of the file, how to change it, and how to confirm the fix.
Troubleshoot deployment
When the live /llms.txt returns 404, returns a web page, has the wrong content type, or sits behind a redirect chain, locate the cause in a fixed order.
For how to install and get started in Codex, Gemini CLI, Kimi Code, Qoder and other tools, see Generate llms.txt with your AI tool.
How it differs from other llms.txt tools
- Three things, kept apart. The proposal itself requires very little: one top-level heading. Whether the file is usable is a separate matter: it has to be retrievable and its links have to work. How well the summary and notes are written is only advice. Many tutorials present their own preferences as “required by the spec”; this skill does not.
- The same issue codes as this site’s reports. A
SPEC_ENTRY_NOT_LINKreported by the local script means the same thing as the one you see in a report on this site. Both sides are tested against the same set of samples, down to how many times each issue code appears. - The script is careful on the network. It only requests http and https, rejects addresses that carry a username or password, rejects private network addresses by default, re-checks every redirect hop, reads at most 2 MB, and enforces a hard deadline on every request. Link checking is off by default; when turned on it samples at most 20 links.
Install
Install with the skills CLI
For Claude Code, Codex and other coding assistants that support Agent Skills.
npx skills add https://github.com/web-casa/llmstxtdb-skills --skill llmstxtdbInstall as a Claude Code plugin
Run the two commands in Claude Code, in order.
/plugin marketplace add web-casa/llmstxtdb-skills/plugin install llmstxtdb@llmstxtdb-skillsInstall manually
Copy the whole skills/llmstxtdb directory from the repository into your assistant’s skills directory (the example below uses the personal skills directory of Claude Code). Copy the entire directory: the reference documents and the validation script are part of the skill.
git clone https://github.com/web-casa/llmstxtdb-skillsmkdir -p ~/.claude/skillscp -r llmstxtdb-skills/skills/llmstxtdb ~/.claude/skills/
After installing, just tell your assistant “generate llms.txt for this documentation site”, “check public/llms.txt”, or “the report shows 65 occurrences of SPEC_ENTRY_NOT_LINK, fix them for me”.
Or use only the validation script
It works without installing the skill: a single Python file (Python 3.9 or later) with no dependencies to install. Clone the repository, run it from the repository directory, and replace public/llms.txt in the examples with your own file path or live address. The exit code is 1 when the proposal check does not pass or the deployment check fails, so it can go straight into CI.
python3 skills/llmstxtdb/scripts/validate_llms_txt.py public/llms.txtpython3 skills/llmstxtdb/scripts/validate_llms_txt.py https://example.com/llms.txt --check-linksllms.txt check: public/llms.txt
Spec (llmstxt.org proposal): WARN
[MINOR] SPEC_ENTRY_NOT_LINK x3 - List item has no link ... | line 14, 15, 16
Advice (editorial, not part of the proposal): 1
ADVICE_ENTRY_NO_DESCRIPTION - 2 entries without a description. | first at line 9
Metrics: 812 bytes, 2 section(s), 7 entriesWhat the local script covers and what the online check covers
| What is checked | The skill’s local script | This site’s online check |
|---|---|---|
| Whether the file structure conforms to the proposal | Yes | Yes |
| Writing advice (summary, grouping, notes) | Yes | Yes |
| Whether the live address can be retrieved and returns a document | Observation of a single address | Yes |
| Link health of the whole file | Sampled (at most 20 links) | Yes, with coverage reported |
| Change tracking and history comparison | No | Yes (for listed files) |
| Letter grades and rating score | No; the online rules are authoritative | Yes |
Use the local script while writing the file, and re-check with the online check after publishing. The two sides parse Markdown differently, so results can differ for a very small number of unusually written files; those cases are listed one by one in the repository’s reference documents. For a published file, the online check is authoritative.
What it does not promise
We do not promise that creating or submitting llms.txt will improve AI recommendations or search rankings. Our commitments are limited to accessibility, conformity with the proposal, link validity, and detectable changes.
llms.txt is a proposal, not a finalized standard. This skill helps you write the file correctly, put it in the right place, and keep its links valid. It does not, and cannot, make any AI product read or cite your site. See About and methodology.
Source and acknowledgements
Repository: https://github.com/web-casa/llmstxtdb-skills (opens in a new window), MIT license. Please open an issue in the repository for bug reports and suggestions.
The format itself comes from Jeremy Howard’s llmstxt.org proposal. The way the skill is organized draws on several MIT-licensed open-source projects; the list and notes are in the acknowledgements section of the repository. All content was written independently.