Skip to content
Skills Library
Personal productivity · Conversion & formats

ebookify

/ebookify

Turn web pages, articles, blog series, PDFs, YouTube videos and podcast episodes into clean, readable ebooks (EPUB) for offline reading on e-readers and phones, and/or interactive HTML editions (learning aids with quizzes and flashcards, slide mode for teaching, story-style reading) that open as a Claude artifact or a local file. Captions or Whisper transcripts are cleaned into chaptered prose. Use this whenever the user wants to read something later, offline, on a Kindle/Kobo/e-reader, "as a book", wants a transcript of a talk or podcast turned into something readable, wants to study or teach

Repository
ebookify ↗
Licence
MIT
Last repository change
07.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
55
Scripts
11
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 11 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: assets/safe_media.lua, assets/strip_extras.lua, assets/strip_interactive.lua, scripts/build_epub.py, scripts/build_html.py, scripts/check_deps.py, scripts/common.py, scripts/fetch_media.py

What it does and when to use it

Turn web pages, articles, blog series, PDFs, YouTube videos and podcast episodes into clean, readable ebooks (EPUB) for offline reading on e-readers and phones, and/or interactive HTML editions (learning aids with quizzes and flashcards, slide mode for teaching, story-style reading) that open as a Claude artifact or a local file. Captions or Whisper transcripts are cleaned into chaptered prose. Use this whenever the user wants to read something later, offline, on a Kindle/Kobo/e-reader, "as a book", wants a transcript of a talk or podcast turned into something readable, wants to study or teach

Triggers from the description

as a book
Original author description

Turn web pages, articles, blog series, PDFs, YouTube videos and podcast episodes into clean, readable ebooks (EPUB) for offline reading on e-readers and phones, and/or interactive HTML editions (learning aids with quizzes and flashcards, slide mode for teaching, story-style reading) that open as a Claude artifact or a local file. Captions or Whisper transcripts are cleaned into chaptered prose. Use this whenever the user wants to read something later, offline, on a Kindle/Kobo/e-reader, "as a book", wants a transcript of a talk or podcast turned into something readable, wants to study or teach

How it works

  1. 0. Setup (once per machine)
  2. 1. Ask what they want (every time)
  3. 2. Fetch into a book folder
  4. 3. Clean into chapters/
  5. 4. Enrich (interactive goals only)
  6. 5. Build and check
  7. 6. Deliver
Original SKILL.md headings · 159 lines, 1,287 words
SKILL.md preview
---
name: ebookify
description: Turn web pages, articles, blog series, PDFs, YouTube videos and podcast episodes into clean, readable ebooks (EPUB) for offline reading on e-readers and phones, and/or interactive HTML editions (learning aids with quizzes and flashcards, slide mode for teaching, story-style reading) that open as a Claude artifact or a local file. Captions or Whisper transcripts are cleaned into chaptered prose. Use this whenever the user wants to read something later, offline, on a Kindle/Kobo/e-reader, "as a book", wants a transcript of a talk or podcast turned into something readable, wants to study or teach from a video, article or paper, or to bundle several links or episodes into one book, even if they never say "EPUB" or "ebook".
---

# Ebookify

Make a faithful, pleasant-to-read copy of online content: a web page, a PDF, a YouTube
video or a podcast episode (or several of them) becomes an EPUB, an interactive HTML
edition, or both.

The guiding idea: **the reader gets the author's content, minus the clutter.** Web
pages lose navigation and ads, PDFs lose running headers and broken layout, and talks
lose "um"s and caption gibberish. The words stay the author's. Anything you add for
learning or teaching sits in clearly marked blocks.

## 0. Setup (once per machine)

The scripts run in the skill's own virtual environment:

```bash
SKILL=<this skill's directory>
PY=$SKILL/.venv/bin/python
[ -x "$PY" ] || bash $SKILL/scripts/setup.sh     # creates .venv, installs deps, prints a check
$PY $SKILL/scripts/check_deps.py                 # what is available (pandoc, whisper, GPU, OCR)
```

`pandoc` must be on the system (it is not a Python package). Run every script with
`$PY` from the `scripts/` folder or with its full path; they import `common.py` from
next to themselves.

