pubmed-search

pubmed-search is a skill for Claude Code, Codex from aizech/clinical-skills. It costs 48 tokens per session (2,455 once invoked), scanned A, original, MIT.

A literature-search workflow for radiology that uses PubMed, a public database of biomedical research papers, to find relevant evidence.

In plain words
What is it for?
Use it to search PubMed, retrieve article details, apply date filters, and find related research for radiology work.
Why use it?
It helps replace broad or unsupported searching with searches for studies, guidelines, reviews, and related papers on imaging findings.

Skill for Claude CodeCodex

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

Good fit Use it to search PubMed, retrieve article details, apply date filters, and find related research for radiology work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aizech/clinical-skills/pubmed-search
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 aizech/clinical-skills --skill pubmed-search
Clone the repo
git clone --depth 1 https://github.com/aizech/clinical-skills

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 pubmed-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/aizech/clinical-skills/pubmed-search/github.svg)](https://agentmods.dev/skills/aizech/clinical-skills/pubmed-search)
Your own site
<a href="https://agentmods.dev/skills/aizech/clinical-skills/pubmed-search"><img src="https://agentmods.dev/badge/skills/aizech/clinical-skills/pubmed-search/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 pubmed-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/aizech/clinical-skills/pubmed-search"><img src="https://agentmods.dev/badge/skills/aizech/clinical-skills/pubmed-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00048 $0.02455
Opus 5.5 $0.00019 $0.00982
Sonnet 5.5 $0.00010 $0.00491
Haiku 4.5 $0.00005 $0.00246

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

Security

Grade A, and why

pubmed-search scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

from urllib.parse import urlencode
skills/platform-integration/pubmed-search/SKILL.md · 356 lines

How it starts

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

PubMed Search for Radiology

You are a medical literature search expert. Your role is to help users find relevant, high-quality research for radiology applications.

PubMed API Overview

NCBI Entrez API

Service Endpoint Purpose
ESearch /esearch.fcgi Search for article IDs
ESummary /esummary.fcgi Get article summaries
EFetch /efetch.fcgi Get full article details
ELink /elink.fcgi Find related articles
EGQuery /egquery.fcgi Global search

Base URL

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/

Search Construction

Basic Search

import requests
from urllib.parse import urlencode

BASE_URL = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"

def pubmed_search(query, max_results=20, date_filter=None):
    """
    Search PubMed for articles.
    
    Args:
        query: Search terms (use [MeSH] for controlled vocabulary)
        max_results: Maximum number of results
        date_filter: Optional date restriction (e.g., "2020:2026")
    """
    params = {
        "db": "pubmed",
        "term": query,
        "retmax": max_results,
        "retmode": "json",
        "sort": "relevance"
    }
    
    if date_filter:
        params["datetype"] = "pdat"
        params["reldate"] = date_filter
    
    response = requests.get(f"{BASE_URL}/esearch.fcgi", params=params)
    return response.json()

Search Query Syntax

Operator Example Description
AND "lung nodule" AND "AI" Both terms required
OR "MRI" OR "CT" Either term
NOT "COVID" NOT "pneumonia" Exclude term
[MeSH] "Neoplasm"[MeSH] MeSH controlled vocabulary
[tiab] "cancer"[tiab] Title/abstract only
[ti] "lung cancer"[ti] Title only
[au] "Smith J"[au] Author search

Radiology-Specific Searches

Imaging Modality Studies

# CT Studies
def search_ct_studies(topic, years=5):
    return pubmed_search(
        f"({topic}) AND (CT[tiab] OR 'computed tomography'[tiab])",
        date_filter=f"{years}[dp]"
    )

# MRI Studies  
def search_mri_studies(topic, years=5):
    return pubmed_search(
        f"({topic}) AND (MRI[tiab] OR 'magnetic resonance'[tiab])",
        date_filter=f"{years}[dp]"
    )

# X-ray Studies
def search_xray_studies(topic, years=5):
    return pubmed_search(
        f"({topic}) AND (X-ray[tiab] OR 'radiograph'[tiab])",
        date_filter=f"{years}[dp]"
    )

# Ultrasound
def search_ultrasound_studies(topic, years=5):
    return pubmed_search(
        f"({topic}) AND (ultrasound[tiab] OR 'sonography'[tiab])",
        date_filter=f"{years}[dp]"
    )

Read the full file on GitHub · 356 lines

Files

What ships with it

3 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. 3mo ago First seen · 356 lines · 48 tokens per session scan A 87ccc8530339

Subscribe to this mod's changes

pubmed-search is a skill published in the GitHub repository aizech/clinical-skills (7 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 2,455 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pubmed-search compared with skills from other repositories

pubmed-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pubmed-searchaizech/clinical-skillsSkill75mo agoMITA48Claude Code, Codex
standardize-health-datathetahealth/mirobodySkill1.9kyesterdayApache-2.0A133Claude Code
mirobodythetahealth/mirobodySkill1.9kyesterdayApache-2.0A135Claude Code
flux-analyzeraiming-lab/AutoResearchClawSkill15k3mo agoMITA44Claude Code, Codex
fba-simulatoraiming-lab/AutoResearchClawSkill15k3mo agoMITA69Claude Code, Codex
gsmm-validatoraiming-lab/AutoResearchClawSkill15k3mo agoMITA52Claude Code, Codex
gsmm-builderaiming-lab/AutoResearchClawSkill15k3mo agoMITA45Claude Code, Codex