> 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.md).

# お使いのツールから作業する

- [GitHub と GitLab の同期](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync.md): GitBook の双方向連携により、GitBook のドキュメントを GitHub または GitLab と同期します
- [GitHub Sync を有効にする](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/enabling-github-sync.md): GitHub リポジトリを GitBook と同期します
- [GitLab Sync を有効にする](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/enabling-gitlab-sync.md): GitLab リポジトリを GitBook と同期します
- [コンテンツ設定](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/content-configuration.md): コード経由で Git Sync を設定する
- [GitHub のプルリクエストプレビュー](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/github-pull-request-preview.md): GitHub でプルリクエストを作成する際に、コンテンツのプレビューを確認できます
- [コミットメッセージと自動リンク](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/commits.md)
- [モノレポ](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/monorepos.md): モノレポで Git Sync を使用し、スペースを別々のディレクトリにマッピングします
- [トラブルシューティング](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/git-sync/troubleshooting.md): Git Sync、リポジトリ、リダイレクト、サインインに関する一般的な問題を解決します
- [GitBook MCP](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/gitbook-mcp.md): AI コーディングアシスタントを GitBook に接続し、GitBook の API を通じてサイトの作成、変更リクエストの作成、コンテンツの編集ができるようにします
- [GitBook CLI](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/gitbook-cli.md): コマンドラインから GitBook のコンテンツを操作します。サインイン、API のクエリ、スクリプトや AI コーディングエージェントによるドキュメントワークフローの実行ができます。
- [エージェントスキル](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/ai-coding-assistants-and-skillmd.md): GitBook の公式 SKILL.md ファイルを使って、Claude Code、Cursor、Codex などの AI コーディングアシスタントに GitBook の機能やブロックの知識を与えます
- [ガイド](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code/guides.md): docs-as-code ワークフロー、GitBook Agent、AI 対応ドキュメントに関するガイドを確認しましょう


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-as-code.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
