Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计异常

library-ebooks图书馆电子书

Agent Skill

library-ebooks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,346

周安装

55

GitHub Stars

2

下载量

431
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:library-ebooks(图书馆电子书)
来源仓库:https://github.com/montagao/skills
仓库路径:skills/library-ebooks
安装命令:
npx skills add https://github.com/montagao/skills --skill library-ebooks
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/montagao/skills --skill library-ebooks

简介

library-ebooks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。

  • 适用于电子书检索、阅读资源查找或知识获取类任务。
  • 通过安装命令添加技能,结合来源仓库和 README 文档进一步验证具体用法。
  • 安装前需确认权限范围、维护状态,注意是否涉及联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

My Amazon (Kindle) Library Ebook Lookup & Download

Overview

Internal tool to search and download ebooks from my personal Amazon (Kindle) library, i.e., titles I’ve purchased/added to my account (plus any personal documents synced into my library), across available formats.

Note: 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.

Prerequisites

IMPORTANT: Downloads require an Amazon-library access key for my account.

Before using download functionality, the user must:

  1. Have access to their Amazon (Kindle) library (purchased titles / content library)
  2. Set their API key/token: export LIBRARY_KEY="your-key"

The key is found in your internal library-proxy/account settings (or whatever system you use to authenticate access to your Amazon library index). Search works without a key, but downloads will fail.

If key is not set: Inform the user they need to set LIBRARY_KEY and provide the setup instructions above.

When to Use

  • User asks to find/download a book from their Amazon library
  • Need to look up content from a published book they own
  • Searching for a specific edition or format that exists in their library
  • "Get me the PDF of Clean Code (from my Kindle library)"
  • "Find the latest edition of Design Patterns (that I own)"

Quick Reference

TaskCommand
Searchpython3 scripts/library.py search "query" --format pdf
Get detailspython3 scripts/library.py details <md5>
Downloadpython3 scripts/library.py download <md5> --output /path/
Verify matchpython3 scripts/library.py search "title author" --verify "expected title"

Environment Setup

export LIBRARY_KEY="your-membership-key"

The key is found in your Amazon library access setup (internal proxy/token settings).

Workflow

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;
}

Common Patterns

Find and download a book

# 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/

Handle multiple editions

When search returns multiple editions:

  1. Check year - prefer most recent unless user specified edition
  2. Check format - match user's preference (pdf/epub)
  3. Verify author matches exactly

Format Priority

Default priority when user doesn't specify: pdf > epub > mobi > azw3 > djvu

API Details

These endpoints refer to your internal Amazon-library index / proxy service (backed by your own Amazon account/library data), not a public “find-any-book” catalog.

Search endpoint: https://library-archive.org/search

  • q - query string
  • ext - format filter (pdf, epub, mobi, azw3, djvu)
  • sort - year_desc for most recent first

Fast download API: https://library-archive.org/dyn/api/fast_download.json

  • md5 - book identifier
  • key - from LIBRARY_KEY env var

Common Mistakes

MistakeFix
Key not setCheck echo $LIBRARY_KEY
Wrong editionUse --verify flag with expected title
Format mismatchExplicitly set --format
Book not foundTry shorter query, author name variations

Converting to Text

Downloaded files are in their original format (PDF, EPUB, MOBI, etc.). To convert to plain text for analysis or processing, use the ebook-extractor skill after downloading.

Typical workflow:

  1. Download with this skill → books/Clean_Code.pdf
  2. Convert with ebook-extractor → books/Clean_Code.txt

Mirror Fallback

The script automatically tries multiple mirror domains if the primary domain is unavailable:

  • library-archive.org (primary)
  • library-archive.li
  • library-archive.se
  • library-archive.in
  • library-archive.pm

The first working mirror is cached for the session. You'll see Using mirror: <domain> in stderr when a fallback is used.

Error Handling

  • "Invalid md5" - MD5 hash is malformed or doesn't exist
  • "Not a member" - Key is invalid or expired (i.e., your Amazon-library access token isn’t valid)
  • No results - Broaden search terms, try author-only search
  • "Could not connect to any mirror" - All mirrors are down, try again later

Troubleshooting

SSL Certificate Error on macOS

If you see this error:

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

This happens because Python can't find the system's CA certificate bundle on macOS.

Quick Fix:

  1. Install certifi: pip3 install certifi
  2. Find your certificate path: python3 -c "import certifi; print(certifi.where())"
  3. Add to ~/.zshrc: export SSL_CERT_FILE=/path/from/step/2/cacert.pem
  4. Reload shell: source ~/.zshrc

Verify it works:

python3 -c "import urllib.request; urllib.request.urlopen('https://google.com')"

Why this happens: macOS uses Keychain for certificates, but Python doesn't use it by default. Framework installs (like /Library/Frameworks/Python.framework) often lack certificate configuration.

Do NOT use verify=False or PYTHONHTTPSVERIFY=0 - this disables SSL entirely and is insecure.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.35%
按下载量换算109

OpenCode

22.41%
按下载量换算97

Gemini CLI

18.12%
按下载量换算78

Antigravity

12.01%
按下载量换算52

windsurf

7.84%
按下载量换算34

clawdbot

2.95%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills