Transform any codebase into a professional technical ebook with architecture diagrams, code walkthroughs, and design decision documentation.
- Analyzes your codebase deeply — modules, architecture, data flows, tech stack
- Designs a logical chapter structure — from overview to deep dives
- Generates professional content — Markdown with Mermaid diagrams, code blocks, tables
- Builds your ebook — HTML (browser) or EPUB (e-reader) format
Ask: "Turn this codebase into an ebook"
Or specify a project:
- "Generate an ebook from https://github.com/user/repo"
- "Create a technical book from ./my-project"
- HTML — Open in any browser, interactive Mermaid diagrams, best for desktop
- EPUB — Read on Kindle, iBooks, or any e-reader, diagrams as images
A complete ebook with:
- Preface — Project overview and how to read the book
- Architecture chapters — System skeleton with diagrams
- Module deep dives — Each core component explained
- Design decision tables — Trade-offs and rationale
- Code walkthroughs — Key functions with detailed explanations
ebook-name/
├── metadata.yaml # Book metadata
├── chapters/
│ ├── 00-preface.md # Introduction
│ ├── 01-overview.md # Project overview
│ ├── 02-architecture.md # System architecture
│ ├── 03-module-a.md # Deep dive: Module A
│ └── ...
├── index.html # HTML output
└── book.epub # EPUB output
Technical developers who want to:
- Understand a codebase's architecture and design decisions
- Onboard to a new project quickly
- Evaluate a library or framework
- Learn from open-source projects
- Document their own projects
- Automatic chapter design — AI analyzes and structures the content
- Architecture diagrams — Mermaid diagrams showing module relationships
- Design decision documentation — Tables explaining trade-offs
- Code walkthroughs — Detailed explanations of key code
- Dual output — Same source generates HTML or EPUB
- Professional formatting — Clean typography and syntax highlighting
- Pandoc (for ebook generation)
- mermaid-cli (for EPUB diagram rendering)
Install on macOS:
brew install pandoc
npm install -g @mermaid-js/mermaid-cliThe skill follows a 5-phase pipeline:
- Analysis — Deep codebase reading and understanding
- Design — Chapter structure planning
- Generation — Markdown content creation
- Assembly — Build scripts generate HTML/EPUB
- Delivery — Output files ready to use
The generated ebook is fully editable:
- Modify any
.mdfile in thechapters/directory - Re-run
build-html.shorbuild-epub.shto regenerate - Adjust styles in
styles/directory
| Codebase-to-Course | Codebase-to-Ebook | |
|---|---|---|
| Audience | Non-technical / Vibe Coders | Technical developers |
| Format | Interactive HTML course | Static ebook (HTML/EPUB) |
| Content | Tutorials with quizzes | Architecture guide |
| Visuals | Animations, interactions | Mermaid diagrams, tables |
| Depth | Concept explanations | Design decisions, trade-offs |
Use codebase-to-course when teaching non-coders how software works. Use codebase-to-ebook when documenting architecture for developers.
Built with Claude Code.