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

zlib-downloadzlib 下载

Agent Skill

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

总安装

2,799

周安装

119

GitHub Stars

4

下载量

981
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/psylch/media-master --skill zlib-download

简介

zlib-download 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Book Tools

Search and download books from multiple sources through a unified CLI.

Language

Match user's language: Respond in the same language the user uses.

Backends

BackendSourceAuth RequiredBest For
zlibZ-Library (EAPI)Email + PasswordLargest catalog, direct download
annasAnna's ArchiveAPI Key (donation)Aggregated sources, multiple mirrors

Preflight

Before any workflow, run preflight to check environment readiness:

python3 ${SKILL_PATH}/scripts/book.py preflight

Returns standardized JSON:

{
  "ready": true,
  "dependencies": { "python3": {"status": "ok"}, "requests": {"status": "ok"} },
  "credentials": { "zlib": {"status": "configured"}, "annas_api_key": {"status": "not_configured"} },
  "services": { "annas_binary": {"status": "ok"} }
}
  • If ready: true — proceed directly to the Workflow section.
  • If ready: false — follow the Check/Fix table below, then run the Setup flow.
CheckFix
requests missingbash ${SKILL_PATH}/scripts/setup.sh install-deps (or manually: pip3 install requests / uv pip install requests)
zlib not configuredGuide user to edit ~/.claude/book-tools/.env — set ZLIB_EMAIL and ZLIB_PASSWORD
zlib expiredCached tokens expired and no email/password in .env. Guide user to re-add credentials to ~/.claude/book-tools/.env
annas_api_key not configuredGuide user to donate at Anna's Archive for API key, then add ANNAS_SECRET_KEY to ~/.claude/book-tools/.env
annas_binary missingbash ${SKILL_PATH}/scripts/setup.sh install-annas (or manually: download from annas-mcp releases, extract to ~/.local/bin/annas-mcp)

Setup (First-Time Only)

Only run setup when preflight reports ready: false. Guide the user through configuration interactively.

Step 1: Install Dependencies

bash ${SKILL_PATH}/scripts/setup.sh install-deps

Step 2: Configure Credentials

Credentials are stored in ~/.claude/book-tools/.env. Create the file from the skill's bundled template:

mkdir -p ~/.claude/book-tools
# Only copy if .env does not already exist — never overwrite existing credentials
if [ ! -f ~/.claude/book-tools/.env ]; then
  cp ${SKILL_PATH}/scripts/.env.example ~/.claude/book-tools/.env
else
  echo "Existing .env found — skipping copy to preserve your credentials."
fi

The .env file looks like this:

# Z-Library credentials
ZLIB_EMAIL=your_email@example.com
ZLIB_PASSWORD=your_password_here

# Anna's Archive (optional, requires donation for API key)
# ANNAS_SECRET_KEY=your_api_key_here

IMPORTANT: Do NOT ask the user for credentials directly in chat. Instead:

  1. Create the .env file (or .env.example template)
  2. Tell the user to edit ~/.claude/book-tools/.env with their credentials
  3. Wait for the user to confirm they've filled it in
  4. Then proceed with search

Step 3: Verify

python3 ${SKILL_PATH}/scripts/book.py preflight

Confirm ready: true before proceeding.

Credential Storage

Canonical path: ~/.claude/book-tools/.env — this is the single place users should edit credentials.

VariablePurposeRequired
ZLIB_EMAILZ-Library emailFor Z-Library backend
ZLIB_PASSWORDZ-Library passwordFor Z-Library backend
ANNAS_SECRET_KEYAnna's Archive API keyFor Anna's Archive backend

On first successful Z-Library login, session tokens are automatically cached in ~/.claude/book-tools/config.json for performance. This file is auto-managed — do not edit it manually. If login issues occur, delete config.json and the script will re-login using .env credentials.

Workflow

The typical flow is: search → pick → download.

1. Search

# Auto-detect backend (tries zlib first, then annas)
python3 ${SKILL_PATH}/scripts/book.py search "machine learning" --limit 10

