What problem does it solve?
This Skill unifies literature searching by querying the local Zotero library first and automatically falling back to external sources when configured, reducing manual switching and ensuring access to broader results.
Core Features & Use Cases
- Local-first search: semantically searches your Zotero library (via zotero-mcp) with an option to use semantic or keyword matching and sorts results by year.
- Automatic external fallback: if local results are empty and OPENROUTER_API_KEY is configured, queries external databases and returns a unified set of papers.
- Unified output & Citations: outputs a consistent structure with BibTeX data, deduplication, and a single result format suitable for writing workflows.
Use Case: A researcher wants to assemble relevant citations for a literature review without manually coordinating local and external sources.
Quick Start
Use the UnifiedLiteratureLookup to search for papers:
from scientific_writer import UnifiedLiteratureLookup
lookup = UnifiedLiteratureLookup()
result = lookup.search("transformer attention")
for paper in result.papers:
print(paper.title)