免費 llms.txt 驗證器
檢查您的 llms.txt 檔案是否符合規範。貼上內容或告訴我們您的網站——我們會找出缺少的標題、格式錯誤的連結、重複網址以及結構問題。
為什麼要驗證 llms.txt?
llms.txt 仍是相當新的規範,一份暗藏問題的檔案很容易就被發布出去。如果您的 H1 缺漏、連結語法錯誤,或是有重複網址,AI 助理不是會誤解這份檔案,就是會直接略過它。
我們檢查什麼
- H1 標題與引用區塊摘要是否存在
- 連結語法、網址有效性以及通訊協定一致性
- 重複網址、空白或過大的區段
嚴重程度層級
- 錯誤——檔案無法正確解析,必須修正
- 警告——檔案可正常解析,但有值得修正的品質問題
- 資訊——可選的改進項目,讓檔案更精煉
常見問題
它會依 llmstxt.org 上的規範解析您的 llms.txt,並回報:缺少 H1 標題(錯誤)、缺少引用區塊摘要(資訊)、連結語法錯誤(錯誤)、無效或非 http(s) 的網址(錯誤)、跨區段的重複網址(警告)、空白區段(警告)、超過約 15 個連結的過大區段(警告),以及 http/https 通訊協定混用(資訊)。
可以——使用「貼上」模式。您可以在本機草擬 llms.txt、貼到驗證器中、調整結構,等到內容乾淨了再發布。貼上模式有 256 KB 的輸入上限,遠大於任何實際的 llms.txt 檔案。
我們會直接擷取 https://yourdomain.com/llms.txt——不需要任何設定。如果找不到檔案,我們會回傳清楚的 404 訊息。這是稽核您負責的網站(或競爭對手網站)而不必手動複製內容的合適模式。
錯誤代表檔案無法正確解析,必須修正——例如 H1 缺漏或連結格式錯誤。警告代表檔案可以解析,但有會影響 LLM 解讀的品質問題——重複網址、空白區段、連結太多的區段。資訊類問題是可選的改進項目,讓檔案更精煉,但並非絕對必要。
是的。無需註冊、不需信用卡。匿名路徑可驗證任意數量的檔案。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
最後審閱於 。每當廠商更新規範,我們都會重新核對本頁內容。