Xpersona
A

arXiv to Zotero

CLAWHUB · Unverified

Find recent arXiv papers, skip what is already in Zotero, and save new imports with parent-item tagging and PDF attachments into a dedicated collection.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171ym8qhgkk7qpmpjhtb4200n84h7ha:arxiv-to-zotero
  1. Install using `clawhub skill install s171ym8qhgkk7qpmpjhtb4200n84h7ha:arxiv-to-zotero` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/cnicpyx/arxiv-to-zotero before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-cnicpyx-arxiv-to-zotero/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

53,512 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: arxiv-to-zotero
description: Find recent arXiv papers, skip what is already in Zotero, and save new imports with parent-item tagging and PDF attachments into a dedicated collection.
version: 1.0.2
user-invocable: true
always: false
homepage: https://github.com/ucaspyx/arxiv-to-zotero
metadata: {"openclaw":{"emoji":"📚","skillKey":"arxiv-to-zotero","requires":{"env":["ZOTERO_API_KEY"],"bins":["python3","curl"]},"primaryEnv":"ZOTERO_API_KEY","compatibilities":["openclaw"]}}
---
# arXiv to Zotero

Use this skill when the user wants **recent arXiv papers found and written into Zotero directly**.

## Best-fit use cases

- find papers by topic + time range
- skip papers already in Zotero
- attach PDFs when possible
- keep imports organized with a fixed tag and a dedicated collection

## Setup

On first use, if `~/.openclaw/config/skills/arxiv-to-zotero.setup.json` is missing, read `{baseDir}/setup.md`, collect the required Zotero values, tell the user to put `ZOTERO_API_KEY` in `~/.openclaw/.env`, create the setup-state file, and resume the original request exactly once.

## Flow

1. If the user has not already provided them, ask for:
   - topic keywords or phrases
   - a time range
2. Do not ask the user to write an arXiv query.
3. If the user gives keywords in Chinese, translate them into concise, technically accurate English search phrases before building the arXiv query.
4. Build **one** valid arXiv API `search_query` yourself.
5. Run the script once:

```bash
python3 {baseDir}/scripts/main.py --config {baseDir}/config.json --query '<arXiv search_query>'
```

6. After the script finishes, use `result.user_message` as the final user-facing notification.

## Query rules

- Use official arXiv fielded search syntax.
- The final arXiv query must be written in English.
- Use double quotes for multi-word phrases.
- Combine alternative keywords with `OR` when appropriate.
- Add the requested time range with `submittedDate:[YYYYMMDDTTTT TO YYYYMMDDTTTT]`.
- Pass the query as normal text. Do not URL-encode it yourself.

## Guarantees

- Existing Zotero items are not modified.
- New parent items are tagged with `arxiv-to-zotero` by default.
- New imports are placed into the `arxiv-to-zotero` collection by default. If that collection does not exist, the script creates it.
- If Zotero file upload hits HTTP 413, the script falls back to `linked_url` for that paper and keeps later attachments in link mode for the same run.

## When not to use

Do not use this skill for discussion-only requests, browsing help, or any task that should not write to Zotero.

## Network / Privacy

- Contacts: arXiv Atom API, arXiv PDF URLs, Zotero Web API
- Secret used: `ZOTERO_API_KEY`
- Writes: new Zotero parent items and child attachments only
- Does not modify existing Zotero items

## Natural-language trigger examples

- 帮我找近三年来 mamba 或者多模态用于股票预测的 arXiv 论文,并导入 Zotero。
- 帮我查最近两年 test-time adaptation 或 active search 用于组合优化的 arXiv 论文,去重后导入 Zotero。
- 帮我找近半年的 graph neural ne

README.md

# arxiv-to-zotero

[中文说明 / Chinese version](README.zh-CN.md)

Find recent arXiv papers, skip what is already in Zotero, and save new imports into Zotero with PDF attachments, a fixed `arxiv-to-zotero` tag on parent items, and a dedicated `arxiv-to-zotero` collection.

## Why this skill is useful

This skill is built for a narrow workflow that many research users repeat all the time:

- search recent papers on arXiv
- deduplicate against Zotero before writing
- attach PDFs automatically when possible
- keep imports organized with a fixed tag and a dedicated collection
- avoid touching existing Zotero items

In one line: **find recent arXiv papers and push only the genuinely new ones into a clean Zotero inbox.**

## What it does

The agent will:

1. collect topic keywords or phrases and a time range
2. build one valid arXiv `search_query` internally
3. search arXiv for recent papers
4. deduplicate against Zotero
5. import only new papers
6. tag new parent items with `arxiv-to-zotero`
7. place imports into the `arxiv-to-zotero` collection, creating it automatically if needed
8. return one final summary

