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

# 快速上手

- [快速开始](https://gitbook.com/docs/documentation/zh/getting-started/quickstart.md): 快速上手 GitBook，并在几分钟内发布你的第一个文档站点
- [借助 AI 构建](https://gitbook.com/docs/documentation/zh/getting-started/ai-documentation.md): 使用 GitBook Agent、AI 编码助手和 MCP 构建并发布 AI 原生文档。
- [Agent 技能](https://gitbook.com/docs/documentation/zh/getting-started/ai-documentation/ai-coding-assistants-and-skillmd.md): 使用 GitBook 官方的 SKILL.md 文件，让 Claude Code、Cursor 或 Codex 等 AI 编码助手了解 GitBook 的功能和块
- [GitBook MCP](https://gitbook.com/docs/documentation/zh/getting-started/ai-documentation/gitbook-mcp.md): 将 AI 编码助手连接到 GitBook，以便它们可以通过 GitBook 的 API 创建站点、发起变更请求并编辑内容
- [GitBook CLI](https://gitbook.com/docs/documentation/zh/getting-started/ai-documentation/gitbook-cli.md): 通过命令行处理你的 GitBook 内容——登录、查询 API，并通过脚本或 AI 编码代理驱动文档工作流。
- [为 AI 做优化](https://gitbook.com/docs/documentation/zh/getting-started/ai-documentation/optimizing-for-ai.md): 让你的文档更易于被 LLM、编码代理和 AI 搜索工具获取并据此回答
- [迁移到 GitBook](https://gitbook.com/docs/documentation/zh/getting-started/import.md): 如何从 Confluence、Notion、Git 等导入现有内容到 GitBook
- [GitHub 与 GitLab 同步](https://gitbook.com/docs/documentation/zh/getting-started/git-sync.md): 通过 GitBook 的双向集成功能，将你的 GitBook 内容与 GitHub 或 GitLab 同步
- [启用 GitHub 同步](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/enabling-github-sync.md): 为 GitBook 设置并授权 GitHub 集成
- [启用 GitLab 同步](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/enabling-gitlab-sync.md): 为 GitBook 设置并授权 GitLab 集成
- [内容配置](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/content-configuration.md): 使用额外功能配置 Git Sync
- [GitHub 拉取请求预览](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/github-pull-request-preview.md): 在 GitHub 中发起拉取请求时预览你的内容
- [提交信息与自动链接](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/commits.md)
- [单体仓库](https://gitbook.com/docs/documentation/zh/getting-started/git-sync/monorepos.md)
- [故障排查](https://gitbook.com/docs/documentation/zh/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/documentation/zh/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.
