微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📚

AI 驱动的智能书籍阅读助手

book-reader · vv1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 S 级 作者 josharsh 公开目录收录
298 下载 140 安装 620 收藏 1.6k 浏览

简介

基于 Project Gutenberg 等公开书源的 AI 阅读工具,支持 EPUB/PDF/TXT 多格式解析与智能进度追踪,助力个人知识萃取与持续学习。

原始描述

Read EPUB, PDF, or TXT books from multiple sources with progress tracking, smart chunking, and summary extraction for efficient learning.

通过你的 Agent 添加

安装目录:book-reader/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/book-reader/
Codex CLI~/.codex/skills/book-reader/
DeepSeek Harness~/.agents/skills/book-reader/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

book-reader 是一款专为 AI Agent 设计的命令行书籍阅读工具,支持从多个来源获取书籍并进行结构化阅读。用户可通过 ./book-reader.sh search 搜索书籍(对接 Project Gutenberg 的 gutendex.com API),使用 download 命令获取指定书籍文件,再通过 read 命令进行分块阅读。工具内置智能分块机制,默认每次阅读 50 页,支持 --from-page 和 --pages 参数灵活控制阅读范围。阅读进度自动持久化存储于 ~/.openclaw/workspace/memory/reading-state.json,包含当前书籍、已读页数、书签和笔记等元数据,实现跨会话的断点续读。

显著优点

多源整合能力:同时覆盖 Project Gutenberg(7 万+ 公共领域书籍,完全合法)、Anna's Archive(百万级资源,需自负法律风险)及本地文件三大来源,满足不同场景需求。格式兼容性强:原生支持 EPUB、PDF、TXT 三种主流电子书格式,通过 pandoc、pdftotext 及 Python 库(ebooklib、beautifulsoup4)实现可靠解析。AI 友好设计:智能分块阅读避免上下文窗口溢出,支持摘要生成与知识提取,专为 Agent 学习场景优化。隐私优先架构:所有阅读状态本地存储,无云端同步或数据上传,用户完全掌控个人数据。开源透明:MIT 许可证,代码完全可见,无混淆或隐藏逻辑。

潜在缺点与局限性

法律边界模糊:Anna's Archive 属于影子图书馆,其使用在多数司法管辖区处于法律灰色地带,用户需自行承担合规风险。DRM 明确不支持:设计层面拒绝处理 DRM 保护内容,无法阅读 Kindle、Apple Books 等平台的加密书籍。解析质量波动:PDF OCR 质量依赖源文件,扫描版 PDF 可能出现乱码;EPUB 转纯文本时格式信息丢失,复杂排版还原度有限。性能瓶颈:大型 PDF 解析速度较慢,未实现异步或流式处理。依赖管理负担:需手动安装 poppler-utils、pandoc、Python 库等系统依赖,跨平台配置成本较高。无社交功能:缺乏阅读统计可视化、书友互动或跨设备同步等现代阅读应用常见功能。

适合的目标群体

AI 研究者与开发者:需要为 Agent 构建知识库、进行书籍级 RAG 训练或自动化摘要生成的技术用户。学术研究者:从事人文社科研究,需批量处理公共领域文献、构建文献综述的研究人员。自驱型终身学习者:偏好开源工具、重视数据隐私、习惯命令行工作流的深度阅读者。法律与合规意识强的用户:能够辨识公共领域与受版权保护内容边界,主动选择合法书源的责任使用者。

使用风险

合规风险:误用 Anna's Archive 获取受版权保护书籍可能导致法律纠纷,建议优先使用 Project Gutenberg 并遵守当地版权法。依赖可用性:外部工具(pandoc、poppler-utils)的版本差异可能导致解析行为不一致,建议锁定依赖版本。数据丢失风险:阅读状态仅存储于本地单点文件,无备份机制,系统故障或误删将导致进度丢失。网络安全:下载阶段涉及网络请求,需确保 URL 来源可信,防范中间人攻击或恶意文件注入。性能风险:处理超大 PDF(数百 MB 级)可能触发内存压力,建议在资源充足环境中运行。

技能正文

book-reader

Read books (epub, pdf, txt) from various sources with progress tracking.

Purpose

Enable AI agents to read full-length books for learning, summarization, and knowledge extraction.

Features

  • Multiple sources: Anna's Archive, Project Gutenberg, local files
  • Format support: EPUB, PDF, TXT
  • Progress tracking: Remember where you left off
  • Smart chunking: Read books in digestible sections
  • Summary generation: Extract key insights as you read

Tools Required

  • curl or wget - Download books
  • pandoc - Convert EPUB to text (optional, fallback to python)
  • pdftotext (poppler-utils) - Extract PDF text
  • Python 3 with ebooklib and beautifulsoup4 (for EPUB parsing)

Usage

Search for a book

./book-reader.sh search "Thinking Fast and Slow"

Download a book

./book-reader.sh download <book-id> [output-file]

Read a book (with progress tracking)

./book-reader.sh read <file> [--from-page N] [--pages N]

Show reading progress

./book-reader.sh status

Installation

# Install dependencies
sudo apt-get install poppler-utils pandoc  # Linux
# brew install poppler pandoc  # macOS

pip3 install ebooklib beautifulsoup4 lxml

# Make executable
chmod +x book-reader.sh

Book Sources

  1. Project Gutenberg (70k+ public domain books)

  2. Anna's Archive (shadow library)

    • Millions of books, papers, comics
    • Legal gray area depending on jurisdiction
    • Use responsibly
  3. Local files (your own epub/pdf collection)

Reading State

Progress tracked in ~/.openclaw/workspace/memory/reading-state.json:

{
  "currentBook": "Thinking, Fast and Slow",
  "file": "/path/to/book.epub",
  "totalPages": 499,
  "pagesRead": 127,
  "lastRead": 1770957900,
  "bookmarks": [50, 200],
  "notes": "Interesting insight about System 1 vs System 2..."
}

Example Workflow

# Find the book
./book-reader.sh search "Daniel Kahneman Thinking"

# Download it
./book-reader.sh download 12345 ~/books/thinking-fast-slow.epub

# Start reading
./book-reader.sh read ~/books/thinking-fast-slow.epub --pages 50

# Continue later
./book-reader.sh read ~/books/thinking-fast-slow.epub --pages 50

# Check progress
./book-reader.sh status

Privacy & Ethics

  • Public domain books (Gutenberg): Fully legal
  • Copyrighted books: Check your local laws
  • Consider buying books you find valuable to support authors
  • Use for personal learning, not redistribution

Limitations

  • PDF OCR quality varies
  • DRM-protected books not supported (by design)
  • Large PDFs may be slow to parse
  • EPUB formatting may be imperfect in plain text

Use responsibly. Support authors when possible.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

education-researchcontent-mediadocsproductivityautomation

同类 Skill