in-app-gitbook-handbook

Creates a GitBook-compatible documentation space and in-app reader inside a product repository.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/swcstudiospace/aimeecodes --skill in-app-gitbook-handbook-swcstudiospace
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: in-app-gitbook-handbook
Source: https://github.com/swcstudiospace/aimeecodes/tree/main/.aimee/skills/in-app-gitbook-handbook
Command: npx skills add https://github.com/swcstudiospace/aimeecodes --skill in-app-gitbook-handbook-swcstudiospace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Product teams often leave /docs as a placeholder or scatter documentation across repos. This Skill ships a complete GitBook-compatible docs space inside the product repository, wired for site-wide Git Sync, plus an in-app reader so the handbook is browsable from the product itself. ## Core Features & Use Cases - Git Sync space scaffolding: Creates documentation/ with .gitbook.yaml, SUMMARY.md, README.md, and a root docs.yaml mapping validated against GitBook's GitSyncSiteConfig schema. - In-app reader routes: Builds TanStack Start routes (docs.tsx, docs.index.tsx, docs.$.tsx) with sidebar groups, search, TOC, and prev/next navigation. - Docs verification: Ships a verify-docs.py script that fails on broken relative links, unreachable pages, and secret-shaped filenames. - Use Case: When asked to "clone GitBook into this repository", the Skill reads only the target product tree, scaffolds the space, ports existing docs with a link audit, and wires every landing-page link to /docs. ## Quick Start Ask the agent to clone GitBook into this repository and build the product handbook from the source tree.

Frequently Asked Questions about in-app-gitbook-handbook

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up GitBook Git Sync in a monorepo?▼

Place a docs.yaml at the repository root declaring the space mapping with content.directory pointing at your docs folder. Each mapped directory needs its own .gitbook.yaml, README.md, and SUMMARY.md, and must be fully self-contained since GitBook does not share assets between spaces.

How do I build an in-app docs reader with TanStack Start?▼

Create three routes: docs.tsx for the layout with an Outlet, docs.index.tsx for /docs, and docs.$.tsx for nested slugs. Resolve the page from the pathname rather than splat parameter names, since those differ across TanStack Start versions.

Does GitBook share assets between spaces in a monorepo?▼

No, GitBook does not share content or assets between mapped directories in site-wide Git Sync. Each space directory must be fully self-contained, so duplicate assets per space or reorganize the structure.

Why do links break when porting an existing docs space?▼

Relative links break silently when the hierarchy changes, such as pages moving one directory deeper or sibling pages being dropped. Copy files first preserving subpaths, then run a link audit script and fix every broken reference before writing new pages.

Should I vendor the open-source GitBook app for self-hosted docs?▼

No, the GitBookIO/gitbook renderer is a published-site renderer, not the content layer. Cloning GitBook for docs purposes means creating a content space plus Git Sync, not vendoring that application into the product repo.