用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ratacat/ratacats-skills --skill ebook-extractor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when a consequential design, architecture, process, or policy choice depends on unknowns that reasoning alone cannot settle, or when an investigation plan may be over-scoped, prematurely branched, or full of experiments whose results may not change a decision. Not for questions answerable by a straightforward lookup alone.
Analyze one PM event for PMKNB: identify exact Polymarket/Kalshi instruments (conditionId, token IDs, tickers), assess market forces, resolution/oracle risk, liquidity, and counterparty risk; output forecast, report, brief, proposal, or no-publish.
Chained clarity review of a repo, plan, or work items — combines code review, plan refinement, deep-module architecture, DRY/cruft, and naming analysis. Use for clarify/defuzz/audit/harden/fresh-eyes requests.
正在显示 SKILL.md
基于 SOC 职业分类
| name | ebook-extractor |
| description | Extract plain text from ebooks (EPUB, MOBI, PDF) for analysis, processing, or reading. |
| metadata | {"category":"developer tools","blurb":"Extract plain text from EPUB, MOBI, and PDF files with local Python tools so agents can search, quote, or analyze book content.","keywords":["ebook","extractor"]} |
Extract plain text from EPUB, MOBI, and PDF files using Python scripts. No LLM calls - pure text extraction.
| Format | Tool Used | Notes |
|---|---|---|
| EPUB | ebooklib + BeautifulSoup | Direct parsing, preserves structure |
| MOBI | Calibre ebook-convert | Converts to EPUB first, then extracts |
PyMuPDF (fitz) | Fast, handles most PDFs well |
Unified extractor (auto-detects format):
python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.epub
python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.mobi
python3 ~/.claude/skills/ebook-extractor/scripts/extract.py /path/to/book.pdf
Output options:
# To stdout (default)
python3 scripts/extract.py book.epub
# To file
python3 scripts/extract.py book.epub -o output.txt
python3 scripts/extract.py book.epub > output.txt
Format-specific scripts:
python3 scripts/extract_epub.py book.epub
python3 scripts/extract_mobi.py book.mobi
python3 scripts/extract_pdf.py book.pdf
# One-command setup (installs all dependencies)
~/.claude/skills/ebook-extractor/setup.sh
# Or manually:
pip install -r ~/.claude/skills/ebook-extractor/requirements.txt
brew install calibre # macOS, for MOBI support
~/.claude/skills/ebook-extractor/scripts/
| Problem | Solution |
|---|---|
| Missing package | Run setup.sh or pip install -r requirements.txt |
| MOBI fails | Ensure Calibre is installed: brew install calibre |
| PDF garbled | Some PDFs are image-based; OCR needed (not supported) |