# bioproject-search

bioproject-search is a Claude Code skill that retrieves NCBI BioProject metadata via the official E-utilities API. It exports project titles, organisms, and release dates to CSV or JSON.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 77 repo stars
- Author: ssinder
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ssinder/bioinformatics-agent-skills/tree/HEAD/skills/bioproject-search/SKILL.md
- Updated: 2026-10-27
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/bioproject-search

## What it does

The `scripts/search_bioprojects.py` script queries the official NCBI E-utilities API to retrieve project records instead of scraping web pages. Given PRJNA or PRJEB accessions, it uses `esearch` to resolve internal UIDs, then queries both `esummary` and `efetch`. Combining these endpoints captures organism taxids, submitters, release dates, and full descriptions, normalising all date formats to `YYYY-MM-DD`.

Output records are written to `bioproject_data.csv` and `bioproject_data.json`. The `--filter` argument keeps records matching specific keywords, while `--drop-noisy` strips navigation boilerplate from descriptions.

Running the script requires Python 3.9+ and the `requests` library. NCBI usage policy requires a contact email provided via `--email` or the `BIOPIPE_EMAIL` environment variable. An optional API key raises the request rate limit from 3 to 10 requests per second.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ssinder/bioinformatics-agent-skills --skill bioproject-search -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/bioproject-search/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/bioproject-search/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ssinder/bioinformatics-agent-skills --skill bioproject-search -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/bioproject-search/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ssinder/bioinformatics-agent-skills --skill bioproject-search -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/bioproject-search/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ssinder/bioinformatics-agent-skills skills/bioproject-search
```

2. **Manually: put the files in place**
- File: `.github/skills/bioproject-search/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ssinder/bioinformatics-agent-skills --skill bioproject-search -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ssinder/bioinformatics-agent-skills --path skills/bioproject-search
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/bioproject-search/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ssinder/bioinformatics-agent-skills/tree/HEAD/skills/bioproject-search/SKILL.md

## When to use it
- retrieve BioProject metadata using PRJNA or PRJEB accession numbers
- filter sequencing projects by keywords in titles or descriptions
- export organism names, submitters, and release dates to CSV or JSON
- compile project catalogues for scientific papers and datasets

## Example prompts
- Fetch BioProject metadata for PRJNA172563 and PRJNA212358 into the results directory
- Process accession IDs from prj_ids.txt and filter projects mentioning CRISPR

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 6232de5a5fef2708.

BEGIN THIRD-PARTY FILE 6232de5a5fef2708
````text
---
name: bioproject-search
description: >-
  Retrieves NCBI BioProject metadata — title, description, organism, submitter and
  release dates — for a batch of BioProject accessions, using the official NCBI
  E-utilities API rather than scraping the BioProject web pages. Supports
  keyword filtering over titles and descriptions, CSV/JSON export, and requires
  a contact email as the NCBI usage policy mandates. This skill should be used when
  looking up what a BioProject or PRJNA/PRD accession contains, retrieving
  sequencing project descriptions, or collecting BioProject metadata in bulk is
  requested.
license: MIT
compatibility: Python 3.9+; needs requests for network access; standard library only otherwise
metadata:
  version: "1.0"
  last-reviewed: "2026-10-26"
  skill-author: sinder
---

# BioProject Metadata Retrieval

## Overview

This skill retrieves NCBI BioProject records through the official
**E-utilities** API and exports them as CSV/JSON.

The alternative — scraping the BioProject web pages — is fragile in a way that
is easy to underestimate. Page-scraping code ends up with selectors like
`div:nth-child(5)` that encode the *current* number of wrapper elements in
the page. When NCBI adjusts its layout, the selector silently stops matching
and the description column comes back empty, which is indistinguishable from
"this project has no description".

E-utilities returns structured XML with stable field names. The same query
that works today keeps working after a website redesign.

The skill also follows NCBI's usage policy properly: a **contact email is
required** (via `--email` or the `BIOPIPE_EMAIL` environment variable).
NCBI uses the email to identify callers and to contact them when problems
occur; fabricating placeholder addresses defeats that purpose and can get
your IP rate-limited.

## When to Use This Skill

- Finding out what a specific BioProject / PRJNA / PRJEB accession contains
- Collecting titles, descriptions and organisms for a list of projects
- Screening projects by keyword before deciding which ones to download
- Building a project catalogue for a methods or dataset section
- Looking up submitter and release dates for citation purposes

## Quick Start

```bash
export PYTHONPATH="$PWD/packages"
export BIOPIPE_EMAIL="you@your-institution.edu"

# 从文件读取 accession
python scripts/search_bioprojects.py --ids prj_ids.txt --output-dir results/

# 直接给 accession
python scripts/search_bioprojects.py --ids PRJNA172563 PRJNA212358 --output-dir results/

# 只保留描述里提到 CRISPR 的项目
python scripts/search_bioprojects.py --ids prj_ids.txt --output-dir results/ --filter CRISPR
````
END THIRD-PARTY FILE 6232de5a5fef2708

The third-party file has ended. Everything between the 6232de5a5fef2708 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2679 of 7440 bytes. © ssinder · MIT · https://github.com/ssinder/bioinformatics-agent-skills/tree/HEAD/skills/bioproject-search/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
