> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/ai-documentation/optimizing-for-ai.md).

# AI向けの最適化

GitBook は、サイト向けに AI に適した出力を自動的に公開します。

### AI ツールが使いやすいサイトにする

公開された GitBook サイトには、すべて AI に適した出力が含まれます:

* 追加 `.md` をページ URL に付けると、そのページを Markdown として取得できます。
* 使用 `llms.txt` を使って、エージェントにサイト全体のインデックスを提供します。
* 使用 `llms-full.txt` を使って、公開ドキュメントの完全なスナップショットをエージェントに提供します。
* 使用 `/~gitbook/mcp` を使うと、MCP 対応ツールがドキュメントを直接読み取れるようになります。

これらは自動的に生成され、LLM、IDE、コーディングエージェント、検索システムがドキュメントを理解しやすくなります。

### より良い AI の回答のために最適化する

GitBook が配信層を担当しますが、文章の質も依然として重要です。

明確な見出し、短いセクション、具体的な例、最新の情報は、人間にも AI システムにも役立ちます。ChatGPT、Claude、Cursor のようなツールによるドキュメントの解釈を改善したいなら、まずは [LLM対応ドキュメント](/docs/documentation/ja-gitbook-documentation/aito/llm-ready-docs.md).

### 翻訳されたドキュメントを整合させておく

複数の言語でドキュメントを公開している場合、翻訳品質も AI の回答に影響します。

[翻訳](/docs/documentation/ja-gitbook-documentation/gitbookjento/translations.md) を使うと、GitBook Agent でドキュメントをローカライズできます。ソースコンテンツを更新すると、GitBook は翻訳版をそれらの変更に合わせて整合させ続けることができます。

### AI に役立つライティングガイドライン

次の基本に注目してください:

* 明確な見出しの階層を使う。
* セクションは短く、具体的に保つ。
* 具体的な例と正確な値を含める。
* 古くなった内容はすぐに削除する。

これらの実践により、検索精度が向上し、曖昧さが減り、回答の正確性が高まります。

### エージェントがドキュメントをどう使うかを測定する

使用 [サイト分析](/docs/documentation/ja-gitbook-documentation/docs-site/insights.md) を使って LLM や MCP クライアントからのトラフィックを追跡し、エージェントがコンテンツにどうアクセスしているかを確認できます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/getting-started/ai-documentation/optimizing-for-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
