home / skills / richardanaya / agent-skills / pubmed-metaanalysis

pubmed-metaanalysis skill

/.opencode/skill/pubmed-metaanalysis

This skill helps you locate PubMed meta-analyses and systematic reviews on medical topics using NCBI E-utilities, returning concise study details.

npx playbooks add skill richardanaya/agent-skills --skill pubmed-metaanalysis

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
4.1 KB
---
name: pubmed-metaanalysis
description: Search PubMed for meta-analyses on a given medical topic using NCBI E-utilities API
license: MIT
compatibility: opencode
metadata:
  audience: researchers
  domain: medical-research
---

## What I Do

Search PubMed for meta-analyses and systematic reviews on medical topics using the NCBI E-utilities API. I help you:

- Find meta-analyses on specific medical conditions, treatments, or interventions
- Retrieve article titles, authors, publication dates, and abstracts
- Filter results to focus on systematic reviews and meta-analyses only

## When to Use Me

Use this skill when you need to:
- Look up meta-analyses on a medical topic
- Find systematic reviews for evidence-based research
- Get an overview of aggregated research on a health topic

## How to Search PubMed for Meta-Analyses

### Step 1: Search for Article IDs

Use the NCBI ESearch API to find meta-analyses. The key is adding the `meta-analysis[pt]` publication type filter.

**Base URL:**
```
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi
```

**Required Parameters:**
- `db=pubmed` - Search the PubMed database
- `term=<SEARCH_QUERY>+AND+meta-analysis[pt]` - Your search term + meta-analysis filter
- `retmax=20` - Number of results to return (adjust as needed)
- `retmode=json` - Return JSON format

**Example Search URL:**
```
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=diabetes+treatment+AND+meta-analysis[pt]&retmax=20&retmode=json
```

**Alternative Filters:**
- `systematic+review[pt]` - For systematic reviews
- `(meta-analysis[pt]+OR+systematic+review[pt])` - For both types

### Step 2: Fetch Article Details

Use the NCBI ESummary or EFetch API to get article details using the IDs from Step 1.

**ESummary (for basic info):**
```
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=<ID1>,<ID2>,<ID3>&retmode=json
```

**EFetch (for full abstract):**
```
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=<ID1>,<ID2>,<ID3>&rettype=abstract&retmode=text
```

### Step 3: Parse and Present Results

From ESummary JSON response, extract:
- `title` - Article title
- `authors` - List of authors (use first author + "et al." for brevity)
- `pubdate` - Publication date
- `source` - Journal name
- `uid` - PubMed ID (PMID)

### Complete Example Workflow

1. **Search for meta-analyses on "hypertension treatment":**
   ```
   https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=hypertension+treatment+AND+meta-analysis[pt]&retmax=10&retmode=json
   ```

2. **Get details for returned IDs (e.g., 12345678,23456789):**
   ```
   https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=12345678,23456789&retmode=json
   ```

3. **Get full abstracts:**
   ```
   https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=12345678,23456789&rettype=abstract&retmode=text
   ```

## Search Tips

### Effective Search Terms
- Use MeSH terms when possible (e.g., `"Diabetes Mellitus, Type 2"[Mesh]`)
- Combine terms with `AND` or `OR`
- Use quotes for exact phrases: `"cognitive behavioral therapy"`

### Common Filters
| Filter | Description |
|--------|-------------|
| `meta-analysis[pt]` | Meta-analyses only |
| `systematic+review[pt]` | Systematic reviews only |
| `review[pt]` | All review articles |
| `free+full+text[filter]` | Only free full-text articles |
| `humans[mh]` | Human studies only |
| `english[la]` | English language only |

### Date Filtering
Add date range to search:
- `2020:2024[dp]` - Publication date range
- `"last 5 years"[dp]` - Relative date

**Example with date filter:**
```
term=cancer+immunotherapy+AND+meta-analysis[pt]+AND+2020:2024[dp]
```

## Output Format

When presenting results, use this format:

```
### Meta-Analyses Found: [N] results

1. **[Title]**
   - Authors: [First Author] et al.
   - Journal: [Journal Name], [Year]
   - PMID: [ID] | Link: https://pubmed.ncbi.nlm.nih.gov/[ID]/

2. **[Title]**
   ...
```

## Rate Limits

- NCBI allows ~3 requests per second - be mindful of this when making multiple searches
- Always URL-encode search terms with special characters

Overview

This skill searches PubMed for meta-analyses and systematic reviews on specified medical topics using the NCBI E-utilities API. It returns article metadata and abstracts and helps filter results to meta-analyses or systematic reviews only. The skill is designed to speed evidence discovery for clinicians, researchers, and students.

How this skill works

It performs an ESearch query against the PubMed database with a publication-type filter such as meta-analysis[pt] or systematic+review[pt] to retrieve PMIDs. It then calls ESummary or EFetch with those PMIDs to fetch title, authors, publication date, journal, PMID, and abstract. Results are parsed and presented in a concise list with direct PubMed links.

When to use it

  • When you need a quick list of meta-analyses on a clinical question or intervention
  • When preparing evidence summaries, guidelines, or literature reviews
  • To verify aggregated evidence before designing a study or trial
  • When teaching or demonstrating how to locate high-level evidence
  • To screen for recent systematic reviews and meta-analyses within a date range

Best practices

  • Include meta-analysis[pt] or systematic+review[pt] in the term to restrict results
  • Use MeSH terms or quoted phrases for more precise searches (e.g., "Diabetes Mellitus, Type 2"[Mesh])
  • Apply date and language filters (e.g., 2020:2024[dp], english[la]) to narrow results
  • Respect NCBI rate limits (~3 requests/sec) and URL-encode special characters
  • Fetch details in batches (ESummary/EFetch) to reduce API calls and simplify parsing

Example use cases

  • Find meta-analyses on hypertension treatments published in the last 5 years
  • Retrieve systematic reviews comparing surgical vs non-surgical interventions for a condition
  • Compile titles, first author, journal, year, and PMID for an evidence table
  • Get full abstracts for a shortlist of meta-analyses to assess relevance
  • Search for free full-text meta-analyses using free+full+text[filter]

FAQ

How do I restrict results to meta-analyses only?

Add meta-analysis[pt] to your search term (e.g., diabetes+AND+meta-analysis[pt]).

Which endpoints does the skill return for each article?

It returns title, first author + et al., journal/source, publication date, PMID, and can fetch the abstract.