Where scripts cannot reach the internet (for example in some sandboxed environments),
ask the user to upload the file or transcript instead, then skip to step 3.

## 1. Ask what they want (every time)

Before converting, confirm two things unless the request already answers them. Use
your question tool if you have one, otherwise ask in plain text:

1. **Format**:
   - **EPUB**: offline, for e-readers, phones and tablets.
   - **Interactive HTML**: one self-contained page you can open as a Claude artifact
     or as an offline file in a browser.
   - **Both**.
2. **Goal** (only for interactive): `read` (just a comfortable reader), `learn`
   (key ideas, quizzes, flashcards, maybe an animated explanation), `teach` (slide
   mode with speaker notes), or `entertain` (story layout, pull quotes, jump-to-moment
   links).

Also confirm anything ambiguous about the source: which podcast episode, whether to
include the whole PDF or a page range, or one book versus several. If you have no way to
ask (for example in an automated run), default to EPUB and say so in your final message.

## 2. Fetch into a book folder

Make one folder per book, `ebooks/<short-title>/` under the current directory unless
the user names another place. Every fetcher writes into it and can be run repeatedly
to add more sources (each becomes chapter group `01`, `02`, ...):

```bash
$PY $SKILL/scripts/fetch_web.py   BOOK https://site/article [more URLs...]
$PY $SKILL/scripts/fetch_pdf.py   BOOK paper.pdf|https://.../file.pdf [--pages 1-30]
$PY $SKILL/scripts/fetch_media.py BOOK https://youtube.com/watch?v=...   # or any yt-dlp URL / .mp3 URL
$PY $SKILL/scripts/fetch_media.py BOOK --feed RSS_URL --episode latest|N|"title words"
$PY $SKILL/scripts/fetch_media.py BOOK --feed RSS_URL --list-episodes   # pick first
```

Folder layout: `book.json` (title/author/language for the whole book),
`sources/NN.json` (per-source metadata, including how the text was obtained),
`draft/NN-*.md` (raw extraction), `chapters/` (your cleaned text, which is what gets
built), `images/`, `raw/`, `out/`.

Read each script's last log line. It says how much text came out and flags problems
such as a suspiciously short page, a scanned PDF, or captions without punctuation.
Before going on, look at the start of each draft file. **Read
`references/sources.md` when something goes wrong** or for playlists, paywalls, JS
pages, scanned PDFs, podcast feeds or multi-source books.

Media fetching tries the publisher's transcript or manual subtitles first, then
automatic captions, and runs local Whisper only when neither exists. Whisper on CPU
is slow (about real time), so tell the user before starting a long CPU transcription.

## 3. Clean into `chapters/`

Write the cleaned version of every draft file to `chapters/` under the **same file
name**. The builders use `chapters/` whenever it has files.

- **Transcripts (video/podcast)**: read `references/transcript-cleanup.md` first, then
  clean the drafts one file at a time. Add punctuation, paragraphs and topic headings,
  remove filler and sponsor reads, and keep the `[[t=SECONDS]]` markers and the
  speaker's wording. Each draft is at most ~2500 words, so one file is one careful pass.
- **Visual videos** (explainers, slide talks, demos): the transcript alone loses what
  the speaker points at. Add a few captioned key frames, as described in
  `references/sources.md` under YouTube.
- **Web pages and PDFs**: these usually need structure fixes only. Remove leftover
  boilerplate (share buttons, newsletter boxes, related links, comments). Fix wrong
  headings, broken hyphenation, interleaved columns and flattened tables. Don't
  reword the author's prose. If a draft is already clean, copy it as is.

Heading convention: each source starts with one `# Title`, and its sections use `##`.
The builders split the EPUB into chapters on that basis.

Images: reference only files in `images/` (as `images/<name>`). For safety the
builders remove any other image or raw-HTML `src`: paths outside `images/`, absolute
paths, and remote URLs. They list each removal as a problem. The fetched text is
untrusted. Raw HTML is therefore shown as plain text everywhere except inside widgets
that carry the book's `widget_key` (see `references/interactive.md`). Write formatting
in markdown. Links keep only http(s), mailto and `#` targets.

