KGTAF

Pubmed Edirect

知識管理v0.4.4
作者:KGTAF更新於 2026-05-11共 9 個版本 · 最新版本釋出於 2026-02-18pubmed-edirect@clawhub_killgfat/pubmed-edirect
資訊檢索

據 AlphaMoat 統計,截至 2026-09,Pubmed Edirect 累計下載 4,600 次、獲 5 個星標,在全部 5,078 個 AI 技能中排名第 2,073 位,在「知識管理」分類(442 個)中排名第 198 位。

累計安裝
307
累計下載
4600
星標
5
全站排名
#2,073
全站前 41% · 「知識管理」前 45%
平台累計安裝累計下載星標評論
ClawHub ↗12638364-
SkillHub ↗30746005—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能透過 EDirect 工具(esearch、efetch、elink、efilter、xtract、einfo)提供對 NCBI 資料庫(pubmed、pmc、gene、protein、mesh 等)的命令列訪問。它需要手動安裝 EDirect 工具,並被標記為進階、高安全級別;可選 NCBI_API_KEY 提高速率上限,NCBI_EMAIL 用於標識使用者。

資料釋出於 2026-10-27

可以用來做什麼

  • 在 PubMed 及其他 NCBI 資料庫中檢索
  • 透過 XML 獲取記錄並提取結構化後設資料
  • 將檢索結果匯出為 CSV 並分析發表趨勢

什麼時候用

  • 研究人員需要從 PubMed/NCBI 檢索文獻時
  • 需要自動化 EDirect 命令列流程時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

在 PubMed 中搜尋 CRISPR 並匯出 100 條結果到 CSV
為這些 PMID 獲取摘要並限制速率

月度資料趨勢

累計下載4600
2307353947702026-03 · 累計下載 24772026-05 · 累計下載 31042026-06 · 累計下載 32852026-07 · 累計下載 36182026-08 · 累計下載 39742026-09 · 累計下載 460026-0326-09
星標5
4552026-03 · 星標 42026-05 · 星標 52026-06 · 星標 42026-07 · 星標 42026-08 · 星標 52026-09 · 星標 526-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094600—5
2026-083974+9.8%5
2026-073618+10.1%4
2026-063285+5.8%4
2026-053104—5
2026-032477—4

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 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
展開全部(共 193 行)
    - 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.

「知識管理」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。