book-downloader/SKILL.md
Search and download academic books, textbooks, and publications from Library Genesis (LibGen) programmatically.
npx skillsauth add snqb/my-skills book-downloaderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Purpose: Search and download academic books, textbooks, and publications from Library Genesis (LibGen) programmatically.
Library: libgen-api-enhanced (53⭐, MIT license, actively maintained)
CLI Tool: ~/.claude/skills/book-downloader/book_search.py
Use this skill when the user needs to:
# Verify installation
which python3
uv tool list | grep libgen
If not installed:
uv tool install libgen-api-enhanced
Search by title:
~/.claude/skills/book-downloader/book_search.py "Clean Code"
Search by author:
~/.claude/skills/book-downloader/book_search.py "Isaac Asimov" --type author
Filter by format:
~/.claude/skills/book-downloader/book_search.py "Python Programming" --extension epub
Filter by year and format:
~/.claude/skills/book-downloader/book_search.py "Machine Learning" --extension pdf --year 2023
Get download links:
~/.claude/skills/book-downloader/book_search.py "Design Patterns" --download-links
Download books:
~/.claude/skills/book-downloader/book_search.py "The Pragmatic Programmer" \
--download --output ~/Books --limit 1
JSON output (for parsing):
~/.claude/skills/book-downloader/book_search.py "Algorithms" --json --limit 5
Find latest EPUB of a book:
~/.claude/skills/book-downloader/book_search.py "Thinking Fast and Slow" \
--extension epub --exact --limit 3
Download all books by author:
~/.claude/skills/book-downloader/book_search.py "Terry Pratchett" \
--type author --download --output ~/Books/Pratchett --limit 20
Search with language filter:
~/.claude/skills/book-downloader/book_search.py "Война и мир" \
--language Russian --extension epub
Build bibliography with JSON:
~/.claude/skills/book-downloader/book_search.py "Deep Learning" \
--year 2020 --json | jq '.[] | {title, author, year, id}'
User: "Find the book Clean Code"
Claude:
~/.claude/skills/book-downloader/book_search.py "Clean Code" --limit 5
Present results to user with:
User: "Find Python books from 2023 in EPUB format"
Claude:
~/.claude/skills/book-downloader/book_search.py "Python" \
--extension epub --year 2023 --limit 10
User: "Download the latest edition of The Pragmatic Programmer"
Claude:
~/.claude/skills/book-downloader/book_search.py "The Pragmatic Programmer" --limit 3
~/.claude/skills/book-downloader/book_search.py "The Pragmatic Programmer" \
--download --output ~/Downloads --limit 1
User: "Show me all books by Donald Knuth"
Claude:
~/.claude/skills/book-downloader/book_search.py "Donald Knuth" \
--type author --limit 20 --json
Parse JSON and present formatted list.
User: "Create a reading list for learning Rust"
Claude:
# Run these in parallel for speed
~/.claude/skills/book-downloader/book_search.py "The Rust Programming Language" --limit 1
~/.claude/skills/book-downloader/book_search.py "Programming Rust" --limit 1
~/.claude/skills/book-downloader/book_search.py "Rust in Action" --limit 1
1. Clean Code: A Handbook of Agile Software Craftsmanship
Author: Robert C. Martin
Year: 2008 | Publisher: Prentice Hall
Format: pdf | Size: 10.2 MB | Pages: 431
Language: English
ID: 123456 | MD5: abc123def456...
[
{
"id": "123456",
"title": "Clean Code: A Handbook of Agile Software Craftsmanship",
"author": "Robert C. Martin",
"publisher": "Prentice Hall",
"year": "2008",
"pages": "431",
"language": "English",
"extension": "pdf",
"filesize": "10.2 MB",
"md5": "abc123def456...",
"tor_download": "http://libgen.onion/...",
"direct_download": "http://download.mirror.com/..."
}
]
libgen-api-enhanced handles mirror resolution automatically# Reinstall the library
uv tool install --force libgen-api-enhanced
--download-links flag only when needed# Extract just titles and authors
~/.claude/skills/book-downloader/book_search.py "Algorithms" --json | \
jq '.[] | "\(.title) by \(.author)"'
# Find smallest file size
~/.claude/skills/book-downloader/book_search.py "Python" --extension epub --json | \
jq 'sort_by(.filesize) | .[0]'
#!/bin/bash
# Download multiple books from a list
while IFS= read -r book; do
~/.claude/skills/book-downloader/book_search.py "$book" \
--download --output ~/Books --limit 1
sleep 2 # Be nice to servers
done < booklist.txt
# 1. Search and save results
~/.claude/skills/book-downloader/book_search.py "Book Title" --json > results.json
# 2. Review results
jq '.[] | {title, year, extension, filesize}' results.json
# 3. Download specific book by MD5
# (Extract MD5 from results, then search by it for exact match)
Example 1: Student looking for textbook
User: I need "Introduction to Algorithms" by CLRS
Claude:
[Runs search]
Found 3 editions:
1. 3rd Edition (2009) - PDF, 12.3 MB
2. 3rd Edition (2009) - EPUB, 8.1 MB
3. 2nd Edition (2001) - PDF, 15.2 MB
Which would you prefer? I recommend the 3rd edition EPUB for better readability.
Example 2: Researcher building bibliography
User: Find recent machine learning books
Claude:
[Runs search with --year 2023 --year 2024]
Found 15 recent ML books. Here are the top 5:
[Lists results]
Would you like me to:
1. Download any of these
2. Export as BibTeX
3. Create a reading list with summaries
Example 3: Format conversion need
User: I need this book in EPUB but only found PDF
Claude:
I can help with that:
1. First, let me search for EPUB versions
[Runs --extension epub search]
2. If no EPUB found, I can help you convert using Calibre
[Suggests calibre-cli conversion]
Potential additions to this skill:
Last Updated: 2025-01-31 Maintainer: Claude Code Skills
documentation
Enrich Markdown articles with inline Wikipedia links. First mention of each notable entity gets a hyperlink. Use when asked to add wiki links, enrich, or add references to .md files.
development
Structured visual QA: screenshot → batch issues → fix all → verify. Replaces the 300-cycle screenshot→edit death spiral. Optional bishkek review as exit gate. Use when building/polishing UI with browser testing, or when user asks for N iterations/reviews.
development
Find complex code, analyze intent, recommend battle-tested library replacements. Uses radon/eslint for detection, GitHub quality search for alternatives.
research
Research real-world UI patterns from curated galleries (Collect UI, Component Gallery, Mobbin). Use when exploring what exists: dropdowns, accordions, inputs, navigation, cards, modals, etc.