com um clique
gitbook
// GitBook documentation platform. Use when creating, publishing, or managing docs sites — content structure, blocks, Git Sync, customization, AI search, collaboration, and the GitBook API.
// GitBook documentation platform. Use when creating, publishing, or managing docs sites — content structure, blocks, Git Sync, customization, AI search, collaboration, and the GitBook API.
MemPalace local-first AI memory system. Use when setting up persistent memory for Claude Code sessions, mining project files or conversation transcripts, querying past context, configuring MCP tools, managing the knowledge graph, or troubleshooting palace operations.
LangChain AWS integration — ChatBedrockConverse (Claude/Nova/Llama/Mistral on Bedrock), BedrockEmbeddings, AmazonKnowledgeBasesRetriever, BedrockAgentsRunnable, BedrockRerank, BedrockPromptCachingMiddleware, CodeInterpreterToolkit, BrowserToolkit (computer use), Neptune graph chains, and SageMaker endpoint.
LangChain Deep Agents (Python) — build, deploy, and customize stateful long-running agents with virtual filesystems, subagents, human-in-the-loop, and LangSmith observability. Also covers LangGraph, LangChain OSS chains/retrievers, and Agent Server API.
LangChain Exa integration — semantic web search with ExaSearchRetriever (RAG), ExaSearchResults (agent tool), and ExaFindSimilarResults (find similar URLs). Unique features: use_autoprompt (LLM query rewriting), highlights (excerpts), summary (per-result LLM summaries), livecrawl (real-time), and date filtering.
LangChain MCP Adapters — connect LangChain agents to MCP (Model Context Protocol) servers. Load MCP tools, prompts, and resources as LangChain-compatible objects. Supports stdio, SSE, StreamableHTTP, and WebSocket transports. Includes interceptors, callbacks, and multi-server management.
LangChain Neo4j integration — Neo4jGraph for Cypher queries and schema inspection, GraphCypherQAChain for natural-language-to-Cypher Q&A, Neo4jVector for vector/hybrid RAG, Neo4jSaver LangGraph checkpointer, Neo4jChatMessageHistory, and GraphDocument/Node/Relationship for knowledge graph construction.
| name | gitbook |
| description | GitBook documentation platform. Use when creating, publishing, or managing docs sites — content structure, blocks, Git Sync, customization, AI search, collaboration, and the GitBook API. |
Comprehensive assistance with GitBook — an AI-native documentation platform for creating, publishing, and managing product documentation, API references, and knowledge bases.
Trigger this skill when:
Organization
└── Collection (group of spaces)
└── Space (a documentation project)
└── Page (a document)
└── Block (content unit: text, code, hint, table, etc.)
GitBook's equivalent of Git pull requests. All edits happen in a change request (a branch of the live content), then get reviewed and merged — preserving a full audit trail.
app.gitbook.com+ button or / command in the editorGitBook can import from:
Space menu → Import → Choose source
GitBook is block-based — every element is a block. Insert with / in the editor.
| Block | Purpose |
|---|---|
| Paragraph | Standard text with inline formatting |
| Heading (H1/H2/H3) | Page structure and SEO |
| Code block | Syntax-highlighted code with language detection |
| Hint | Callouts: info, warning, danger, success |
| Table | Structured data |
| Tabs | Side-by-side content variants |
| Expandable | Collapsible FAQ-style sections |
| Stepper | Step-by-step guides |
| Cards | Visual navigation grids |
| Image | Single image or gallery |
| Embed | Video, Figma, CodePen, etc. |
| Reusable content | Synced block used across multiple pages |
| OpenAPI | Auto-rendered API reference from an OpenAPI spec |
| Drawing | Inline diagram editor |
| Math/TeX | Mathematical formulas |
{% hint style="info" %} → Blue info box
{% hint style="warning" %} → Yellow warning
{% hint style="danger" %} → Red alert
{% hint style="success" %} → Green success
{% endhint %}
Create once, sync everywhere. Edit one instance and all uses update automatically.
/ → Reusable content → Create new reusable block
Requires Pro or Enterprise plan
Define reusable text values (version numbers, product names) at the space level. Reference them inline with {{ variable_name }}. Useful for content that changes across versions.
Every change request merge creates a history entry. View the Version history side panel to see all changes — who made them, when, and what changed. Roll back by creating a new change request from a past version.
Bi-directional sync between a GitBook space and a GitHub or GitLab repo.
.gitbook.yaml ConfigurationPlace at the repo root to control how GitBook parses the repo:
root: ./docs # optional: look in a subdirectory
structure:
readme: README.md # the space's root page
summary: SUMMARY.md # table of contents
redirects:
previous/page: new-folder/page.md
Point root: to a specific subdirectory to sync only part of a repo.
SUMMARY.md → sidebar structure (if present).gitbook/assets → embedded imagesGitBook can add a preview comment to GitHub PRs showing a staging link before merge.
Organization home → New site → Link an existing space or create new
hosting.gitbook.ioCustom subdirectory (e.g. example.com/docs) requires a Cloudflare Workers, Vercel, or AWS CloudFront proxy.
Enable in site settings → readers can export any page or the full site as PDF.
The primary editing workflow — all edits live in a change request until merged.
Space → New change request → Edit → Request review → Merge
| Role | Can do |
|---|---|
| Owner | Everything including billing and org deletion |
| Admin | Manage members, spaces, and settings |
| Creator | Create and publish spaces and sites |
| Editor | Edit content in spaces with edit access |
| Reviewer | Review and comment on change requests |
| Commenter | Comment only, no edits |
| Reader | View only |
GitBook uses cascading role-based permissions:
Organization role → inherited by all spaces
└── Collection role → overrides org role for spaces in collection
└── Space role → overrides for that space
└── Site role → overrides for published site access
Setting a space to "No access" restricts it regardless of org-level role.
Add inline comments on any block. Comments thread and resolve. Use @mentions to notify team members.
Replaces keyword search with semantic understanding. Users ask questions in natural language; AI answers using your docs as the source.
Site → Configure → Search → Enable AI Search
Options:
An AI teammate that creates and maintains documentation inside GitBook.
Capabilities:
Requires Pro or Enterprise plan.
Embed your documentation as a widget inside your own product:
<script src="https://gitbook.com/assets/docs-embed.js"
data-api-key="YOUR_KEY"></script>
// React
import { GitBookEmbed } from '@gitbook/docs-embed/react';
<GitBookEmbed apiKey="YOUR_KEY" welcomeMessage="How can we help?" />
Supports AI Q&A, page browsing, custom welcome messages, and authenticated visitors.
Every GitBook page exposes a machine-readable endpoint:
GET https://your-site.gitbook.io/page-path.md
With live Q&A:
GET https://your-site.gitbook.io/page-path.md?ask=how do I set up git sync
See what questions users are actually asking — identify documentation gaps.
Site → Insights → AI Insights
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.gitbook.com/v1/user
Generate tokens: app.gitbook.com → Settings → Developer → API Tokens
GET /v1/orgs/{orgId}/spaces List spaces
GET /v1/spaces/{spaceId}/content Get space content
POST /v1/spaces/{spaceId}/content/page Create a page
GET /v1/spaces/{spaceId}/revisions List revision history
Build custom GitBook integrations using @gitbook/runtime:
# .gitbook.yaml — docs live in /packages/docs/
root: ./packages/docs
structure:
readme: index.md
summary: SUMMARY.md
redirects:
old-section/page: new-section/page.md
maindocs-v1 and docs-v2/v1/ and /v2/ paths both stay liveSpace settings → Reusable content → New reusable block
Add hint: {% hint style="warning" %}
Breaking change in v2: the `id` field is now `uuid`.
{% endhint %}
Embed this block on every affected page. Update once → all pages update.
Site → Configure → Adaptive content
Define visitor properties (plan: "free" | "pro" | "enterprise") via your auth token. Show/hide blocks conditionally based on {{ visitor.plan }}.
{% hint style="info" %}
This feature is available on Pro and Enterprise plans.
{% endhint %}
.gitbook.yaml with Redirectsroot: ./docs
structure:
readme: README.md
summary: SUMMARY.md
redirects:
getting-started: introduction/quickstart.md
api/v1/auth: api/authentication.md
API base URL: {{ env.api_base_url }}
Current version: {{ product.version }}
gitbook.com/docsgitbook.com/docs/llms.txtgitbook.com/docs/developers/gitbook-api/api-referencegitbook.com/docs/developers/integrationscommunity.gitbook.comgitbookstatus.com