Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

pubmed-verifier已发布的验证器

Agent Skill

pubmed-verifier 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,176

周安装

174

GitHub Stars

公开资料未说明

下载量

1,392
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pubmed-verifier(已发布的验证器)
来源仓库:https://github.com/docsor1212/pubmed-verifier
安装命令:
openclaw skills install pubmed-verifier
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pubmed-verifier

简介

pubmed-verifier 批量验证参考文献的真实性与准确性。

  • 对 AI 生成的引文进行五态判决:正确/部分匹配/无效等。
  • 提高科研写作中引用来源的可信度与合规性。
  • 仅作辅助判断,最终责任由使用者承担。安装时按仓库提供的命令执行,建议先在测试环境验证依赖、命令权限和文件改动范围。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
pubmed-verifier
description
PubMed citation verifier / PubMed文献引用验证 — detect AI-fabricated references with fuzzy matching / 模糊匹配检测AI编造文献
Keywords
PMID验证, PubMed引用核查, 文献审计, AI幻觉检测, 学术写作, 医学文献,
Triggers
验证PMID", "检查引用", "核查文献", "PMID检查", "引用验证",

PubMed Citation Verifier v2.1

Five-state batch verification of PMID citations via PubMed E-utilities API, with SQLite caching, CSV support, and Crossref DOI verification.

Verdict Types

IconVerdictMeaning
CorrectPMID exists AND matches claimed paper (title + author/journal)
⚠️MismatchPMID exists but points to a different paper (most common AI hallucination!)
🔶PartialSome metadata matches (e.g., author+journal match but title differs)
InvalidPMID not found in PubMed
UnknownInsufficient claimed metadata for cross-check

Quick Start

# Verify all PMIDs in a project directory (auto-parses citation context)
python3 scripts/verify_pmids.py --source /path/to/project --output report.html

# Verify specific PMIDs
python3 verify_pmids.py --pmids 31018962,22213727

# Verify with explicit claimed metadata (JSON)
python3 verify_pmids.py --claims '[{"pmid":"34078778","title":"JIA pathogenesis","authors":["Zaripova"],"journal":"Pediatr Rheumatol Online J","year":"2021"}]' --output report.html

# Verify with claims file (JSON or CSV)
python3 verify_pmids.py --claims-file claims.csv --suggest --output report.html

# Verify + DOI cross-check via Crossref
python3 verify_pmids.py --source /path/to/files --verify-doi --output report.html

# Full pipeline with all features
python3 verify_pmids.py --source /path/to/files --verify-doi --suggest --output report.html

What's New in v2.1

FeatureDescription
SQLite CacheVerified PMIDs cached locally at ~/.cache/pubmed-verifier/cache.db. 30-day default expiry. Re-runs on large projects take seconds instead of minutes.
CSV Claims--claims-file now accepts .csv files in addition to JSON. Auto-detects format. Semicolon or pipe-delimited authors supported.
Crossref DOI--verify-doi cross-references article DOIs via Crossref API for extra confidence.
Retry LogicAutomatic 3-retry with exponential backoff (1s→2s→4s) on transient API failures. Zero external dependencies.
Dual Fuzzy MatchingTitle matching uses word-level Jaccard overlap (≥50%) + SequenceMatcher (≥90%) as supplementary.

How It Works

1. Extract PMIDs + Parse Citation Context

Scans files for common PMID patterns (PMID: 12345678, PubMed URLs, etc.).

Automatically parses surrounding citation text to extract claimed metadata:

  • Author surnames (e.g., Ravelli A, Martini A["Ravelli", "Martini"])
  • Paper title (between author and journal)
  • Journal name (from <i>...</i> tags or position)
  • Publication year (20xx / 19xx)

Supported file types: .html, .md, .txt, .json, .htm

2. Fetch PubMed Metadata (with Cache)

Each PMID queried via PubMed esummary API. Results cached in SQLite for 30 days (configurable via --cache-days). Use --no-cache to force fresh queries.

