pyzotero

pyzotero is a skill for Claude Code from dralkh/iktinah. It costs 85 tokens per session (1,569 once invoked), scanned A, original, MIT.

A Python client for the Zotero reference manager, which stores research papers, bibliographic details, collections, tags, and attachments.

In plain words
What is it for?
Use it to retrieve, create, update, and delete references and collections, manage tags and attachments, and export citations.
Why use it?
It lets code manage a Zotero library through its web service instead of requiring manual updates in the Zotero application.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Good fit Use it to retrieve, create, update, and delete references and collections, manage tags and attachments, and export citations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dralkh/iktinah/pyzotero
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dralkh/iktinah --skill pyzotero
Clone the repo
git clone --depth 1 https://github.com/dralkh/iktinah

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pyzotero

README.md
[![agentmods](https://agentmods.dev/badge/skills/dralkh/iktinah/pyzotero/github.svg)](https://agentmods.dev/skills/dralkh/iktinah/pyzotero)
Your own site
<a href="https://agentmods.dev/skills/dralkh/iktinah/pyzotero"><img src="https://agentmods.dev/badge/skills/dralkh/iktinah/pyzotero/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pyzotero

Your own site · 80×15
<a href="https://agentmods.dev/skills/dralkh/iktinah/pyzotero"><img src="https://agentmods.dev/badge/skills/dralkh/iktinah/pyzotero.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01569
Opus 5 $0.00043 $0.00785
Sonnet 5 $0.00017 $0.00314
Haiku 4.5 $0.00009 $0.00157

Measured 7d ago against content hash 3a9da2718b2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pyzotero scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • pyzotero — 89% identical, 5 lines differ
skills/pyzotero/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pyzotero

Pyzotero is a Python wrapper for the Zotero API v3. Use it to programmatically manage Zotero libraries: read items and collections, create and update references, upload attachments, manage tags, and export citations.

Current upstream: pyzotero 1.13.0 (PyPI, May 2026). Docs: pyzotero.readthedocs.io.

Authentication Setup

Required credentials — get from https://www.zotero.org/settings/keys:

Store credentials in environment variables or a .env file:

ZOTERO_LIBRARY_ID=your_user_id
ZOTERO_API_KEY=your_api_key
ZOTERO_LIBRARY_TYPE=user  # or "group"

See references/authentication.md for full setup details.

Installation

uv add pyzotero              # Web API client
uv add "pyzotero[cli]"       # + local CLI (Zotero 7)
uv add "pyzotero[mcp]"       # + MCP server for LLM clients (Zotero 7)

Quick Start

import os
from pyzotero import Zotero

zot = Zotero(
    library_id=os.environ['ZOTERO_LIBRARY_ID'],
    library_type=os.environ.get('ZOTERO_LIBRARY_TYPE', 'user'),
    api_key=os.environ['ZOTERO_API_KEY'],
)

# Retrieve top-level items (returns 100 by default)
items = zot.top(limit=10)
for item in items:
    print(item['data']['title'], item['data']['itemType'])

# Search by keyword
results = zot.items(q='machine learning', limit=20)

# Retrieve all items (use everything() for complete results)
all_items = zot.everything(zot.items())

Core Concepts

  • A Zotero instance is bound to a single library (user or group). All methods operate on that library.
  • Item data lives in item['data']. Access fields like item['data']['title'], item['data']['creators'].
  • Pyzotero returns 100 items by default (API default is 25). Use zot.everything(zot.items()) to get all items.
  • Write methods return True on success or raise a ZoteroError.

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 125 lines · 85 tokens per session scan A 3a9da2718b2f

Subscribe to this mod's changes

pyzotero is a skill published in the GitHub repository dralkh/iktinah (77 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 1,569 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

sci-extract

Read an academic paper end to end and extract professional research insights, figures, metadata, and critique. Use this skill whenever the user shares a scientific paper, review paper, survey paper, systematic review, meta-analysis, scoping review, arXiv link, DOI, PDF, or pasted paper text and asks to read…

ShZhao27208/Aut_Sci_Write · 143 tokens

sci-polish

Two-stage academic paper polishing skill. Stage A reduces AI detection traces (targeting GPTZero, Turnitin, Originality.ai). Stage B performs 8-dimension quality improvement (grammar, tone, coherence, conciseness, terminology, structure, argument clarity, journal compliance). Use whenever the user asks to polish…

ShZhao27208/Aut_Sci_Write · 90 tokens

sci-figure

A tool for finding and saving figures and smaller panels from academic PDF papers as PNG images. It recognizes common figure types and labels such as (a), (b), and (i).

ShZhao27208/Aut_Sci_Write · 135 tokens

sci-search

Academic paper search and metrics analysis. Searches arXiv, PubMed, Web of Science, Springer Nature, Scopus, Semantic Scholar, and OpenAlex simultaneously with journal impact factor data. Triggers on requests to search for papers or find literature.

ShZhao27208/Aut_Sci_Write · 54 tokens

sci-download

An academic-paper PDF downloader that supports eight research sources and routes requests by DOI, a paper's persistent identifier. For unknown DOI formats, it tries Unpaywall and then Semantic Scholar.

ShZhao27208/Aut_Sci_Write · 74 tokens

sci-html

Generate academic presentation-style HTML slide decks and browser reports from PDFs, structured text, Markdown, paper summaries, outlines, or research notes. Use whenever the user wants to convert a scientific paper PDF directly into an interactive HTML report, clickable web presentation, shareable browser deck, or…

ShZhao27208/Aut_Sci_Write · 111 tokens