> 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/docs-as-code/guides.md).

# ガイド

GitBook は既存のツールやワークフローと連携します。これらのガイドでは、コードと AI を使ってドキュメントを作成、保守、最適化する方法を学べます。

#### 探索

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-code-branch">:code-branch:</i></h4></td><td><h4>Git Sync でコンテンツをインポートまたは移行する</h4></td><td>Git Sync を使って既存のドキュメントを GitBook に取り込む</td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/nE7HQxA8bhx2cDMqtwBa">/spaces/LBGJKQic7BQYBXmVSjy0/pages/nE7HQxA8bhx2cDMqtwBa</a></td></tr><tr><td><h4><i class="fa-pen-to-square">:pen-to-square:</i></h4></td><td><h4>AI でドキュメントを作成する</h4></td><td>GitBook Agent を使ってドキュメントを作成・保守する</td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/lZib1r0W2EKSeHHGsXse">/spaces/LBGJKQic7BQYBXmVSjy0/pages/lZib1r0W2EKSeHHGsXse</a></td></tr><tr><td><h4><i class="fa-magnifying-glass-chart">:magnifying-glass-chart:</i></h4></td><td><h4>AI 検索向けにドキュメントを最適化する</h4></td><td>AI 検索と LLM の取り込みに向けてドキュメントを準備する</td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/0VDm6MCHnkOiY0UMgwUw">/spaces/LBGJKQic7BQYBXmVSjy0/pages/0VDm6MCHnkOiY0UMgwUw</a></td></tr><tr><td><h4><i class="fa-wand-magic-sparkles">:wand-magic-sparkles:</i></h4></td><td><h4>GitBook Agent でドキュメントのワークフローを効率化する</h4></td><td>GitBook Agent を更新、最適化、一括ドキュメント作業に活用する</td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/qFDlIyMYStBBWzAihxLv">/spaces/LBGJKQic7BQYBXmVSjy0/pages/qFDlIyMYStBBWzAihxLv</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><h4>コマンドラインからサイトを作成して公開する</h4></td><td>GitBook CLI を使ってサイトを作成・公開する</td><td><a href="/spaces/LBGJKQic7BQYBXmVSjy0/pages/zmpnDiKX098r2S6GXiyP">/spaces/LBGJKQic7BQYBXmVSjy0/pages/zmpnDiKX098r2S6GXiyP</a></td></tr></tbody></table>

#### クイックガイド

<details>

<summary>リポジトリに Git Sync を設定する</summary>

Git Sync により、GitHub または GitLab のリポジトリを GitBook と同期状態に保てます。

このガイドでは、プロバイダーの選択、GitBook の認証、リポジトリの接続について説明します。

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to setting up Git Sync for a GitHub or GitLab repository. Cover selecting a provider, authorizing GitBook, connecting the repository, and checking the first sync. Include links to the relevant docs pages." data-icon="gitbook-assistant">ガイドを開く</button>

</details>

<details>

<summary>GitBook MCP でコーディングアシスタントを接続する</summary>

GitBook MCP は、対応するコーディングアシスタントに GitBook コンテンツへのアクセスを提供します。

このガイドでは、サーバーの接続、アクセスの確認、ドキュメント作成タスクの開始について説明します。

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to connecting a coding assistant to GitBook with GitBook MCP. Cover adding the MCP server, authenticating, confirming access, and starting a documentation task. Include links to the relevant docs pages." data-icon="gitbook-assistant">ガイドを開く</button>

</details>

<details>

<summary>GitBook CLI でドキュメント作成ワークフローを実行する</summary>

GitBook CLI を使うと、コマンドラインからコンテンツを操作できます。

このガイドでは、サインイン、コンテンツのクエリ、ドキュメント作成ワークフローの実行について説明します。

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to using the GitBook CLI for documentation workflows. Cover installing the CLI, signing in, querying content, and running a useful workflow. Include links to the relevant docs pages." data-icon="gitbook-assistant">ガイドを開く</button>

</details>

<details>

<summary>コーディングアシスタントに GitBook のスキルを与える</summary>

Agent skills は、コーディングアシスタントに GitBook の機能やコンテンツブロックに関する文脈を提供します。

このガイドでは、skills ファイルの追加と、ドキュメント作成タスクでの使用について説明します。

<button type="button" class="button secondary" data-action="ask" data-query="Write a step-by-step guide to giving a coding assistant GitBook skills. Cover finding the skills file, adding it to the assistant&#x27;s context, and using it for a documentation task. Include links to the relevant docs pages." data-icon="gitbook-assistant">ガイドを開く</button>

</details>


---

# 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/docs-as-code/guides.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.
