gitbook
Publish documentation and books with GitBook including spaces, collections, variants, Git sync, collaboration, and API integration
Best use case
gitbook is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Publish documentation and books with GitBook including spaces, collections, variants, Git sync, collaboration, and API integration
Teams using gitbook should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gitbook/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gitbook Compares
| Feature / Agent | gitbook | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Publish documentation and books with GitBook including spaces, collections, variants, Git sync, collaboration, and API integration
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# GitBook
## When to Use
### USE GitBook when:
- **Team documentation** - Collaborative docs with multiple editors
- **Product documentation** - User guides, API docs, tutorials
- **Knowledge bases** - Internal wikis and knowledge management
- **Multi-version docs** - Maintain docs for different product versions
- **Git-based workflow** - Sync docs with GitHub/GitLab
- **Custom branding** - Need custom domains and styling
- **Access control** - Restrict docs to authenticated users
### DON'T USE GitBook when:
- **Complex code docs** - Use Sphinx for Python API docs
- **Static site control** - Use MkDocs or Docusaurus
- **Offline-first** - GitBook is primarily cloud-hosted
- **Self-hosted required** - GitBook is SaaS (legacy self-hosted deprecated)
## Prerequisites
### GitBook Account Setup
```bash
# 1. Sign up at https://www.gitbook.com/
# 2. Create an organization (or use personal space)
# 3. Generate API token at https://app.gitbook.com/account/developer
export GITBOOK_API_TOKEN="gb_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl -s -H "Authorization: Bearer $GITBOOK_API_TOKEN" \
"https://api.gitbook.com/v1/user" | jq '.id, .displayName'
```
### Git Sync Setup
```bash
# In your GitBook space settings:
# 1. Go to Integrations > Git Sync
# 2. Connect GitHub/GitLab account
# 3. Select repository and branch
```
*See sub-skills for full details.*
### Python Setup
```bash
uv add requests python-dateutil
```
## Resources
- **GitBook Documentation**: https://docs.gitbook.com/
- **GitBook API Reference**: https://developer.gitbook.com/
- **Git Sync Guide**: https://docs.gitbook.com/integrations/git-sync
- **Custom Domains**: https://docs.gitbook.com/published-documentation/custom-domain
## Version History
- **1.0.0** (2026-01-17): Initial release — spaces management, collections, variants,
Git sync, collaboration, custom domains, migration tools, analytics, GitHub Actions
## Sub-Skills
- [1. API Authentication (+1)](1-api-authentication/SKILL.md)
- [3. Content Management (+1)](3-content-management/SKILL.md)
- [5. Content Variants (Versions) (+1)](5-content-variants-versions/SKILL.md)
- [GitHub Actions for Git Sync (+1)](github-actions-for-git-sync/SKILL.md)
- [1. Structure Content Properly (+3)](1-structure-content-properly/SKILL.md)
- [Common Issues](common-issues/SKILL.md)
- [Getting Started](getting-started/SKILL.md)
- [User Guide](user-guide/SKILL.md)
- [API Reference](api-reference/SKILL.md)
- [Example 1: Documentation Site Builder (+2)](example-1-documentation-site-builder/SKILL.md)Related Skills
gitbook-user-guide
Sub-skill of gitbook: User Guide.
gitbook-github-actions-for-git-sync
Sub-skill of gitbook: GitHub Actions for Git Sync (+1).
gitbook-getting-started
Sub-skill of gitbook: Getting Started.
gitbook-example-1-documentation-site-builder
Sub-skill of gitbook: Example 1: Documentation Site Builder (+2).
gitbook-api-reference
Sub-skill of gitbook: API Reference.
gitbook-5-content-variants-versions
Sub-skill of gitbook: 5. Content Variants (Versions) (+1).
gitbook-3-content-management
Sub-skill of gitbook: 3. Content Management (+1).
gitbook-1-structure-content-properly
Sub-skill of gitbook: 1. Structure Content Properly (+3).
gitbook-1-api-authentication
Sub-skill of gitbook: 1. API Authentication (+1).
test-oversized-skill
A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.
interactive-report-generator
Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.
data-validation-reporter
Generate interactive validation reports with quality scoring, missing data analysis, and type checking. Combines Pandas validation, Plotly visualization, and YAML configuration for comprehensive data quality reporting.