# Z-Library with filters
python3 ${SKILL_PATH}/scripts/book.py search "deep learning" --source zlib --lang english --ext pdf --limit 5

# Anna's Archive
python3 ${SKILL_PATH}/scripts/book.py search "reinforcement learning" --source annas

# Chinese books
python3 ${SKILL_PATH}/scripts/book.py search "莱姆 索拉里斯" --source zlib --lang chinese --limit 5

Output (JSON to stdout):

{
  "source": "zlib",
  "count": 5,
  "books": [
    {
      "source": "zlib",
      "id": "12345",
      "hash": "abc123def",
      "title": "Deep Learning",
      "author": "Ian Goodfellow",
      "year": "2016",
      "language": "english",
      "extension": "pdf",
      "filesize": "22.5 MB"
    }
  ]
}

2. Present Results to User

After searching, present results as a numbered table so the user can pick:

| # | Title | Author | Year | Format | Size |
|---|-------|--------|------|--------|------|
| 1 | Deep Learning | Ian Goodfellow | 2016 | pdf | 22.5 MB |
| 2 | ... | ... | ... | ... | ... |

If results span multiple languages or editions, group them by language or category with sub-headings for clarity.

Ask: "Which book would you like to download? (number)"

3. Download

# Z-Library download (needs id + hash from search results)
python3 ${SKILL_PATH}/scripts/book.py download --source zlib --id 12345 --hash abc123def -o ~/Downloads/

# Anna's Archive download (needs MD5 hash from search results)
python3 ${SKILL_PATH}/scripts/book.py download --source annas --hash a1b2c3d4e5 --filename "deep_learning.pdf" -o ~/Downloads/

Output:

{
  "source": "zlib",
  "status": "ok",
  "path": "~/Downloads/Deep Learning (Ian Goodfellow).pdf",
  "size": 23592960
}

4. Report to User

After download, present a structured completion report:

[Book Download] Complete!
Book: [title] by [author]
Source: [zlib/annas]
Path: [file path]
Size: [file size]

If using Z-Library, also mention any remaining daily download quota.

Other Commands

Book Info (Z-Library only)

python3 ${SKILL_PATH}/scripts/book.py info --source zlib --id 12345 --hash abc123def

Returns full metadata: description, ISBN, pages, table of contents, etc.

Check Config

python3 ${SKILL_PATH}/scripts/book.py config show

Check Backend Status

python3 ${SKILL_PATH}/scripts/book.py setup

Error Handling

ErrorCauseAction
"Z-Library not configured"No credentialsGuide user to edit ~/.claude/book-tools/.env
"Z-Library login failed"Bad credentials or service downAsk user to verify credentials. Z-Library domains change — if persistent, the vendored Zlibrary.py domain may need updating.
"annas-mcp binary not found"Binary not installedRun setup.sh install-annas
"Anna's Archive API key not configured"No API keyGuide user to donate at Anna's Archive for API access, then add key to .env
Search timeoutNetwork issueRetry once. If persistent, try the other backend.
"No backend available"Neither backend configuredWalk through full setup flow from Step 1

Degradation

ScenarioBehavior
Z-Library downAuto-fallback to Anna's Archive (--source auto handles this)
Anna's Archive unavailableUse Z-Library only
Neither configuredHalt and guide user through Setup flow

Tips

  • Z-Library has a daily download limit (usually 10/day for free accounts). Use info to check a book before downloading to avoid wasting quota.
  • Anna's Archive requires an API key for both search and download (obtained via donation).
  • For Chinese books, use --lang chinese with Z-Library for best results.
  • If Z-Library is unreachable, automatically fall back to Anna's Archive with --source auto.
  • When searching for a specific author in multiple languages, run parallel searches (e.g. English name + Chinese name) and merge results into one table.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.89%
按下载量换算332

Claude

32.47%
按下载量换算319

Cursor

17.17%
按下载量换算168

Gemini CLI

8.5%
按下载量换算83

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills