360 Secure SkillHub
360 安全技能中心

Opdscli

该 Skill 提供 opdscli 命令行工作流,用于添加和管理 OPDS 目录、搜索和浏览电子书、下载指定格式到本地,并支持基础或 Bearer 认证。它还说明了配置管理、输出控制和调试选项,但认证凭据以明文保存。

rafadc
rafadc
热度 28.31
最近更新 2026-05-17 12:11:09
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:研究 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add opdscli
Metadata
name
opdscli
description
Browse, search, and download ebooks from OPDS catalogs using the opdscli CLI. Use when adding/managing catalogs, searching for books, downloading ebooks, or browsing latest additions.
homepage
https://github.com/rafadc/opdscli
metadata
{"clawdbot":{"emoji":"📚","requires":{"bins":["opdscli"]},"install":[{"id":"brew","kind":"brew","tap":"rafadc/opdscli","formula":"opdscli","bins":["opdscli"],"label":"Install opdscli (brew)"}]}}

opdscli

OPDS catalog browser and ebook downloader. Follow the CLI reference below.

References

  • references/cli-reference.md (commands, flags, and examples)

Workflow

  1. Verify CLI present: opdscli --version.
  2. Check configured catalogs: opdscli catalog list.
  3. If no catalogs configured, add one (see cli-reference for auth options).
  4. Set a default catalog if needed: opdscli catalog set-default <name>.
  5. Search, browse, or download as requested.

Common patterns

Add a public catalog

opdscli catalog add gutenberg https://m.gutenberg.org/ebooks.opds/

Add a catalog with authentication

# Basic auth (will prompt for credentials)
opdscli catalog add mylib https://my-library.example.com/opds --auth-type basic

# Bearer token
opdscli catalog add mylib https://my-library.example.com/opds --auth-type bearer

Search and download

opdscli search "don quixote"
opdscli download "Don Quixote"
opdscli download "Don Quixote" --format pdf --output ~/Books

Browse latest additions

opdscli latest
opdscli latest --limit 50

Guardrails

  • Config lives at ~/.config/opdscli.yaml. Do not edit it directly; use opdscli catalog subcommands.
  • Credentials stored in config are plaintext. Never log or echo catalog config that may contain passwords or tokens.
  • When downloading, respect the user's preferred format and output directory.
  • If a search returns no results, suggest increasing --depth or checking the catalog URL.
  • Use --verbose for debugging connection issues, --quiet when piping output.