KGTAF

Pubmed Edirect

Knowledgev0.4.4
By KGTAFUpdated 2026-05-119 versions · latest released 2026-02-18pubmed-edirect@clawhub_killgfat/pubmed-edirect
Information Retrieval

According to AlphaMoat, as of 2026-09, Pubmed Edirect has 4,600 downloads and 5 stars — ranked #2,073 of 5,078 AI skills overall, and #198 of 442 in Knowledge.

Installs
307
Downloads
4.6K
Stars
5
Overall Rank
#2,073
Top 41% overall · Top 45% in Knowledge
PlatformInstallsDownloadsStarsComments
ClawHub ↗1263.8K4-
SkillHub ↗3074.6K5—

Platforms count differently and update at different times.

What this skill does

The skill provides command-line access to NCBI databases (pubmed, pmc, gene, protein, mesh, and more) through EDirect utilities (esearch, efetch, elink, efilter, xtract, einfo). It requires manual installation of the EDirect tools and is flagged as an advanced, elevated-security skill; optional NCBI_API_KEY raises rate limits and NCBI_EMAIL identifies the user.

Profile published 2026-10-27

What you can do with it

  • Search PubMed and other NCBI databases
  • Fetch records and extract structured metadata via XML
  • Export search results to CSV and analyze publication trends

When to use it

  • When a researcher needs literature search or retrieval from PubMed/NCBI
  • When automating EDirect command-line workflows

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Search PubMed for CRISPR and export 100 results to CSV
Fetch abstracts for these PMIDs with rate limiting

Monthly Trend

Downloads4.6K
2.3K3.5K4.8K2026-03 · Downloads 2.5K2026-05 · Downloads 3.1K2026-06 · Downloads 3.3K2026-07 · Downloads 3.6K2026-08 · Downloads 4.0K2026-09 · Downloads 4.6K26-0326-09
Stars5
4552026-03 · Stars 42026-05 · Stars 52026-06 · Stars 42026-07 · Stars 42026-08 · Stars 52026-09 · Stars 526-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.6K—5
2026-084.0K+9.8%5
2026-073.6K+10.1%4
2026-063.3K+5.8%4
2026-053.1K—5
2026-032.5K—4

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

5.7 KB · ClawHub v0.4.4
---
name: pubmed-edirect
description: Search and retrieve literature from PubMed using NCBI's EDirect command-line tools. ⚠️ Advanced skill requiring manual installation.
requires:
  bins:
    - esearch
    - efetch
    - elink
    - xtract
    - einfo
Show all (193 lines)
    - efilter
install:
  - id: edirect
    kind: manual
    label: Manual Installation Required - Review INSTALL.md
    docs: https://www.ncbi.nlm.nih.gov/books/NBK179288/
    note: "⚠️ User must manually download and review official installer script"
    security_level: elevated
metadata:
  openclaw:
    emoji: 🔬
    category: advanced
    security_level: elevated
    requires:
      bins:
        - esearch
        - efetch
        - elink
        - xtract
        - einfo
        - efilter
    env:
      - name: NCBI_API_KEY
        optional: true
        description: NCBI API key for increased rate limits (10 requests/sec vs 3 requests/sec)
      - name: NCBI_EMAIL
        optional: true
        description: Email address to identify yourself to NCBI
---

# PubMed EDirect Skill

Search and retrieve literature from PubMed using NCBI's EDirect command-line tools.

## ⚠️ Security Advisory

**Important**: This skill requires installation of external command-line tools. The installation process involves:

1. **External script execution**: Downloading and executing installation scripts from the official NCBI FTP server
2. **System modifications**: Adding directories to your PATH environment variable
3. **Permission requirements**: May require installation of Perl modules and dependencies

**Before installation, you must**:
1. Review the installer script content after downloading
2. Confirm the source is trustworthy (official `ftp.ncbi.nlm.nih.gov` domain)
3. Validate in a test environment
4. Understand all commands that will be executed

## Overview

