> 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/getting-started.md).

# Get Started

- [Quickstart](https://gitbook.com/docs/getting-started/quickstart.md): Get up and running in GitBook and publish your first docs site in minutes
- [Build with AI](https://gitbook.com/docs/getting-started/ai-documentation.md): Build and publish AI-native docs using GitBook Agent, AI coding assistants, and MCP.
- [Agent skills](https://gitbook.com/docs/getting-started/ai-documentation/ai-coding-assistants-and-skillmd.md): Use GitBook’s official SKILL.md file to give AI coding assistants like Claude Code, Cursor or Codex knowledge of GitBook’s features and blocks
- [GitBook MCP](https://gitbook.com/docs/getting-started/ai-documentation/gitbook-mcp.md): Connect AI coding assistants to GitBook so they can create sites, open change requests, and edit content through GitBook’s API
- [Optimizing for AI](https://gitbook.com/docs/getting-started/ai-documentation/optimizing-for-ai.md): Make your docs easier for LLMs, coding agents, and AI search tools to consume and answer from
- [Migrate to GitBook](https://gitbook.com/docs/getting-started/import.md): How to import existing content into GitBook from Confluence, Notion, Git and more
- [GitHub & GitLab Sync](https://gitbook.com/docs/getting-started/git-sync.md): Synchronize your GitBook content with GitHub or GitLab with GitBook’s bi-directional integration
- [Enabling GitHub Sync](https://gitbook.com/docs/getting-started/git-sync/enabling-github-sync.md): Set up and authorize the GitHub integration for GitBook
- [Enabling GitLab Sync](https://gitbook.com/docs/getting-started/git-sync/enabling-gitlab-sync.md): Set up and authorize the GitLab integration for GitBook
- [Content configuration](https://gitbook.com/docs/getting-started/git-sync/content-configuration.md): Configure Git Sync with extra functionalities
- [GitHub pull request preview](https://gitbook.com/docs/getting-started/git-sync/github-pull-request-preview.md): See a preview of your content when making a pull request in GitHub
- [Commit messages & Autolink](https://gitbook.com/docs/getting-started/git-sync/commits.md)
- [Monorepos](https://gitbook.com/docs/getting-started/git-sync/monorepos.md)
- [Troubleshooting](https://gitbook.com/docs/getting-started/git-sync/troubleshooting.md)


---

# 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/getting-started.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.
