llms-txt
它能做什么
这项技能检查以文档为主的网站是否有 llms.txt 文件,以及其中的链接是否有用且稳定。适用于负责文档、帮助中心或 API 参考的团队。
适用场景
- ✓当你请智能体为文档网站添加 llms.txt 文件的时候。
- ✓当文档网站不便于 AI 工具浏览,而你想提供一个精选入口的时候。
- ✓当你在审核帮助中心或 API 参考,需要确认 llms.txt 中的链接能打开正常页面的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/llms-txt/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为文档网站创建 llms.txt 文件,并收录最重要的页面。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在网站根目录写一个简短的文件,包含描述以及最有用的页面列表。如果文档内容较多,它还可以建议添加一个可选的较长配套文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Publish llms.txt for documentation-heavy sites
Documentation portals often bury the most important pages behind dense navigation, search UIs, or framework-specific layouts. A curated llms.txt gives AI tools a cleaner entry point without replacing the normal crawl and indexing mechanisms of the web described by the llms.txt convention.
Quick Reference
- Serve
llms.txtat the root (/llms.txton the production domain) if you run a docs-heavy site - Curate a short list of stable, high-signal docs pages instead of dumping every URL
- Use
llms-full.txtonly as an optional companion when you can keep it current - Keep crawl and indexing controls in
robots.txt;llms.txtdoes not replace them
Check
Check whether this documentation-heavy site publishes llms.txt at the root and whether it contains a curated set of stable, high-value links such as getting-started guides, API references, concepts, and examples. Confirm that linked URLs return HTTP 200 and that llms.txt is not being treated as a replacement for robots.txt or XML sitemaps.
Fix
Add llms.txt at the site root with a short description of the project and a curated list of the most useful documentation URLs. If the docs set is large and you can maintain it, add an optional llms-full.txt companion and link to it from llms.txt. Keep crawl directives in robots.txt.
Explain
Explain what llms.txt is, why it can help documentation-heavy sites give AI tools a cleaner starting point, why llms-full.txt is optional, and why traditional crawl controls still belong in robots.txt.
Code Review
Review route handlers, static files, or framework metadata output related to llms.txt. Flag sites that publish the file outside the root path, link to low-value or unstable pages, expose private/auth-only docs, or imply that llms.txt replaces crawl/indexing controls like robots.txt or sitemaps.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
常见问题
llms.txt 能取代 robots.txt 吗?
不能。抓取和索引规则仍然保存在 robots.txt 中,llms.txt 不能取代它。
应该列出每个页面吗?
不需要。这项技能建议列出少量稳定、价值高的页面,而不是每一个网址。
什么是 llms-full.txt?
它是一个可选的较长配套文件,只有在你能保持其更新的情况下才有用。
详情
作者的原始描述
Use when auditing public documentation portals, API references, help centers, SDK docs, or large knowledge bases. Check the final file served at `/llms.txt` and verify that the linked pages are stable, high-value, and accessible without relying on a JavaScript-only interface.
热度
- GitHub 星标
- 75k
- 排名
- #2927
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。