Literature search

From GoogleCloudPlatform/LifeSciences · View interactive version

Literature search is an AI agent skill from the GitHub repository GoogleCloudPlatform/LifeSciences. Search and retrieve scientific literature — PubMed, preprint servers (arXiv, bioRxiv), and PubMed Central full text. Use when discovering what has been published on a topic, gene, compound, or disease, when establishing the volume and recency of literature for a target, when retrieving full-text art

How to use this skill

Skill file

1. When to use, and when not

Use this skill when you need to discover, search, or retrieve scientific

literature. Entry points include:

as part of target validation or literature review.

or topic — a gene with hundreds of recent publications has a different

evidence base than one with three papers from 2008.

to refine subsequent searches.

published record support the assertion that "multiple studies have

shown X"?

analysis or citation extraction.

Do not use when:

to a real record → citation-verification.

search counts matches, not evidence.

Question-type routing

| Question type | Command | Skill |

|---|---|---|

| What has been published on a topic? | oase pubmed search | this skill |

| What does the result set look like? | oase pubmed analyze | this skill |

| Fetch full text of a PMC article | oase pubmed fulltext | this skill |

| Find recent preprints (physics, CS, math) | oase preprint search --source arxiv | this skill |

| Find recent preprints (biology, life sciences) | oase preprint search --source biorxiv | this skill |

| Verify a citation (PMID, DOI, NCT) exists | oase cite verify | citation-verification |

| Resolve a literature identifier | oase litref resolve | citation-resolution |

| Find cancer genomics studies | oase cbioportal search | (genomics) |

2. Preconditions

keywords, MeSH terms, Boolean operators (AND, OR, NOT), and field

tags ([Title], [Author], etc.). oase pubmed search --help for

details.

The CLI paces requests.

20). PubMed reports total_found even when only a subset is

retrieved.

that use different terminology, are indexed under different MeSH

headings, or are not yet indexed. The search_not_exhaustive relay

carries this caveat.

3. Tool invocations

| Question | Run | Writes to |

|---|---|---|

| What has been published on this topic? | oase pubmed search <QUERY> [--max-results N] [--sort relevance\|date] | raw/literature/<slug>.esearch.json<br>raw/literature/<slug>.efetch.xml<br>raw/literature/<slug>.pubmed-search.json<br>raw/literature/<slug>.meta.json |

| What does the result set look like? | oase pubmed analyze <QUERY> | raw/literature/<slug>.pubmed-search.analysis.json |

| Fetch full text of a PMC article | oase pubmed fulltext <PMCID> | raw/literature/<pmcid>.fulltext.json |

| Find preprints on a topic (arXiv) | oase preprint search --source arxiv <QUERY> | raw/literature/<slug>.preprint-search.json |

| Find bioRxiv preprints on a topic | oase preprint search --source biorxiv <QUERY> | raw/literature/<slug>.preprint-search.json |

Run search before analyze. analyze reads from disk and produces

summary statistics without network access.

When to prefer preprint over pubmed

Use oase preprint search --source arxiv when looking for recent,

not-yet-peer-reviewed work — preprints appear on arXiv days after

submission, whereas PubMed indexes peer-reviewed publications which

may lag months behind. Use oase preprint search --source biorxiv

when looking for recent biology and life-sciences preprints — bioRxiv

covers wet-lab biology, genomics, neuroscience, and related fields

that arXiv does not. Use oase pubmed search when looking for

peer-reviewed literature with MeSH indexing, journal provenance, and

the quality signal that peer review provides.

The <slug> is derived from the query string (filesystem-safe,

lowercase, max 80 characters). The .pubmed-search.json is the

structured artifact with parsed article records (PMID, title, authors,

journal, year, abstract, DOI, MeSH terms). The .efetch.xml is the

verbatim PubMed XML response.

All output options: --json for machine-readable output, --quiet for

paths only, --out to override the default output directory.

4. Interpretation contract

Verdicts

analyze produces:

