スキル epub-chapter-extractor
📦

epub-chapter-extractor

中リスク 📁 ファイルシステムへのアクセス⚙️ 外部コマンド

EPUBチャプターをMarkdownに抽出

電子書籍を個別のチャプターファイルに変換するには時間がかかり、特殊なツールが必要です。このスキルは各チャプターを適切なフォーマットと番号付けで個別のMarkdownファイルに自動的に抽出します。

対応: Claude Codex Code(CC)
⚠️ 50 貧弱
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

Agent向けリソース

AI Agent、クローラー、またはスクリプトがページ全体ではなくクリーンなコンテキストを必要とする場合は、これらのリンクを使ってください。

テストする

「epub-chapter-extractor」を使用しています。 Extract chapters from /path/to/novel.epub

期待される結果:

  • Created output folder: /path/to/novel/
  • Extracted 15/15 chapters:
  • [01/15] 01_introduction.md
  • [02/15] 02_chapter_one.md
  • ...
  • [15/15] 15_conclusion.md
  • All chapters saved to /path/to/novel/

「epub-chapter-extractor」を使用しています。 Extract chapters from programming-book.epub to my-code-folder

期待される結果:

  • Created output folder: my-code-folder/
  • Extracted 12/12 chapters:
  • [01/12] 01_introduction_to_programming.md
  • [02/12] 02_variables_and_data_types.md
  • ...
  • All chapters saved to my-code-folder/

セキュリティ監査

中リスク
v6 • 6/28/2026

Static filesystem findings are true positives because the script creates an output directory and writes markdown files. Static external command findings are expected for this skill because SKILL.md instructs the assistant to run uv and open the output folder. The hidden home directory and weak cryptography alerts are false positives, with no evidence of prompt injection, network access, credential access, or malicious intent.

2
スキャンされたファイル
306
解析された行数
7
検出結果
6
総監査数
中リスクの問題 (2)
Filesystem Writes to User-Selected Output Directory
TRUE_POSITIVE: The script creates an output directory and writes one markdown file per chapter. This is the intended behavior, but it can create or overwrite files if the assistant or user selects an unsafe output path.
Assistant Is Instructed to Run Local Shell Commands
TRUE_POSITIVE: SKILL.md instructs the assistant to run uv with third-party Python packages and then open the output folder. The commands are relevant to the skill, but they execute code and depend on locally resolved packages.
低リスクの問題 (3)
Hidden Home Directory Alert Is an Installation Path
FALSE_POSITIVE: The ~/.claude path appears only as the expected installed skill directory in command examples. I did not find evidence of hidden file harvesting or unauthorized home directory traversal.
Weak Cryptography Alert Has No Supporting Evidence
FALSE_POSITIVE: The flagged line is the skill description and contains no cryptographic algorithm, hashing operation, encryption logic, or security-sensitive comparison.
Markdown Backticks Misclassified as Shell Execution
FALSE_POSITIVE: Several static external-command hits are markdown fences, inline path examples, filename examples, or output format examples. These lines are documentation text and do not execute commands.

リスク要因

検出されたパターン

Local File CreationDocumented Command Execution
監査者: codex 監査履歴を表示 →

品質スコア

55
アーキテクチャ
100
保守性
85
コンテンツ
69
コミュニティ
49
セキュリティ
83
仕様準拠

作れるもの

研究用ブックチャプターの抽出

学術電子書籍を個別のチャプターファイルに変換して、参照と引用管理を容易に

長文コンテンツの整理

マルチオーサーのアンソロジーや教科書を集中読書用に個別のドキュメントに分割

ブログ用の電子書籍コンテンツの準備

電子書籍チャプターをブログ記事や記事として再公開するためにMarkdownに変換

これらのプロンプトを試す

基本的な抽出
Extract all chapters from mybook.epub
カスタム出力場所
Extract chapters from book.epub to my-output-folder
既存ファイルの処理
Extract chapters from /Users/name/Documents/book.epub
分析用の変換
Extract all chapters from the textbook.epub in my downloads folder so I can analyze each chapter separately

ベストプラクティス

  • 抽出前にEPUBファイルを専用フォルダーに配置して整理された出力を実現
  • 意味のある出力フォルダー名を作成するために説明的なEPUBファイル名を使用
  • 抽出されたMarkdownファイルがナビゲーション用のチャプターヘッダーを保持していることを確認

回避

  • DRM保護された電子書籍で使用すると、抽出が利用規約に違反する可能性があるため使用しない
  • テーブルなどの複雑なフォーマットが完璧に転送されるとは思わない
  • すべてのEPUBファイルが適切に構造化された目次を持っていると思わない

よくある質問

どのような電子書籍フォーマットがサポートされていますか?
EPUB形式のみサポートしています。PDF、MOBI、AZW、その他の形式には別のツールが必要です。
保護されたファイルやDRMファイルを抽出できますか?
DRM保護されたファイルは抽出できず、著作権またはライセンス条項に違反する可能性があります。
出力ファイルの名前はどう付けられますか?
ファイルは適切なファイルシステム並べ替えのために 01_chapter_title.md のように連番で名前が付けられます。
抽出されたファイルはどこに保存されますか?
デフォルトでは、ファイルはソースファイルと同じディレクトリ内のEPUBの名前が付いたフォルダーに保存されます。
どのような依存関係が必要ですか?
このスキルはebooklib、beautifulsoup4、html2text、lxmlを使用しており、これらはuv run 통해インストール됩니다。
Calibreとの比較はどうですか?
これはMarkdown抽出に特化したコマンドラインツールです。Calibreはより多くのフォーマットサポートを提供しますが、GUIが必要です。

開発者の詳細

ファイル構成