Zotero Cite
Goal
Automate OA-only literature retrieval and citation insertion via Zotero local bridge while recording refs/search logs and refs.md summaries.
Preconditions
- •Keep Zotero running with codex-zotero-bridge installed and "他のアプリケーションからの通信を許可" enabled.
- •Keep Better BibTeX auto-export (Keep updated) writing
OneDrive/ZoteroLibrary/20260126_study_seed.bib. - •Keep attachments as
linked_fileunderOneDrive/ZoteroLibrary/; do not use Zotero File Storage. - •Set env vars via
.env(do not commit):ZOTERO_BRIDGE_TOKEN,ZOTERO_COLLECTION_NAME,ZOTERO_ONE_DRIVE_ROOT(or OneDrive env vars). - •Recommended (to keep this study separate from the base study): set
ZOTERO_PDF_DIR_OAto a project-scoped folder, e.g.OneDrive/ZoteroLibrary/pdf/projects/seed/oa. - •Set
ZOTERO_BBT_BIB_PATHto the BibTeX export for this study, e.g.OneDrive/ZoteroLibrary/20260126_study_seed.bib.
Workflow
- •Verify bridge readiness with
pwsh -File src/scripts/test_zotero_bridge.ps1. - •Run OA search/import with
python -m src.scripts.zotero_oa_pipeline --query "..." --max-results N. - •Confirm a log is created under
refs/search/(tagYYYYMMDD_HHMMSS_<slug>.json) andrefs.mdsummary updated before editing manuscripts. - •Insert
[@citekey]intopaper.md/paper_en.md(use--markdownand--placeholderif automating). - •If citekeys are missing, wait for BBT sync and re-run with
--dry-runto resolve. - •If non-OA or PDF-unavailable items appear, keep DOI+URL+search date+DB+query in
refs.md(pipeline handles this; verify).
Outputs
- •
refs/search/<tag>.jsonsearch log. - •
refs.mdsummary entry with a log link. - •OA PDFs under
OneDrive/ZoteroLibrary/pdf/projects/seed/oa/<year>/(recommended). - •Zotero items with
linked_fileattachments and citekeys.
Notes
- •Use
$literature-refsif manual adjustments torefs.mdare required. - •Use
src/scripts/check_citekeys_in_markdown.pyto validate citekeys when needed. - •Do not commit PDFs into the repository.
After completion
Reflect on whether AGENTS.md or this skill needs refinement; propose changes only.