The analysis reports total_found (PubMed's count), n_retrieved

(the subset fetched), year distribution, top journals, and top MeSH

terms.

What the analysis reports

The analysis provides summary statistics, not scientific conclusions:

assessing research recency and trajectory — a gene with 50

publications in 2020-2024 and 2 before 2015 has a different evidence

landscape than one with steady output since the 1990s.

the research field (oncology, neuroscience, etc.) and the level of

the venues.

NLM's controlled vocabulary — useful for refining subsequent searches

or identifying the dominant research themes.

The retrieval-vs-total gap

total_found may be much larger than n_retrieved (capped by

--max-results). The summary statistics describe the retrieved subset,

not the full result set. State this: "of N total PubMed results, M were

retrieved and summarised."

Mandatory relays

| Relay code | Kind | Fires when | Obligation |

|---|---|---|---|

| pubmed.search_not_exhaustive | Qualifier | Results were found (conditional) | State that the search is a keyword-based sample, not a comprehensive literature survey. Relevant publications may use different terminology, be indexed under different MeSH headings, or not yet be indexed. Do not present search results as a complete survey of the topic. |

Check mandatory_relays in the .pubmed-search.analysis.json. Every

relay code present must be satisfied in the finding.

Consequence rules

year range, and the top journals and MeSH terms. Carry the

search_not_exhaustive qualifier. The result set is a sample, not

a census.

may indicate an overly specific query, unusual terminology, or a

genuinely unpublished topic. Suggest query refinement if appropriate.

n_retrieved, the summary statistics describe a small sample. State

the gap; do not generalise from a 20-article sample of 5000 results.

Cross-disciplinary consequences

target but do not constitute evidence for or against the target

itself. A well-published gene is not necessarily a good target; an

unpublished one is not necessarily a bad one.

biological processes associated with the target, useful for

indication selection.

verification (use citation-resolution) before being cited in a

finding.

What this section produces

Following this contract produces a Layer 1 finding in findings/ that

cites the .pubmed-search.analysis.json, satisfies the

search_not_exhaustive relay, reports the retrieval-vs-total gap, and

does not present keyword results as a comprehensive survey. Everything

the tools emitted stays under raw/literature/.

5. Failure modes and anti-fabrication guard

Do not compute these values yourself. The value is whatever the tool

emitted. If the tool did not run, there is no value. If a required tool

is unavailable, report the task as blocked. Do not estimate, and do not

proceed on an assumed result.

Named pathologies

PubMed keyword search is inherently non-exhaustive. The

search_not_exhaustive relay exists because this is the first

qualifier lost when results are summarised. "The literature shows X"

is unsupported by a keyword search; "N PubMed results for query Q

include..." is supported.

total_found is 5000 and n_retrieved is 20, the year distribution

and journal distribution describe 20 papers, not 5000. State the

sample size.

The search returns metadata (title, authors, abstract). It does not

verify that each paper says what the title suggests, or that the DOI

resolves. Use citation-resolution before citing a specific paper

from the results.

reflect an overly specific query, non-standard terminology, or

indexing lag. It does not prove nothing has been published on the

topic.

and disease Y" is a search statistic, not evidence that gene X causes

disease Y. Publication count measures research interest, not

scientific validity.

truncated, sanitised version of the query string. When citing the

search, cite the original query from the artifact's query.terms

field, not the slug.


6. PubMed via BigQuery (`oase pubmed-bq`)

In addition to the NCBI E-utilities path (oase pubmed), this skill

covers oase pubmed-bq, which queries the PubMed dataset hosted on

Google BigQuery. BigQuery enables SQL-based filtering with larger

result sets, date range filters, and journal filters.

When to prefer `pubmed-bq` over `pubmed`

itself, rather than post-hoc filtering of a small result set.

and abstracts simultaneously.

Preconditions

Credentials (gcloud auth application-default login or

GOOGLE_APPLICATION_CREDENTIALS).

Override with --bq-dataset or $OASE_PUBMED_BQ_DATASET.

Tool invocations

| Question | Run | Writes to |

|---|---|---|

| Search PubMed via BigQuery | oase pubmed-bq search <QUERY> [--max-results N] [--year-from Y] [--year-to Y] [--journal J] [--bq-dataset D] | raw/literature/<slug>.pubmed-bq.json<br>raw/literature/<slug>.pubmed-bq.meta.json |

| Summarise BigQuery results | oase pubmed-bq analyze <QUERY> | raw/literature/<slug>.pubmed-bq.analysis.json |

Run search before analyze. analyze reads from disk and produces

summary statistics (year distribution, journal distribution, abstract

keyword frequency) without network access.

Mandatory relays

| Relay code | Kind | Fires when | Obligation |

|---|---|---|---|

| pubmed_bq.search_not_exhaustive | Qualifier | Results were found (conditional) | State that the search uses SQL substring matching, which may miss publications using different terminology, alternate spellings, or synonyms. Do not present results as a complete literature survey. |

Interpretation

The same interpretation contract from oase pubmed (section 4) applies:

results are a keyword-based sample, not a comprehensive survey. The

search_not_exhaustive relay must be satisfied. The retrieval-vs-total

gap applies here as well — --max-results caps the retrieval.


7. Related genomics commands

For cancer genomics data, use oase cbioportal search and

oase cbioportal analyze. cBioPortal aggregates genomic data from

large-scale cancer studies (TCGA, AACR GENIE, institutional cohorts).

Artifacts land under raw/expression/.

| Question | Run | Writes to |

|---|---|---|

| What cancer genomics studies match a query? | oase cbioportal search <QUERY> [--cancer-type T] [--study S] [--max-results N] | raw/expression/<slug>.cbioportal-search.json<br>raw/expression/<slug>.cbioportal.meta.json |

| What do the cBioPortal results show? | oase cbioportal analyze <ARTIFACT> | raw/expression/<slug>.cbioportal-search.analysis.json |

cBioPortal is a cancer genomics resource, not a literature database.

Results are study-level metadata (study ID, name, cancer type, sample

count), not mutation data or expression profiles.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.