| name | gitbook |
| description | Create GitBook documentation sites with proper structure, navigation, and rich components. Use when creating documentation sites, technical guides, or knowledge bases with GitBook. |
| model | sonnet |
| allowed-tools | ["Read","Write","Bash"] |
GitBook Skill
Create structured GitBook documentation sites with proper navigation, components, and content organization.
When to Use
- Documentation sites for AWS architectures or services
- Technical knowledge bases
- Project documentation with rich formatting
- Multi-chapter guides with navigation
Workflow
Phase 1: Plan Structure
- Define documentation scope and audience
- Outline chapters and sections (max 3 levels deep)
- Identify content types per section (guides, references, tutorials)
- Plan cross-references and navigation flow
Phase 2: Create Project
- Initialize git repository
- Create
.gitbook.yaml configuration
- Create
SUMMARY.md navigation file
- Set up chapter directories with
README.md index pages
Phase 3: Write Content
- Write content pages using GitBook components
- Add code blocks, hints, tabs as needed
- Embed diagrams and images in
.gitbook/assets/
- Create cross-links between related pages
Phase 4: Quality Review
- Run
content-review-agent on project root
- Fix issues flagged (broken links, formatting, consistency)
- Re-review until PASS (โฅ85 score)
- Push to GitBook-connected repository
GitBook Project Structure
docs/
โโโ .gitbook.yaml # GitBook configuration
โโโ SUMMARY.md # Navigation structure (required)
โโโ README.md # Landing page
โโโ .gitbook/
โ โโโ assets/ # Images, diagrams, files (agent์ ๋์ผ ๊ท์ฝ)
โ โโโ architecture.png
โ โโโ workflow.drawio
โโโ getting-started/ # Chapter directory
โ โโโ README.md # Chapter index
โ โโโ installation.md
โ โโโ quickstart.md
โโโ guides/
โ โโโ README.md
โ โโโ basic-usage.md
โ โโโ advanced-config.md
โโโ reference/
โ โโโ README.md
โ โโโ api.md
โ โโโ cli.md
โโโ resources/
โโโ faq.md
โโโ troubleshooting.md
SUMMARY.md Pattern
# Table of contents
* [Introduction](README.md)
## Getting Started
* [Overview](getting-started/README.md)
* [Installation](getting-started/installation.md)
* [Quick Start](getting-started/quickstart.md)
## Guides
* [Guides Overview](guides/README.md)
* [Basic Usage](guides/basic-usage.md)
* [Advanced Configuration](guides/advanced-config.md)
## Reference
* [API Reference](reference/api.md)
* [CLI Reference](reference/cli.md)
## Resources
* [FAQ](resources/faq.md)
* [Troubleshooting](resources/troubleshooting.md)
Key Components
| Component | Syntax | Use Case |
|---|
| Hint (info) | {% hint style="info" %}...{% endhint %} | Tips, notes, general info |
| Hint (warning) | {% hint style="warning" %}...{% endhint %} | Cautions, prerequisites |
| Hint (danger) | {% hint style="danger" %}...{% endhint %} | Critical warnings |
| Hint (success) | {% hint style="success" %}...{% endhint %} | Best practices, achievements |
| Tabs | {% tabs %}{% tab title="..." %}...{% endtab %}{% endtabs %} | Multi-language code, OS-specific steps |
| Code block | ```language | Code snippets with syntax highlighting |
| Expandable | <details><summary>...</summary>...</details> | FAQ, optional details |
| Embed | {% embed url="..." %} | YouTube, GitHub gists, external content |
| File download | {% file src="..." %} | Downloadable assets |
Quick Commands
mkdir docs && cd docs
git init
echo "root: ./" > .gitbook.yaml
touch README.md SUMMARY.md
mkdir -p getting-started guides reference resources .gitbook/assets
for dir in getting-started guides reference; do
echo "# ${dir^}" > "$dir/README.md"
done
find . -name "*.md" | head -20
Common Patterns
| Content Type | GitBook Component | Example |
|---|
| Prerequisites | {% hint style="warning" %} | AWS CLI installed, IAM permissions |
| Best practice | {% hint style="success" %} | Recommended configurations |
| Multi-OS instructions | {% tabs %} | Linux/macOS/Windows commands |
| API endpoint | Code block + table | Method, path, parameters |
| Architecture overview | Image + hint | PNG diagram with context |
| Step-by-step guide | Numbered list + code blocks | Installation, deployment |
| Troubleshooting | <details> expandable | Error โ Solution pairs |
Quality Review (ํ์ โ ์๋ต ๋ถ๊ฐ)
์ฝํ
์ธ ์์ฑ ํ ๋ฐฐํฌ/์๋ฃ ์ ์ธ ์ ์ ๋ฐ๋์:
- content-review-agent ํธ์ถ โ
review content at [ํ๋ก์ ํธ๊ฒฝ๋ก]
- FAIL/REVIEW ํ์ ์ ์์ ํ ์ฌ๋ฆฌ๋ทฐ (์ต๋ 3ํ)
- PASS ํ๋ ํ์๋ง ์๋ฃ ์ ์ธ โ ๊ธฐ์ค โฅ85/100; ๋ ๋๋ง๋ HTML ์์ด markdown ์์ค๋ง ๋ฆฌ๋ทฐํด Visual Testing์ด ๋ฉด์ ๋ ๊ฒฝ์ฐ โฅ77/90 ํ์ฐ ๊ธฐ์ค
โ ๏ธ ์ด ๋จ๊ณ๋ฅผ ๊ฑด๋๋ฐ๊ณ ์๋ฃ๋ฅผ ์ ์ธํ๋ ๊ฒ์ ๊ธ์ง๋ฉ๋๋ค.
References
references/structure-guide.md โ Project structure patterns and conventions
references/component-patterns.md โ GitBook component syntax and usage