Communitygithub.com

Zotero CLI エージェント

cli-anything-zotero は、Zotero デスクトップを操作するためのエージェント向けCLIツールです。Zotero のローカルAPIとGUIコンテキストを活用し、文献管理を効率化します。

Zotero CLI エージェント とは?

cli-anything-zotero は、Zotero デスクトップアプリケーションを直接操作するためのエージェントネイティブなコマンドラインインターフェースです。このツールは、Zotero が提供するローカルAPIとグラフィカルインターフェースのコンテキストを利用して、コレクションの管理、アイテムの検索・エクスポート、引用・参考文献の生成、ノートの追加、PDF添付ファイルのインポートなど、研究者や開発者が必要とする主要な文献管理操作をコマンドラインから実行できます。主な制約として、一部の機能(検索、エクスポート、引用生成など)はZoteroのローカルAPIが有効である必要があり、ノート追加操作はZotero GUI上で対象ライブラリが選択されている状態を前提とします。また、SQLiteへの直接書き込みコマンドは実験的な機能であり、上級ユーザー向けの非安定操作として扱われます。このツールは、Zoteroの機能を再実装するのではなく、既存のローカル機能を効率的に組み合わせて利用することを目的としており、LLMコンテキストの構築や自動化ワークフローとの統合に特に有用です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-zotero

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Zotero CLI エージェント は何をしますか?

cli-anything-zotero は、Zotero デスクトップを操作するためのエージェント向け 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

アプリケーションおよび実行時検査コマンドです。

コマンド説明
statusstatus を実行します。
versionversion を実行します。
launchlaunch を実行します。
enable-local-apienable-local-api を実行します。
pingping を実行します。

Collection

コレクションの検査および選択コマンドです。

コマンド説明
listlist を実行します。
findfind を実行します。
treetree を実行します。
getget を実行します。
itemsitems を実行します。
use-selecteduse-selected を実行します。
createcreate を実行します。

Item

アイテムの検査およびレンダリングコマンドです。

コマンド説明
listlist を実行します。
findfind を実行します。
getget を実行します。
childrenchildren を実行します。
notesnotes を実行します。
attachmentsattachments を実行します。
filefile を実行します。
exportexport を実行します。
citationcitation を実行します。
bibliographybibliography を実行します。
contextcontext を実行します。
analyzeanalyze を実行します。
add-to-collectionadd-to-collection を実行します。
move-to-collectionmove-to-collection を実行します。

Search

保存済み検索の検査コマンドです。

コマンド説明
listlist を実行します。
getget を実行します。
itemsitems を実行します。

Tag

タグ検査コマンドです。

コマンド説明
listlist を実行します。
itemsitems を実行します。

Style

インストール済み CSL スタイルの検査コマンドです。

コマンド説明
listlist を実行します。

Import

公式の Zotero インポートおよび書き込みコマンドです。

コマンド説明
filefile を実行します。
jsonjson を実行します。

Note

子ノートの読み取りと追加を行います。

コマンド説明
getget を実行します。
addadd を実行します。

Session

セッションおよび REPL コンテキストコマンドです。

コマンド説明
statusstatus を実行します。
use-libraryuse-library を実行します。
use-collectionuse-collection を実行します。
use-itemuse-item を実行します。
use-selecteduse-selected を実行します。
clear-libraryclear-library を実行します。
clear-collectionclear-collection を実行します。
clear-itemclear-item を実行します。
historyhistory を実行します。

使用例

ランタイムステータス

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

>-

関連スキル