From 38ce7e260c7127c59ae9aec0d497bb226cf3476f Mon Sep 17 00:00:00 2001 From: Timothy Kassis Date: Sat, 25 Jul 2026 14:25:58 -0700 Subject: [PATCH] feat(citation-management): document Zotero integration via pyzotero skill citation-management had no mention of Zotero despite a full pyzotero skill existing in the repo, so agents had no path from a Zotero library to a validated bibliography. Adds an 'Integration with Zotero (pyzotero Skill)' section mirroring the existing literature-review integration: pyzotero owns the library and the BibTeX export, citation-management validates and formats, corrections optionally written back. Requested in #170. Co-authored-by: Yaroslav Halchenko --- skills/citation-management/SKILL.md | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/skills/citation-management/SKILL.md b/skills/citation-management/SKILL.md index b8b678ef..0bfe6f80 100644 --- a/skills/citation-management/SKILL.md +++ b/skills/citation-management/SKILL.md @@ -4,7 +4,7 @@ description: Comprehensive citation management for academic research. Search Goo allowed-tools: Read Write Edit Bash license: MIT License required_environment_variables: [{"name": "OPENROUTER_API_KEY", "prompt": "OpenRouter API key for LLM-powered citation steps.", "required_for": "optional features"}, {"name": "NCBI_EMAIL", "prompt": "Email for NCBI Entrez identification.", "required_for": "optional features"}, {"name": "NCBI_API_KEY", "prompt": "NCBI API key to raise Entrez rate limits.", "required_for": "optional features"}] -metadata: {"version": "1.3", "skill-author": "K-Dense Inc.", "openclaw": {"primaryEnv": "OPENROUTER_API_KEY", "envVars": [{"name": "OPENROUTER_API_KEY", "required": false, "description": "OpenRouter API key for LLM-powered citation steps."}, {"name": "NCBI_EMAIL", "required": false, "description": "Email for NCBI Entrez identification."}, {"name": "NCBI_API_KEY", "required": false, "description": "NCBI API key to raise Entrez rate limits."}]}} +metadata: {"version": "1.4", "skill-author": "K-Dense Inc.", "openclaw": {"primaryEnv": "OPENROUTER_API_KEY", "envVars": [{"name": "OPENROUTER_API_KEY", "required": false, "description": "OpenRouter API key for LLM-powered citation steps."}, {"name": "NCBI_EMAIL", "required": false, "description": "Email for NCBI Entrez identification."}, {"name": "NCBI_API_KEY", "required": false, "description": "NCBI API key to raise Entrez rate limits."}]}} --- # Citation Management @@ -578,6 +578,36 @@ python scripts/format_bibtex.py my_review_references.bib \ --output formatted_refs.bib ``` +#### Integration with Zotero (pyzotero Skill) + +When the user already keeps references in Zotero, treat the Zotero library as the source of truth for the bibliography and use this skill for validation and formatting. The `pyzotero` skill covers the library side — reading items and collections, creating and updating references, uploading attachments, and exporting citations via the Zotero Web API v3. + +**Zotero Library (`pyzotero`)** → Library of record: storage, collections, tags, attachments +**Citation Management Skill** → Metadata accuracy: validation, enrichment, style formatting + +**Combined Workflow**: +1. Use `pyzotero` to pull the working set from the Zotero library, filtered by collection or tag +2. Export it as BibTeX with `zot.add_parameters(format='bibtex')` (see `pyzotero` → `references/exports.md`) +3. Use `citation-management` to validate the exported entries and repair incomplete metadata +4. Use `citation-management` to format for the target venue +5. Optionally use `pyzotero` to write corrected fields back so the library benefits from the fixes + +```bash +# 1-2. Export the desired collection from Zotero as BibTeX (pyzotero skill) +# zot.add_parameters(format='bibtex'); bibtex = zot.collection_items(collection_id) +# → write to zotero_export.bib + +# 3. Validate the exported bibliography +python scripts/validate_citations.py zotero_export.bib --report zotero_validation.json + +# 4. Format for the target venue +python scripts/format_bibtex.py zotero_export.bib \ + --style nature \ + --output formatted_refs.bib +``` + +Zotero exports are only as good as what was captured — browser-connector entries in particular often carry missing DOIs, truncated author lists, or preprint metadata for papers since published. Run the validation step before submission rather than trusting the export, and prefer writing corrections back to Zotero so the same errors do not resurface in the next manuscript. + ## Search Strategies ### Google Scholar Best Practices