一键导入
zotero-tagging
Tag Zotero items with timestamp tags after generating bibliographies. Uses secure macOS Keychain storage for credentials. Claude Code only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Tag Zotero items with timestamp tags after generating bibliographies. Uses secure macOS Keychain storage for credentials. Claude Code only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | zotero-tagging |
| description | Tag Zotero items with timestamp tags after generating bibliographies. Uses secure macOS Keychain storage for credentials. Claude Code only. |
Automatically tag Zotero items with timestamp tags after search results or bibliography generation. Credentials stored securely in macOS Keychain.
Use this skill when:
Tag search results for traceability. After generating bibliographies or search results:
Zotero-MCP-Results-YYYY-MM-DD-HHMMBefore using this skill, ensure:
Credentials are set up - User must run setup_credentials.py once to store:
Python environment - Virtual environment with dependencies installed:
pyzotero - Zotero web API clientkeyring - macOS Keychain integrationZotero Web API Access - User needs:
All credentials stored in macOS Keychain:
Service name: zotero-tag-automation
Before tagging, verify credentials are configured:
cd /Users/niyaro/Documents/Code/zotero-tag-automation
source venv/bin/activate
python -c "import keyring; print('Library ID:', keyring.get_password('zotero-tag-automation', 'library_id'))"
If credentials not found, guide user to run:
python setup_credentials.py
From a bibliography markdown file, extract all Zotero item keys:
# Extract keys from bibliography file
grep -o 'zotero://select/library/items/[A-Z0-9]*' bibliography.md | \
sed 's/.*items\///' | \
sort -u > /tmp/item_keys.txt
# Show extracted keys
cat /tmp/item_keys.txt
Run the tagging script with extracted keys:
cd /Users/niyaro/Documents/Code/zotero-tag-automation
source venv/bin/activate
python tag_items.py $(cat /tmp/item_keys.txt)
Output format:
Tagging 23 items with: Zotero-MCP-Results-2025-10-25-1417
[1/23] ✓ W44VF3CG
[2/23] ✓ M4G5W339
...
Summary:
Successful: 23/23
Failed: 0/23
Tag: Zotero-MCP-Results-2025-10-25-1417
After tagging, report to user:
User request: "Find papers on X and create a bibliography"
Workflow:
/Users/niyaro/Desktop/bibliography.md)User request: "Tag all the items from bibliography.md"
Workflow:
User request: "Tag items W44VF3CG and M4G5W339"
Workflow:
python tag_items.py W44VF3CG M4G5W339
User request: "Set up Zotero tagging"
Workflow:
cd /Users/niyaro/Documents/Code/zotero-tag-automation
source venv/bin/activate
python setup_credentials.py
Error: "Credentials not found in Keychain"
Solution:
python setup_credentials.py
Guide user through entering:
Error: "403 Forbidden" or "Write access denied"
Solution:
Error: "404 Not Found" for specific item
Possible causes:
Solution:
Error: "PreConditionFailed" or version conflict
Solution:
Format: Zotero-MCP-Results-YYYY-MM-DD-HHMM
Examples:
Zotero-MCP-Results-2025-10-25-1417Zotero-MCP-Results-2025-10-26-0930Benefits:
This skill complements the Zotero MCP skill:
Recommended workflow:
User: "Find papers on Indigenous language certification"
↓
Use Zotero MCP Skill → Generate bibliography → Save to file
↓
Ask: "Tag these 23 items for later retrieval?"
↓
Use Zotero Tagging Skill → Extract keys → Tag items → Report success
Script location: /Users/niyaro/Documents/Code/zotero-tag-automation/
Key files:
setup_credentials.py - One-time credential setuptag_items.py - Reusable tagging scriptvenv/ - Python virtual environmentREADME.md - User documentationCredentials location: macOS Keychain (service: zotero-tag-automation)
Setup (one-time):
cd /Users/niyaro/Documents/Code/zotero-tag-automation
python3 -m venv venv
source venv/bin/activate
pip install pyzotero keyring
python setup_credentials.py
Tag from bibliography:
source venv/bin/activate
grep -o 'items/[A-Z0-9]*' bibliography.md | sed 's/items\///' | xargs python tag_items.py
Tag specific items:
source venv/bin/activate
python tag_items.py W44VF3CG M4G5W339 IQBVNCGF
Check credentials:
security find-generic-password -s "zotero-tag-automation" -a "library_id"
Remember: Always activate the virtual environment (source venv/bin/activate) before running Python scripts.