免费的 llms.txt 验证工具

llms.txt 检查器

根据官方 llmstxt.org 规范验证任何 llms.txt 文件

粘贴网址或原始内容,此检查器将模拟 AI 爬虫的方式进行解析——确认 Markdown 结构、必需的 H1 标题、引言摘要、详情区块以及每个 H2 文件列表,然后精准指出需要修改的行。

Free
No sign-up
Follows the llmstxt.org spec
URL or pasted content

A bare domain works — we add https:// and look for /llms.txt and /llms-full.txt at the site root.

什么是 llms.txt?

llms.txt is a markdown file published at the root of a website — yourdomain.com/llms.txt — that gives large language models a short, curated map of the site. Instead of asking a model to crawl navigation, scripts and boilerplate, the file hands it a title, a summary and a list of the pages that actually matter.

The format is defined by the specification at llmstxt.org. It is deliberately small: only H1 and H2 headings exist, and the body of each section is a list of links. That constraint is what makes the file both human-readable and trivially parseable by a program.

The spec also describes a companion convention, /llms-full.txt, which contains the expanded content itself rather than an index of links.

符合规范要求的顺序

  1. 1An optional byte-order mark at the very start of the file.
  2. 2An H1 with the name of the project or site — the only required section.
  3. 3A blockquote with a short summary containing the key information needed to understand the rest of the file.
  4. 4Zero or more markdown blocks — paragraphs, lists, tables — of any type except headings.
  5. 5Zero or more sections delimited by H2 headers, each containing a file list of `- [name](url)` items with optional `: notes`.
  6. 6A section named exactly “Optional” has special meaning: its URLs may be skipped when a shorter context is needed.

我们检查的 5 项验证规则

每一项检查都直接对应 llmstxt.org 规范中的一个条款。每个规则都会评分,加权 后的总分即为您的合规得分和字母评级。

1

Markdown 格式

markdown-format
文件必须是 Markdown 格式,且其中只能包含 H1 和 H2 标题。

在 /llms.txt 提供纯 Markdown 内容——不得包含 HTML、YAML 前置元数据,也不得包含 H3–H6 标题。任何深于 H2 的标题均不符合规范。

2

H1 项目标题

h1-title
包含项目或网站名称的 H1 标题。这是唯一必需的部分。

以单行 `# 您的网站名称` 开始文件。这是规范中强制要求的部分,且必须且只能出现一次。

3

引用块摘要

blockquote-summary
一个包含项目简短摘要的引用块,其中包含理解其余内容所需的关键信息。

在 H1 下方直接放置一个 `> 单段落摘要`。说明网站的用途及其服务对象,以便 AI 模型能够理解其下方的每个链接。

4

无标题的详情块

project-details
零个或多个任意类型的 Markdown 部分(例如段落、列表、表格,但不能包含标题),其中包含更详细的信息。

在摘要后添加可选的上下文,可使用段落、列表或表格形式。此处请勿使用标题——文件中的下一个标题应当是您的第一个 H2 部分。

5

带有文件列表的 H2 部分

file-lists
由 H2 标题分隔的零个或多个 Markdown 部分,包含可获取更多详细信息的 URL 文件列表。

将链接分组到 `## 部分名称` 标题下,每行一个链接,格式为 `- [名称](https://绝对网址):可选备注`。当需要更简短的上下文时,可以跳过名称恰好为 `Optional` 的部分,因此请将其放在最后。

如何编写符合规范的 llms.txt

实施指南

确保文件符合规范的六个关键决策。

  1. 1以一个 H1 开头. 使用您的网站或项目名称——除可选的字节顺序标记外,其上方不应有任何内容。这是规范要求的唯一部分。
  2. 2添加引用块摘要. 在 H1 下方直接写一个 `>` 段落,解释网站的用途,以便下方的链接具备上下文。
  3. 3保持详情块无标题. 摘要之后允许出现额外的段落、列表或表格——但在出现第一个 H2 之前不得使用任何标题。
  4. 4将链接分组到 H2 章节下. 根据模型会寻找的内容来命名章节:文档、指南、API、博客。此格式中仅存在 H1 和 H2。
  5. 5精确编写文件列表项. `- [页面名称](https://example.com/page): 简短说明`。请使用绝对 URL,以便模型在没有基础 URL 的情况下也能解析它们。
  6. 6将“可选”放在最后. 当需要更短的上下文时,可以跳过标题恰好为“可选”的章节。将其保留用于次要页面并放在末尾。

规范模板

发布在 llmstxt.org 上的标准示例 — 直接复制并填入您自己的内容。

# Title

> Optional description goes here

Optional details go here

## Section name

- [Link title](https://link_url): Optional link details

## Optional

- [Link title](https://link_url)

Save it as llms.txt and upload it to your site root so it is served at yourdomain.com/llms.txt, then run it back through this checker.

如何使用此检查器

  1. 1

    Pick an input mode

    tools.llmsTxtChecker.LlmsTxtCheckerPage.Choose Check by URL to validate a file that is already live, or Paste content to validate a draft before you publish it.

  2. 2

    Enter your URL or file

    tools.llmsTxtChecker.LlmsTxtCheckerPage.Type a bare domain, a site root, or a direct /llms.txt URL — the protocol is added for you. In paste mode, drop the full markdown into the text box.

  3. 3

    Run the check

    tools.llmsTxtChecker.LlmsTxtCheckerPage.Press Check or Validate. The file is fetched, split into specification blocks, and scored against the five structural rules.

  4. 4

    Read the score and grade

    tools.llmsTxtChecker.LlmsTxtCheckerPage.The score ring shows weighted compliance out of 100 with a letter grade, plus how many rules passed, warned, or failed.

  5. 5

    Work through the findings

    tools.llmsTxtChecker.LlmsTxtCheckerPage.Each finding names the rule, the line number, and the exact change to make. Expand a rule card to see every detail behind its status.

  6. 6

    Fix, publish, and re-check

    tools.llmsTxtChecker.LlmsTxtCheckerPage.Apply the fixes, upload the file to your site root so it is served at yourdomain.com/llms.txt, then run the URL back through the checker to confirm it passes.

关于 llms.txt 的常见问题

相关工具

The specification this checker follows is published and maintained at llmstxt.org.