llms.txt の実例
公開日:
優れた llms.txt を最速で書くコツは、すでに機能しているものを出発点にすることです。ここでは応用できる3つのパターンを紹介します。
1. 最小構成のファイル
小規模なプロダクトやランディングサイトに最適です。タイトル、概要、そして主要なリンクをまとめた1つのセクションで構成します。
# Acme > Acme turns CSV files into charts. This file links to the docs an LLM needs to help users. ## Docs - [Quickstart](https://acme.com/start): Upload a CSV and get a chart in 60 seconds - [Pricing](https://acme.com/pricing): Plans and limits
2. ドキュメント中心のファイル
API/SDK サイト向けです。目的ごとにグループ化し、ページの Markdown 版にリンクし、補足的な資料には Optional セクションを使います。
# Acme API > REST API for chart generation. Authentication, endpoints, and SDKs below. ## Getting started - [Authentication](https://acme.com/docs/auth.md): API keys and scopes - [Quickstart](https://acme.com/docs/quickstart.md): First request in 5 minutes ## Reference - [Endpoints](https://acme.com/docs/api.md): Every endpoint and parameter - [Errors](https://acme.com/docs/errors.md): Error codes and handling ## Optional - [Changelog](https://acme.com/changelog.md): Release history
3. llms.txt と llms-full.txt の組み合わせ
大規模なドキュメントセットでは、両方を公開することがよくあります。インデックスとしての llms.txt と、エージェントが1回のフェッチですべてを取り込めるように全文をインライン化した llms-full.txt です。
コンテンツではなく構造をコピーする
どのパターンを選ぶにせよ、説明は具体的に保ち、絶対 HTTPS リンクを使い、それぞれが正しく解決されることを確認してください。そのうえで バリデーターにかけて、スコア100を達成しているか確認しましょう。