## Typical requests

- Find papers from the last three years on Mamba for stock prediction and import only the new ones into Zotero.
- Search recent papers on multimodal methods for stock prediction, deduplicate them against Zotero, and save the rest.
- Find recent arXiv papers on test-time adaptation and active search, then import only the ones I do not already have in Zotero.

## Runtime requirements

- Python 3.10+
- `curl`
- Zotero Web API access via `ZOTERO_API_KEY`
- OpenClaw skill runtime

## First run

If the setup-state file is missing, the skill will:

1. read [`setup.md`](setup.md)
2. collect the required Zotero settings
3. write non-secret updates back into `config.json`
4. create the setup-state file
5. resume the original request once

## How the agent should use this skill

The intended interaction pattern is:

1. collect topic keywords or phrases
2. collect a time range
3. translate Chinese keywords into concise technical English when needed
4. build one valid English arXiv `search_query`
5. call the script once

Example:

```bash
python3 scripts/main.py --config ./config.json --query '(all:"Mamba" OR all:"state space model") AND (all:"stock prediction" OR all:"financial prediction" OR all:"market prediction" OR all:"price forecasting") AND submittedDate:[202304010000 TO 202604092359]'
```

## Key behavior

### Discovery source

This skill uses **arXiv only** as the paper discovery source.

### Deduplication

The script builds a temporary Zotero cache from three scopes:

- query-derived Zotero quick-search terms
- the fixed skill tag `arxiv-to-zotero`
- the dedicated target collection when it already exists

It then checks duplicates using:

- normalized exact title matching
- strict normalized title-prefix matching
- arXiv ID matching when available

Existing Zotero items are skipped and never modified.

### PDF attachments

For each

_meta.json

{
  "ownerId": "kn77eecmcbf556xzwj5vk5w3pn84hagd",
  "slug": "arxiv-to-zotero",
  "version": "1.0.2",
  "publishedAt": 1776410996089
}

README.zh-CN.md

# arxiv-to-zotero

[English version / 英文版](README.md)

这是一个用于 **查找近期 arXiv 论文并把真正的新论文导入 Zotero** 的 OpenClaw skill。它会自动去重、尽量附加 PDF,并把新建父条目统一打上 `arxiv-to-zotero` 标签,放进 `arxiv-to-zotero` 分类中。

## 为什么这个 skill 值得装

它针对的是一个非常常见、但反复做很烦的科研流程:

- 在 arXiv 上找新论文
- 写入 Zotero 前先去重
- 尽量自动附加 PDF
- 统一标签和分类,保持 Zotero 干净
- 不去碰已有的 Zotero 条目

一句话概括:**把“找 arXiv 新论文并整理进 Zotero”这件事,压缩成一次稳定的自动流程。**

## 它会做什么

agent 会:

1. 收集主题关键词或短语,以及时间范围
2. 在内部构造一条合法的 arXiv `search_query`
3. 在 arXiv 上检索近期论文
4. 与 Zotero 现有条目去重
5. 只导入新的论文
6. 给新建父条目统一打上 `arxiv-to-zotero` 标签
7. 将新导入内容放入 `arxiv-to-zotero` 分类;若不存在则自动新建
8. 返回一次最终总结

## 典型请求示例

- 帮我找近三年来用 Mamba 做股票预测的论文,并把新的导入 Zotero。
- 搜索近几年关于多模态用于股票预测的论文,和 Zotero 去重后,只导入新的。
- 帮我查近期关于 test-time adaptation 和 active search 的 arXiv 论文,只保存我 Zotero 里还没有的条目。

## 运行要求

- Python 3.10+
- `curl`
- 通过 `ZOTERO_API_KEY` 访问 Zotero Web API
- OpenClaw skill 运行环境

## 首次运行

如果 setup-state 文件不存在,skill 会:

1. 读取 [`setup.md`](setup.md)
2. 收集所需的 Zotero 配置
3. 将非敏感配置写回 `config.json`
4. 创建 setup-state 文件
5. 精确恢复并继续原始请求一次

## agent 应该如何使用这个 skill

推荐的交互方式是:

1. 收集主题关键词或短语
2. 收集时间范围
3. 如用户给出中文关键词,先翻译成简洁、准确的英文技术短语
4. 在内部构造一条合法的英文 arXiv `search_query`
5. 只调用脚本一次

示例:

```bash
python3 scripts/main.py --config ./config.json --query '(all:"Mamba" OR all:"state space model") AND (all:"stock prediction" OR all:"financial prediction" OR all:"market prediction" OR all:"price forecasting") AND submittedDate:[202304010000 TO 202604092359]'
```

