免费 llms.txt 验证器
检查您的 llms.txt 文件是否符合规范。粘贴内容或告诉我们您的网站,我们会找出缺失的标题、格式错误的链接、重复URL以及结构性问题。
为什么要验证 llms.txt?
llms.txt 还是一项年轻的规范,文件格式悄无声息出问题并不少见。一旦H1缺失、链接语法有误或存在重复URL,AI助手要么会误读该文件,要么会直接跳过。
我们会检查
- H1标题与引用块摘要是否齐全
- 链接语法、URL有效性以及协议一致性
- 重复URL,以及为空或过大的部分
严重程度分级
- 错误——文件无法被正确解析,必须修复
- 警告——文件可被解析,但存在值得修复的质量问题
- 提示——让文件更精炼的可选改进
常见问题
它会依据 llmstxt.org 上的规范解析您的 llms.txt,并报告以下问题:缺失的H1标题(错误)、缺失的引用块摘要(提示)、格式错误的链接语法(错误)、无效或非 http(s) 的URL(错误)、跨部分重复的URL(警告)、空部分(警告)、超过约15个链接的过大部分(警告),以及 http/https 协议混用(提示)。
可以——使用粘贴模式即可。您可以在本地起草 llms.txt,粘贴到验证器中反复打磨结构,确认干净后再发布。粘贴模式的输入上限为 256 KB,远超任何现实场景下的 llms.txt 文件体量。
我们会直接抓取 https://yourdomain.com/llms.txt——无需任何设置。若文件不存在,会返回明确的 404 提示。这是审计自有网站(或竞争对手网站)的合适方式,无需手动复制内容。
错误意味着文件无法被正确解析,必须修复——例如H1缺失或链接格式错误。警告意味着文件可被解析,但存在影响LLM读取效果的质量问题——例如重复URL、空部分、链接过多的部分。提示类问题并非必须处理,属于让文件更精炼的可选改进。
是的。无需注册、无需信用卡,匿名通道可验证任意数量的文件。GeoVector 付费方案则额外提供持续监测——我们会按计划定期重新验证 llms.txt,并在发生偏移时通知您,对内容频繁更新的网站尤为重要。
本校验器的全部规则
Error 是解析器无法恢复的问题。Warning 能解析,但模型读起来会很糟。Info 属于取舍判断。
| Severity | Code | When it fires |
|---|---|---|
| Error | missing_h1 | The file does not start with a single "# Site name" heading. |
| Error | malformed_url | A link target does not parse as a URL. Relative paths land here. |
| Error | unsupported_protocol | A link uses something other than http:// or https://. |
| Error | missing_link_title | A list item has a URL but no link text. |
| Warning | no_sections | No "## Section" headings, so every link sits in one undifferentiated pile. |
| Warning | empty_section | A heading with no links under it. |
| Warning | large_section | More than 15 links in one section. Split it so the file stays scannable. |
| Warning | duplicate_url | The same URL appears twice; the report names both line numbers. |
| Info | missing_summary | No "> summary" blockquote under the title. |
| Info | no_optional_section | No "## Optional" section, so nothing is marked as safe to skip. |
| Info | mixed_protocol | The file mixes http:// and https:// links. |
这里没有任何一条由标准组织强制——llms.txt 只是一个提案。这些规则编码的是该提案描述的结构,加上文件被上下文窗口有限的模型读取时,实际会出问题的地方。
一个通过的文件,和一个不通过的
动手写之前,先对比这两份。
# Example Analytics
> Product analytics for teams that ship weekly.
## Docs
- [Quickstart](https://example.com/docs/quickstart): Install the SDK and send a first event.
- [Event API](https://example.com/docs/api/events): Endpoint reference and payload limits.
## Optional
- [Changelog](https://example.com/changelog)## Docs
- [Quickstart](/docs/quickstart)
- (https://example.com/docs/api/events)
- [Quickstart](https://example.com/docs/quickstart)
## Guides
缺少 H1(错误)、用相对路径而非 URL(错误)、链接没有标题文字(错误)、URL 重复(警告),以及空的 Guides 分区(警告)。在有程序真正解析这个文件之前,这些问题全都看不出来。
来源与规范
本页所有内容都以下列一手文档为准。厂商一旦改规则,最先反映在那里。
- The /llms.txt file proposal — llmstxt.org
- RFC 9309: Robots Exclusion Protocol — IETF
最后审阅于 。每当厂商更新规范,我们都会重新核对本页内容。