write-gitbook

A guide for editing GitBook documentation as files in a repository, text editor, IDE, or command line. GitBook is a documentation platform that organizes Markdown pages into spaces and collections.

In plain words
What is it for?
Use it to create and maintain GitBook pages, navigation, reusable content, images, page metadata, and site configuration.
Why use it?
It explains the file layout, formatting, settings, and conventions needed to keep GitBook content working outside the GitBook website.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/argos-ci/docs/write-gitbook
Any agent
npx skills add argos-ci/docs --skill write-gitbook
Clone the repo
git clone --depth 1 https://github.com/argos-ci/docs

Made for: Claude Code, Codex.

Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.08588
Opus 5 $0.00028 $0.04294
Sonnet 5 $0.00011 $0.01718
Haiku 4.5 $0.00006 $0.00859

Measured yesterday against content hash 7c3ca5888b53, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

write-gitbook scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -H "X-API-Key: your-api-key" https://api.example.com/v1/users
.agents/skills/write-gitbook/SKILL.md · 1,192 lines

How it starts

The opening of the file, as written. The whole thing — 1,192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use This Skill

Use this skill when working with GitBook documentation through:

  • Git-synced repositories (GitHub, GitLab)
  • Local markdown editors
  • IDE integrations
  • Command-line tools
  • 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/       # Section folder
    installation.md
    quickstart.md
  api-reference/
    authentication.md
    endpoints.md

Frontmatter fields:

---
description: Page description for SEO
icon: book-open
hidden: true
cover: .gitbook/assets/hero.png
coverY: 0
vars:
  page_variable: value
if: visitor.claims.unsigned.condition
layout:
  width: default  # or 'wide'
  cover:
    visible: true
    size: full      # or 'hero'
  title:
    visible: true
  description:
    visible: true
  tableOfContents:
    visible: true
  outline:
    visible: true
  pagination:
    visible: true
  metadata:
    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 %} for callouts
  • {% stepper %}...{% endstepper %} for sequential steps
  • <details>...<summary>...</details> for expandable content

Read the full file on GitHub · 1,192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 1,192 lines · 56 tokens per session scan A 7c3ca5888b53

Subscribe to this mod's changes

write-gitbook is a skill published in the GitHub repository argos-ci/docs (5 stars, last pushed 14d ago), licensed MIT. It adds 56 tokens to every session and 8,588 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

librechat-docs

Use the official LibreChat documentation to install, configure, operate, and troubleshoot LibreChat.

LibreChat-AI/librechat.ai · 24 tokens

argos-upload

Upload a screenshot, an image or a screen recording to Argos and get a shareable URL plus ready-to-paste Markdown, so it can be embedded in a pull request, an issue, a changelog or a chat message — or attached to a branch or pull request, where Argos posts and maintains the comment itself. Use whenever you have…

argos-ci/argos-javascript · 168 tokens

argos-cli

Operate Argos visual testing from the terminal with the argos CLI — inspect builds and snapshot diffs, submit reviews, request reviewers, post comments, inspect a test's flakiness and its recurring changes, ignore flaky test changes, configure a project and its contributors, manage a team's members, invites and email…

argos-ci/argos-javascript · 143 tokens

argos-pr-review

Review Argos visual regression builds as one input to a pull request review. Use when a PR has an Argos build link, an Argos status check, or a bot comment pointing to an Argos build, and you need to decide whether the visual diffs match the developer's intent before approving.

argos-ci/argos-javascript · 65 tokens

documentation-authoring

Create structured docs from scratch — PRDs, technical specs, design docs, decision records, knowledge bases. Use when drafting documentation, writing proposals, defining requirements, or planning features.

PracticalSwan/agent-skills · 40 tokens

knowledge

Search and author KNOWLEDGE.md background-knowledge documents - frontmatter schema, search/check scripts, and the generated/verified lifecycle rules.

lablup/backend.ai · 29 tokens