Batch requests (50/call, 0.4s delay, 3-retry with exponential backoff).

3. Cross-Check: Claimed vs Actual

Dual-strategy fuzzy matching:

  • Primary: Word-level Jaccard overlap ≥ 50% (handles word reordering, abbreviation expansion)
  • Supplementary: SequenceMatcher ratio ≥ 90% (catches edge cases)
FieldMatch Logic
TitleWord overlap ≥ 50% OR SequenceMatcher ≥ 90%
Authors≥1 surname hit for single author claim; ≥2 for multiple
JournalContainment match (handles abbreviations)
YearExact match

Verdict determination:

  • title_match AND (author_match OR journal_match) → ✅ Correct
  • author_match AND journal_match AND NOT title_match → 🔶 Partial
  • Otherwise → ⚠️ Mismatch

4. Crossref DOI Verification (Optional, --verify-doi)

For articles with DOIs, queries Crossref API to cross-verify title/journal/year as an independent data source.

5. Auto-Suggest (Optional, --suggest)

For mismatches, searches PubMed using claimed metadata to suggest correct PMIDs (top 3 candidates).

6. Topic Relevance (Optional, --match-keywords)

⚠️ Note: This checks *topic relevance* only (via filename keywords), NOT PMID correctness. Auxiliary screening tool.

7. Report Output

FormatFlagUse case
HTML--output report.htmlVisual review with claimed vs actual comparison, verdict column
JSON--output report.jsonProgrammatic processing
Textdefault (no --output)Quick terminal review

Using --claims / --claims-file

When you have explicit claimed metadata (e.g., from AI-generated documents):

JSON array format:

[
  {
    "pmid": "34078778",
    "title": "Juvenile idiopathic arthritis: from pathogenesis to clinical practice",
    "authors": ["Zaripova LN", "Midgley A", "Beresford MW"],
    "journal": "Pediatr Rheumatol Online J",
    "year": "2021"
  }
]

CSV format (claims.csv):

pmid,title,authors,journal,year
34078778,JIA pathogenesis,Zaripova LN;Midgley A,Pediatr Rheumatol Online J,2021
31018962,FMF classification criteria,Lidar M|Lancet,,2014

CLI Reference

python3 scripts/verify_pmids.py [OPTIONS]

Options:
  --source PATH        File or directory to scan for PMIDs
  --pmids P1,P2,...    Comma-separated PMIDs to verify directly
  --claims JSON        JSON string with claimed metadata
  --claims-file FILE   JSON or CSV file with claimed metadata
  --verify-doi         Also verify DOIs via Crossref
  --suggest            Auto-suggest correct PMIDs for mismatches
  --match-keywords     Check topic relevance (auxiliary)
  --threshold FLOAT    Keyword match threshold (default: 0.2)
  --no-cache           Disable cache, always query API
  --cache-days N       Cache validity in days (default: 30)
  --output FILE        Output file (.json or .html)
  --format FORMAT      Output format: json|html|text (default: text)

Fixing Mismatched/Invalid PMIDs

  1. Check the report's "Suggested" column (if using --suggest)
  2. Use PubMed search to find the correct article:
   from scripts.verify_pmids import search_pubmed
   results = search_pubmed('Ravelli[au] AND juvenile idiopathic arthritis AND Lancet[jour]')
   for r in results: print(r["pmid"], r.get("title",""))
  1. Verify the replacement and update the source file

API Limits

  • No API key required (public E-utilities)
  • 3 requests/second without API key
  • Script enforces 0.4s delay between batches, 3-retry with backoff
  • Batch size: 50 PMIDs per request
  • Cache reduces repeated API calls significantly

Performance

ScenarioFirst runCached run
225 PMIDs (MedWiki-Rheum)~7 min~5 sec
Single PMID~2s~1.4s

Files

FilePurpose
scripts/verify_pmids.pyMain verification script (v2.1, 1058 lines, zero external dependencies)
references/api_examples.mdPubMed E-utilities API examples

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.88%
按下载量换算1,335

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills