pp-arxiv
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesearXiv — Printing Press CLI
arXiv — Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
arxiv-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install arxiv --cli-only - Verify:
arxiv-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
npxbash
go install github.com/mvanhorn/printing-press-library/library/other/arxiv/cmd/arxiv-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATH本技能基于二进制文件运行。在调用本技能的任何命令前,必须确认CLI已安装。如果未安装,请先执行以下步骤:
arxiv-pp-cli- 通过Printing Press安装器安装:
bash
npx -y @mvanhorn/printing-press install arxiv --cli-only - 验证安装:
arxiv-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果安装失败(无Node环境、离线等情况),可直接通过Go安装(要求Go 1.26.3或更高版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/other/arxiv/cmd/arxiv-pp-cli@latest如果安装后执行提示“command not found”,说明安装程序未将二进制文件加入。请在验证成功前不要执行技能相关命令。
--version$PATHWhen Not to Use This CLI
何时不应使用此CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿在需要创建、更新、删除、发布、评论、点赞、邀请、订购、发送消息、预订、购买或更改远程状态的请求中使用此CLI。本CLI仅提供用于查看、导出、同步和分析的只读命令。
Unique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
以下功能是其他同类型API工具所不具备的:
Research discovery
研究发现
- — Search arXiv with documented query expressions and agent-friendly output controls.
query - — Fetch latest AI/research papers by category using submitted-date sorting and bounded result counts.
query - — Fetch exact papers by arXiv ID or versioned arXiv ID.
query
- — 使用文档化的查询表达式搜索arXiv,并支持适配Agent的输出控制。
query - — 按提交日期排序,按分类获取最新AI/研究论文,并可限制结果数量。
query - — 通过arXiv ID或带版本号的arXiv ID获取指定论文。
query
Command Reference
命令参考
query — Manage query
- — Search arXiv papers or fetch recent papers by category.
arxiv-pp-cli query --search-query 'cat:cs.AI' --max-results 5 - — Fetch exact papers by arXiv ID or versioned arXiv ID.
arxiv-pp-cli query --id-list 1706.03762 --max-results 1
query — 管理查询操作
- — 搜索arXiv论文或按分类获取近期论文。
arxiv-pp-cli query --search-query 'cat:cs.AI' --max-results 5 - — 通过arXiv ID或带版本号的arXiv ID获取指定论文。
arxiv-pp-cli query --id-list 1706.03762 --max-results 1
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
arxiv-pp-cli which "<capability in your own words>"which02--help当你知道要执行的操作但不确定对应命令时,可直接询问CLI:
bash
arxiv-pp-cli which "<用你自己的语言描述所需功能>"which02--helpAuth Setup
认证设置
No authentication required.
Run to verify setup.
arxiv-pp-cli doctor无需认证。
执行验证配置是否正确。
arxiv-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbasharxiv-pp-cli query --search-query 'cat:cs.AI' --max-results 5 --agent --select entries.id,entries.title -
Previewable —shows the request without sending
--dry-run -
Live-first — arXiv search is most useful against the live API. Generic sync/local-store commands are present from the Printing Press scaffold, but this CLI should be treated as live-query-first because arXivrequires caller-supplied search or ID parameters.
/api/query -
Non-interactive — never prompts, every input is a flag
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任意命令后添加参数。该参数等价于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — 标准输出为JSON格式,错误信息输出到标准错误流
-
可过滤 —参数保留指定字段子集。使用点路径可访问嵌套结构;数组会遍历每个元素。这在处理 verbose API时对缩小上下文范围至关重要:
--selectbasharxiv-pp-cli query --search-query 'cat:cs.AI' --max-results 5 --agent --select entries.id,entries.title -
可预览 —参数会显示请求内容但不实际发送
--dry-run -
优先实时查询 — arXiv搜索对实时API的依赖度很高。虽然Printing Press框架提供了通用的同步/本地存储命令,但由于arXiv需要调用者提供搜索或ID参数,因此本CLI应优先作为实时查询工具使用。
/api/query -
非交互式 — 从不弹出提示,所有输入均通过标志参数提供
-
只读 — 请勿使用此CLI执行创建、更新、删除、发布、评论、点赞、邀请、订购、发送或其他修改状态的请求
Response envelope
响应包结构
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
.results.meta.sourceN results (live)从本地存储或API读取数据的命令会将输出包裹在溯源包中:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}解析字段获取数据,通过判断数据来自实时API还是本地存储。仅当标准输出为终端时,才会在标准错误流中打印人类可读的摘要——管道/Agent消费端会在标准输出中获取纯JSON数据。
.results.meta.sourceN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
arxiv-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
arxiv-pp-cli feedback --stdin < notes.txt
arxiv-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.arxiv-pp-cli/feedback.jsonlARXIV_FEEDBACK_ENDPOINT--sendARXIV_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或Agent)发现此CLI存在问题时,可记录反馈:
arxiv-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
arxiv-pp-cli feedback --stdin < notes.txt
arxiv-pp-cli feedback list --json --limit 10反馈条目会存储在本地文件中。仅当设置了且传递了参数或设置时,反馈才会被POST到指定端点。默认行为仅存储在本地。
~/.arxiv-pp-cli/feedback.jsonlARXIV_FEEDBACK_ENDPOINT--sendARXIV_FEEDBACK_AUTO_SEND=true请记录让你感到意外的内容,而非正式的bug报告。简短、具体、单条记录:这样的反馈价值更高。
Output Delivery
输出传递
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
所有命令均支持参数。输出会除了(或替代)标准输出外,发送到指定的输出接收器,以便Agent无需手动管道即可路由命令结果。支持三种输出接收器:
--deliver <sink>| 输出接收器 | 作用 |
|---|---|
| 默认值;仅写入标准输出 |
| 原子性地将输出写入 |
| 将输出正文POST到指定URL(当使用 |
不支持的协议会返回结构化错误,并列出支持的类型。Webhook请求失败时会返回非零退出码,并在标准错误流中记录URL和HTTP状态码。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
arxiv-pp-cli profile save briefing --json
arxiv-pp-cli --profile briefing query --search-query 'cat:cs.AI' --max-results 5
arxiv-pp-cli profile list --json
arxiv-pp-cli profile show briefing
arxiv-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的标志值,可在多次调用中复用。适用于定时Agent每次运行都使用相同配置调用同一命令的场景——即HeyGen的“Beacon”模式。
arxiv-pp-cli profile save briefing --json
arxiv-pp-cli --profile briefing query --search-query 'cat:cs.AI' --max-results 5
arxiv-pp-cli profile list --json
arxiv-pp-cli profile show briefing
arxiv-pp-cli profile delete briefing --yes显式传递的标志参数优先级高于配置文件中的值;配置文件中的值优先级高于默认值。会在下列出所有可用配置文件,以便Agent在运行时自动发现。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 退出码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 5 | API错误(上游问题) |
| 7 | 请求受限(请等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputarxiv-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析的规则:
$ARGUMENTS- 为空、或
help→ 显示--help输出arxiv-pp-cli --help - 以开头 → 如果结尾为
install→ 执行MCP安装;否则 → 参考上方前提条件中的安装步骤mcp - 其他情况 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add arxiv-pp-mcp -- arxiv-pp-mcpVerify:
claude mcp list从本CLI的公开库条目或预构建版本中安装MCP二进制文件,然后注册:
bash
claude mcp add arxiv-pp-mcp -- arxiv-pp-mcp验证安装:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which arxiv-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbasharxiv-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
arxiv-pp-cli <command> --help
- 检查是否已安装:如果未找到,提供安装选项(参考顶部前提条件中的步骤)。
which arxiv-pp-cli - 将用户查询与上方“独特功能”和“命令参考”中的最佳命令匹配。
- 添加参数执行命令:
--agentbasharxiv-pp-cli <command> [subcommand] [args] --agent - 如果存在歧义,查看子命令帮助:。
arxiv-pp-cli <command> --help