본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드58k · #3186

cli-anything-calibre

하는 일

이 스킬은 에이전트가 Calibre의 전자책 라이브러리를 관리하게 합니다. 책 목록, 메타데이터, 파일 형식 변환을 포함합니다. 전자책을 많이 모아 둔 사람을 위한 스킬입니다.

사용하는 경우

  • ✓Calibre 라이브러리의 책을 나열하거나 검색하고 싶을 때.
  • ✓책의 제목, 저자 등 메타데이터를 고치고 싶을 때.
  • ✓전자책을 다른 형식으로 변환하고 싶을 때.

스킬 링크

https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Calibre에서 어슐라 르 귄의 모든 책을 찾고, 그중 하나를 EPUB로 변환해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 calibredb와 ebook-convert 같은 실제 Calibre 도구를 백그라운드에서 사용해 라이브러리를 읽고 바꿉니다. 그다음 에이전트가 결과를 명확하고 구조화된 형식으로 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

cli-anything-calibre

A stateful CLI harness for Calibre e-book management. Wraps the real Calibre tools (calibredb, ebook-convert, ebook-meta) to give AI agents and scripts a clean, structured interface for library operations, metadata editing, and format conversion.

Installation

This CLI is installed as part of the cli-anything-calibre package:

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=calibre/agent-harness

Prerequisites:

  • Python 3.10+
  • Calibre must be installed on your system (hard dependency)
# Debian/Ubuntu
sudo apt-get install calibre

# macOS
brew install --cask calibre

# Verify tools are in PATH
which calibredb
which ebook-convert
which ebook-meta

Usage

Basic Commands

# Show help
cli-anything-calibre --help

# Start interactive REPL mode
cli-anything-calibre

# Connect to a Calibre library
cli-anything-calibre library connect ~/Calibre\ Library

# Run with JSON output (for agent consumption)
cli-anything-calibre --json books list

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-calibre
# Enter commands interactively with tab-completion and history
# Use 'help' to see available commands
# Use 'quit' or 'exit' to leave

Command Groups

Library

Library management commands.

Command Description
connect <path> Set active library path
info Show library statistics (book count, formats, db size)
check Verify library integrity using calibredb check_library

Books

Book operations (wrap calibredb).

Command Description
list List books with filtering and sorting
search <query> Search using Calibre query language
add <files> Add book files to library
remove <ids> Remove books (move to trash or permanent delete)
show <id> Show full metadata for a book
export <ids> Export books to directory
export-chapters <id> Export each chapter as separate PDF (requires EPUB format)

Meta

Metadata editing (wrap calibredb set_metadata).

Command Description
get <id> [field] Get metadata (all or specific field)
set <id> <field> <value> Set a metadata field
embed <ids> Embed metadata into book files

Formats

Format management (wrap calibredb + ebook-convert).

Command Description
list <id> List available formats for a book
add <id> <file> Add a format to a book
remove <id> <fmt> Remove a format from a book
convert <id> <input_fmt> <output_fmt> Convert book format

Custom

Custom columns (wrap calibredb).

Command Description
list List all custom columns
add <label> <name> <type> Create custom column
remove <label> Delete custom column
set <id> <label> <value> Set custom field value

Catalog

Catalog generation.

Command Description
catalog <output> Generate a catalog of the library (EPUB, CSV, or OPDS)

Examples

Connect and List Books

Connect to your Calibre library and list books.

cli-anything-calibre library connect ~/Calibre\ Library
cli-anything-calibre books list
# Or with JSON output
cli-anything-calibre --json books list --search "author:asimov"

Search and Filter

Search books using Calibre query language.

cli-anything-calibre books search "title:Foundation"
cli-anything-calibre books search "author:asimov and tags:scifi"
cli-anything-calibre books search "rating:>3"

Metadata Editing

Set metadata fields on books.

cli-anything-calibre meta set 42 title "New Title"
cli-anything-calibre meta set 42 series "Foundation"
cli-anything-calibre meta set 42 series_index 1
cli-anything-calibre meta set 42 tags "scifi,classic"
cli-anything-calibre meta set 42 rating 5

Format Conversion

Convert between e-book formats.

cli-anything-calibre formats convert 42 EPUB MOBI
cli-anything-calibre formats convert 42 EPUB PDF --output /tmp/book.pdf

Export Chapters as PDFs

Export each chapter of an EPUB as a separate PDF file.

cli-anything-calibre books export-chapters 42 --to-dir ./pdfs
cli-anything-calibre books export-chapters 42 --to-dir ./pdfs --chapters 1-5

Calibre Query

자주 묻는 질문

Calibre가 설치되어 있어야 하나요?

네. 스킬이 Calibre의 도구에 의존하므로 Calibre가 설치되어 있어야 합니다.

라이브러리에 어떻게 연결하나요?

스킬이 Calibre 라이브러리 폴더를 가리키면, 이후 명령을 위해 연결을 유지합니다.

스크립트에서 쓸 수 있나요?

네. 스크립트와 AI 에이전트가 읽기 쉬운 JSON 출력 모드가 있습니다.

상세 정보

작성자의 원본 설명

Command-line interface for Calibre - A stateful CLI harness for e-book library management, metadata editing, and format conversion wrapping the real Calibre tools (calibredb, ebook-convert, ebook-meta)...

repo: HKUDS/CLI-Anything

인기도

GitHub 스타
58k
순위
#3186
라이선스
Apache-2.0
업데이트
2026. 9. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