# youtube-to-ebook

youtube-to-ebook turns recent YouTube videos from selected channels into readable articles and bundles them into an EPUB ebook.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 588 repo stars
- Author: zarazhangrui
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zarazhangrui/youtube-to-ebook/tree/HEAD/SKILL.md
- Updated: 2026-01-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/youtube-to-ebook

## What it does

This skill organizes a pipeline from video feeds to a digital book. It fetches recent uploads with YouTube Data API, discards Shorts, and extracts transcripts. Claude then rewrites the transcripts into magazine-style articles. The output is bundled into EPUB format via `ebooklib`. The book is ready to read.

The project contains Python utilities like `get_videos.py`, `write_articles.py`, and `main.py`. Subscriptions live inside `channels.txt`. You can edit prompts directly to adjust the tone of voice. There is also a local web dashboard in `dashboard.py`.

You need Python 3.8+, a YouTube Data API key, and an Anthropic API token. Cloud environments like GitHub Actions face transcript rate limits from YouTube. Because of this, run the pipeline locally.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/youtube-to-ebook/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/youtube-to-ebook/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/youtube-to-ebook/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/youtube-to-ebook/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install zarazhangrui/youtube-to-ebook youtube-to-ebook
```

2. **Manually: put the files in place**
- File: `.github/skills/youtube-to-ebook/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/zarazhangrui/youtube-to-ebook
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/youtube-to-ebook/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/zarazhangrui/youtube-to-ebook/tree/HEAD/SKILL.md

## When to use it
- compile YouTube video feeds into an offline EPUB reader
- convert raw speech transcripts into structured articles
- filter out YouTube Shorts while tracking regular uploads
- automate periodic video summaries on a local machine

## Example prompts
- Set up youtube-to-ebook and generate my first ebook
- Run python main.py to fetch the latest channel uploads
- Launch dashboard.py to manage my subscriptions

## Similar
- [ai-ebook-generator](https://affpapa.org/en/nevibecode/mcp/ai-ebook-generator.md) — MCP server · 272 installs
- [book-converter](https://affpapa.org/en/nevibecode/skills/book-converter.md) — skill · 147 installs
- [ebook-analysis](https://affpapa.org/en/nevibecode/skills/ebook-analysis.md) — skill · 404 installs
- [obsidian2epub](https://affpapa.org/en/nevibecode/skills/obsidian2epub.md) — skill · 1 install
- [ebook-discovery](https://affpapa.org/en/nevibecode/skills/ebook-discovery.md) — skill · ★ 139 repo stars
- [ebook-concept-development](https://affpapa.org/en/nevibecode/skills/ebook-concept-development.md) — skill · ★ 139 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
