# Send XY PubMed PDF Downloader to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "xy-pubmed-pdf-downloader",
    "name": "XY PubMed PDF Downloader",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/xuyuan0805/xy-pubmed-pdf-downloader",
    "canonicalUrl": "https://clawhub.ai/xuyuan0805/xy-pubmed-pdf-downloader",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/xy-pubmed-pdf-downloader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=xy-pubmed-pdf-downloader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/download_pmc_pdf.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/xy-pubmed-pdf-downloader"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/xy-pubmed-pdf-downloader",
    "downloadUrl": "https://openagent3.xyz/downloads/xy-pubmed-pdf-downloader",
    "agentUrl": "https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent.md"
  }
}
```
## Documentation

### XY PubMed PDF Downloader

下载 PubMed Central (PMC) 和 Europe PMC 开放获取论文的 PDF 文件。

### 功能

支持多种输入格式：PMC ID、PubMed URL、DOI
自动从 URL 中提取 PMC ID
DOI 自动转换为 PMC ID
批量下载支持
自动回退到 Europe PMC

### 单文件下载

python3 scripts/download_pmc_pdf.py <identifier>

支持的 identifier 格式：

PMC ID: PMC12345678 或 12345678
PubMed URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC12345678/
DOI: 10.3389/fcvm.2024.1368022

### 批量下载

创建文本文件 pmc_list.txt，每行一个 ID：

PMC12345678
PMC87654321
10.3389/fcvm.2024.1368022
https://pmc.ncbi.nlm.nih.gov/articles/PMC56789012/

运行：

python3 scripts/download_pmc_pdf.py --batch pmc_list.txt

### 选项

-o, --output <dir>: 指定输出目录 (默认: ./downloads)
-f, --filename <name>: 自定义文件名
--batch <file>: 从文件批量下载

### 示例

# 下载单个 PDF
python3 scripts/download_pmc_pdf.py PMC12867338

# 指定输出目录
python3 scripts/download_pmc_pdf.py PMC12867338 -o ./papers

# 自定义文件名
python3 scripts/download_pmc_pdf.py PMC12867338 -f coronary_prediction.pdf

# 批量下载
python3 scripts/download_pmc_pdf.py --batch id_list.txt -o ./batch_downloads

### 注意事项

仅支持开放获取 (Open Access) 的文章
如果 PMC 下载失败，会自动尝试 Europe PMC
批量下载时默认有 1 秒延迟，避免对服务器造成压力
需要 requests 库：pip install requests

### 输出

下载的 PDF 文件保存在指定目录，默认命名格式：

PMC{ID}.pdf (如 PMC12867338.pdf)

### 错误处理

404: 文章不存在或不是开放获取
DOI 转换失败: 该 DOI 没有对应的 PMC 记录
其他网络错误会显示详细错误信息
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: xuyuan0805
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/xy-pubmed-pdf-downloader)
- [Send to Agent page](https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent)
- [JSON manifest](https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/xy-pubmed-pdf-downloader/agent.md)
- [Download page](https://openagent3.xyz/downloads/xy-pubmed-pdf-downloader)