← 返回
未分类 中文

zotero-write

Write, tag, annotate, and edit a local Zotero SQLite database. Use when the user wants to: (1) Add tags or labels to papers in their Zotero library, (2) Add...
Write, tag, annotate, and edit a local Zotero SQLite database. Use when the user wants to: (1) Add tags or labels to papers in their Zotero library, (2) Add...
lyononthemoon lyononthemoon 来源
未分类 clawhub v1.0.1 1 版本 99776.3 Key: 无需
★ 0
Stars
📥 446
下载
💾 0
安装
1
版本
#latest

概述

Zotero Write Skill

Write, tag, annotate, and edit a local Zotero SQLite database.

Database & Safety

  • Database: E:\Refer.Hub\zotero.sqlite
  • ⚠️ SAFETY: Always use --backup before any write operation. Backups saved to E:\Refer.Hub\backups/
  • Required: Close Zotero application before writing to the database
  • Rule: Never run write operations without --backup — the script will refuse

Scripts

  • scripts/write_items.py — All write operations

Scripts Usage

0. Always backup first

py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite"

This saves a timestamped backup before any write. Always do this first.

1. Add tags to a paper

First find the item key from zotero-browse skill, then:

py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --add-tag ZL42EGES "NAFLD" "FGF15" "silymarin"

2. Add a note to a paper

py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --add-note ZL42EGES "This paper shows FGF15 is the key mediator of silibinin's anti-NAFLD effect."

3. Update a field (metadata)

# Update title
py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --set-field ZL42EGES title "New Title Here"

# Update date
py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --set-field ZL42EGES date "2024"

# Update journal
py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --set-field ZL42EGES publicationTitle "Journal Name"

# Update DOI
py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --set-field ZL42EGES DOI "10.1234/example"

4. Create a new Zotero entry

py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \
  --new-item journalArticle \
  --title "Example Title" \
  --authors "John Doe" "Jane Smith" \
  --date "2024" \
  --journal "Nature Medicine" \
  --doi "10.1038/s41591-024-0001-z"

5. List available field names

py -3 scripts/write_items.py --list-fields

6. Show full item details (before editing)

py -3 scripts/write_items.py --item-info ZL42EGES

Available Fields

Run --list-fields to see all. Common fields:

fieldNameDescription
------------------------
titlePaper title
creatorsAuthors (use --authors for new items)
datePublication date (YYYY or YYYY-MM-DD)
publicationTitleJournal name
DOIDigital Object Identifier
urlWeb URL
abstractNoteAbstract
tagsTags (use --add-tag instead)
volumeVolume number
issueIssue number
pagesPage range
publisherPublisher
ISBNISBN
ISSNISSN
journalAbbreviationJournal abbreviation

Item Types

When creating new items, use one of:

  • journalArticle (default for papers)
  • book
  • bookSection
  • conferencePaper
  • thesis
  • report
  • webpage
  • note

Workflow: Tag a paper

  1. Use zotero-browse skill to find the paper's attachment key
  2. Run with --backup first
  3. Add tags:

```bash

py -3 scripts/write_items.py --backup "E:\Refer.Hub\zotero.sqlite" \

--add-tag ZL42EGES "NAFLD" "FGF15" "biomarker"

```

  1. Confirm backup was created at E:\Refer.Hub\backups/

Important Notes

  • Backup is automatic with --backup — always use it
  • Tags use exact string matching; case-sensitive
  • Setting a field that already has a value will overwrite it
  • Notes are added as child items linked to the parent paper
  • New items get a random 8-char Zotero key
  • After writing, Zotero will sync changes on next launch

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 07:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

web-tools-guide

user_ec205dbb
MANDATORY before calling web_search, web_fetch, browser, or opencli. Contains required error-handling procedures (web_se
★ 61 📥 156,652
knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 955 📥 517,006
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 440 📥 104,565