Loading...
Loading...
Use when needing to look up book content inside **my own Amazon (Kindle) book library** (purchases + any personal docs), find a book by title/author, download an ebook I own (where Amazon permits), or reference material from a published book I’ve purchased. Triggers on book lookups, ebook downloads, "find the book", "get the PDF/EPUB of" **from my library**. Downloads produce PDF/EPUB/MOBI files (and may include Kindle formats depending on the title) - use ebook-extractor skill to convert to text.
npx skill4agent add montagao/skills library-ebooksNote: This skill is meant for my own licensed content. It does not bypass DRM. If a title can’t be downloaded in an accessible file format, use Amazon’s official reading/export options instead.
export LIBRARY_KEY="your-key"LIBRARY_KEY| Task | Command |
|---|---|
| Search | |
| Get details | |
| Download | |
| Verify match | |
export LIBRARY_KEY="your-membership-key"digraph download_flow {
rankdir=TB;
node [shape=box];
search [label="Search by title/author"];
verify [label="Verify correct book\n(check title, author, year)"];
multiple [label="Multiple editions?" shape=diamond];
prefer_recent [label="Prefer most recent\nunless specific edition requested"];
format_ok [label="Preferred format available?" shape=diamond];
download [label="Download via fast API"];
convert [label="Use ebook-extractor\nto convert to text"];
search -> verify;
verify -> multiple;
multiple -> prefer_recent [label="yes"];
multiple -> format_ok [label="no"];
prefer_recent -> format_ok;
format_ok -> download [label="yes"];
format_ok -> search [label="no - try different format"];
download -> convert;
}# Search with format preference
python3 scripts/library.py search "Clean Code Robert Martin" --format pdf --limit 5
# Verify it's the right book, get details
python3 scripts/library.py details adb5293cf369256a883718e71d3771c3
# Download
python3 scripts/library.py download adb5293cf369256a883718e71d3771c3 --output ./books/pdf > epub > mobi > azw3 > djvuhttps://library-archive.org/searchqextsortyear_deschttps://library-archive.org/dyn/api/fast_download.jsonmd5key| Mistake | Fix |
|---|---|
| Key not set | Check |
| Wrong edition | Use |
| Format mismatch | Explicitly set |
| Book not found | Try shorter query, author name variations |
books/Clean_Code.pdfbooks/Clean_Code.txtUsing mirror: <domain>[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificatepip3 install certifipython3 -c "import certifi; print(certifi.where())"~/.zshrcexport SSL_CERT_FILE=/path/from/step/2/cacert.pemsource ~/.zshrcpython3 -c "import urllib.request; urllib.request.urlopen('https://google.com')"/Library/Frameworks/Python.frameworkverify=FalsePYTHONHTTPSVERIFY=0