This skill provides access to PubMed and other NCBI databases through the official EDirect (Entrez Direct) utilities. EDirect is a suite of programs that provide access to the NCBI's suite of interconnected databases (publication, sequence, structure, gene, variation, expression, etc.) from Unix terminals.

**Note: This is a local installation skill** – all tools run directly on your system without Docker or containerization. Follow the [INSTALL.md](INSTALL.md) guide for local setup.

## Structure

The skill is organized into the following files:

- **`INSTALL.md`** - Installation and configuration guide
- **`BASICS.md`** - Basic usage and common commands
- **`ADVANCED.md`** - Advanced techniques and complex queries
- **`EXAMPLES.md`** - Practical usage examples
- **`REFERENCE.md`** - Quick reference (field qualifiers, formats, etc.)
- **`OPENCLAW_INTEGRATION.md`** - OpenClaw-specific usage guide
- **`scripts/`** - Useful bash scripts for common tasks

## Quick Start

1. **Read the installation guide**: Review [INSTALL.md](INSTALL.md) for secure installation steps
2. **Manually install EDirect**:
   ```bash
   # Step 1: Download the script
   wget -q https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh
   
   # Step 2: Review content (important for security)
   less install-edirect.sh
   
   # Step 3: Execute installation
   ./install-edirect.sh
   ```
3. **Verify installation**:
   ```bash
   esearch -db pubmed -query "test" -retmax 1
   ```
4. **Explore examples**: Check [EXAMPLES.md](EXAMPLES.md)

## Core Tools

The skill provides access to EDirect tools through OpenClaw's `exec` capability:

- `esearch` - Search databases
- `efetch` - Retrieve records
- `elink` - Find related records
- `efilter` - Filter results
- `xtract` - Extract data from XML
- `einfo` - Get database information

## Databases Supported

EDirect supports numerous NCBI databases including:

- `pubmed` - Biomedical literature
- `pmc` - PubMed Central full-text articles
- `gene` - Gene information
- `nuccore` - Nucleotide sequences
- `protein` - Protein sequences
- `mesh` - Medical Subject Headings
- And many more...

## Key Features

- **Command-line access** to NCBI databases
- **Pipeline architecture** using Unix pipes
- **Structured data extraction** with XML parsing
- **Batch processing** capabilities
- **Cross-database linking** between records

## Getting Help

- Use `-help` with any EDirect command: `esearch -help`
- Consult the [official documentation](https://www.ncbi.nlm.nih.gov/books/NBK179288/)
- Check troubleshooting in installation guide

## Included Scripts

The `scripts/` directory contains ready-to-use bash scripts:

### `batch_fetch_abstracts.sh`

Fetch abstracts for a list of PMIDs with error handling and rate limiting.

```bash
./scripts/batch_fetch_abstracts.sh pmids.txt abstracts/ 0.5
```

### `search_export_csv.sh`

Search PubMed and export results to CSV with metadata.

```bash
./scripts/search_export_csv.sh "CRISPR [TIAB]" 100 results.csv
```

### `publication_trends.sh`

Analyze publication trends over time with visualization.

```bash
./scripts/publication_trends.sh "machine learning" 2010 2023 trends.csv
```

## Security Best Practices

### 1. Script Review
```bash
# Always download first and review scripts
wget -q SOURCE_URL -O script.sh
less script.sh  # or cat script.sh | head -50
# Execute only after review
./script.sh
```

### 2. Environment Isolation
- Running in Docker containers provides isolation
- Use virtual machines for testing
- Set up dedicated user accounts

### 3. Least Privilege
- Do not run as root
- Set appropriate file permissions
- Use dedicated directories for data

### 4. Network Controls
- Configure firewall rules
- Use proxies for controlled access
- Monitor network traffic

## Notes

**Important**: This skill requires manual installation and configuration. All installation steps require explicit user confirmation and execution.

This skill provides command-line access to NCBI databases through local installation of EDirect tools.

Popular in Knowledge

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.