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

EPUB 本地语义索引与智能问答

mycroft · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 B 级 作者 fabe 公开目录收录
1.1k 下载 2 安装 4.8k 收藏 8 浏览

简介

基于 OpenAI API 的 EPUB 本地向量化索引工具,支持语义搜索与对话问答,适合个人知识库构建。

原始描述

EPUB and ebook ingestion, local vector index, and Q&A CLI for books.

通过你的 Agent 添加

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

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

或者手动安装

Claude Code~/.claude/skills/mycroft/
Codex CLI~/.codex/skills/mycroft/
DeepSeek Harness~/.agents/skills/mycroft/

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

技能正文


name: mycroft description: EPUB ingestion, local vector index, and Q&A CLI for books. homepage: https://github.com/fabe/mycroft metadata: {"clawdbot":{"emoji":"📚","requires":{"bins":["mycroft"],"env":["OPENAI_API_KEY"]},"install":[{"id":"npm","kind":"npm","package":"@fs/mycroft","bins":["mycroft"],"label":"Install mycroft (npm)"}]}}

mycroft

Use mycroft to ingest EPUBs, build a local vector index, and ask questions about a book.

Setup (once)

  • export OPENAI_API_KEY="..."
  • mycroft config onboard
  • mycroft config resolve

Common commands

  • List books: mycroft book list
  • Ingest EPUB: mycroft book ingest /path/to/book.epub
  • Ingest with summaries: mycroft book ingest /path/to/book.epub --summary
  • Ingest with batch embeddings (50% cheaper): mycroft book ingest /path/to/book.epub --batch
  • Ingest with batch summaries + embeddings: mycroft book ingest /path/to/book.epub --batch --summary
  • Resume batch ingestion: mycroft book ingest resume <id>
  • Check ingestion status: mycroft book ingest status <id>
  • Show metadata: mycroft book show <id>
  • Ask a question: mycroft book ask <id> "What is the main conflict?"
  • Search passages: mycroft book search <id> "mad hatter" --top-k 5
  • Delete book: mycroft book delete <id> --force
  • Start chat: mycroft chat start <id>
  • Ask in session: mycroft chat ask <session> "What does this foreshadow?"
  • Continue chat: mycroft chat repl <session>

Notes

  • Use mycroft config path to find the config file location.
  • book ask and book search require embeddings and an OPENAI_API_KEY.
  • Chat commands require embeddings and an OPENAI_API_KEY.
  • Prefer book search and synthesize answers yourself before using book ask.
  • Summaries increase ingestion time and cost significantly; enable --summary only when needed.
  • Use --batch to run embeddings and summaries via the OpenAI Batch API at 50% cost; results may take up to 24 hours. When combined with --summary, summaries are batched first, then embeddings on resume.
  • After --batch ingestion, use mycroft book ingest status <id> to check progress and mycroft book ingest resume <id> to complete indexing.
  • If a non-batch ingest is interrupted, use mycroft book ingest resume <id> to continue from the last saved chunk.
  • If a batch fails, resume automatically re-submits it.
  • For scripted runs, avoid interactive flags like --manual or omit confirmations with --force.

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

标签

cliepubvector-databaseopenaisemantic-searchragknowledge-managementnpmlocal-first

同类 Skill