xiaohongshu
xiaohongshu
logseq-zotero-sync
Sync Logseq pages tagged with #zotero to Zotero by adding 'in_logseq' tag. Uses batch checking for efficiency. Claude Code only.
Full skill instructions
Automatically synchronize Logseq literature notes with Zotero by tagging referenced items with in_logseq.
Use this skill when the user wants to:
in_logseq tag for new literature notesKeywords: logseq, zotero, sync, tagging, literature notes, bibliography, knowledge management
This skill syncs Logseq pages tagged with #zotero to Zotero by:
in_logseqin_logseq tag to items that don't have itKey Feature: Idempotent batch processing - safe to run repeatedly, only tags what's needed.
npm install -g @logseq/cli)pip3 install pyzotero keyring
Shares credentials with zotero-tag-automation skill via macOS Keychain (service: zotero-tag-automation).
If credentials aren't set up yet:
python /Users/niyaro/.claude/skills/zotero-tag-automation/setup_credentials.py
cd /Users/niyaro/Documents/Code/logseq-zotero-sync
python sync_logseq_to_zotero.py
Auto-detects the most recent Logseq DB graph.
python sync_logseq_to_zotero.py "2025-10-26 Logseq DB"
Instead of checking each item individually, this script:
in_logseq tag in one queryThis is much more efficient than checking each item one-by-one, especially as the library grows.
The script runs this datalog query via Logseq CLI:
[:find (pull ?b [:block/title {:user.property/ZoteroURL-om1JHnZv [:block/title]}])
:where [?b :user.property/ZoteroURL-om1JHnZv]]
This finds all pages/blocks with the Zotero URL property and extracts the URLs.
Zotero URLs have the format:
zotero://select/library/items/M2QGSQA9
The script extracts the item key (M2QGSQA9) using regex pattern matching.
Uses pyzotero to:
zot.items(tag='in_logseq')zot.item(item_key)zot.update_item(item)When the user asks to sync Logseq to Zotero or tag items in Zotero based on Logseq:
User: "Tag all my Logseq literature notes in Zotero"
Claude:
1. Checks if credentials are set up
2. Lists available Logseq graphs
3. Asks user to confirm graph name
4. Runs: python sync_logseq_to_zotero.py "GraphName"
5. Shows summary of tagged items
The script is idempotent - running it multiple times has no negative effects:
==============================================================
Logseq to Zotero Sync
==============================================================
Querying Logseq graph: 2025-10-26 Logseq DB
Found 14 items in Logseq with Zotero URLs
Querying Zotero for items with 'in_logseq' tag...
Found 10 items already tagged with 'in_logseq'
Found 4 items that need tagging:
- AA8CFB7Y
- DUF7Q2B6
- M2QGSQA9
- ZTSWUK3C
Tagging 4 items with 'in_logseq'...
[1/4] ✓ AA8CFB7Y: Here we are together
[2/4] ✓ DUF7Q2B6: Reflections on Orthography
[3/4] ✓ M2QGSQA9: Taiwan Archaeology
[4/4] ✓ ZTSWUK3C: Who owns "the culture"
==============================================================
Summary:
Successful: 4/4
Failed: 0/4
Tag: in_logseq
==============================================================
Problem: Logseq CLI can't find the graph Solutions:
logseq list to see available graphsProblem: No credentials in Keychain Solution: Run setup script:
python /Users/niyaro/.claude/skills/zotero-tag-automation/setup_credentials.py
Problem: @logseq/cli not installed Solution:
npm install -g @logseq/cli
logseq --version # verify
Problem: Query returns 0 items but user says items exist Possible causes:
/Users/niyaro/Documents/Code/logseq-zotero-sync/
├── sync_logseq_to_zotero.py # Main script
├── requirements.txt # Python dependencies
├── README.md # User documentation
├── SKILL.md # This file (skill documentation)
└── .gitignore # Git ignore rules
in_logseq tag in Zotero to see which items are in knowledge basePotential improvements:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience