update-pubmed-links

update-pubmed-links is a command for Claude Code from samqin123/Claude_skill_pool. It costs 15 tokens per session (957 once invoked), scanned A, original, Apache-2.0.

A command that finds PubMed, DOI, and full-text links for references in Reference_list.md. PubMed is a database of biomedical and health research papers.

In plain words
What is it for?
Use it to update a selected range of references, force fresh searches, add verified links, and report how many entries were updated.
Why use it?
It removes the manual work of searching for each paper and checking whether the result matches its author, title, journal, and year. It can also detect whether full text is available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to update a selected range of references, force fresh searches, add verified links, and report how many entries were updated.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/samqin123/claude_skill_pool/update-pubmed-links
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/samqin123/Claude_skill_pool

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-pubmed-links

README.md
[![agentmods](https://agentmods.dev/badge/commands/samqin123/claude_skill_pool/update-pubmed-links/github.svg)](https://agentmods.dev/commands/samqin123/claude_skill_pool/update-pubmed-links)
Your own site
<a href="https://agentmods.dev/commands/samqin123/claude_skill_pool/update-pubmed-links"><img src="https://agentmods.dev/badge/commands/samqin123/claude_skill_pool/update-pubmed-links/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-pubmed-links

Your own site · 80×15
<a href="https://agentmods.dev/commands/samqin123/claude_skill_pool/update-pubmed-links"><img src="https://agentmods.dev/badge/commands/samqin123/claude_skill_pool/update-pubmed-links.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 957 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00957
Opus 5 $0.00008 $0.00478
Sonnet 5 $0.00003 $0.00191
Haiku 4.5 $0.00002 $0.00096

Measured 9d ago against content hash 70173793a23f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

update-pubmed-links scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills.claude/ref-pubmed-linker/.claude/commands/update-pubmed-links.md · 109 lines

What it actually says

更新 PubMed 文献链接

这个命令用于查询和更新 Reference_list.md 中文献的 PubMed 链接、DOI 和全文下载链接。

参数说明

  • $ARGUMENTS - 可选参数
    • start - 起始文献序号(默认从 1 开始)
    • end - 结束文献序号(默认到最后一篇)
    • --force - 强制重新查询已更新的文献

执行步骤

1. 环境检查

首先使用 pubmed_system_check 验证 MCP 工具可用性。

2. 读取文献列表

使用 Read 工具读取 Reference_list.md,解析所有文献引用。

3. 解析文献信息

对每篇文献提取:

  • 序号
  • 第一作者姓氏
  • 题目关键词(2-3个核心词)
  • 期刊名
  • 发表年份

4. 查询 PubMed

使用以下搜索策略(按优先级):

策略 A: 作者姓氏 + 题目关键词

pubmed_search(
    query=f"{first_author} AND {keyword1} AND {keyword2}",
    max_results=5
)

策略 B: 期刊名 + 年份 + 关键词

pubmed_search(
    query=f"{journal}[ta] AND {year}[dp] AND {keyword}",
    max_results=5
)

5. 验证匹配结果

检查返回结果是否匹配:

  • PMID 存在
  • 作者姓名匹配
  • 题目相似度 >80%
  • 年份一致
  • 期刊名匹配

6. 获取详细信息

对匹配的文献使用 pubmed_get_details 获取:

  • PMID
  • DOI
  • 全文链接
  • 开放获取状态

7. 检测全文可用性

使用 pubmed_detect_fulltext 检查是否可下载全文。

8. 更新文档

在原始引用后添加链接信息:

[序号] 作者. 题目[J]. 期刊名, 年份, 卷(期): 页码.
- **PMID**: {PMID}
- **PubMed**: https://pubmed.ncbi.nlm.nih.gov/{PMID}/
- **DOI**: https://doi.org/{DOI}
- **Fulltext**: {状态/链接}

9. 批量处理优化

  • 每处理 5 篇文献后报告进度
  • 使用 pubmed_cache_info 检查缓存状态
  • 如遇连续失败,暂停并询问是否继续

10. 完成报告

输出处理结果摘要:

  • 总处理文献数
  • 成功更新数
  • 未找到匹配数
  • 需要人工确认数

使用示例

/update-pubmed-links              # 处理所有文献
/update-pubmed-links 1 10         # 只处理文献 1-10
/update-pubmed-links 50 100       # 处理文献 50-100
/update-pubmed-links --force      # 强制重新查询所有文献

注意事项

  1. 不修改原始引用 - 仅在引用后添加链接信息
  2. 标注不确定项 - 对无法确认的匹配添加 ⚠️ 标记
  3. 合理超时 - 单次查询超时 30 秒
  4. 保持原格式 - 维持 markdown 格式一致性
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 109 lines · 0 tokens per session scan A 70173793a23f

Subscribe to this mod's changes

update-pubmed-links is a command published in the GitHub repository samqin123/Claude_skill_pool (2 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 957 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.