# Ni book downloader

> Ni book downloader is an open-source agent skill for files and documents. Finds and downloads ebooks by title, choosing text or PDF formats with integrity checks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ttttstc/ni-skill/tree/main/skills/ni-book-downloader
- **Repository:** https://github.com/ttttstc/ni-skill
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** ni-book-downloader
- **Collection:** https://github.com/ttttstc/ni-skill
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-12-04

## About

This skill searches for a book by title and saves the file into a folder you choose. It separates reflowable text formats (epub, mobi, azw3, fb2, txt) from fixed-layout PDFs, and it asks which format you want before it starts searching. Without a stated preference, any format is allowed and the best match is chosen, with epub preferred.

The skill works through a chain of sources ordered so that free, account-less channels come first. It starts with a local cached index of Chinese ebooks, then LibGen, then Z-Library through a logged-in Chrome session, then Anna's Archive, and finally a general web search if nothing else turns up. Candidates are filtered to drop book summaries and study guides, and each downloaded file is checked against its format's file signature before it is kept. Helper scripts handle search, download, batch runs, quota checks and text extraction from PDFs.

It expects Python 3.10 or later with requests, websocket-client and pymupdf installed, plus a Chrome or Chromium-based browser for the sources that need one. Z-Library needs a free account that the user signs into personally, and the skill never asks for passwords. Cloud-drive links found during web search are returned to the user rather than opened.

## When your agent uses it

> 按书名下载电子书，区分文字版（epub/mobi/azw3/fb2/txt）与版式版（pdf）：指定 PDF 则只下 PDF，指定文字版则只下文字格式，**未指定格式时全量格式允许**（自动选最优，优先 epub）。搜索前可先确认书名、格式偏好和目标目录。渠道按免配额优先：GitHub 电子书索引/城通网盘 → LibGen（免账号）→ Z-Library（配套 Chrome 登录，免费账号每日约 10 本）→ Anna's Archive（慢速免费），全部没有时自动全网搜索（网盘链接交用户、直接文件链接自动下载）；只有 PDF 而用户要文字版时用 PDF 文字层提取兜底。用户说"下载电子书""找书下载""帮我下这本书""book download"时触发。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/ttttstc/ni-skill/tree/HEAD/skills/ni-book-downloader)
- [Network calls found in its scripts](https://github.com/ttttstc/ni-skill/tree/HEAD/skills/ni-book-downloader)
- [License: MIT](https://github.com/ttttstc/ni-skill/tree/HEAD/skills/ni-book-downloader)

## Features

- **Format preference check:** Asks whether the user wants text formats, PDF, or any format before searching begins.
- **Prioritized source chain:** Tries free sources first and falls back to Z-Library and web search only when needed.
- **File signature validation:** Confirms each downloaded file matches its format header and size before keeping it.
- **Candidate listing:** Lists matching editions with format, size, year and source so the user can choose one.
- **Batch downloads:** Processes a manifest of titles and writes a JSON report of results.
- **PDF text extraction:** Pulls the text layer from digital PDFs when only a PDF exists but text is needed.

## Good for

- Download an epub copy of a specific book by title
- Find a PDF version of a technical book for printing
- Batch download a list of titles from a manifest file
- Extract text from a digital PDF for search or summarization
- Check which Z-Library download quota remains today

## Install

### Claude Code

This skill ships in the `ni-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ttttstc/ni-skill
/plugin install ni-skill@ni-skill
```

Or copy only this skill to `~/.claude/skills/ni-book-downloader`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ni-book-downloader &&
cp -R "$tmp/skills/ni-book-downloader" ~/.claude/skills/ni-book-downloader &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ni-book-downloader` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ni-book-downloader` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ni-book-downloader &&
cp -R "$tmp/skills/ni-book-downloader" ~/.agents/skills/ni-book-downloader &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ni-book-downloader` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ni-book-downloader` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ni-book-downloader &&
cp -R "$tmp/skills/ni-book-downloader" ~/.cursor/skills/ni-book-downloader &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ni-book-downloader` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ttttstc/ni-skill.git --path skills/ni-book-downloader
```

Or copy the folder to `~/.gemini/skills/ni-book-downloader` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ni-book-downloader`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ni-book-downloader &&
cp -R "$tmp/skills/ni-book-downloader" ~/.copilot/skills/ni-book-downloader &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ni-book-downloader` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ttttstc/ni-skill.git
```

Then copy `ni-skill/skills/ni-book-downloader` into your agent's skills folder as `ni-book-downloader`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Ni book downloader can run?

Python 3.10 or later with requests, websocket-client and pymupdf installed, and a Chrome-based browser for the Z-Library and web search channels.

### Does Ni book downloader ask for my Z-Library password?

No. You sign in yourself in the dedicated Chrome window it opens, and the skill does not handle passwords.

### What happens when no source has the book?

It runs a general web search. Cloud-drive links are handed back to you to open, while direct file links are downloaded automatically.

### Which formats does Ni book downloader accept when I do not specify one?

All formats are allowed, and the best one is picked with epub preferred over txt, pdf, then mobi or azw3.

### How do I install Ni book downloader in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ni-book-downloader to use it in all your projects, or to .claude/skills/ni-book-downloader in one project. Or install the ni-skill plugin, which includes it: /plugin marketplace add ttttstc/ni-skill, then /plugin install ni-skill@ni-skill.

### Does Ni book downloader run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ni book downloader?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ni book downloader?

The closest alternatives to Ni book downloader are Lit browser fetch, Baidu document parser, Acquire sources, Add to library and Datasheet interpreter.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Lit browser fetch](https://ai-powered.com/skills/lit-browser-fetch): Lit browser fetch is an open-source agent skill for web search and scraping.
- [Baidu document parser](https://ai-powered.com/skills/baidu-document-parser): Baidu document parser is an open-source agent skill for files and documents.
- [Acquire sources](https://ai-powered.com/skills/acquire-sources): Acquire sources is an open-source agent skill for files and documents.
- [Add to library](https://ai-powered.com/skills/add-to-library): Add to library is an open-source agent skill for files and documents.
- [Datasheet interpreter](https://ai-powered.com/skills/datasheet-interpreter): Datasheet interpreter is an open-source agent skill for files and documents.
- [Convert PDF to md](https://ai-powered.com/skills/convert-pdf-to-md): Convert PDF to md is an open-source agent skill for files and documents.
- [Ni poetry book](https://ai-powered.com/skills/ni-poetry-book): Ni poetry book is an open-source agent skill for files and documents.
- [Downloads and inbox sorter](https://ai-powered.com/skills/downloads-and-inbox-sorter): Downloads and inbox sorter is an open-source agent skill for files and documents.

---
Source: https://ai-powered.com/skills/ni-book-downloader
