zotero-cli
Skill by huang-sh
Reads and writes a Zotero library from the shell using the zotero-cli command. It suits users who ask about their saved papers, references, citations or reading notes.
Install zotero-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/huang-sh/PiX /tmp/PiX && mkdir -p ~/.claude/skills && cp -r /tmp/PiX/skills/zotero-cli ~/.claude/skills/zotero-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/huang-sh/PiX /tmp/PiX && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/PiX/skills/zotero-cli ~/.gemini/antigravity-cli/skills/zotero-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The zotero-cli skill lets an assistant search, read and edit a Zotero library through the zotero-cli shell command. It can search by keyword or by meaning, read PDF full text and page ranges, get and set metadata, manage collections, tags, notes and annotations, add items by DOI, URL or ISBN, and export bibliographies. The skill says it is preferred over the Zotero MCP server when shell access is available, because the MCP server's tool schemas cost about 14k tokens of context on every request.
Commands accept a --json flag that returns one object with a stable shape. Local mode needs the Zotero desktop app running with its local API enabled. Web mode needs ZOTERO_API_KEY and ZOTERO_LIBRARY_ID. The skill is written for users who ask about their Zotero library, references, citations, saved papers or reading notes.
Written from the project's SKILL.md and checked against it.
What it can do
- Keyword and semantic searchSearches by title, phrase, topic, tag, field conditions or BibTeX citekey.
- Full text and page readingReads PDF full text or a page range, and shows the outline to find sections.
- Metadata get and setGets item metadata and edits fields such as the title and tags.
- Collections, tags and notesManages collections, tags, notes and annotations in the library.
- Add items by identifierAdds items by DOI, URL or ISBN, and files existing items without duplicates by default.
- Bibliography exportExports bibliographies from items in the library.
- Batch changesApplies changes such as adding tags to many items by item key.
What you need
- Zotero desktop app with local API enabled (local mode)
- ZOTERO_API_KEY and ZOTERO_LIBRARY_ID (web mode)
- Shell access to run the zotero-cli command
- Search index built for semantic search
Try asking
- Find my saved papers on attention mechanisms and list their keys.
- Read pages 3 to 8 of the PDF for item ABCD1234.
- Add the paper with DOI 10.1038/s41586-021-03819-2 to my Reading List.
Good to know
- Needs the Zotero desktop app running with local API enabled, or web API credentials.
- Semantic search needs the search index built first with db update.
- --all-libraries needs the server running with ZOTERO_SEARCH_BACKEND=sqlite.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/zotero-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
install.md4 KB -
reference.md11 KB
Alternatives to zotero-cli
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
zotero-cli: common questions
Why use zotero-cli instead of the Zotero MCP server?
The skill says the MCP server's tool schemas cost about 14k tokens of context on every request, while zotero-cli only costs what is actually run.
What happens if I add an item that already exists?
add is idempotent by default and files the existing item into the named collection instead of creating a duplicate. Use --if-exists skip to leave existing items untouched.
Can it delete items by mistake?
The skill asks the assistant to confirm destructive changes such as delete, duplicates merge and large batches first. delete item refuses notes unless --allow-note is passed.
How do I install zotero-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is zotero-cli free?
The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.
Is zotero-cli safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to zotero-cli?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