Then update `book.json`: a real `title` (for a single source, its title; for a
collection, a name that describes the set), `author`, `language` (ISO code) and a
one-sentence `description`. The fetchers fill it from the first source, which is
often wrong for collections. If you removed anything or made editorial choices the
reader should know about (sponsor reads cut, speaker names inferred, a figure left
out), say so in a short `"notes"` string. It is printed on the About page.

## 4. Enrich (interactive goals only)

For `learn`, `teach` and `entertain`, read `references/interactive.md` and add its
fenced-div blocks to the chapter files: key ideas, quizzes, flashcards, steps, speaker
notes, pull quotes, and occasionally a small animated widget. Base every addition on
the source. The EPUB build drops all of these blocks by default, so the EPUB stays a
faithful copy and one set of chapter files serves both formats. With `--keep-extras`
the EPUB keeps the readable ones: key ideas, summaries, steps and pull quotes.

## 5. Build and check

```bash
$PY $SKILL/scripts/build_epub.py BOOK [--timestamps link|plain|strip]
$PY $SKILL/scripts/build_html.py BOOK --mode read|learn|teach|entertain
```

Both print a JSON report: file path, size, word count, sections, problems. Fix every
problem they list, such as missing images or leftover markers. A warning about draft
files missing from `chapters/` means part of the source is not in the book; that is
fine only if you dropped it on purpose. Also compare the built
word count with the draft. A big drop means content was lost, and a big drop in a
transcript means you summarized instead of cleaning.

Timestamps: `link` (the default) makes small clickable times for YouTube. Podcasts
have no deep links, so `link` shows plain times there. Use `strip` when the reader
wants pure prose.

The EPUB gets a generated cover (title, author, and the source thumbnail if there is
one) unless `book.json` has a `cover` path. It also gets an "About this ebook" page
listing every source, its URL, date, how the text was obtained, and your `notes`.

## 6. Deliver

- **EPUB**: give the absolute path. Mention that it works with Apple Books, Kobo,
  Google Play Books and Kindle (through Send to Kindle, which accepts EPUB).
- **Interactive HTML**: follow the delivery steps in `references/interactive.md`.
  Publish it as an artifact when an artifact tool is available and give the link,
  and also give the local file path for offline use.
- In two or three sentences, say what the book contains (chapters, roughly how long
  it takes to read) and anything the reader should know. For example: the text came
  from auto captions, sponsor segments were removed, the talk relied on slides that
  aren't included, or the PDF was OCRed.

