SkillsGrove
SkillsGrove/Documentos de escritório/drguptavivek/zotero-use/zotero-use

zotero-use

Instalação

$npx skills add https://github.com/drguptavivek/zotero-use --skill zotero-use
$git clone --depth 1 https://github.com/drguptavivek/zotero-use.git /tmp/zotero-use && mkdir -p ~/.claude/skills && cp -r /tmp/zotero-use/. ~/.claude/skills/zotero-use
Por favor, instale esta Agent Skill para mim: https://github.com/drguptavivek/zotero-use/tree/e301bb9abc94a28d198c60af6b931685efcbda13/. Leia primeiro o SKILL.md e os scripts, e só a instale na minha pasta de skills depois de confirmar que é segura.

Resumo

Descrição original · MITUse when an agent needs either of the two primary Zotero workflows: (1) search/query/retrieve references from the user's Zotero library and brainstorm from Zotero evidence, including ZOTseek semantic search, or (2) edit Word DOCX text and add selected Zotero items as live citation fields. Prefer structured Pyzotero CLI (`zot`) for low-context exact retrieval; use ZOTseek MCP for conceptual semantic discovery after live tool discovery. Zotero library create/update/delete actions are secondary and should only be done when explicitly requested. Trigger on Zotero, Pyzotero, zot, ZOTseek, semantic library search, Zotero MCP, Word/DOCX Zotero citations, literature searches within Zotero, Zotero reference review, paper brainstorming from a Zotero library, metadata, collections, tags, recent items, attachments/notes, full-text retrieval, or Zotero setup.
O SKILL.md abaixo é reproduzido de drguptavivek/zotero-use (commit e301bb9) sob a licença MIT. O texto não foi alterado; apenas os metadados do cabeçalho do arquivo foram omitidos, as imagens são exibidas como links e arquivos muito longos são truncados. Copyright 2026 Vivek Gupta. Licença: LICENSE. Apenas o arquivo de instruções é exibido; consulte o repositório original para ver os scripts.

Zotero Use

Runtime Selection

Resolve the skill directory from this SKILL.md, independently of the working document or project directory. Call it ZOTERO_USE_DIR in commands.

Choose the runtime once at the start of each task, in this order:

  1. Use ZOTERO_USE_DIR/bin/zotero-go-cli when the host is Apple-silicon macOS and the file is executable. This repository includes that Developer ID-signed and notarized binary.
  2. Otherwise use a compatible zotero-go-cli (zotero-go-cli.exe on Windows) already available on PATH.
  3. Otherwise retain the existing Python-helper and zot workflows described below.

Confirm a Go candidate with --version before relying on it, and never try to execute the bundled macOS ARM64 binary on another OS or architecture. If no compatible Go binary is available, offer to run python3 "$ZOTERO_USE_DIR/scripts/install_cli.py" to download the matching GitHub release asset. Explain the platform and destination and obtain the user's approval before running it. Never download or replace a binary automatically; if the user declines, the network is unavailable, or the platform is unsupported, continue with the Python fallback.

Update Check

On the first invocation in each task, use the selected Go runtime to run skill check-updates --root "$ZOTERO_USE_DIR", or fall back to python3 "$ZOTERO_USE_DIR/scripts/check_updates.py". The command is silent unless a randomized 14-17 day check is due and GitHub reports a newer version. Surface a non-empty update notice once, then continue the user's task. Never auto-update. Respect ZOTERO_USE_UPDATE_CHECK=0.

Routing

  1. Primary workflow A: search/query/retrieve Zotero references and brainstorm from Zotero evidence.
  2. Primary workflow B: edit Word DOCX text and add selected Zotero items as live citation fields.
  3. Prefer the selected Go runtime for exact item search, browse, metadata, attachments, full-text retrieval, and reference-resolution workflows. Fall back to Pyzotero CLI (zot) when no compatible Go runtime is available.
  4. Use the local ZOTseek MCP endpoint for conceptual or passage-level semantic discovery. On its first use in each task, discover every live tool and schema with the selected Go runtime's zotseek tools, python3 "$ZOTERO_USE_DIR/scripts/zotseek_mcp.py" tools, or native MCP discovery; do not assume hard-coded tool names.
  5. Do not add MCP config to .agents, Codex skill metadata, or agent config by default.
  6. Warn that adding MCP tools to an agent session consumes context/tool-list budget.
  7. Treat Zotero library create/update/delete as secondary; do not modify the Zotero library unless the user explicitly asks.
  8. Avoid direct local API wrappers and raw SQLite in this skill; use Pyzotero CLI instead.
  9. For Word work, use the agent's available Word/DOCX editing skill or document tooling. Do not install a separate DOCX-editing dependency solely for Zotero citation insertion.
  10. Validate edited DOCX files with the selected Go runtime's docx validate, or fall back to scripts/validate_zotero_docx.py. Both paths are read-only. Do not require unzip, xmllint, rg, qlmanage, LibreOffice, or rendering for narrow citation-field validation.
  11. Before first use or when troubleshooting setup, run the selected Go runtime's doctor, or fall back to python3 "$ZOTERO_USE_DIR/scripts/selftest.py". Use --strict when a working local Zotero read connection is required, and --require-zotseek when semantic search is required.
  12. For received or collaborative DOCX files, inventory citation library namespaces and embedded itemData before editing. Preserve foreign fields unchanged; never combine a key from one library with another library's URI namespace.
  13. Treat received Zotero DOCX files as preservation-critical. Keep the original untouched, never open them through the OS default app, never trigger Zotero Refresh automatically, and validate the edited copy against the original with --preserve-baseline-citations.

Work Pattern

  1. Search broadly, then narrow by title, creator, collection, tag, item type, or year.
  2. For conceptual searches, discover ZOTseek's live tools, check index status when offered, run semantic/hybrid search, then confirm shortlisted item metadata with zot.
  3. Inspect metadata for shortlisted parent bibliographic items; avoid citing attachment keys.
  4. For a single selected item, check children/attachments and report whether a PDF is available.
  5. For brainstorming/review, use the abstract plus PDF/full text when available; if only metadata/abstract was reviewed, say so.
  6. For Word work, let the available document skill read, edit, and preserve the DOCX; supply the Zotero field semantics and validate the result with the bundled validator.
  7. When adding to a received document, use the URI returned for each selected item from the current Zotero library; mixed personal/group namespaces are valid.
  8. Report Zotero item keys with conclusions and citation-placement suggestions.
  9. Distinguish Zotero evidence from external knowledge or inference.

Lazy References

  • Pyzotero CLI install, local mode, profiles, and command examples: references/pyzotero-cli.md
  • Search/query/retrieve/brainstorm from Zotero references: references/search-retrieve-brainstorm.md
  • ZOTseek MCP semantic search and live tool discovery: references/zotseek-mcp.md
  • Adding Zotero citation fields to Word DOCX files: references/word-docx-citations.md
  • Dependency-free DOCX/OOXML and Zotero-field validator: scripts/validate_zotero_docx.py
  • Dependency and Zotero readiness self-test: scripts/selftest.py
  • Non-blocking, jittered GitHub version check: scripts/check_updates.py
  • Zotero MCP server setup, context warning, and MCP tool usage: references/zotero-mcp.md
  • Troubleshooting and common checks: references/setup-troubleshooting.md
  • Optional verified native-CLI download: scripts/install_cli.py (run only after user approval)
Ver o texto completo da licença (MIT)
MIT License

Copyright (c) 2026 Vivek Gupta

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.