Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

configure-site

БесплатноБез исполняемых скриптовНе проверен

Create and maintain GitBook documentation sites end-to-end — design structure from source content, scaffold a Git monorepo, set up the GitHub/GitLab remote…

GitbookIOот GitbookIO★ 27 звёзд на GitHub

Об этом скилле

Configure GitBook Site

A skill for creating and maintaining entire GitBook documentation sites. Where write-docs covers what goes inside a single page, this skill covers everything around the pages: structure design, repo scaffolding, the GitBook API, and branding. Use the two skills together — this one calls into write-docs whenever it needs to generate or edit page content.

How you can talk to GitBook

There's more than one way to drive GitBook — GitBook's MCP server and the REST API. Check what's actually available in the current session and prefer MCP first: if GitBook MCP tools are already connected, use them for anything they cover (creating/configuring sites, opening change requests, drafting and editing content, restructuring docs) instead of making direct API calls. Don't run a detection script for this — you already know your own available tools/MCP connections; just use that awareness.

"MCP first" is about transport, not about bypassing Git Sync for content. The MCP can push change-request content through the updateChangeRequestContent operation (via invoke_operation; it is not a named tool) that's tempting to reach for anytime it's connected — but for spaces that already have Git Sync configured, pushing content by editing files in the local repo and letting Git Sync carry it to GitBook is still the preferred path for anything beyond a small, targeted edit. Use the change-request push (MCP or REST) instead when the space isn't Git-synced, there's no local checkout available in the environment, or the edit is small enough that opening a CR is proportionate. See write-docs's "Choosing Git Sync vs. a change-request content push" for the full rule — it applies here too.

The steps in this skill are described as outcomes ("list the orgs", "create the site", "add a section") rather than tied to one transport, so they apply whichever you use. If GitBook MCP tools are connected, call those directly — their own schemas describe their parameters. If you're on the REST API path instead, the exact endpoints, request bodies, and expected responses for each step are in references/api-cheatsheet.md.

  • GitBook MCP — covers the same capabilities described below, but most writes go through invoke_operation (find the operation with search, inspect with describe_operation) rather than named tools. If it isn't connected yet and the task is substantial enough to benefit (a full site build, ongoing restructuring — not a one-off tweak), offer to set it up: claude mcp add --transport http gitbook-mcp https://mcp.gitbook.com/mcp (then /mcp to complete OAuth sign-in — or append --header "Authorization: Bearer $GITBOOK_TOKEN" to skip the browser flow). Codex equivalent: codex mcp add gitbook-mcp --url https://mcp.gitbook.com/mcp. Note: this is a different server from GitBook's separate, read-only "published docs" MCP, which only exposes already-published content.
  • REST API (https://api.gitbook.com/v1) — the fallback when MCP isn't connected, or for anything MCP doesn't cover. Needs GITBOOK_TOKEN as a bearer header on every request.

The same personal access token (from https://app.gitbook.com/account/developer) works as the bearer token for both. MCP additionally supports OAuth as a friendlier alternative to pasting a token.

If you end up needing a token (REST API path, or MCP without OAuth), check for it at the start of the session:

[ -n "$GITBOOK_TOKEN" ] && echo "Token found" || echo "GITBOOK_TOKEN is not set"

If GITBOOK_TOKEN is not set, ask the user directly:

  1. Tell them they need a GitBook personal access token. Direct them to https://app.gitbook.com/account/developer to create one.
  2. Ask them to paste the token into the conversation. Immediately export it as an environment variable (export GITBOOK_TOKEN=<pasted value>) and don't repeat it back in your response.
  3. Do not proceed with any API calls until the token is confirmed present in the environment.

Never write the token to a file, never echo it back in a response, never commit it.

The fundamental constraint

The most important thing to internalize before doing anything: GitBook can do almost everything except set up Git Sync, regardless of transport. Authorizing GitHub/GitLab, picking the repository, choosing the branch, and choosing the initial sync direction are all UI-only operations — both the REST API and MCP (which wraps it) only let you read the resulting Git Sync state, never set it up. There's an API operation, installGitSyncProviderOnTarget, that targets either a site or a space, but the account-connection (OAuth) step still has to happen in the app, and it isn't yet exposed through GitBook's MCP server — treat it as not-yet-usable rather than building a flow around it.

Git Sync now configures at the site level, and that's the default to reach for. One connection (one repo, one branch) covers the whole site; gitbook-docs.yaml maps each space to its

Полный SKILL.md на GitHub

Установить configure-site в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-cheatsheet.mdreferences/block-ecosystem.mdreferences/cross-space-links.mdreferences/customization-recipes.mdreferences/example-site/.nojekyllreferences/example-site/CLAUDE.mdreferences/example-site/PRUNE-NOTES.mdreferences/example-site/README.mdreferences/example-site/changelog/.gitbook/tags.yamlreferences/example-site/changelog/.gitbook/vars.yamlreferences/example-site/changelog/README.mdreferences/example-site/changelog/SUMMARY.mdreferences/example-site/connections/blog/index.htmlreferences/example-site/connections/blog/same-day-payouts-tradeoffs.htmlreferences/example-site/connections/community/index.htmlreferences/example-site/connections/community/webhook-retries-backoff.htmlreferences/example-site/connections/index.htmlreferences/example-site/connections/youtube/index.htmlreferences/example-site/connections/youtube/webhooks-deep-dive.htmlreferences/example-site/customization.jsonreferences/example-site/developers/openapi/v1/connect.yamlreferences/example-site/developers/openapi/v1/identity.yamlreferences/example-site/developers/openapi/v1/payments.yamlreferences/example-site/developers/openapi/v2/connect.yamlreferences/example-site/developers/openapi/v2/identity.yamlreferences/example-site/developers/openapi/v2/payments.yamlreferences/example-site/developers/openapi/v3/connect.yamlreferences/example-site/developers/openapi/v3/identity.yamlreferences/example-site/developers/openapi/v3/payments.yamlreferences/example-site/developers/v2/.gitbook/vars.yamlreferences/example-site/developers/v2/README.mdreferences/example-site/developers/v2/SUMMARY.mdreferences/example-site/developers/v2/connect-api/README.mdreferences/example-site/developers/v2/getting-started/authentication.mdreferences/example-site/developers/v2/getting-started/conventions.mdreferences/example-site/developers/v2/getting-started/for-ai-agents.mdreferences/example-site/developers/v2/getting-started/quickstart.mdreferences/example-site/developers/v2/getting-started/sdks.mdreferences/example-site/developers/v2/identity-api/README.mdreferences/example-site/developers/v2/mcp/README.md

FAQ

Что делает скилл configure-site?

Create and maintain GitBook documentation sites end-to-end — design structure from source content, scaffold a Git monorepo, set up the GitHub/GitLab remote, drive the GitBook API (REST or MCP) to create the site/sections/spaces, apply branding, and hand off the one UI step (Git Sync) that GitBook does not expose programmatically. Prefer site-level Git Sync (gitbook-docs.yaml mapping every space) over per-space sync unless a space needs its own repo or branch. Use when spinning up a new docs site, restructuring or extending one, linking a site or spaces to Git, changing branding (logo, colors, fonts, header/footer), or programmatically managing spaces, sections, or site-spaces. Defers page authoring to the companion `write-docs` skill.

Как установить скилл configure-site?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл configure-site запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить configure-site с