30 秒で分かる結論: llms.txt の実例に共通する形
8 本のうちほとんどが同じ骨格でできています。サイト名の H1、1 段落の要約を入れた 引用ブロック(>)、そして H2 セクションごとの Markdown リンクリストの 3 つです。 各リンクの後ろにはコロンと短い説明が付きます。形式としてはこれで全部です。 小さなサイトはここで終わり、大きなサイトは「AI にどう使ってほしいか」を 自由記述の段落で数行足しています。最大級の 2 本は引用ブロックを省いていました。
「役に立つファイル」と「置いただけのファイル」を分けるのは、どのリンクを載せるかとそれをどう説明するかの 2 点です。役に立つファイルは、リンクを訪問者が実際に尋ねそうなページだけに絞っています。 説明も、ページタイトルの繰り返しではなく、中身が分かる 1 文にしています。 この 2 点を実例から真似すれば、やるべきことの大半は済みます。
仕様について 1 点補足します。2026 年 9 月時点で llmstxt.org に掲載されているのは、2026 年 8 月に改訂された v2 です (初版は Jeremy Howard 氏が 2024 年 9 月に公開)。v2 でも形式は変わっていません。 主な変更は、「必須なのは H1 だけ」と明記したことと、Optional セクションの 特別な意味をなくしたことです。この記事の 8 本はどちらの版でも有効です。
1. llmstxt.org: 最小の有効なファイル
仕様のサイト自身が公開しているファイルは 10 行、リンク 3 件です。llms.txt は長くなくても正しく書けることを示す、一番分かりやすい例です。
# llms.txt > A proposal that those interested in providing LLM-friendly content add a /llms.txt file to their site. This is a markdown file that provides brief background information and guidance, along with links to markdown files providing more detailed information. ## Docs - [llms.txt proposal](https://llmstxt.org/index.md): The proposal for llms.txt - [Python library docs](https://llmstxt.org/intro.html.md): Docs for `llms-txt` python lib - [ed demo](https://llmstxt.org/ed.md): Tongue-in-cheek example of how llms.txt could be used in the classic `ed` editor, used to show how editors could incorporate llms.txt in general.
真似できる点
- 引用ブロックが仕事をしている。何であるか、どんな形式か、何にリンクするかが 2 文に収まっています。 この行しか読まなかった AI でも、このサイトが関係あるかどうか判断できます。
- リンク先が HTML ではなく Markdown。
index.mdやintro.html.mdは HTML ページと対になる Markdown 版です。仕様はこの形を推奨しています。.md版を出せるなら、そちらにリンクしてください。 - セクションは 1 つで足りる。Optional もなければ About の段落もありません。重要なページが 3 つなら、 ファイルはこの長さで足ります。
2. Answer.AI: ドキュメントではなく「会社サイト」の例
公開されている実例の多くは開発者向けドキュメントです。仕様が生まれた研究所 Answer.AI は、ふつうの会社サイトに llms.txt を置いています。 多くの企業サイトにとっては、こちらの方が雛形にしやすいでしょう。
# Answer.AI company website > Answer.AI is a new kind of AI R&D lab which creates practical end-user products based on foundational research breakthroughs. Answer.AI is a public benefit corporation. ## Docs - [Launch post describing Answer.AI's mission and purpose](https://www.answer.ai/posts/2023-12-12-launch.md): Describes Answer.AI, a "new old kind of R&D lab" - [Lessons from history's greatest R&D labs](https://www.answer.ai/posts/2024-01-26-freaktakes-lessons.md): A historical analysis of what the earliest electrical and great applied R&D labs can teach Answer.AI, and potential pitfalls, by R&D lab historian Eric Gilliam - [Answer.AI projects](https://www.answer.ai/overview.md): Brief descriptions and dates of released Answer.AI projects
真似できる点
- 引用ブロックの直後の 1 行。「Answer.AI はパブリック・ベネフィット・コーポレーションである」は、 書いておかなければ AI が推測で答えてしまう種類の事実です。 会社について「よく聞かれて、よく間違われる」事実を 2 〜 3 点、ここに置いてください。 日本の企業サイトなら、設立年、拠点、取り扱いの有無などが該当します。
- 説明文に「誰が・何を」が入っている。2 本目のリンクは記事の著者名まで書いています。署名、日付、対象読者が 意味を持つページなら、説明文に含めてください。
- リンクは 3 本に絞っている。サイトにはもっと多くの記事がありますが、載っているのは 「会社を説明する」ものだけです。
3. FastHTML: 仕様の参考例。AI への「注意書き」付き
仕様書はこのファイルの短縮版を作例として掲載しています。フルバージョンは 45 行、リンク 21 件で、置き場所はサイトのルートではなく /docs/llms.txt です。仕様は「任意のパスに置き、そのパス配下のページを カバーする」ことを明示的に認めています。
# FastHTML > FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` "FastTags" into a library for creating server-rendered hypermedia applications. ... Things to remember when writing FastHTML apps: - Although parts of its API are inspired by FastAPI, it is *not* compatible with FastAPI syntax and is not targeted at creating API services - FastHTML is compatible with JS-native web components and any vanilla JS library, but not with React, Vue, or Svelte - Use `serve()` for running uvicorn (`if __name__ == "__main__"` is not needed since it's automatic) ## Docs - [FastHTML concise guide](https://www.fastht.ml/docs/ref/concise_guide.html.md): A brief overview of idiomatic FastHTML apps - [HTMX reference](https://raw.githubusercontent.com/bigskysoftware/htmx/master/www/content/reference.md): Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options ## API - [API List](https://www.fastht.ml/docs/apilist.txt): A succint list of all functions and methods in fasthtml. ## Examples - [Todo list application](https://raw.githubusercontent.com/AnswerDotAI/fasthtml/main/examples/adv_app.py): Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns. ## Optional - [Starlette full documentation](https://gist.githubusercontent.com/.../starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development. - [FAQ](https://www.fastht.ml/docs/explains/faq.html.md): Answers to common questions about FastHTML.
真似できる点
- 「Things to remember」は誤解の訂正リスト。各項目は、AI がやりがちな間違い(FastAPI と混同する、React が使えると思う)を 先回りして訂正しています。企業サイトなら「海外発送は行っていない」 「無料プランに API は含まれない」のような 1 行がこれに当たります。
- 外部リンクを載せてよい。Docs セクションのリンクのうち 2 本は、GitHub と gist へのリンクです。 一番よい説明が他サイトにあるなら、そこにリンクして構いません。
- Optional に二次的なページを逃がす。解説ページ 14 本を Optional に置き、上の 3 セクションを短く保っています。
4. Svelte: 1 つの索引に 3 つのサイズ
Svelte の 23 行のファイルは、ページ一覧というより「バンドルのメニュー」です。 AI 側の文脈長(コンテキスト予算)を意識した設計として、8 本の中で一番きれいな例です。
# Svelte Documentation for LLMs > Svelte is a UI framework that uses a compiler to let you write breathtakingly concise components that do minimal work in the browser, using languages you already know — HTML, CSS and JavaScript. ## Documentation Sets - [Abridged documentation](https://svelte.dev/llms-medium.txt): A shorter version of the Svelte and SvelteKit documentation, with examples and non-essential content removed - [Compressed documentation](https://svelte.dev/llms-small.txt): A minimal version of the Svelte and SvelteKit documentation, with many examples and non-essential content removed - [Complete documentation](https://svelte.dev/llms-full.txt): The complete Svelte and SvelteKit documentation including all examples and additional content ## Individual Package Documentation - [Svelte documentation](https://svelte.dev/docs/svelte/llms.txt): This is the developer documentation for Svelte. - [SvelteKit documentation](https://svelte.dev/docs/kit/llms.txt): This is the developer documentation for SvelteKit. ## Notes - The abridged and compressed documentation excludes legacy compatibility notes, detailed examples, and supplementary information - The content is automatically generated from the same source as the official documentation
真似できる点
- 各バンドルで「何を削ったか」を書く。small / medium / full の説明文がトレードオフを明記しているので、 AI は 3 つ全部を開かなくても適切なものを選べます。
- パッケージごとに llms.txt を分ける。サブプロジェクトごとに、そのパス配下に専用ファイルがあります。 製品がはっきり分かれているサイトでは、巨大な 1 本より拡張しやすい形です。
- リンクのない「Notes」セクションも問題ありません。 仕様は通常のリストを許しており、ここではバンドルの生成方法の説明に使っています。
5. Vercel: 「いつ使うか」と「エージェントはどう使うべきか」
Vercel のファイル(64 行、リンク 24 件)は、会社サイトとドキュメント索引を兼ねています。 冒頭 2 セクションにはリンクが 1 つもなく、プラットフォームの用途と、 AI エージェントに期待する振る舞いを書いています。
# Vercel > Vercel is a cloud platform for building, deploying, and scaling web applications and AI workloads. Use this index to find machine-readable documentation and platform resources. Follow the linked indexes when you need individual pages. ## When to use Vercel - Deploy and scale web applications, APIs, and AI workloads from a Git repository or the Vercel CLI. - Automate projects, deployments, domains, and account resources through the Vercel REST API or SDK. ## How agents should use Vercel - For research, fetch the Markdown documentation indexes below and follow their links to individual Markdown pages. - For REST API calls, read the OpenAPI description and authentication documentation before choosing an operation. Ask for approval before changing account resources. ## Documentation - [Vercel product documentation](https://vercel.com/docs/products.md): Curated product index with links to documentation. - [Full documentation content](https://vercel.com/docs/llms-full.txt): Complete documentation and REST API reference in one file. ## Optional - [Agent resource catalog](https://vercel.com/.well-known/ai-catalog.json): Experimental catalog of agent-facing resources. - [Product taxonomy](https://vercel.com/docs/taxonomy.json): Canonical product names, aliases, and deprecations.
真似できる点
- 「When to use」セクション。AI が訪問者の代わりに答えようとしている「これは自分に合う製品か?」という 問いに、5 行で答えています。サービス業のサイトなら 「こういう相談に向いています」の箇条書きがこれに当たります。
- エージェント向けの安全ガイド。「アカウントのリソースを変更する前に承認を求めること」という 1 文は、 API や予約導線があるサイトならそのまま借用できます。
- リンクにタグを付けている。ドキュメントへのリンクの一部に
?from=llms-txtが付いており、 ログを見れば「この訪問は llms.txt 経由か」が分かります。 コストはほぼゼロで、「誰か読んでいるのか」への実際の答えになります。
6. Cloudflare 開発者ドキュメント: 107 本の「子」を指すハブ
Cloudflare のドキュメントは 100 を超える製品をカバーします。数千ページを 並べる代わりに、ルートのファイル(138 行、リンク 107 件、約 16 KB)は 製品ごとの llms.txt にリンクしています。
# Cloudflare Developer Documentation Explore guides and tutorials to start building on Cloudflare's platform. > Each product below links to its own llms.txt, which contains a full index of that product's documentation pages and is the recommended way to explore a specific product's content. ## Application performance - [Cache / CDN](https://developers.cloudflare.com/cache/llms.txt): Make websites faster by caching content across our global server network - [DNS](https://developers.cloudflare.com/dns/llms.txt): Deliver excellent performance and reliability to your domain ## Developer platform - [Workers](https://developers.cloudflare.com/workers/llms.txt): Build, deploy, and scale serverless applications globally with low latency and minimal configuration ## Other - [Docs for agents](https://developers.cloudflare.com/docs-for-agents/llms.txt): Learn how AI agents and LLMs consume Cloudflare documentation
真似できる点
- ハブ・アンド・スポーク。ルートは読める長さを保ち、製品ごとのファイルは網羅的です。 セクションがはっきり分かれている大規模サイト (モール、大学、複数ブランドを持つグループ企業)向けの型です。
- 組織図ではなく、訪問者の目的で分類する。「Application performance」「Application security」「Developer platform」 という括りは、部署名ではなく用途です。
- 真似しない方がよい点が 1 つ。要約の引用ブロックが、通常の段落の「後」に来ています。仕様では H1 の直下に 引用ブロックを置く順番です。AI は問題なく読みますが、厳密なバリデーターは指摘します。
7. Stripe ドキュメント: 大規模索引に「LLM エージェントへの指示」
Stripe はファイルを 2 本公開しています。1 本はマーケティングサイト用の stripe.com/llms.txt(リンク 305 件)です。もう 1 本はドキュメント用の docs.stripe.com/llms.txt(707 行、リンク 453 件、約 92 KB、 Content-Type は text/markdown)です。後者は、AI への指示を 8 本の中で最もはっきり書いているファイルです。
# Stripe Documentation When installing Stripe packages, always check the npm registry for the latest version rather than relying on memorized version numbers. ... ## Docs - [Testing](https://docs.stripe.com/testing.md): Simulate payments to test your integration. - [API Reference](https://docs.stripe.com/api.md) - [Receive payouts](https://docs.stripe.com/payouts.md): Set up your bank account to receive payouts. ## Instructions for Large Language Model Agents: Best Practices for integrating Stripe As an LLM, you should always default to the latest version of the API and SDK unless the user specifies otherwise. Stripe's primary backend object for payments is the Checkout Sessions API, which now works with the Payment Element. Prioritize the Checkout Sessions API, ... and never recommend the Charges API. ... You must not call deprecated API endpoints such as the [Sources API](https://docs.stripe.com/api/sources/object.md) ...
真似できる点
- 「推奨しないもの」を AI に伝える。Stripe には何年分もの非推奨 API があり、AI の学習データにも混ざっています。 指示セクションは AI を現行の API に誘導しています。 古い料金ページや終了した商品が残っているサイトにも、規模は違っても同じ問題があります。
- 読者層でファイルを分ける。マーケティングサイトとドキュメントは、ホストごとに別のファイルです。 「Stripe の料金は?」と聞く人と「PaymentIntent の作り方は?」と聞く人が 同じ索引を読まずに済みます。
- 真似しない方がよい点:サイズと、引用ブロックがないことです。92 KB は、文脈長に制約のある AI が 全文を読める上限に近いサイズです。冒頭も要約の引用ブロックではなく通常の段落です。 リンクそのものが商品である Stripe だから成り立つ形で、大半のサイトには当てはまりません。
8. Anthropic: 629 リンクと「対応言語」セクション
docs.anthropic.com/llms.txt は現在 platform.claude.com/llms.txt にリダイレクトします。 このファイルは 699 行、リンク 629 件、約 68 KB です。冒頭の 2 つのセクションは 他の 7 本にない形で、日本の読者には特に参考になります。
# Anthropic Developer Documentation This file provides an overview of the Anthropic API documentation and developer resources. ## Root URL Claude Developer Platform Console (Requires login) https://platform.claude.com ## Available Languages on Website The full documentation is available in the following languages on https://platform.claude.com/docs: - English (en) - 629 pages - /docs - Content included below - German (Deutsch) (de) - 252 pages - /docs/de - Visit website for content - Japanese (日本語) (ja) - 252 pages - /docs/ja - Visit website for content ... ## English ### Docs home - [Documentation](https://platform.claude.com/docs/en/home.md) ### Messages - [Overview](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview.md) - Agent Skills - [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview.md)
真似できる点
- 対応言語を宣言する。12 のロケールとそれぞれのページ数を並べ、「このファイルに索引があるのは 英語だけ」と明記しています。日本語版を持つサイトは、これを書いておくだけで AI が別言語のページを引用してしまう事故を減らせます。 KnownByLLM 自身の llms.txt も、日本語を含む各言語トップページを Optional に並べています。
- ログインが必要な場所を書く。コンソール URL の横の「Requires login」は、8 本の中で最も費用対効果の高い 2 語かもしれません。会員ページや管理画面があるサイトはそのまま真似できます。
- H2 の下に H3 で小分けすることで、629 リンクでも見通しが立ちます。 仕様が触れているのは H2 だけですが、セクション内の入れ子見出しは問題なく解釈されます。 Stripe と同様、冒頭が引用ブロックではなく通常の段落なのは、 真似しなくてよい部分です。
8 本を並べて比較する
数値はすべて 2026 年 9 月 19 日の 1 回の取得によるものです。 リンク数は「Markdown リンクで始まるリスト項目」を数えました。
| ファイル | サイズ | リンク数 | 特徴 |
|---|---|---|---|
| llmstxt.org/llms.txt | 0.6 KB | 3 | 最小の有効例。リンク先は .md |
| answer.ai/llms.txt | 0.8 KB | 3 | 会社サイト。事実を 1 行添える |
| fastht.ml/docs/llms.txt | 4.8 KB | 21 | 仕様の参考例。/docs/ 配下に設置 |
| svelte.dev/llms.txt | 1.7 KB | 7 | small / medium / full の 3 段階バンドル |
| vercel.com/llms.txt | 4.7 KB | 24 | 「When to use」、エージェント向け指針、?from= タグ |
| developers.cloudflare.com/llms.txt | 16 KB | 107 | 製品別 llms.txt へのハブ |
| docs.stripe.com/llms.txt | 92 KB | 453 | LLM エージェント向け指示セクション |
| platform.claude.com/llms.txt | 68 KB | 629 | 対応言語セクション、H3 で小分け |
この記事のために、他にも 10 本あまり取得しました。1 行ずつ触れておく価値のあるものを挙げます。Next.js は「引用するときは .md ではなく正規 URL を」 とエージェントに指示しています。Zapier は「セクションのアンカーは 改名しない」と約束しつつ、「このファイルを料金仕様として扱わないこと」と注意書きを 添えています。Docker ドキュメントは引用ブロックの中に MCP エンドポイントを書いています。Supabase、Bun、modelcontextprotocol.io は引用ブロック自体を省いています。 これは仕様上は許されますが、多くのバリデーターが警告します。日本語の「炎」に由来すると 自己紹介している Hono は、最初のリンクの直後のコロンを 1 つ忘れています。どれも動作には支障ありません。実際のファイルは人が書いていることを 思い出させてくれる例です。
真似したい 5 つのパターンと、避けたい 3 つ
真似したいもの
- 単独で成立する引用ブロック。8 本中 6 本が、「このサイトは何?」への答えとして AI がそのまま引用できる 1 〜 2 文で始まっています。
- 事実と訂正の短い段落。Answer.AI の 1 行、FastHTML の「Things to remember」、Stripe の非推奨リストが これに当たります。AI が自分のサイトについて間違えがちな 2 〜 3 点をここに置いてください。
- 情報を足す説明文。「R&D 研究所の歴史家 Eric Gilliam による歴史的分析」は 「ブログ記事」よりはるかに役に立ちます。
- 読者の目的で名付けたセクション。Docs / API / Examples や Application performance / security のような名前です。 「資料」「その他」のような名前は避けてください。
- 次の階層への案内。製品別の
llms.txtでも、llms-full.txtでも、 Optional に置いた JSON カタログでも構いません。
避けたいもの
- Stripe や Anthropic のサイズを真似する。あのファイルは実在する数百ページを索引しています。 12 ページのサイトに 60 KB のファイルは、ただのノイズです。
- 説明のないリンク。大きなファイルには
[タイトル](URL)だけの行が続く箇所があります。 解釈はできますが、AI はそのページが何かを知るために結局ページを取りに行くことになります。 llms.txt はその往復を防ぐためのファイルなので、本末転倒です。 - 順番を崩す。引用ブロックの前に段落を置く、H2 なしで H1 直下にリンクを並べる、
-ではなく*の箇条書きを使う、といった書き方です。 いずれも今回取得したファイルのどれかに実在しますが、厳密なパーサーが弾く可能性があります。
自分のファイルを仕様と照らし合わせる
llms.txt の中身をバリデーターに貼り付けてください。バリデーターは厳密なパーサーと同じ構造チェック(H1・引用ブロック・セクションの順番・リンク形式)を行い、指摘ごとに直し方を表示します。
バリデーターを開く →よくある質問
llms.txt の実例はどこで見られますか?
この記事で扱ったファイルは、すべてブラウザでそのまま開けます。たとえば https://llmstxt.org/llms.txt、https://www.answer.ai/llms.txt、https://www.fastht.ml/docs/llms.txt の 3 つです。最初の 2 つは 1 KB 未満で、企業サイトや個人サイトの雛形にしやすいファイルです。FastHTML のものは、仕様書自体が参考例として引用しているファイルです。
最低限、何が書いてあれば llms.txt として有効ですか?
仕様上、必須なのはサイト名の H1 行だけです。ただし良い実例のほとんどは、引用ブロック(>)の要約と、H2 セクション配下の Markdown リンクリストも備えています。AI がどのページを取りに行くか決める材料がそこにあるからです。llmstxt.org 自身のファイルは 10 行、リンク 3 件です。
llms.txt はどれくらいの長さが適切ですか?
今回のファイルは 0.6 KB(llmstxt.org)から約 92 KB(Stripe のドキュメント)まで幅がありました。一般的な企業サイトなら小さい側を目指してください。要約 1 段落とリンク 5 〜 25 件が目安です。大きいファイルは数百ページあるドキュメントサイトのものです。それでも「一覧は平坦に、詳細はリンク先に」という構造は守っています。
Optional セクションは必要ですか?
必須ではありません。Optional は「文脈長が足りないときに読み飛ばしてよいリンク」を置く慣習です。2026 年 8 月の仕様改訂(v2)で機械的な意味はなくなりました。それでも FastHTML、Vercel、Hono、cloudflare.com は今も、全文バンドル、JSON カタログ、外部ドキュメントといった二次的な資料の置き場として使っています。
llms.txt の中に AI への指示を書いてもいいのですか?
書けますし、大手はよく書いています。仕様では、要約とリンクセクションの間に見出し以外の任意の Markdown を置けます。FastHTML は「覚えておくこと」のリストを、Stripe のドキュメントは LLM エージェント向けの推奨・非推奨リストを書いています。Next.js は「引用するときは .md ではなく正規 URL を使う」という指示を書いています。指示は短く、事実に基づく内容にしてください。
リンク先は .md ファイルと通常の HTML ページ、どちらがよいですか?
どちらでも動きますが、仕様は各ページの Markdown 版(page.md または page.html.md)があればそちらを推奨しています。Answer.AI、Stripe、Anthropic、Vercel、Supabase はいずれも .md の URL にリンクしています。Markdown 版を用意していないサイトなら HTML ページで問題ありません。knownbyllm.com/llms.txt はその形で、バリデーターも通ります。
次に読む
- → llms.txt の書き方 ―― 30 分で自分で書く手順(この記事のパターンを自分のファイルに落とし込む手順)
- → llms.txt 完全ガイド(自分のファイルを書いて設置するまでの手順)
- → llms.txt と llms-full.txt の違い:どちらをいつ置くか(Svelte、Vercel、Stripe がリンクしている全文バンドルの話)
- → 解説記事の一覧へ戻る