[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75KJDKFA4P9R88K78MTRPBB":3,"skill-same:01M75KJDKFA4P9R88K78MTRPBB":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75KJDKFA4P9R88K78MTRPBB","citation-management",null,"Set up and use reference managers (Zotero, Mendeley, EndNote) with citation styles, group libraries, PDF annotation, DOI\u002FPMID workflows, and BibTeX export for reproducible research.","pradyumnasagar\u002Fopen-research-skills","pradyumnasagar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10559871?v=4","01M75K78MYCCVKRTYGT8KKC380","Pradyumna Jayaram","01M75K78NTNE41F2PE1XBVFHAS",8,"MIT","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature-research\u002Fcitation-management\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\n\nname: citation-management\ndescription: \"Set up and use reference managers (Zotero, Mendeley, EndNote) with citation styles, group libraries, PDF annotation, DOI\u002FPMID workflows, and BibTeX export for reproducible research.\"\nlicense: MIT\n---\n\u003C!-- metadata:\n  category: literature-research\n  oversight: high\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [literature-research, research]\n  difficulty: intermediate\n-->\n\n# Citation and Reference Management\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\n- Starting a new research project and need to organize references systematically\n- Collaborating with co-authors on a manuscript, grant, or systematic review\n- Migrating from one reference manager to another (e.g., EndNote to Zotero)\n- Setting up automated workflows: cite-while-you-write, version control integration\n- Managing PDFs and annotations across hundreds or thousands of papers\n- Generating bibliographies in specific citation styles (APA, Vancouver, Nature, etc.)\n- Preparing data exports for systematic reviews, meta-analyses, or PRISMA diagrams\n- Creating backup and version control of your reference library\n\n## When NOT to use\n\n- Looking up a single paper by DOI — use `ors-literature-research-paper-lookup` instead\n- Conducting a systematic review's screening process — use `ors-literature-research-systematic-review` instead\n- Writing a manuscript in LaTeX\u002FWord — this skill is about *managing* references, not the manuscript itself\n- Managing code repositories — use Git, not a reference manager\n- Cloud document management — use Dropbox, Google Drive, etc., not a reference manager\n\n## Prerequisites\n\n- A working directory structure: `library\u002F` for the main Zotero library, `pdfs\u002F` for PDF storage\n- Cloud storage account (optional but recommended): 5–10 GB free cloud storage (Google Drive, OneDrive, iCloud)\n- Backup strategy: Zotero library is a SQLite database + files, needs regular backup\n- Basic understanding of citation formats (APA, MLA, Chicago, Vancouver)\n- LaTeX installation (optional, for BibTeX workflows)\n\n## Core workflow\n\n### 1. Choose your reference manager\n\nThree major options, each with strengths:\n\n| Tool | License | Cost | Strengths | Limitations |\n|------|---------|------|-----------|-------------|\n| Zotero | Open source (AGPL) | Free (300 MB cloud) | Extensible, open, group libraries, 9000+ citation styles, PDF reader, OCR | Cloud storage limited (can buy more) |\n| Mendeley | Proprietary | Free (2 GB) | Elsevier integration, PDF reader, mobile app | Owned by Elsevier, limited export formats, 2 GB limit |\n| EndNote | Proprietary | $250+ (institutional licenses common) | Mature, institutional adoption, publisher integrations | Expensive, not open, platform lock-in |\n\n**Recommendation**: Zotero for academic research due to open-source nature, extensibility, and cost. Migrate from other managers if possible.\n\n### 2. Set up Zotero\n\nDownload Zotero 6+ from zotero.org. Configure:\n\n1. **File → Preferences → General**:\n   - Set data directory to a location with backup\n   - Enable automatic file renaming\n\n2. **Install recommended plugins**:\n   - **Better BibTeX**: Auto-generate citation keys, prevent duplicates\n   - **ZotFile** or **Zotero PDF Translate**: PDF management, translation\n   - **Zotero PDF Reader**: Built-in reader with OCR and annotations\n\n3. **Set up sync** (optional but recommended):\n   - Zotero cloud: 300 MB free, $20\u002Fyear for 2 GB\n   - Alternative: Sync via WebDAV (Nextcloud) or Git\n   - Or: Manual backup of Zotero data directory\n\n### 3. Import and organize references\n\nImport references from:\n\n- **DOI**: Drag a DOI into Zotero, or right-click → Add Item by Identifier\n- **PubMed**: Use the magic wand icon in browser connector\n- **Web pages**: Use browser connector to save web pages\n- **PDF files**: Drag PDFs into Zotero — metadata auto-extracted\n- **Manual entry**: Add Item button for book chapters, reports, etc.\n\nOrganize with **Collections** (folders):\n\n```\nLibrary\u002F\n├── by-project\u002F\n│   ├── systematic-review-diabetes\u002F\n│   ├── grant-application-2026\u002F\n│   └── manuscript-xyz\u002F\n├── by-topic\u002F\n│   ├── machine-learning\u002F\n│   ├── genomics\u002F\n│   └── clinical-trials\u002F\n├── by-status\u002F\n│   ├── to-read\u002F\n│   ├── reading\u002F\n│   ├── cited\u002F\n│   └── background\u002F\n└── shared\u002F\n    └── lab-group-library\u002F\n```\n\n### 4. Manage PDFs and annotations\n\nConfigure PDF management:\n\n1. **Set up linked attachments** (recommended for large libraries):\"\n   - Settings → Files and Folders → Custom \"Linked Attachment Base Directory\"\n   - Store PDFs in `pdfs\u002F` folder, version controlled\n\n2. **Enable Zotero PDF Reader** (Zotero 6+):\n   - Built-in reader with highlighting, annotations, image extraction\n   - OCR for scanned PDFs\n   - Sync annotations across devices\n\n3. **Annotation workflows**:\n   - Highlight key findings, methodology, limitations\n   - Tag annotations by type (methods, results, limitations)\n   - Export annotations for literature review summaries\n\n### 5. Configure citation styles\n\nZotero ships with 9,000+ citation styles. To use a specific style:\n\n1. **Install new style**:\n   - Settings → Cite → Styles → Get additional styles\n   - Search by name (e.g., \"American Psychological Association 7th\")\n   - Or paste CSL URL: `https:\u002F\u002Fcitationstyles.org\u002F`\n\n2. **Common biomedical styles**:\n   - Vancouver: `nlm-citation-style`\n   - APA 7: `apa-7th-edition`\n   - Nature: `nature`\n   - Cell: `cell`\n   - Science: `science`\n   - Chicago: `chicago-author-date`\n\n3. **Customize styles** (advanced):\n   - Edit CSL files directly (XML format)\n   - Use Visual CSL Editor: `https:\u002F\u002Feditor.citationstyles.org\u002F`\n   - Fork existing styles to create custom variants\n\n### 6. Cite-while-you-write integration\n\n#### Word Integration\n- Zotero toolbar in Word: Add\u002FEdit Citation, Edit Bibliography, Refresh\n- Add in-text citations: Type citation key or search by author\u002Ftitle\n- Generate bibliography at end of document\n- Update citations when library changes\n\n#### LaTeX integration (with Better BibTeX)\n- Generate unique citation keys automatically\n- Export to `.bib` file\n- Use `\\cite{key}` in LaTeX\n\n```latex\n\\documentclass{article}\n\\usepackage[backend=biber, style=nature]{biblatex}\n\\addbibresource{references.bib}\n\n\\begin{document}\nRecent work by \\cite{smith2023diabetes} shows...\n\\printbibliography\n\\end{document}\n```\n\n#### Quarto\u002FMarkdown integration\n- Use `bibliography:` field in YAML header\n- Zotero exports to `.bib` or `.yaml` (CSL-JSON) format\n\n```yaml\n---\ntitle: \"My Analysis\"\nbibliography: references.bib\nformat: html\n---\n```\n\n### 7. Export and sharing\n\n#### Export formats\n- **BibTeX (.bib)**: LaTeX, R Markdown, Quarto\n- **CSL JSON (.json)**: Pandoc, academic tools\n- **RIS (.ris)**: Legacy format, some tools\n- **EndNote XML**: EndNote compatibility\n- **CSV**: Custom scripts, meta-analysis tools\n\nConfigure Better BibTeX auto-export:\n\n1. Right-click collection → \"Export Collection\"\n2. Format: \"Better BibLaTeX\" or \"Better BibTeX\"\n3. Check \"Export Notes\" and \"Export Files\"\n4. Set \"On Change\" to keep `.bib` file updated\n\n#### Group libraries for collaboration\n- Create group library (zotero.org\u002Fgroups)\n- Add co-authors with read\u002Fwrite permissions\n- Share via link for read-only access\n- Useful for lab groups, systematic reviews, manuscript co-authors\n\n### 8. DOI and PMID management\n\n#### Adding by DOI\n```\nRight-click → Add Item by Identifier → paste DOI\n```\n\n#### Programmatic DOI resolution\n```python\nimport requests\nimport re\n\ndef doi_to_metadata(doi):\n    \"\"\"Fetch metadata from Crossref API.\"\"\"\n    url = f\"https:\u002F\u002Fapi.crossref.org\u002Fworks\u002F{doi}\"\n    response = requests.get(url, timeout=30)\n    response.raise_for_status()\n    data = response.json()[\"message\"]\n    \n    return {\n        \"title\": data.get(\"title\", [\"\"])[0],\n        \"authors\": [f\"{a.get('family', '')}, {a.get('given', '')}\" \n                    for a in data.get(\"author\", [])],\n        \"year\": data.get(\"published\", {}).get(\"date-parts\", [[None]])[0][0],\n        \"journal\": data.get(\"container-title\", [\"\"])[0],\n        \"doi\": doi\n    }\n```\n\n#### Importing from PubMed\n- Install Zotero browser connector\n- On PubMed search results, click Zotero connector icon\n- Select references to import\n\n#### Finding PDFs\n- Right-click item → \"Find Available PDF\" (uses DOI, Unpaywall)\n- Configure proxy for institutional access\n- Manual: right-click → \"Attach Linked File\" or \"Attach Stored Copy\"\n\n### 9. Backups and version control\n\n#### Zotero library backup\n- Library = SQLite database + files in data directory\n- Back up entire data directory regularly\n- Use Time Machine (macOS), File History (Windows), or rsync (Linux)\n- Cloud sync (Zotero or WebDAV) is automatic backup\n\n#### Version control for `.bib` files\n- Export collection to `.bib` in Git-tracked directory\n- Commit changes with descriptive messages\n- Review diff to see added\u002Fremoved\u002Fmodified citations\n\n```bash\ngit add references.bib\ngit commit -m \"Add 15 new citations from systematic review search\"\n```\n\n### 10. Migration between managers\n\n#### From EndNote to Zotero\n1. EndNote: File → Export → EndNote XML\n2. Zotero: File → Import\n3. Verify all references transferred correctly\n4. Check for missing attachments\n\n#### From Mendeley to Zotero\n1. Mendeley: Tools → Options → Mendeley Web Importer\n2. Zotero: File → Import → \"Mendeley Database\" or RIS\n3. Use Zotero's Mendeley importer (built-in)\n\n#### Preserving citation keys\n- Better BibTeX maintains stable citation keys across sessions\n- Export from old manager with keys, import to Zotero\n- Verify keys match before deleting old library\n\n## Code patterns\n\n### Better BibTeX export configuration\n\n```javascript\n\u002F\u002F Better BibTeX settings (JSON config in Zotero)\n{\n  \"citeKeyFormat\": \"auth+year\",\n  \"citeKeyFormatAuthor\": \"LastName\",\n  \"citeKeyFormatYear\": \"4-digit-year\",\n  \"citeKeyTitle\": 0,  \u002F\u002F 0 = no title\n  \"citeKeyLowercase\": \"lower\",\n  \"citeKeyReplace\": \"_\",  \u002F\u002F Replace spaces with underscores\n  \"citeKeyRemoveDiacritics\": true,\n  \"autoPin\": false  \u002F\u002F Auto-pin citation keys\n}\n```\n\n### Programmatic import to Zotero via pyzotero\n\n```python\nfrom pyzotero import zotero\n\n# Connect to personal library\nzot = zotero.Zotero(library_id, 'user', api_key)\n\n# Add an item by DOI\nzot.add_items([{\n    \"itemType\": \"journalArticle\",\n    \"DOI\": \"10.1038\u002Fs41586-2020-1234\",\n    \"url\": \"https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-2020-1234\"\n}])\n\n# Get all items in a collection\nitems = zot.collection_items(\"ABCD1234\")\nfor item in items:\n    print(item[\"data\"][\"title\"])\n```\n\n### CSL style snippet (APA 7th, simplified)\n\n```xml\n\u003Cstyle xmlns=\"http:\u002F\u002Fpurl.org\u002Fnet\u002Fxbiblio\u002Fcsl\" \n       class=\"in-text\" \n       version=\"1.0\">\n  \u003Cinfo>\n    \u003Ctitle>American Psychological Association 7th edition\u003C\u002Ftitle>\n    \u003Cid>http:\u002F\u002Fwww.zotero.org\u002Fstyles\u002Fapa-7th-edition\u003C\u002Fid>\n    \u003Clink href=\"http:\u002F\u002Fwww.zotero.org\u002Fstyles\u002Fapa-7th-edition\" \n          rel=\"self\"\u002F>\n  \u003C\u002Finfo>\n  \u003Ccitation>\n    \u003Clayout prefix=\"(\" suffix=\")\" delimiter=\"; \">\n      \u003Cgroup delimiter=\", \">\n        \u003Cnames variable=\"author\">\n          \u003Cname form=\"short\" and=\"text\" \n                initialize-with=\". \" \n                delimiter=\", \"\u002F>\n        \u003C\u002Fnames>\n        \u003Cdate variable=\"issued\">\n          \u003Cdate-part name=\"year\"\u002F>\n        \u003C\u002Fdate>\n      \u003C\u002Fgroup>\n    \u003C\u002Flayout>\n  \u003C\u002Fcitation>\n  \u003Cbibliography>\n    \u003Clayout suffix=\".\">\n      \u003Cnames variable=\"author\" delimiter=\", \"\u002F>\n      \u003Cdate variable=\"issued\" prefix=\" (\" suffix=\")\">\n        \u003Cdate-part name=\"year\"\u002F>\n      \u003C\u002Fdate>\n    \u003C\u002Flayout>\n  \u003C\u002Fbibliography>\n\u003C\u002Fstyle>\n```\n\n### LaTeX BibTeX entry example\n\n```bibtex\n@article{smith2023diabetes,\n  author  = {Smith, John A. and Doe, Jane B.},\n  title   = {Effects of GLP-1 agonists on type 2 diabetes outcomes},\n  journal = {Nature Medicine},\n  year    = {2023},\n  volume  = {29},\n  number  = {5},\n  pages   = {1234--1245},\n  doi     = {10.1038\u002Fs41591-2023-0123-4},\n  pmid    = {37212345}\n}\n```\n\n### R Markdown\u002FQuarto bibliography setup\n\n```yaml\n---\ntitle: \"My Analysis\"\noutput: html_document\nbibliography: references.bib\ncsl: nature.csl\n---\n```\n\nDownload CSL files from `https:\u002F\u002Fgithub.com\u002Fcitation-style-language\u002Fstyles`.\n\n## Common pitfalls\n\n- **Not backing up regularly**: Loss of library is catastrophic; set up automatic backups\n- **Mixing multiple citation managers**: Creates duplicate citations and confusion\n- **Ignoring metadata quality**: Missing fields lead to incomplete citations\n- **Not using collections**: A flat library becomes unmanageable above 1000 references\n- **Cloud sync not configured**: Limits device access and creates backup risk\n- **Citation keys changing unexpectedly**: Use Better BibTeX's \"pin\" feature for stable keys\n- **PDF organization in wrong place**: Don't let PDFs accumulate in Zotero storage if you need manual control\n- **Not removing duplicates**: Duplicates from multiple imports cause citation errors\n- **Ignoring version control for exports**: `.bib` files should be in Git for reproducibility\n- **Manual citation editing**: Always use citation tools, never edit Word\u002FLaTeX citations by hand\n- **PDF annotations lost on re-import**: Sync annotations to avoid losing them\n\n## Validation\n\n- **Backup present**: Regular backups of Zotero data directory\n- **Cloud sync working**: Library accessible from multiple devices\n- **All references have DOIs\u002FPMIDs**: Easy to verify and re-find\n- **Citation style configured**: Bibliography generates in target format\n- **Cite-while-you-write working**: Citations insert in Word\u002FLaTeX without errors\n- **Duplicate check passed**: No duplicate references in library\n- **Group library permissions verified**: Co-authors have appropriate access\n- **PDFs attached and accessible**: No missing files or broken links\n- **Citation keys stable**: Keys don't change unexpectedly (with Better BibTeX)\n- **Exports work correctly**: `.bib`, RIS, CSL JSON files generate without errors\n\n## Open alternatives\n\n| Commercial \u002F paid | Open alternative | Trade-off |\n|---|---|---|\n| EndNote | Zotero | Zotero is free, open, has 9000+ styles; EndNote has institutional adoption |\n| Mendeley (Elsevier) | Zotero | Zotero is not owned by publisher; Mendeley has mobile app but limited exports |\n| Paperpile (Google Docs) | Zotero + Google Docs integration | Paperpile is paid; Zotero has limited Google Docs integration |\n| ReadCube Papers | Zotero with PDF reader | ReadCube has better mobile app; Zotero has better library organization |\n| RefWorks (ProQuest) | Zotero with group libraries | RefWorks is institutional; Zotero groups are free for any size |\n\n## References\n\nInternal skills:\n- `ors-literature-research-literature-search` — search strategies to feed into library\n- `ors-literature-research-paper-lookup` — find specific papers to add to library\n- `ors-literature-research-systematic-review` — uses exported library for screening\n- `ors-open-science-preprints` — tracks preprints added to library\n- `ors-scientific-writing` — uses Zotero for manuscript citations\n\nExternal sources:\n- Zotero documentation — zotero.org\u002Fsupport\n- Better BibTeX documentation — retorque.re\u002Fzotero-better-bibtex\n- Citation Style Language — citationstyles.org\n- Crossref API — api.crossref.org\n- pyzotero documentation — pyzotero.readthedocs.io\n- DOI resolution — doi.org\n- Unpaywall API — unpaywall.org\n- APA Style — apastyle.apa.org\n- Vancouver Style — nlm.nih.gov\u002Fbsd\u002Funiform_requirements.html\n- Nature citation style — nature.com\u002Fnature-portfolio\u002Feditorial-policies\u002Fcitation-style\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram. Updated from Bioinfoskill `reference-management` with focus on Zotero as primary tool, modern PDF annotation workflows, Better BibTeX integration for version control, DOI\u002FPMID management with programmatic examples, and CSL style customization.\n\n## Cross-references\n\nOther skills in this category:\n\n- literature-search\n- paper-lookup\n- scoping-review\n- systematic-review\n","\u003C!-- metadata:\n  category: literature-research\n  oversight: high\n  version: 1.0.0\n  author: Pradyumna Jayaram\n  tags: [literature-research, research]\n  difficulty: intermediate\n-->\n\n# Citation and Reference Management\n\n## Hard rules\n\n1. **No fabricated citations.** Every cited work must resolve to a verifiable\n2. **No claim without provenance.** Every quantitative or factual claim\n3. **No silent failure.** Every script invocation, API call, or tool use must declare its exit status and what to do on non-zero. A skill that silently swallows errors is a violation.\n\n## When to use\n\n- Starting a new research project and need to organize references systematically\n- Collaborating with co-authors on a manuscript, grant, or systematic review\n- Migrating from one reference manager to another (e.g., EndNote to Zotero)\n- Setting up automated workflows: cite-while-you-write, version control integration\n- Managing PDFs and annotations across hundreds or thousands of papers\n- Generating bibliographies in specific citation styles (APA, Vancouver, Nature, etc.)\n- Preparing data exports for systematic reviews, meta-analyses, or PRISMA diagrams\n- Creating backup and version control of your reference library\n\n## When NOT to use\n\n- Looking up a single paper by DOI — use `ors-literature-research-paper-lookup` instead\n- Conducting a systematic review's screening process — use `ors-literature-research-systematic-review` instead\n- Writing a manuscript in LaTeX\u002FWord — this skill is about *managing* references, not the manuscript itself\n- Managing code repositories — use Git, not a reference manager\n- Cloud document management — use Dropbox, Google Drive, etc., not a reference manager\n\n## Prerequisites\n\n- A working directory structure: `library\u002F` for the main Zotero library, `pdfs\u002F` for PDF storage\n- Cloud storage account (optional but recommended): 5–10 GB free cloud storage (Google Drive, OneDrive, iCloud)\n- Backup strategy: Zotero library is a SQLite database + files, needs regular backup\n- Basic understanding of citation formats (APA, MLA, Chicago, Vancouver)\n- LaTeX installation (optional, for BibTeX workflows)\n\n## Core workflow\n\n### 1. Choose your reference manager\n\nThree major options, each with strengths:\n\n| Tool | License | Cost | Strengths | Limitations |\n|------|---------|------|-----------|-------------|\n| Zotero | Open source (AGPL) | Free (300 MB cloud) | Extensible, open, group libraries, 9000+ citation styles, PDF reader, OCR | Cloud storage limited (can buy more) |\n| Mendeley | Proprietary | Free (2 GB) | Elsevier integration, PDF reader, mobile app | Owned by Elsevier, limited export formats, 2 GB limit |\n| EndNote | Proprietary | $250+ (institutional licenses common) | Mature, institutional adoption, publisher integrations | Expensive, not open, platform lock-in |\n\n**Recommendation**: Zotero for academic research due to open-source nature, extensibility, and cost. Migrate from other managers if possible.\n\n### 2. Set up Zotero\n\nDownload Zotero 6+ from zotero.org. Configure:\n\n1. **File → Preferences → General**:\n   - Set data directory to a location with backup\n   - Enable automatic file renaming\n\n2. **Install recommended plugins**:\n   - **Better BibTeX**: Auto-generate citation keys, prevent duplicates\n   - **ZotFile** or **Zotero PDF Translate**: PDF management, translation\n   - **Zotero PDF Reader**: Built-in reader with OCR and annotations\n\n3. **Set up sync** (optional but recommended):\n   - Zotero cloud: 300 MB free, $20\u002Fyear for 2 GB\n   - Alternative: Sync via WebDAV (Nextcloud) or Git\n   - Or: Manual backup of Zotero data directory\n\n### 3. Import and organize references\n\nImport references from:\n\n- **DOI**: Drag a DOI into Zotero, or right-click → Add Item by Identifier\n- **PubMed**: Use the magic wand icon in browser connector\n- **Web pages**: Use browser connector to save web pages\n- **PDF files**: Drag PDFs into Zotero — metadata auto-extracted\n- **Manual entry**: Add Item button for book chapters, reports, etc.\n\nOrganize with **Collections** (folders):\n\n```\nLibrary\u002F\n├── by-project\u002F\n│   ├── systematic-review-diabetes\u002F\n│   ├── grant-application-2026\u002F\n│   └── manuscript-xyz\u002F\n├── by-topic\u002F\n│   ├── machine-learning\u002F\n│   ├── genomics\u002F\n│   └── clinical-trials\u002F\n├── by-status\u002F\n│   ├── to-read\u002F\n│   ├── reading\u002F\n│   ├── cited\u002F\n│   └── background\u002F\n└── shared\u002F\n    └── lab-group-library\u002F\n```\n\n### 4. Manage PDFs and annotations\n\nConfigure PDF management:\n\n1. **Set up linked attachments** (recommended for large libraries):\"\n   - Settings → Files and Folders → Custom \"Linked Attachment Base Directory\"\n   - Store PDFs in `pdfs\u002F` folder, version controlled\n\n2. **Enable Zotero PDF Reader** (Zotero 6+):\n   - Built-in reader with highlighting, annotations, image extraction\n   - OCR for scanned PDFs\n   - Sync annotations across devices\n\n3. **Annotation workflows**:\n   - Highlight key findings, methodology, limitations\n   - Tag annotations by type (methods, results, limitations)\n   - Export annotations for literature review summaries\n\n### 5. Configure citation styles\n\nZotero ships with 9,000+ citation styles. To use a specific style:\n\n1. **Install new style**:\n   - Settings → Cite → Styles → Get additional styles\n   - Search by name (e.g., \"American Psychological Association 7th\")\n   - Or paste CSL URL: `https:\u002F\u002Fcitationstyles.org\u002F`\n\n2. **Common biomedical styles**:\n   - Vancouver: `nlm-citation-style`\n   - APA 7: `apa-7th-edition`\n   - Nature: `nature`\n   - Cell: `cell`\n   - Science: `science`\n   - Chicago: `chicago-author-date`\n\n3. **Customize styles** (advanced):\n   - Edit CSL files directly (XML format)\n   - Use Visual CSL Editor: `https:\u002F\u002Feditor.citationstyles.org\u002F`\n   - Fork existing styles to create custom variants\n\n### 6. Cite-while-you-write integration\n\n#### Word Integration\n- Zotero toolbar in Word: Add\u002FEdit Citation, Edit Bibliography, Refresh\n- Add in-text citations: Type citation key or search by author\u002Ftitle\n- Generate bibliography at end of document\n- Update citations when library changes\n\n#### LaTeX integration (with Better BibTeX)\n- Generate unique citation keys automatically\n- Export to `.bib` file\n- Use `\\cite{key}` in LaTeX\n\n```latex\n\\documentclass{article}\n\\usepackage[backend=biber, style=nature]{biblatex}\n\\addbibresource{references.bib}\n\n\\begin{document}\nRecent work by \\cite{smith2023diabetes} shows...\n\\printbibliography\n\\end{document}\n```\n\n#### Quarto\u002FMarkdown integration\n- Use `bibliography:` field in YAML header\n- Zotero exports to `.bib` or `.yaml` (CSL-JSON) format\n\n```yaml\n---\ntitle: \"My Analysis\"\nbibliography: references.bib\nformat: html\n---\n```\n\n### 7. Export and sharing\n\n#### Export formats\n- **BibTeX (.bib)**: LaTeX, R Markdown, Quarto\n- **CSL JSON (.json)**: Pandoc, academic tools\n- **RIS (.ris)**: Legacy format, some tools\n- **EndNote XML**: EndNote compatibility\n- **CSV**: Custom scripts, meta-analysis tools\n\nConfigure Better BibTeX auto-export:\n\n1. Right-click collection → \"Export Collection\"\n2. Format: \"Better BibLaTeX\" or \"Better BibTeX\"\n3. Check \"Export Notes\" and \"Export Files\"\n4. Set \"On Change\" to keep `.bib` file updated\n\n#### Group libraries for collaboration\n- Create group library (zotero.org\u002Fgroups)\n- Add co-authors with read\u002Fwrite permissions\n- Share via link for read-only access\n- Useful for lab groups, systematic reviews, manuscript co-authors\n\n### 8. DOI and PMID management\n\n#### Adding by DOI\n```\nRight-click → Add Item by Identifier → paste DOI\n```\n\n#### Programmatic DOI resolution\n```python\nimport requests\nimport re\n\ndef doi_to_metadata(doi):\n    \"\"\"Fetch metadata from Crossref API.\"\"\"\n    url = f\"https:\u002F\u002Fapi.crossref.org\u002Fworks\u002F{doi}\"\n    response = requests.get(url, timeout=30)\n    response.raise_for_status()\n    data = response.json()[\"message\"]\n    \n    return {\n        \"title\": data.get(\"title\", [\"\"])[0],\n        \"authors\": [f\"{a.get('family', '')}, {a.get('given', '')}\" \n                    for a in data.get(\"author\", [])],\n        \"year\": data.get(\"published\", {}).get(\"date-parts\", [[None]])[0][0],\n        \"journal\": data.get(\"container-title\", [\"\"])[0],\n        \"doi\": doi\n    }\n```\n\n#### Importing from PubMed\n- Install Zotero browser connector\n- On PubMed search results, click Zotero connector icon\n- Select references to import\n\n#### Finding PDFs\n- Right-click item → \"Find Available PDF\" (uses DOI, Unpaywall)\n- Configure proxy for institutional access\n- Manual: right-click → \"Attach Linked File\" or \"Attach Stored Copy\"\n\n### 9. Backups and version control\n\n#### Zotero library backup\n- Library = SQLite database + files in data directory\n- Back up entire data directory regularly\n- Use Time Machine (macOS), File History (Windows), or rsync (Linux)\n- Cloud sync (Zotero or WebDAV) is automatic backup\n\n#### Version control for `.bib` files\n- Export collection to `.bib` in Git-tracked directory\n- Commit changes with descriptive messages\n- Review diff to see added\u002Fremoved\u002Fmodified citations\n\n```bash\ngit add references.bib\ngit commit -m \"Add 15 new citations from systematic review search\"\n```\n\n### 10. Migration between managers\n\n#### From EndNote to Zotero\n1. EndNote: File → Export → EndNote XML\n2. Zotero: File → Import\n3. Verify all references transferred correctly\n4. Check for missing attachments\n\n#### From Mendeley to Zotero\n1. Mendeley: Tools → Options → Mendeley Web Importer\n2. Zotero: File → Import → \"Mendeley Database\" or RIS\n3. Use Zotero's Mendeley importer (built-in)\n\n#### Preserving citation keys\n- Better BibTeX maintains stable citation keys across sessions\n- Export from old manager with keys, import to Zotero\n- Verify keys match before deleting old library\n\n## Code patterns\n\n### Better BibTeX export configuration\n\n```javascript\n\u002F\u002F Better BibTeX settings (JSON config in Zotero)\n{\n  \"citeKeyFormat\": \"auth+year\",\n  \"citeKeyFormatAuthor\": \"LastName\",\n  \"citeKeyFormatYear\": \"4-digit-year\",\n  \"citeKeyTitle\": 0,  \u002F\u002F 0 = no title\n  \"citeKeyLowercase\": \"lower\",\n  \"citeKeyReplace\": \"_\",  \u002F\u002F Replace spaces with underscores\n  \"citeKeyRemoveDiacritics\": true,\n  \"autoPin\": false  \u002F\u002F Auto-pin citation keys\n}\n```\n\n### Programmatic import to Zotero via pyzotero\n\n```python\nfrom pyzotero import zotero\n\n# Connect to personal library\nzot = zotero.Zotero(library_id, 'user', api_key)\n\n# Add an item by DOI\nzot.add_items([{\n    \"itemType\": \"journalArticle\",\n    \"DOI\": \"10.1038\u002Fs41586-2020-1234\",\n    \"url\": \"https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-2020-1234\"\n}])\n\n# Get all items in a collection\nitems = zot.collection_items(\"ABCD1234\")\nfor item in items:\n    print(item[\"data\"][\"title\"])\n```\n\n### CSL style snippet (APA 7th, simplified)\n\n```xml\n\u003Cstyle xmlns=\"http:\u002F\u002Fpurl.org\u002Fnet\u002Fxbiblio\u002Fcsl\" \n       class=\"in-text\" \n       version=\"1.0\">\n  \u003Cinfo>\n    \u003Ctitle>American Psychological Association 7th edition\u003C\u002Ftitle>\n    \u003Cid>http:\u002F\u002Fwww.zotero.org\u002Fstyles\u002Fapa-7th-edition\u003C\u002Fid>\n    \u003Clink href=\"http:\u002F\u002Fwww.zotero.org\u002Fstyles\u002Fapa-7th-edition\" \n          rel=\"self\"\u002F>\n  \u003C\u002Finfo>\n  \u003Ccitation>\n    \u003Clayout prefix=\"(\" suffix=\")\" delimiter=\"; \">\n      \u003Cgroup delimiter=\", \">\n        \u003Cnames variable=\"author\">\n          \u003Cname form=\"short\" and=\"text\" \n                initialize-with=\". \" \n                delimiter=\", \"\u002F>\n        \u003C\u002Fnames>\n        \u003Cdate variable=\"issued\">\n          \u003Cdate-part name=\"year\"\u002F>\n        \u003C\u002Fdate>\n      \u003C\u002Fgroup>\n    \u003C\u002Flayout>\n  \u003C\u002Fcitation>\n  \u003Cbibliography>\n    \u003Clayout suffix=\".\">\n      \u003Cnames variable=\"author\" delimiter=\", \"\u002F>\n      \u003Cdate variable=\"issued\" prefix=\" (\" suffix=\")\">\n        \u003Cdate-part name=\"year\"\u002F>\n      \u003C\u002Fdate>\n    \u003C\u002Flayout>\n  \u003C\u002Fbibliography>\n\u003C\u002Fstyle>\n```\n\n### LaTeX BibTeX entry example\n\n```bibtex\n@article{smith2023diabetes,\n  author  = {Smith, John A. and Doe, Jane B.},\n  title   = {Effects of GLP-1 agonists on type 2 diabetes outcomes},\n  journal = {Nature Medicine},\n  year    = {2023},\n  volume  = {29},\n  number  = {5},\n  pages   = {1234--1245},\n  doi     = {10.1038\u002Fs41591-2023-0123-4},\n  pmid    = {37212345}\n}\n```\n\n### R Markdown\u002FQuarto bibliography setup\n\n```yaml\n---\ntitle: \"My Analysis\"\noutput: html_document\nbibliography: references.bib\ncsl: nature.csl\n---\n```\n\nDownload CSL files from `https:\u002F\u002Fgithub.com\u002Fcitation-style-language\u002Fstyles`.\n\n## Common pitfalls\n\n- **Not backing up regularly**: Loss of library is catastrophic; set up automatic backups\n- **Mixing multiple citation managers**: Creates duplicate citations and confusion\n- **Ignoring metadata quality**: Missing fields lead to incomplete citations\n- **Not using collections**: A flat library becomes unmanageable above 1000 references\n- **Cloud sync not configured**: Limits device access and creates backup risk\n- **Citation keys changing unexpectedly**: Use Better BibTeX's \"pin\" feature for stable keys\n- **PDF organization in wrong place**: Don't let PDFs accumulate in Zotero storage if you need manual control\n- **Not removing duplicates**: Duplicates from multiple imports cause citation errors\n- **Ignoring version control for exports**: `.bib` files should be in Git for reproducibility\n- **Manual citation editing**: Always use citation tools, never edit Word\u002FLaTeX citations by hand\n- **PDF annotations lost on re-import**: Sync annotations to avoid losing them\n\n## Validation\n\n- **Backup present**: Regular backups of Zotero data directory\n- **Cloud sync working**: Library accessible from multiple devices\n- **All references have DOIs\u002FPMIDs**: Easy to verify and re-find\n- **Citation style configured**: Bibliography generates in target format\n- **Cite-while-you-write working**: Citations insert in Word\u002FLaTeX without errors\n- **Duplicate check passed**: No duplicate references in library\n- **Group library permissions verified**: Co-authors have appropriate access\n- **PDFs attached and accessible**: No missing files or broken links\n- **Citation keys stable**: Keys don't change unexpectedly (with Better BibTeX)\n- **Exports work correctly**: `.bib`, RIS, CSL JSON files generate without errors\n\n## Open alternatives\n\n| Commercial \u002F paid | Open alternative | Trade-off |\n|---|---|---|\n| EndNote | Zotero | Zotero is free, open, has 9000+ styles; EndNote has institutional adoption |\n| Mendeley (Elsevier) | Zotero | Zotero is not owned by publisher; Mendeley has mobile app but limited exports |\n| Paperpile (Google Docs) | Zotero + Google Docs integration | Paperpile is paid; Zotero has limited Google Docs integration |\n| ReadCube Papers | Zotero with PDF reader | ReadCube has better mobile app; Zotero has better library organization |\n| RefWorks (ProQuest) | Zotero with group libraries | RefWorks is institutional; Zotero groups are free for any size |\n\n## References\n\nInternal skills:\n- `ors-literature-research-literature-search` — search strategies to feed into library\n- `ors-literature-research-paper-lookup` — find specific papers to add to library\n- `ors-literature-research-systematic-review` — uses exported library for screening\n- `ors-open-science-preprints` — tracks preprints added to library\n- `ors-scientific-writing` — uses Zotero for manuscript citations\n\nExternal sources:\n- Zotero documentation — zotero.org\u002Fsupport\n- Better BibTeX documentation — retorque.re\u002Fzotero-better-bibtex\n- Citation Style Language — citationstyles.org\n- Crossref API — api.crossref.org\n- pyzotero documentation — pyzotero.readthedocs.io\n- DOI resolution — doi.org\n- Unpaywall API — unpaywall.org\n- APA Style — apastyle.apa.org\n- Vancouver Style — nlm.nih.gov\u002Fbsd\u002Funiform_requirements.html\n- Nature citation style — nature.com\u002Fnature-portfolio\u002Feditorial-policies\u002Fcitation-style\n\n## Changelog\n\n- 1.0.0 (2026-06-10): Initial adaptation by Pradyumna Jayaram. Updated from Bioinfoskill `reference-management` with focus on Zotero as primary tool, modern PDF annotation workflows, Better BibTeX integration for version control, DOI\u002FPMID management with programmatic examples, and CSL style customization.\n\n## Cross-references\n\nOther skills in this category:\n\n- literature-search\n- paper-lookup\n- scoping-review\n- systematic-review\n",{"name":5,"license":15,"description":7},"main","9c0b41e2036cc5588c699f06e658ea6dc3b9685d","skills\u002Fliterature-research\u002Fcitation-management",2,"https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar","PhD Scholar,\r\nManipal School Of Life Sciences, Manipal\r\n #OpenSourceDeveloper #LifeSciences #ComputationalBiology","2026-10-30 01:30:52",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add pradyumnasagar\u002Fopen-research-skills --skill citation-management",{"tool":38,"command":39},"bunx","bunx skills add pradyumnasagar\u002Fopen-research-skills --skill citation-management",{"tool":41,"command":42},"pnpm","pnpm dlx skills add pradyumnasagar\u002Fopen-research-skills --skill citation-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fliterature-research\u002Fcitation-management\u002FSKILL.md",true,[],[47,54,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75KTS5K9QNX8FQBTJW2GQSH","good-skill","A well-formed test fixture for the validation script.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75KTR7FAT0MMMED2EGC9WZZ","BadSkill","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-skill\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75KTN949EDF77GJDS8H6VR8","my-new-skill","One sentence (max 200 chars) — what the skill does and when to use it.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75KTHTFS121SSF1Q5X2FXDA","thesis-structure","Use when planning or checking the architecture of a PhD \u002F MPhil thesis in the life sciences or bioinformatics — monograph vs article-based, chapter sequence, IMRaD-based chapters, abstract-to-conclusion flow, and the examiner expectations that the structure must meet.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-structure\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75KTE3WKW46FXFHQ579H8YP","thesis-methods-reproducibility","Use when writing or checking the Methods, figures, data, and code of a bioinformatics \u002F microbiology \u002F life-science PhD thesis — the FAIR data, versioned code, report-generation, figure-and-table discipline, and the reproducibility expectations that examiners probe at viva.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-methods-reproducibility\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75KTA033ZQCJY3DC8P5VQET","thesis-defense-viva","Use when preparing for the viva voce \u002F oral thesis defense — building the examiner's question set, rehearsing the presentation, and the pre-defense polish (slides, summary, the 'what if I'm stuck' responses) for a life-science or bioinformatics PhD.","https:\u002F\u002Fgithub.com\u002Fpradyumnasagar\u002Fopen-research-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthesis-writing\u002Fthesis-defense-viva\u002FSKILL.md",[],[]]