pubmed
Skill by langchain-samples
Gives an AI assistant instructions for searching PubMed and PubMed Central and fetching records, abstracts and full text. Written for researchers and assistants doing biomedical literature work.
Install pubmed
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-samples/deep-life-sci /tmp/deep-life-sci && mkdir -p ~/.claude/skills && cp -r /tmp/deep-life-sci/deep_life_sci/skills/pubmed ~/.claude/skills/pubmedRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-samples/deep-life-sci /tmp/deep-life-sci && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/deep-life-sci/deep_life_sci/skills/pubmed ~/.gemini/antigravity-cli/skills/pubmedAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a set of instructions for using PubMed and PubMed Central tools. It explains how to probe a search with a zero-record count, how to use field tags such as [tiab], [mh] and [pt], and how to check query translations and warnings before trusting results. It also covers fetching abstracts in one batch and flagging retracted papers.
It describes a staged approach to full text. The assistant triages papers with pmcLocate, reads one section at a time with fetchFullText, and uses figure captions before staging images with fetchFigures. Supplementary spreadsheets are read with Python and pandas. It is aimed at researchers and assistants who run literature searches and need to check sources carefully.
Written from the project's SKILL.md and checked against it.
What it can do
- pubmedSearchSearches PubMed and returns counts, query translations, warnings and matching records.
- fetchAbstractsFetches abstracts in one batch, with structured section labels and retraction status.
- pmcLocateLists sections, figures, tables and supplementary files for PMC papers, with full captions.
- fetchFullTextRetrieves full text for selected PMC papers, optionally limited to named sections.
- fetchFiguresStages figure images into the sandbox and returns file paths for image analysis.
- fetchSupplementaryStages supplementary files, such as spreadsheets, into the sandbox for Python analysis.
What you need
- Access to the PubMed and PMC tools described in the skill
- Python 3 with pandas for reading supplementary spreadsheets
- A sandbox with writeFile and execute tools
- Subagents full-text-analyst and figure-analyst for delegated reading
Try asking
- Search PubMed for base editing papers on liver and show the query translation
- Fetch abstracts for these PMIDs and flag any retracted papers
- Find PMC full text on methods used in these trials
Good to know
- Untagged search terms match broadly, and malformed queries are silently rewritten
- About 40% of papers with full text cannot be redistributed, so their figures are not copied
- One paper's full text can exceed the eval result limit
- Figures over 500 KB cannot be read in the sandbox
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: deep_life_sci/skills/pubmed/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pubmed
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pubmed: common questions
How do I avoid irrelevant PubMed results?
The skill recommends tagging terms with fields such as [tiab] or [mh] and probing with retmax 0. It also says to check warnings and query_translation before trusting the count.
Does it show retracted papers?
Yes, fetchAbstracts sets retracted to true for retracted papers. The skill says to always tell the user when a cited paper is retracted.
Can it read full text from PubMed Central?
The source says about half of PubMed papers have full text in PMC. The skill describes triage with pmcLocate and section-level reads with fetchFullText.
How do I install pubmed?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pubmed free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pubmed safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pubmed?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
