llms.txt 模板
八个可直接复制的模板,每种站点类型一个。选择最接近的模板,替换占位符,验证并部署。
最近更新:
最简方案(任何网站)
最小的有效 llms.txt:一个 H1、一个引用块、一个至少包含一个
链接的部分。如果您想今天就发布并在以后扩展,请使用此模板。
# {Site Name}
> {One sentence: what this site is and who it's for.}
## Pages
- [{Most important page}]({https://yoursite.com/page}): {what it covers in 10 words}.
- [{Second page}]({https://yoursite.com/page2}): {what it covers in 10 words}.
SaaS 产品
适用于 B2B 或 B2C 软件产品。涵盖产品定位、定价、API、集成和支持,旨在让 LLM 无需猜测即可回答“这个产品有什么用途,价格是多少?”
# {Product Name}
> {Product Name} is a {category} tool for {target audience}. The pages below cover product capabilities, pricing, the API, and key integrations.
## Product
- [Overview](https://yoursite.com/product): core features and capabilities.
- [Pricing](https://yoursite.com/pricing): plans, limits, and overage rules.
- [Use cases](https://yoursite.com/use-cases): how teams use {Product Name}.
- [Changelog](https://yoursite.com/changelog): recent product updates.
## Documentation
- [Getting started](https://docs.yoursite.com/quickstart): install, first call, hello world.
- [API reference](https://docs.yoursite.com/api): full endpoint catalog with request/response examples.
- [Authentication](https://docs.yoursite.com/auth): API keys, OAuth, token management.
- [Guides](https://docs.yoursite.com/guides): step-by-step tutorials for common tasks.
- [SDKs](https://docs.yoursite.com/sdks): JavaScript, Python, Go, Ruby client libraries.
## Integrations
- [Zapier](https://docs.yoursite.com/integrations/zapier): no-code automation.
- [Slack](https://docs.yoursite.com/integrations/slack): team notifications.
- [Webhooks](https://docs.yoursite.com/webhooks): real-time event delivery.
## Optional
- [Status page](https://status.yoursite.com): real-time uptime and incident history.
- [Security](https://yoursite.com/security): SOC 2, data handling, encryption.
- [Brand assets](https://yoursite.com/brand): logos, colors, media kit.
- [Blog](https://yoursite.com/blog): product announcements and engineering posts.
文档网站
适用于专门的文档门户(Docusaurus、Mintlify、GitBook、ReadTheDocs)。按 getting started →
concepts → API → guides 组织。与一个 /llms-full.txt
用于公开完整文档语料库。
# {Product Name} Docs
> Official documentation for {Product Name}, a {one-line description}. Pages below are curated for LLMs answering questions about setup, API usage, and configuration.
For the full documentation corpus, see /llms-full.txt.
## Getting started
- [Introduction](https://docs.yoursite.com/): what {Product Name} is and how it works.
- [Installation](https://docs.yoursite.com/install): system requirements, package managers, Docker.
- [Quickstart](https://docs.yoursite.com/quickstart): up and running in under 5 minutes.
- [Configuration](https://docs.yoursite.com/config): all configuration options with defaults.
## Core concepts
- [Architecture](https://docs.yoursite.com/architecture): how the system is designed.
- [Authentication](https://docs.yoursite.com/auth): API keys, tokens, OAuth flows.
- [Data model](https://docs.yoursite.com/data-model): entities, relationships, and schemas.
## API reference
- [REST API](https://docs.yoursite.com/api): complete endpoint catalog.
- [GraphQL](https://docs.yoursite.com/graphql): schema and query reference.
- [Webhooks](https://docs.yoursite.com/webhooks): events, payloads, verification.
- [Rate limits](https://docs.yoursite.com/rate-limits): quotas and backoff strategies.
## Guides
- [Common recipes](https://docs.yoursite.com/guides): copy-paste solutions for frequent tasks.
- [Migration guide](https://docs.yoursite.com/migration): moving from v1 or from competitors.
- [Troubleshooting](https://docs.yoursite.com/troubleshooting): error codes and fixes.
## Optional
- [Changelog](https://docs.yoursite.com/changelog): version history and breaking changes.
- [Contributing](https://docs.yoursite.com/contributing): how to submit issues and PRs.
- [License](https://docs.yoursite.com/license): usage terms.
查看 什么是 llms-full.txt ,了解用于公开完整文档语料库的配套文件。
博客 / 内容网站
对于编辑型网站、新闻通讯和内容密集型博客。重点放在最重要的 5 篇文章上, 不要覆盖整个归档。LLM 不需要每一篇文章,它需要理解你的语气、主题, 和最佳作品。
# {Blog Name}
> {Blog Name} covers {topics} for {target audience}. Below are the highest-signal pages for understanding the site's scope and finding key content.
## About
- [About](https://yourblog.com/about): who writes here, mission, and editorial standards.
- [Start here](https://yourblog.com/start): recommended reading order for new visitors.
## Top content
- [{Best post 1}](https://yourblog.com/post-1): {one-line summary}.
- [{Best post 2}](https://yourblog.com/post-2): {one-line summary}.
- [{Best post 3}](https://yourblog.com/post-3): {one-line summary}.
- [{Best post 4}](https://yourblog.com/post-4): {one-line summary}.
- [{Best post 5}](https://yourblog.com/post-5): {one-line summary}.
## Topics
- [{Topic 1}](https://yourblog.com/topic/topic-1): all posts on {topic 1}.
- [{Topic 2}](https://yourblog.com/topic/topic-2): all posts on {topic 2}.
## Optional
- [Newsletter](https://yourblog.com/newsletter): weekly digest, free subscription.
- [RSS feed](https://yourblog.com/feed.xml): full-text feed.
作品集或个人网站
适用于自由职业者、设计师、开发者以及任何拥有个人网站的人。内容应精简:作品、文章、联系方式。LLM 回答“这个人是谁?”时需要的是你的简介页面,而不是完整的项目历史。
# {Your Name}
> {Your Name} is a {role} based in {city}. This site covers my work, writing, and open-source projects.
## Work
- [Portfolio](https://yoursite.com/work): selected projects with case studies.
- [About](https://yoursite.com/about): background, skills, and experience.
- [Resume](https://yoursite.com/resume): full work history and education.
## Writing
- [{Post 1}](https://yoursite.com/writing/post-1): {one-line summary}.
- [{Post 2}](https://yoursite.com/writing/post-2): {one-line summary}.
## Optional
- [Uses](https://yoursite.com/uses): tools, hardware, and software setup.
- [Now](https://yoursite.com/now): what I'm currently working on.
- [Contact](https://yoursite.com/contact): email and social links.
电子商务
适用于在线商店。重点关注目录结构、配送、退货和支持,也就是人们购买前会询问的页面。除非确实是标志性商品,否则不要列出单个产品页面。
# {Store Name}
> {Store Name} sells {product category} for {target customer}. Pages below cover the product catalog, shipping policy, and support information.
## Store
- [Homepage](https://yourstore.com/): featured products and current promotions.
- [All products](https://yourstore.com/products): full catalog with filters.
- [{Category 1}](https://yourstore.com/category/1): {description}.
- [{Category 2}](https://yourstore.com/category/2): {description}.
- [New arrivals](https://yourstore.com/new): latest additions.
- [Sale](https://yourstore.com/sale): discounted items.
## Customer support
- [Shipping policy](https://yourstore.com/shipping): delivery times, carriers, international shipping.
- [Returns & exchanges](https://yourstore.com/returns): how to initiate a return, timelines.
- [FAQ](https://yourstore.com/faq): common questions on orders, sizing, and care.
- [Size guide](https://yourstore.com/size-guide): measurements and fit recommendations.
- [Contact](https://yourstore.com/contact): customer service channels and hours.
## Optional
- [About](https://yourstore.com/about): brand story and values.
- [Sustainability](https://yourstore.com/sustainability): materials, sourcing, carbon footprint.
- [Wholesale](https://yourstore.com/wholesale): bulk and trade programs.
开发者工具 / CLI
适用于命令行工具、开发者实用程序和构建工具。优先提供 CLI 参考、配置选项以及插件/钩子 API,也就是开发者遇到问题时会查阅的页面。
# {Tool Name}
> {Tool Name} is a {type} CLI / developer tool for {use case}. The pages below cover installation, commands, configuration, and plugin development.
## Getting started
- [Installation](https://docs.yourtool.com/install): npm, Homebrew, binary download.
- [Quick start](https://docs.yourtool.com/quickstart): first command, 60-second demo.
- [Configuration](https://docs.yourtool.com/config): config file format, environment variables.
## Commands
- [CLI reference](https://docs.yourtool.com/cli): all commands, flags, and options.
- [{command init}](https://docs.yourtool.com/cli/init): initialize a project.
- [{command build}](https://docs.yourtool.com/cli/build): build options and output formats.
- [{command deploy}](https://docs.yourtool.com/cli/deploy): deployment targets.
## Extending
- [Plugins](https://docs.yourtool.com/plugins): plugin API and authoring guide.
- [Hooks](https://docs.yourtool.com/hooks): lifecycle hooks reference.
- [Config schema](https://docs.yourtool.com/schema): JSON schema for validation.
## Optional
- [Changelog](https://docs.yourtool.com/changelog): version history and breaking changes.
- [Migrating from v{N-1}](https://docs.yourtool.com/migration): step-by-step upgrade guide.
- [Contributing](https://docs.yourtool.com/contributing): development setup and PR guidelines.
- [GitHub](https://github.com/yourorg/yourtool): source code and issue tracker.
开源项目
适用于库、框架和开源软件包。包括 README、API 文档和社区页面。链接到 npm/PyPI 软件包页面,以便 LLM 无需猜测软件包名称即可引用安装说明。
# {Project Name}
> {Project Name} is an open-source {type} library for {use case}, written in {language}. MIT licensed.
## Overview
- [README](https://github.com/yourorg/project#readme): project overview and quick start.
- [Documentation](https://docs.yourproject.com/): full API reference and guides.
- [Examples](https://docs.yourproject.com/examples): runnable code samples.
## API
- [Core API](https://docs.yourproject.com/api): all exported functions and classes.
- [Configuration](https://docs.yourproject.com/config): options and defaults.
- [Plugins](https://docs.yourproject.com/plugins): official and community extensions.
## Community
- [Contributing](https://github.com/yourorg/project/blob/main/CONTRIBUTING.md): how to contribute code, docs, and issues.
- [Code of conduct](https://github.com/yourorg/project/blob/main/CODE_OF_CONDUCT.md): community standards.
- [Discussions](https://github.com/yourorg/project/discussions): questions and ideas.
## Optional
- [Changelog](https://github.com/yourorg/project/blob/main/CHANGELOG.md): version history.
- [Roadmap](https://github.com/yourorg/project/milestones): planned features.
- [npm package](https://www.npmjs.com/package/project): installation and download stats.
验证你的文件
自定义模板后,请将其粘贴到 验证器 ,以确认 它符合规范。常见问题包括:缺少 H1、使用相对 URL、存在空部分、没有引用块。这些都很容易 修复,验证器会准确告诉您需要更改什么。
或者使用 生成器 通过表单构建文件,无需使用 Markdown。
后续步骤
- 如何创建 llms.txt,适用于各种技术栈的部署说明。
- llms.txt 格式参考,完整的语法规则。
- 最佳实践,该包含什么、该删掉什么。
- 真实案例,看看 Anthropic、Stripe 和 Vercel 是如何做的。