Skill detail
literature-search-biorxiv
Biology preprint retrieval component only.
Inspect before use
Automated review checks relevance, not safety or endorsement. Read the source instructions before using this skill.
SKILL.md
The saved excerpt is a snapshot from review. The external source remains the complete and most current version.
---
name: literature-search-biorxiv
description: >
Browse, filter, and download life sciences, biology, and medical preprints
from bioRxiv and medRxiv. Supports fetching paper metadata by DOI,
and browsing by date range with category and keyword filters. Keyword
filtering is local, so date ranges MUST be narrow (1-4 weeks) with a
category to prevent timeouts.
---
# bioRxiv and medRxiv Literature Search
## Prerequisites
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
`uv` is installed and on PATH.
2. **User Notification**: If .licenses/literature_search_biorxiv_LICENSE.txt
does not already exist in the workspace root directory then (1) prominently
notify the user to check the terms at https://api.biorxiv.org/ and
https://www.biorxiv.org/content/about-biorxiv and to always check the
license of the papers retrieved by the skill for any restrictions, then (2)
create the file recording the notification text and timestamp.
## Search Strategy Guide (Read First)
**This skill browses a date-based preprint archive. It is NOT a keyword search
engine.** Choose your approach based on what you already know:
- **A DOI** (e.g., from a citation): Use `search_by_doi.py`. Fast and
reliable.
- **Approximate date + category**: Use `search_by_dates.py` with a 1–4 week
range and `--category`.
- **Only a topic or keywords, no date**: **Do NOT use this skill for
discovery.** Use a keyword-capable literature skill first to find relevant
DOIs, then return here to fetch metadata.
> **CRITICAL ANTI-PATTERN — Do NOT do this:** Do NOT attempt to search broad
> date ranges (months or years) with `--keywords` hoping to find a specific
> paper. The bioRxiv API does not support server-side keyword search. The script
> must download ALL metadata for the entire date range and filter locally in
> Python. Broad ranges will result in thousands of API calls, timeouts, and your
> request being blocked for API abuse. This is the #1 reason this skill fails.
## Core Rules
- **Use the Wrapper**: ALWAYS execute the provided helper scripts to query the
database rather than accessing the database directly. The scripts
automatically enforce the required rate limit gracefully.
- **Local Filtering (CRITICAL WARNING)**: Unlike arXiv, the bioRxiv API **does
not support server-side keyword or author searches**. Keyword and author
filtering is performed *locally* by the scripts after downloading all
metadata for a specified date range. You **MUST** use narrow date ranges
(e.g., 1-4 weeks) AND the `--category` filter when searching with
`--keywords` or `--author`.
- **Abstracts Excluded By Default**: To save context space in the resulting
JSON, abstracts are stripped from the output by default. If you are
searching by `--keywords` and want to read the abstracts of the resulting
papers to understand their context, you **MUST** pass the
`--include_abstracts` flag.
- **Output Redirection**: Search commands output JSON arrays to standard
output. Always redirect output to a file (e.g., `> results.json`) and parse
the file separately.
- **List Sources** If this skill is used, ensure this is mentioned in the
output AND list the URLs of all papers that were used in producing the
output.
## Utility Scripts
All tools enforce a cross-process rate limits and retry with backoff on failure.
To ensure you respect terms-of-service, do NOT write custom `curl` queries.
**Pagination:** The bioRxiv API returns results in pages of up to 100 papers.
The `search_by_dates.py` script automatically fetches all pages and reports
pagination progress to stderr (e.g., `[Page 2] Fetched 200/543 papers...`). The
JSON output to stdout contains the **complete** filtered result set across all
pages — no manual pagination is needed.
### 1. Search by Dates (`search_by_dates.py`)
Search for preprints within an explicit date range, optionally filtering Read the full source on GitHub (opens external page)