## 关键行为说明

### 论文来源

这个 skill **只使用 arXiv** 作为论文发现来源。

### 去重策略

脚本会从三类范围预热 Zotero 缓存:

- 由查询语句拆出的 Zotero quick-search 词
- 固定技能标签 `arxiv-to-zotero`
- 已存在时的目标分类 `arxiv-to-zotero`

随后基于以下规则判断是否已存在:

- 标准化标题的精确匹配
- 标准化标题前缀的严格匹配
- 在可用时使用 arXiv ID 匹配

已有 Zotero 条目会被跳过,且不会被修改。

### PDF 附件处理

对每个新导入的父条目,脚本会根据论文 URL 推导 PDF 候选链接。

它会优先尝试把 PDF 作为真正的 Zotero 文件附件上传。如果 Zotero 返回 `413 Request Entity Too Large`,脚本会删除未完成上传,改为 `linked_url` 方式附加,并在本轮后续条目中继续使用链接模式。

### 组织规则

默认情况下,脚本会按下面的固定规则整理导入结果:

- 父条目统一打上 `arxiv-to-zotero` 标签
- 子 PDF 附件不打标签
- 父条目放入 `arxiv-to-zotero` 分类
- 如果该分类不存在,脚本会自动创建

### 导入上限

当新建 Zotero 父条目数量达到 `import_policy.max_new_items` 后,脚本会停止继续创建。默认上限是每轮 50 篇。

## 固定运行路径

- 默认非敏感配置:skill 根目录下的 `./config.json`
- setup 状态文件:`~/.openclaw/config/skills/arxiv-to-zotero.setup.json`
- 密钥 / 环境变量:`~/.openclaw/.env`

## 仓库结构

- [`SKILL.md`](SKILL.md):skill 定义与运行说明
- [`setup.md`](setup.md):首次运行配置说明
- [`SECURITY.md`](SECURITY.md):安全边界与风险说明
- [`scripts/main.py`](scripts/main.py):主脚本实现
- [`config.json`](config.json):默认非敏感配置

## 安全与隐私

这个 skill 会访问:

- arXiv Atom API
- arXiv PDF 链接
- Zotero Web API

这个 skill:

- 创建新的 Zotero 条目和附件
- 不修改已有的 Zotero 条目
- 使用 `ZOTERO_API_KEY` 访问 Zotero API

更多细节请见 [`SECURITY.md`](SECURITY.md)。

## 备注

- 这个脚本只适用于一次直接程序调用。
- 不要使用 `&&`、`;`、管道或串联 `cd` 等 shell 组合方式。
- 查询参数的 URL 编码由脚本自身处理,不要手动预编码空格、引号或括号。

SECURITY.md

# Security Checklist

This skill is designed for one narrow workflow only:

**one arXiv query → arXiv metadata fetch → Zotero cache warm-up → duplicate check → Zotero import → PDF upload attempt → `linked_url` fallback only on HTTP 413 → one final summary**

## External Network Access

This package may contact only:

- **arXiv Atom API** for paper discovery
- **arXiv PDF URLs** for direct PDF download with `curl`
- **Zotero Web API** for duplicate checks, collection lookup/creation, item creation, PDF attachment upload, and fallback link attachment creation

## Secrets and Credentials

Expected runtime secret:

- `ZOTERO_API_KEY`

Rules:

- do not hard-code secrets into the package
- provide secrets through `~/.openclaw/.env` or the current process environment
- do not place real API keys in `config.json`
- do not print secrets in normal output or logs

## Local Files Read

The skill may read:

- the config path passed by `--config`, or the bundled `config.json` in the skill root directory
- `~/.openclaw/config/skills/arxiv-to-zotero.setup.json`
- `~/.openclaw/.env`
- bundled docs such as `setup.md`, `README.md`, and `SKILL.md`

## Local Files Written

The skill may write:

- `~/.openclaw/config/skills/arxiv-to-zotero.setup.json`
- the optional JSON run summary path configured by `run.export_summary_path`
- temporary PDF files in the system temp directory during upload attempts

## Explicit Behavior Boundaries

- existing Zotero items are not modified
- newly created parent items receive the fixed default tag unless the user changes config
- newly created PDF child attachments are left untagged
- new imports are assigned to the configured target collection
- if `zotero.auto_create_collection = true` and the target collection does not exist, the script creates it through the Zotero API

## Explicit Non-Goals

- no access to unrelated local files or credentials
- no writing to arbitrary Zotero collections unless configured
- no mutation of unrelated Zotero items

Sponsored

Ads related to arXiv to Zotero and adjacent AI workflows.