Communitygithub.com

cli-anything-zotero

為 Zotero 桌面版設計的 AI 原生 CLI,可透過命令列操作 Zotero 資料庫、項目與引用功能。

cli-anything-zotero 是什麼?

`cli-anything-zotero` 是一個專為 Zotero 桌面端打造的 AI Agent 原生命令列工具,並非重新實作 Zotero,而是以複合方式存取 Zotero 真實的本機功能。它支援多種操作群組,包括應用程式狀態檢查、集合管理、項目查詢與引用渲染、標籤與樣式管理、匯入及筆記操作,並提供會話(session)管理以維持上下文。此工具需依賴 Zotero 的本機 API(Local API)與 SQLite 資料庫,部分功能(如筆記新增)則仰賴 Zotero GUI 中的即時選取狀態。適用於需要透過 CLI 或 AI 代理程式自動化文獻管理流程的開發者,支援 macOS、Windows 與 Linux 平台。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-zotero

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-zotero 是做什麼的?

cli-anything-zotero 是一個為 Zotero 桌面版設計的 AI Agent 原生 CLI。它並非重新實作 Zotero,而是以複合方式存取 Zotero 真正的本機表面:

安裝

pip install -e .

進入點

cli-anything-zotero
python -m cli_anything.zotero

重要限制

  • search items、item export、item citation 與 item bibliography 需要啟用 Zotero 的本機 API。
  • note add 依賴即時的 Zotero GUI 上下文,並預期應用程式中已選取相同的文獻庫。
  • 匯入時的 PDF 附件支援僅限於在同一連接器工作階段中建立的項目;任意現有項目的附件上傳仍超出範圍。
  • 實驗性的 SQLite 寫入命令僅限本機、僅限使用者文獻庫,應視為不穩定的進階使用者操作。
  • 若裸鍵在多個文獻庫中重複,請在後續命令前使用 session use-library <id>。

命令群組

App(應用程式)

應用程式與執行階段檢查命令。

命令說明
status執行 status。
version執行 version。
launch執行 launch。
enable-local-api執行 enable-local-api。
ping執行 ping。

Collection(集合)

集合檢查與選取命令。

命令說明
list執行 list。
find執行 find。
tree執行 tree。
get執行 get。
items執行 items。
use-selected執行 use-selected。
create執行 create。

Item(項目)

項目檢查與渲染命令。

命令說明
list執行 list。
find執行 find。
get執行 get。
children執行 children。
notes執行 notes。
attachments執行 attachments。
file執行 file。
export執行 export。
citation執行 citation。
bibliography執行 bibliography。
context執行 context。
analyze執行 analyze。
add-to-collection執行 add-to-collection。
move-to-collection執行 move-to-collection。

Search(搜尋)

儲存搜尋檢查命令。

命令說明
list執行 list。
get執行 get。
items執行 items。

Tag(標籤)

標籤檢查命令。

命令說明
list執行 list。
items執行 items。

Style(樣式)

已安裝 CSL 樣式檢查命令。

命令說明
list執行 list。

Import(匯入)

官方 Zotero 匯入與寫入命令。

命令說明
file執行 file。
json執行 json。

Note(筆記)

讀取與新增子筆記。

命令說明
get執行 get。
add執行 add。

Session(會話)

會話與 REPL 上下文命令。

命令說明
status執行 status。
use-library執行 use-library。
use-collection執行 use-collection。
use-item執行 use-item。
use-selected執行 use-selected。
clear-library執行 clear-library。
clear-collection執行 clear-collection。
clear-item執行 clear-item。
history執行 history。

範例

執行階段狀態

檢查 Zotero 路徑與後端可用性。

cli-anything-zotero app status --json

讀取選取中的集合

保留在 Zotero GUI 中選取的集合。

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

渲染引用

使用 Zotero 的本機 API 渲染引用。

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

新增子筆記

在現有 Zotero 項目下建立子筆記。

cli-anything-zotero note add <item-key> --text "關鍵要點" --json

建構 LLM 上下文

為下游模型分析組裝結構化上下文。

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

版本

0.1.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相關技能