Skip to content
Back to skills

Ncbi Pubmed Search

ASecurity

Use this skill to search PubMed through NCBI E-utilities when you need official Entrez-backed literature discovery and summary metadata. Do not use it when you need full text or network-free execution.

  • 38 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 8, 2026
ai-agentspythongoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill ncbi-pubmed-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ncbi Pubmed Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ncbi Pubmed Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-ncbi-pubmed-search/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-ncbi-pubmed-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ncbi-pubmed-search
description: Use this skill to search PubMed through NCBI E-utilities when you need official Entrez-backed literature discovery and summary metadata. Do not use it when you need full text or network-free execution.
---

## Purpose
Run a PubMed search through NCBI E-utilities and optionally fetch summary metadata for the returned PMIDs.

## When to use
- You need a canonical PubMed search path.
- You want lightweight official metadata for biomedical literature triage.

## When not to use
- Full text is required.
- A Europe PMC workflow already covers the task better.

## Inputs
- Search term
- Optional `--retmax`, `--email`, and `--out`

## Outputs
- Combined JSON payload with `search` and `summary` sections

## Requirements
- Python 3.13+
- Network access to `eutils.ncbi.nlm.nih.gov`

## Procedure
1. Run `python3 skills/scientific-knowledge/ncbi-pubmed-search/scripts/search_pubmed.py --term "single-cell RNA-seq" --retmax 3 --out skills/scientific-knowledge/ncbi-pubmed-search/assets/pubmed_single_cell.json`.
2. Inspect `search.esearchresult.idlist`.
3. Review `summary.result` for titles, journals, and dates.

## Validation
- Command exits successfully.
- Search returns at least one PMID for a common query.
- Summary payload includes the returned UID keys.

## Failure modes and fixes
- Empty results: broaden the term or use a synonym.
- Courtesy warnings: supply `--email` for traceable requests.

## Safety and limits
- Metadata discovery only.
- Respect NCBI usage guidance and avoid unnecessary high-rate polling.

## Examples
- `python3 .../search_pubmed.py --term "spatial transcriptomics benchmark" --retmax 2`

## Provenance
- NCBI E-utilities guide: https://www.ncbi.nlm.nih.gov/books/NBK25501/
- NCBI developer API landing page: https://www.ncbi.nlm.nih.gov/home/develop/api/

## Related skills
- `europepmc-method-triage`
- `crossref-metadata-search`

Files in this skill

  • SKILL.md1.9 KB
  • assets/README.md76 B
  • assets/pubmed_single_cell.json14.2 KB
  • examples/README.md251 B
  • metadata.yaml839 B
  • refs.md174 B
  • scripts/search_pubmed.py3.1 KB
  • tests/README.md229 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.