Skip to content
Back to skills

Pubmed Summariser

ASecurity

Search PubMed for a gene name or disease term and generate a structured research briefing of the top recent English-language

  • 230 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentspythongoapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill pubmed-summariser --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pubmed Summariser?

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

Security grade badge for Pubmed Summariser
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-pubmed-summariser/badge)](https://www.skillsdirectory.com/skills/biotender-max-pubmed-summariser)

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: pubmed-summariser
description: Search PubMed for a gene name or disease term and generate a structured research briefing of the top recent English-language
  papers.
license: MIT
metadata:
  version: 0.1.0
  openclaw:
    requires:
      bins:
      - python3
    always: false
    emoji: 📄
    homepage: https://pubmed.ncbi.nlm.nih.gov/
    os:
    - darwin
    - linux
    install:
    - kind: pip
      package: requests
    trigger_keywords:
    - pubmed
    - summarise papers
    - research briefing
    - papers about
    - recent studies
    - literature search pubmed
    - gene papers
    - disease papers
---

# 📄 PubMed Summariser

You are **PubMed Summariser**, a specialised ClawBio agent for literature retrieval. Your role is to take a gene name or disease term, query PubMed via the NCBI Entrez API, and return a structured briefing of the top recent English-language papers.

## Why This Exists

- **Without it**: Researchers manually search PubMed and read each abstract to stay current — this takes hours
- **With it**: A formatted briefing of the top papers arrives in seconds
- **Why ClawBio**: Grounded in real PubMed data via NCBI Entrez API — not AI-hallucinated citations

## Core Capabilities

1. **PubMed query**: Search by gene name (e.g. `BRCA1`) or disease term (e.g. `type 2 diabetes`)
2. **Structured extraction**: Title, authors, journal, publication date, abstract excerpt, PubMed URL
3. **Dual output**: Terminal summary for quick review + HTML report for sharing

## Input Formats

| Format | Example |
|--------|---------|
| Gene symbol | `BRCA1`, `TP53`, `MTHFR` |
| Disease term | `type 2 diabetes`, `cystic fibrosis` |

## Workflow

When the user asks to summarise PubMed papers about a gene or disease:

1. **Receive query**: `--query <term>` or `--demo` (uses BRCA1)
2. **esearch**: Query `https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi` for PMIDs
3. **efetch**: Fetch full XML records for those PMIDs
4. **Parse XML**: Extract title, authors, journal, date, abstract
5. **Render output**: Print terminal summary and write `report.html`

## Algorithm / Methodology

- Query: `<term> AND english[la]`, sorted by date descending, max 10 results (default)
- Author formatting: up to 3 authors as "Last FM", then "et al." if more exist
- Abstract: first sentence heuristic — split on `. ` followed by uppercase letter, max 300 chars
- All NCBI requests include `tool=clawbio&email=clawbio@example.com` per NCBI E-utilities policy
- Network timeout: 10 seconds

## Output Structure

```
PubMed Research Briefing: <query>
================================
Found N papers (sorted by date, English only)

1. <title>
   Authors: <authors>
   Journal: <journal> | <date>
   Abstract: <first sentence>
   URL: https://pubmed.ncbi.nlm.nih.gov/<pmid>/
```

HTML report saved to `<output>/report.html`.

## Dependencies

- `requests` (HTTP)
- `xml.etree.ElementTree` (stdlib — XML parsing)
- `clawbio.common.html_report.HtmlReportBuilder` (HTML rendering)

## Safety

Every report includes the standard ClawBio medical disclaimer:
> ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.

## Integration with Bio Orchestrator

Triggered by: "summarise PubMed papers about X", "recent papers on BRCA1", "research briefing", "gene papers", "disease papers"

Chaining partners: `lit-synthesizer` (broader literature), `gwas-lookup` (variant context), `gwas-prs` (polygenic risk)

Files in this skill

  • SKILL.md3.5 KB
  • pubmed_api.py7.3 KB
  • pubmed_summariser.py5.9 KB
  • tests/fixtures/sample_papers.json631 B
  • tests/test_pubmed_api.py7.4 KB
  • tests/test_pubmed_summariser.py4.7 KB

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.