youtube-to-ebook — Claude Code skill: what it does, how to install
youtube-to-ebook turns recent YouTube videos from selected channels into readable articles and bundles them into an EPUB ebook.
no license 1 installs ★ 588 updated 2026-01-28
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a claude-codeWhat youtube-to-ebook 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.
What it helps with
- 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 for the agent
- 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
How to install youtube-to-ebook
1Skills CLI (Vercel)
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a claude-code2Manually: put the files in place
~/.claude/skills/youtube-to-ebook/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/youtube-to-ebook/
1Skills CLI (Vercel)
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a codex2Manually: put the files in place
.agents/skills/youtube-to-ebook/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a cursor2Manually: put the files in place
.cursor/skills/youtube-to-ebook/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install zarazhangrui/youtube-to-ebook youtube-to-ebook2Manually: put the files in place
.github/skills/youtube-to-ebook/SKILL.md1Skills CLI (Vercel)
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a gemini-cli2Platform CLI
gemini skills install https://github.com/zarazhangrui/youtube-to-ebookManually: put the files in place
.devin/skills/youtube-to-ebook/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about youtube-to-ebook
How to install youtube-to-ebook in Claude Code?
Run npx skills add zarazhangrui/youtube-to-ebook --skill youtube-to-ebook -a claude-code in your terminal.
What does youtube-to-ebook do?
It extracts transcripts from recently published channel videos, rewrites the content into clear reading articles using Claude, and saves the batch as an EPUB file.
What credentials are required before running the script?
You need an Anthropic API key for text transformation, a YouTube Data API key from Google Cloud Console, and Python 3.8 or higher.