跳到正文
Skillpedia
部署与云(DevOps)75k · #2927

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/llms-txt/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.txt at the root (/llms.txt on 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.txt only as an optional companion when you can keep it current
  • Keep crawl and indexing controls in robots.txt; llms.txt does 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.

Rule page: https://frontendchecklist.io/rules/seo/llms-txt

常见问题

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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2927
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能