write-docs
БесплатноБез исполняемых скриптовНе проверенWrite, author, edit, and format GitBook documentation pages in Git-synced repos, IDEs, or any text editor. Use whenever a task involves creating or editing a…
от GitbookIO★ 27 звёзд на GitHubОб этом скилле
Write GitBook docs
When to Use This Skill
Use this skill when working with GitBook documentation through:
- Git-synced repositories (GitHub, GitLab)
- Local markdown editors
- IDE integrations
- Any environment where you're editing GitBook content as files rather than through the GitBook UI
Quick Reference
GitBook Content Structure
GitBook organizes content through pages, spaces, and collections:
- Pages are individual markdown files that make up your documentation
- Spaces are collections of pages organized into a documentation site
- Collections are groups of spaces
File structure:
/
.gitbook/
assets/ # GitBook-managed images and files
includes/ # Reusable content blocks
vars.yaml # Space-level variables
.gitbook.yaml # Configuration
README.md # Homepage
SUMMARY.md # Table of contents
getting-started/
installation.md
quickstart.md
api-reference/
authentication.md
endpoints.md
Frontmatter fields (quick form):
---
description: "Page description for SEO"
icon: book-open
hidden: true
vars:
page_variable: value
layout:
width: default # or 'wide'
tableOfContents:
visible: true
pagination:
visible: true
---
Variables and expressions:
- Space variables:
/.gitbook/vars.yaml - Page variables: Frontmatter
vars: - Expression syntax:
<code class="expression">space.vars.variableName</code>
Most common custom blocks:
{% tabs %}...{% endtabs %}— for alternatives{% hint style="..." %}...{% endhint %}— callouts (info/warning/danger/success){% stepper %}...{% endstepper %}— sequential steps<details>...<summary>...</details>— expandable content
Links:
- External:
[text](https://example.com) - Relative (same space):
[text](page.md),[text](../folder/page.md) - Cross-space (different space):
[text](https://app.gitbook.com/s/<spaceId>/<path>)— relative paths never cross space boundaries, and/spaces/<id>/pages/<id>is not a valid link form. The org-qualified aliashttps://app.gitbook.com/o/<orgId>/s/<spaceId>/<path>resolves the same way — write the short form, but don't rewrite or lint against either (references/git-sync-serialisation.md). Get<spaceId>fromGET /orgs/{orgId}/spacesand<path>from a page'spathfield inGET /spaces/{spaceId}/content/pages. Scaffolding a new site where the target space doesn't exist yet? UseXSPACE_<KEY>sentinels;configure-siteresolves them after creation. Full examples:references/markdown.md. - Moved/renamed pages keep working — GitBook auto-creates a redirect from the old path.
Key reminders:
- Read SUMMARY.md first when working with existing content
- Test in GitBook after editing locally
- Keep SUMMARY.md synchronized with your file structure and page titles
- OpenAPI specs must be uploaded via the UI, API, MCP, or CLI, not embedded in markdown
When to Use Which Block
| Need | Use | Why |
|---|---|---|
| Sequential, ordered instructions | {% stepper %} |
Clear step progression |
| Alternative options (languages, platforms) | {% tabs %} |
User chooses without page clutter |
| Optional or detailed information | <details> |
Keeps page scannable |
| Important warnings or tips | {% hint %} |
Colored callout (info/warning/danger/success) |
| Side-by-side comparisons | {% columns %} |
Parallel layout (max 2 columns) |
| Timeline or changelog | {% updates %} |
Dated entries with tag filtering |
| Visual navigation cards | <table data-view="cards"> |
Clickable card grid |
| Downloadable files | {% file %} |
File with caption |
| Call-to-action links | <a class="button"> |
Primary or secondary button |
| Reusable content across pages | {% include %} |
Single source of truth |
| Dynamic content | <code class="expression"> |
Renders variable values |
Variable scope:
| If variable is... | Define in... | Access with... |
|---|---|---|
| Used across multiple pages | /.gitbook/vars.yaml |
space.vars.variableName |
| Specific to one page | Frontmatter vars: |
page.vars.variableName |
Working with Existing Content
- Read SUMMARY.md first — complete table of contents and file hierarchy
- If no SUMMARY.md — browse the directory structure directly
- Check .gitbook.yaml — root path, custom README/SUMMARY locations, redirects
- Check .gitbook/assets/ — uploaded images and files
- Check .gitbook/vars.yaml — space-level variables
Common Pitfalls
Cross-space links:
- Don't use relative paths to link to a page in a different space — they won't resolve.
- Don't use
/spaces/<spaceId>/pages/<pageId>— that's not a valid GitBook link form. - Use
https://app.gitbook.com/s/<spaceId>/<path>instead, where<path>is the target page'spathfield (fromGET /spaces/{spaceId}/content/pages), not its page ID. - Don't "fix" the org-qualified form `https://app
Установить write-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл write-docs?
Write, author, edit, and format GitBook documentation pages in Git-synced repos, IDEs, or any text editor. Use whenever a task involves creating or editing a GitBook markdown page, writing or updating a README.md or SUMMARY.md, inserting a hint, tab, stepper, card, or other GitBook block, configuring page frontmatter or layout options, setting up variables or expressions, or formatting content for GitBook outside the GitBook UI.
Как установить скилл write-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic