drug-citation-verifier

drug-citation-verifier is a skill for Claude Code, Codex from EthanYoQ/Skill-hub. It costs 89 tokens per session (1,883 once invoked), scanned A, original, MIT.

A citation checker for drug names in reports. It finds each drug mention, follows its nearby citation link, and checks whether the linked source actually names the drug.

In plain words
What is it for?
Use it to audit medical or pharmaceutical reports after they are written. It checks both generic and brand names against the cited source.
Why use it?
It prevents reports from presenting unsupported or invented drug claims as sourced facts. A missing drug mention in the cited source is treated as a serious failure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit medical or pharmaceutical reports after they are written. It checks both generic and brand names against the cited source.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/drug-citation-verifier
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.

Any agent
npx skills add EthanYoQ/Skill-hub --skill drug-citation-verifier
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

Made for: Claude Code, Codex.

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 drug-citation-verifier

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanyoq/skill-hub/drug-citation-verifier/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/drug-citation-verifier)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/drug-citation-verifier"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/drug-citation-verifier/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 drug-citation-verifier

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/drug-citation-verifier"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/drug-citation-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,883 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.00089 $0.01883
Opus 5.5 $0.00036 $0.00753
Sonnet 5.5 $0.00018 $0.00377
Haiku 4.5 $0.00009 $0.00188

Measured 2mo ago against content hash 7e755161f3cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drug-citation-verifier 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/__init__.py, scripts/_citation_match.py, scripts/_drug_extract.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

archives/user-installed-skills/drug-citation-verifier/1f2150dc9f32394f/drug-citation-verifier/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

drug-citation-verifier (A5')

替代作废的 nmpa-drug-registry-lookup(commit e7cfb83,违反 P0)。

Cite-or-Block 架构下的药名 cross-check 原子 skill。本 skill 是 A11 citation-anchor-resolver 之上的薄包装,专注一件事:

报告里写了药名 X + 引用了锚点 Y → 锚点 Y 指向的源里,真的有 X 吗?

源里有 = 通过。源里没 = critical violation,无论 X 是 2018 年的老药、 2026 年新批的药、还是 LLM 编造的药。


Iron Law (P0 守护)

绝不维护药品字典。

本 skill 不知道也不需要知道"哪些药存在"。它只做一件事: 报告里的药名 X + 引用锚点 Y → 验证 Y 指向的源里是否真的提到了 X。

源里没 → fail。无论 X 是 2018 年的老药、2026 年新批的药、或编造的药。

唯一允许的"内置规则"

  • 中文药名后缀(替尼/单抗/阿克/沙星/霉素/康唑/芬净/他汀/...)— 用于抽取疑似药名
  • 英文药名后缀(-tinib/-mab/-statin/...)
  • 上下文关键词(商品名/剂量/I 级推荐/...)— 用于关联药名与上下文

这些是"中文医药命名学",不是"已知药品列表"。任何符合后缀的字符串都 视为药提及,然后必须核对源才能判定真伪。

完整后缀规则表见 references/extraction-heuristics.md。

反例(违反 P0)

# WRONG — 任何具体药名出现在 .py 源代码 = P0 violation
KNOWN_DRUGS = {"洛拉替尼": "Lorlatinib", "克唑替尼": "Crizotinib", ...}
DRUG_REGISTRY = [...]
_known_drugs_fallback = {...}

这类代码 = 立刻停下来重设计。本 skill 的 watchdog 测试 (tests/test_drug_citation_verifier.py::test_no_hardcoded_drug_dict_in_source) 会扫描 scripts/*.py 拒绝任何具体药名出现。


何时使用

场景 使用本 skill 吗?
报告内容生成完毕,需要 cross-check 药名是否真有出处 ✅
Step 8 审计阶段,逐段 scan critical violation ✅
不知道某药是否存在,想"查一下" ❌(本 skill 不查表)
抓指南后想入药品库 ❌(本架构不入库,只存原文)

核心 API

verify_drug_mentions_in_text(text, sources_dir) -> dict

from pathlib import Path
import sys

# 1) 加载 A11(citation-anchor-resolver)
A11 = Path.home() / ".claude" / "skills" / "citation-anchor-resolver" / "scripts"
sys.path.insert(0, str(A11))

# 2) 加载本 skill
A5 = Path.home() / ".claude" / "skills" / "drug-citation-verifier" / "scripts"
sys.path.insert(0, str(A5))

from verifier import verify_drug_mentions_in_text

text = """
ALK 阳性 NSCLC 一线推荐洛拉替尼(商品名:博瑞纳)。
[guideline:CSCO-2024-NSCLC:§5.5.2]
"""
sources_dir = Path(".cache/lung-cancer-alk-2026/sources")

result = verify_drug_mentions_in_text(text, sources_dir)

# {
#   "ok": True / False,
#   "drug_mentions": [{
#       "text": "洛拉替尼",
#       "brand_in_context": "商品名:博瑞纳",
#       "citation": "[guideline:CSCO-2024-NSCLC:§5.5.2]",
#       "verified": True,
#       "missing_in_source": [],
#       "reason": "all keywords matched",
#       "severity": "none",
#   }, ...],
#   "violation_severity": "none" | "warning" | "critical",
# }

Read the full file on GitHub · 176 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 176 lines · 89 tokens per session scan A 7e755161f3cd

Subscribe to this mod's changes

drug-citation-verifier is a skill published in the GitHub repository EthanYoQ/Skill-hub (12 stars, last pushed 2d ago), licensed MIT. It adds 89 tokens to every session and 1,883 once invoked, about $0.0004 per session on Opus 5.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-09-13.

Related

drug-citation-verifier compared with skills from other repositories

drug-citation-verifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drug-citation-verifierEthanYoQ/Skill-hubSkill122d agoMITA89Claude Code, Codex
autoresearchYSAA1/harness-workflowSkill31mo agoMITA113Claude Code
arxiv-researchervignesh2027/Claude-Agentic-Skills2.0-versionSkill43mo agoMITA71Claude Code, Codex
biotech-analystvignesh2027/Claude-Agentic-Skills2.0-versionSkill43mo agoMITA73Claude Code, Codex
climate-tech-analystvignesh2027/Claude-Agentic-Skills2.0-versionSkill43mo agoMITA83Claude Code, Codex
latex-writerinbharatai/claude-skillsSkill448mo agoMITA28Claude Code, Codex
literature-reviewerinbharatai/claude-skillsSkill448mo agoMITA25Claude Code, Codex