测试与安全

cr-create

gitbookio/gitbook-skills

Drive an end-to-end GitBook docs review flow from Claude Code by calling the GitBook REST API directly with curl (no CLI) — create a change request, push content (update an existing page AND create a new page), request reviewers, notify Slack, then pull review comments back in, fix them, re-push, and resolve. This is the authoring-side companion to cr-review (the reviewer side over the same API). Use this whenever someone wants to run a "docs review in GitBook" loop from the terminal/agent against the raw API (curl/HTTP), mentions creating a change request via the API, pushing content into a CR, "pull in the latest comments and fix them," requesting review on docs, or showing engineers how to collaborate on GitBook docs from Claude + Slack without a CLI.

  • 643 次安装
  • 23 星标
  • 收录于

安装命令

npx skills add https://github.com/gitbookio/gitbook-skills --skill cr-create

SKILL.md

GitBook Review Flow (direct API)

Run a documentation review loop against a GitBook space entirely through the GitBook REST API (https://api.gitbook.com/v1, hit with curl), so an engineer never has to leave Claude Code (plus Slack) to propose docs changes and get them reviewed. This is the authoring-side companion to cr-review (the reviewer side over the same API). Every action here is a plain HTTP call — there is no CLI and no helper script.

The same actions serve three purposes with no separate code paths:

  • CR-creation demo — create a change request and push content (one existing page updated, one new page created).
  • Notify/review demo — request reviewers, drop a Slack link, pull comments, fix, re-push, resolve.
  • Real use — the identical actions against the user's own content.

Because the demo is just a scripted sequence of the real actions, it cannot show something that doesn't actually work. Keep it that way: never fake an output.

Auth and the gbapi helper