jpskill.com
🛠️ 開発・MCP コミュニティ

epub-chapter-extractor

EPUBファイルを章ごとに分割し、個別のMarkdownファイルとして抽出することで、電子書籍の内容を章単位で扱いやすくしたり、Markdown形式に変換したりするSkill。

📜 元の英語説明(参考)

Extract all chapters from an EPUB file into separate markdown files. Use when the user wants to split an EPUB into individual chapter files, extract EPUB chapters, or convert an ebook to separate markdown documents.

🇯🇵 日本人クリエイター向け解説

一言でいうと

EPUBファイルを章ごとに分割し、個別のMarkdownファイルとして抽出することで、電子書籍の内容を章単位で扱いやすくしたり、Markdown形式に変換したりするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o epub-chapter-extractor.zip https://jpskill.com/download/16967.zip && unzip -o epub-chapter-extractor.zip && rm epub-chapter-extractor.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16967.zip -OutFile "$d\epub-chapter-extractor.zip"; Expand-Archive "$d\epub-chapter-extractor.zip" -DestinationPath $d -Force; ri "$d\epub-chapter-extractor.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して epub-chapter-extractor.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → epub-chapter-extractor フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

EPUB Chapter Extractor

EPUBファイルから各章を個別のMarkdownファイルに抽出します。

手順

ユーザーがEPUBから章を抽出したい場合、uvで抽出スクリプトを実行します。

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python extract_chapters.py "/path/to/book.epub" [output_dir]

output_dirが省略された場合、EPUBと同じディレクトリに、EPUBの名前にちなんだフォルダが作成されます。

ユーザー: "Extract chapters from /path/to/mybook.epub"

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python extract_chapters.py "/path/to/mybook.epub"

出力ファイルは/path/to/mybook/に作成されます。

  • 01_introduction.md
  • 02_chapter_one.md
  • など

抽出後、出力フォルダを開きます。

open /path/to/mybook

出力形式

各章ファイルには以下が含まれます。

# Chapter Title

[Chapter content in markdown format]

ファイルは適切にソートされるように番号が付けられています: 01_02_など。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

EPUB Chapter Extractor

Extract each chapter from an EPUB file into its own markdown file.

Instructions

When the user wants to extract chapters from an EPUB, run the extraction script with uv:

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python extract_chapters.py "/path/to/book.epub" [output_dir]

If output_dir is omitted, creates a folder named after the EPUB in the same directory.

Example

User: "Extract chapters from /path/to/mybook.epub"

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python extract_chapters.py "/path/to/mybook.epub"

Output files will be at /path/to/mybook/:

  • 01_introduction.md
  • 02_chapter_one.md
  • etc.

After extraction, open the output folder:

open /path/to/mybook

Output Format

Each chapter file contains:

# Chapter Title

[Chapter content in markdown format]

Files are numbered for proper sorting: 01_, 02_, etc.