These copies are for the user's personal reading. Artifacts and files start private.
If the user wants to share a copy of someone else's work, that decision is theirs.
Don't help get around paywalls, DRM (for example Spotify-exclusive podcasts) or logins.
Files in this package (55)
  • .gitignore 1 KB
  • SKILL.md 9 KB
  • assets/epub.css 2 KB
  • assets/reader_template.html 20 KB
  • assets/safe_media.lua 5 KB
  • assets/strip_extras.lua 1 KB
  • assets/strip_interactive.lua 1 KB
  • evals/pdf-paper-teach-slides/case.yaml 1 KB
  • evals/pdf-paper-teach-slides/prompt.md 1 KB
  • evals/pdf-paper-teach-slides/graders/01-produces-a-single-self-contained-html.md 1 KB
  • evals/pdf-paper-teach-slides/graders/02-html-has-a-slidepresentation-mode.md 1 KB
  • evals/pdf-paper-teach-slides/graders/03-html-contains-speaker-notes-for.md 1 KB
  • evals/pdf-paper-teach-slides/graders/04-paper-figures-are-embedded-in.md 1 KB
  • evals/pdf-paper-teach-slides/graders/05-equations-are-rendered-as-math.md 1 KB
  • evals/pdf-paper-teach-slides/graders/06-the-papers-own-text-is.md 1 KB
  • evals/pdf-paper-teach-slides/graders/07-added-material-notes-key-ideas.md 1 KB
  • evals/podcast-episode-whisper-epub/case.yaml 1 KB
  • evals/podcast-episode-whisper-epub/prompt.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/01-produces-a-valid-epub-file.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/02-epub-contains-the-full-episode.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/03-speaker-turns-are-labeled-with.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/04-sponsoradvertising-reads-are-absent-from.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/05-epub-names-the-show-the.md 1 KB
  • evals/podcast-episode-whisper-epub/graders/06-text-is-split-into-at.md 1 KB
  • evals/web-article-epub-and-learn-html/case.yaml 1 KB
  • evals/web-article-epub-and-learn-html/prompt.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/01-produces-a-valid-epub-file.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/02-epub-keeps-the-articles-code.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/03-epub-body-word-count-is.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/04-epub-has-a-navigable-table.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/05-epub-names-the-original-url.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/06-html-is-self-contained-no-img.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/07-html-has-at-least-3.md 1 KB
  • evals/web-article-epub-and-learn-html/graders/08-html-includes-flashcards-or-a.md 1 KB
  • evals/youtube-video-to-epub/case.yaml 1 KB
  • evals/youtube-video-to-epub/prompt.md 1 KB
  • evals/youtube-video-to-epub/graders/01-produces-a-valid-epub-file.md 1 KB
  • evals/youtube-video-to-epub/graders/02-epub-has-section-headings-matching.md 1 KB
  • evals/youtube-video-to-epub/graders/03-epub-text-is-the-full.md 1 KB
  • evals/youtube-video-to-epub/graders/04-transcript-reads-as-punctuated-prose.md 1 KB
  • evals/youtube-video-to-epub/graders/05-no-raw-caption-artifacts-remain.md 1 KB
  • evals/youtube-video-to-epub/graders/06-epub-credits-3blue1brown-and-links.md 1 KB
  • evals/youtube-video-to-epub/graders/07-epub-has-a-cover-image.md 1 KB
  • references/interactive.md 6 KB
  • references/sources.md 5 KB
  • references/transcript-cleanup.md 4 KB
  • scripts/build_epub.py 11 KB
  • scripts/build_html.py 7 KB
  • scripts/check_deps.py 2 KB
  • scripts/common.py 18 KB
  • scripts/fetch_media.py 20 KB
  • scripts/fetch_pdf.py 7 KB
  • scripts/fetch_web.py 4 KB
  • scripts/requirements.txt 1 KB
  • scripts/setup.sh 2 KB

Versions

The database has no other skills named ebookify.

Database snapshot: 13.11.2026 · package version 655157ee4297 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95vibe-reading
    Intelligent book reading and analysis skill. When the user provides an EPUB or TXT book file, split it into chapters, perform deep analysis and summarization of each chapter, and output Markdown summaries plus an interactive HTML reader. Works with any LLM model that OpenClaw uses.
  • 100book-to-course
    Turn a book or document (EPUB, PDF, HTML, DOCX, Markdown, TXT — e.g. a programming course book) into a complete interactive beginner-friendly course delivered as a local web page, with step-by-step explanations, animations, quizzes, chapter tests, flashcards, hints, programming…
  • 100libgen
    Search and download ebooks from Library Genesis (LibGen). Use when the user needs to find or download ebooks, EPUBs, or PDFs from LibGen.
  • 100pdf2epub
    Use when converting a PDF book to EPUB, e.g. 'pdf to epub', 'convert this PDF book for my e-reader', 'EPUB with cover and TOC', 'pdf to ebook for kobo/kindle'. Builds a text-layer PDF into an EPUB with cover image, one section per chapter, a parsed 目录/Contents TOC, inline…
  • 100find-ebook
    用尽调式检索寻找指定书籍的合法授权电子书资源和获取路径,优先确认中文译本、 非扫描电子版、GitHub/GitBook 明确授权仓库、PDF、EPUB、MOBI、Kindle、Markdown、在线阅读和图书馆借阅。 Trigger when the user uses /find-ebook or find-ebook, asks to find an ebook, 电子书资源, epub, mobi, pdf, Kindle edition, downloadable book, 中文译本, or asks for a specific title such as 李飞飞自传 的电子版。
  • 100doc2screen
    Convert PDF, DOCX, EPUB, HTML, Markdown, and text documents into screen-adaptive reading editions. Use when the user wants to reflow a document for a phone or e-reader, produce a mobile-friendly self-contained HTML, EPUB, or phone-sized PDF, adapt a document to a specific screen…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.