Agent skill

cli-anything-zotero

CLI harness for Zotero.

Stars 30,283
Forks 2,902

Install this agent skill to your Project

npx add-skill https://github.com/HKUDS/CLI-Anything/tree/main/zotero/agent-harness/cli_anything/zotero/skills

SKILL.md

cli-anything-zotero

cli-anything-zotero is an agent-native CLI for Zotero desktop. It does not reimplement Zotero. Instead, it composes Zotero's real local surfaces:

Installation

bash
pip install -e .

Entry Points

bash
cli-anything-zotero
python -m cli_anything.zotero

Important Constraints

  • search items, item export, item citation, and item bibliography require Zotero's Local API to be enabled.
  • note add depends on the live Zotero GUI context and expects the same library to be selected in the app.
  • Import-time PDF attachment support is limited to items created in the same connector session; arbitrary existing-item attachment upload is still out of scope.
  • Experimental SQLite write commands are local-only, user-library-only, and should be treated as non-stable power-user operations.
  • If a bare key is duplicated across libraries, set session use-library <id> before follow-up commands.

Command Groups

App

Application and runtime inspection commands.

Command Description
status Execute status.
version Execute version.
launch Execute launch.
enable-local-api Execute enable-local-api.
ping Execute ping.

Collection

Collection inspection and selection commands.

Command Description
list Execute list.
find Execute find.
tree Execute tree.
get Execute get.
items Execute items.
use-selected Execute use-selected.
create Execute create.

Item

Item inspection and rendering commands.

Command Description
list Execute list.
find Execute find.
get Execute get.
children Execute children.
notes Execute notes.
attachments Execute attachments.
file Execute file.
export Execute export.
citation Execute citation.
bibliography Execute bibliography.
context Execute context.
analyze Execute analyze.
add-to-collection Execute add-to-collection.
move-to-collection Execute move-to-collection.

Search

Saved-search inspection commands.

Command Description
list Execute list.
get Execute get.
items Execute items.

Tag

Tag inspection commands.

Command Description
list Execute list.
items Execute items.

Style

Installed CSL style inspection commands.

Command Description
list Execute list.

Import

Official Zotero import and write commands.

Command Description
file Execute file.
json Execute json.

Note

Read and add child notes.

Command Description
get Execute get.
add Execute add.

Session

Session and REPL context commands.

Command Description
status Execute status.
use-library Execute use-library.
use-collection Execute use-collection.
use-item Execute use-item.
use-selected Execute use-selected.
clear-library Execute clear-library.
clear-collection Execute clear-collection.
clear-item Execute clear-item.
history Execute history.

Examples

Runtime Status

Inspect Zotero paths and backend availability.

bash
cli-anything-zotero app status --json

Read Selected Collection

Persist the collection selected in the Zotero GUI.

bash
cli-anything-zotero collection use-selected --json

Render Citation

Render a citation using Zotero's Local API.

bash
cli-anything-zotero item citation <item-key> --style apa --locale en-US --json

Add Child Note

Create a child note under an existing Zotero item.

bash
cli-anything-zotero note add <item-key> --text "Key takeaway" --json

Build LLM Context

Assemble structured context for downstream model analysis.

bash
cli-anything-zotero item context <item-key> --include-notes --include-links --json

Version

0.1.0

Expand your agent's capabilities with these related and highly-rated skills.

HKUDS/CLI-Anything

cli-anything-sts2

Command-line interface for Slay the Spire 2 - Control the real game through a local bridge mod HTTP API. Reads normalized game state and sends action commands for combat, navigation, rewards, and menu management.

30,283 2,902
Explore
HKUDS/CLI-Anything

musescore

CLI for music notation — transpose, export PDF/audio/MIDI, extract parts, manage instruments

30,283 2,902
Explore
HKUDS/CLI-Anything

cli-anything-videocaptioner

AI-powered video captioning — transcribe speech, optimize/translate subtitles, burn into video with beautiful customizable styles (ASS outline or rounded background). Free ASR and translation included.

30,283 2,902
Explore
HKUDS/CLI-Anything

cli-anything-openscreen

Command-line interface for Openscreen — a screen recording editor. A stateful CLI for editing screen recordings with zoom, speed ramps, trim, crop, annotations, and polished exports. Built on the Openscreen JSON project format with ffmpeg as the rendering backend. Designed for AI agents and power users who need programmatic video editing.

30,283 2,902
Explore
HKUDS/CLI-Anything

cli-anything-adguardhome

Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI.

30,283 2,902
Explore
HKUDS/CLI-Anything

cli-anything-intelwatch

Zero friction. Full context. Competitive intelligence, M&A due diligence, and OSINT directly from your terminal. Uses Node.js/npx.

30,283 2,902
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results