literature-review¶
Run a PubMed literature review. Build a MeSH query, retrieve and deduplicate, screen with stated criteria, and produce PRISMA 2020 counts that reconcile, a screening log and an evidence table. Use for scoping or systematic review drafts.
| Stage | Discovery |
| Tier | 1 (deterministic tool) |
| Standards | PRISMA 2020, NCBI E-utilities, MeSH |
Minimum pharmaskills |
0.3.0 |
| Inputs | pico question, date range, inclusion criteria, exclusion criteria |
| Outputs | review md, screening log csv, prisma json |
| Verified by | connectors pubmed build-query, connectors pubmed search, connectors pubmed fetch, lit check-prisma, lit check-screening-log |
Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.
Install only this skill: pharmaskills skills install --agent claude-code --skill literature-review (see Install).
Purpose¶
Produce a transparent, reproducible literature review draft for a scientist or medical writer: a documented search, a screening log with a reason for every decision, PRISMA 2020 flow counts that reconcile, and an evidence table. The deterministic tools build queries, retrieve records and verify the counts; you screen and summarise. Everything is a draft for qualified human review.
When to use / when not to use¶
Use for scoping reviews, rapid reviews and the first pass of a systematic review of biomedical literature indexed in PubMed.
Do not use for: a registered systematic review without human dual screening and full-text assessment, medical advice, clinical guideline recommendations, or content that needs non-PubMed databases (Embase, Cochrane) unless the user supplies those exports. Never invent studies.
Inputs¶
Required: a research question in PICO form (population, intervention, comparator, outcome) and
a date range. Ask once for anything missing, then proceed with stated assumptions and
[DATA NEEDED: ...] placeholders (for example [DATA NEEDED: comparator and outcome]).
Optional: MeSH terms, language and design filters, inclusion and exclusion criteria, maximum records per query. State the region and database scope assumed (PubMed only unless told).
If pharmaskills is not installed, or there is no network, tell the user to run
uv tool install pharmaskills or to supply exported records, and produce a template-only
protocol from templates/review.md marked unverified, with no counts or citations.
Check pharmaskills --version against min_pharmaskills.
Workflow¶
- Frame the question. Write the PICO and the inclusion and exclusion criteria before
searching; record them in
review.md. - Build queries:
pharmaskills connectors pubmed build-query --term "..." --mesh "..." --date-range 2023:2024(aliaspharmaskills pubmed build-query). Use at least one Title/Abstract query and one MeSH query when MeSH headings exist. - Search:
pharmaskills connectors pubmed search "<query>" -n 50 --json; keep the query string, date and thecount. Fetch missing abstracts withconnectors pubmed fetch <PMID>. - Empty result. If
countis 0 writeprisma.jsonwith all zeros, state "No records", suggest query changes and stop; do not widen the question silently. - Deduplicate by PMID across queries; count duplicates removed.
- Screen titles and abstracts against the stated criteria; one row per unique record in
screening_log.csvwith columnspmid,title,first_found_by,stage,decision,reason(decisionincludeorexclude, reason always filled). State plainly that a single automated screener is not dual independent screening. - Assess eligibility of retained reports; if only abstracts were read say so and mark
findings
[DATA NEEDED: ...]. Give each exclusion at this stage a reason and count it inexclusion_reasons. - Write
out/prisma.json(schema inreferences/prisma-schema.md) and verify:pharmaskills lit check-prisma out/prisma.jsonandpharmaskills lit check-screening-log out/screening_log.csv. Exit 2 means fix the counts or the log; never alter data to force a pass. - Write
out/review.mdfromtemplates/review.md(question, strategy with exact query strings, criteria, PRISMA table, evidence table, limitations). Runpharmaskills docs banner --apply out/review.mdfor the draft banner and provenance.
Output contract¶
| File | Content |
|---|---|
out/review.md |
Question, strategy, criteria, PRISMA counts, evidence table, limitations, banner and provenance |
out/screening_log.csv |
One row per unique record: PMID, decision, reason |
out/prisma.json |
Flow counts, reconciled by lit check-prisma |
State in your answer: queries run and dates, counts at each step, the screening limitations, and what needs human input. Every included record has a PMID that came from a tool output.
Verification¶
Run and report pass or fail: lit check-prisma (equations reconcile; exclusion reasons sum;
database counts sum), lit check-screening-log (PMID, decision, reason on every row, no
duplicates), every PMID in review.md appears in a search output, the number of include rows
equals studies_included when screening ends at the abstract stage.
Guardrails¶
- Region: the method is region-independent (PRISMA 2020); state the regulatory region only when the review supports a submission (FDA with ICH by default).
- Insert the draft banner and a provenance block in every generated document.
- Never fabricate PMIDs, NCT ids, DOIs, titles, authors, effect sizes or counts. Missing
information becomes
[DATA NEEDED: ...]. - Never change counts or the log to make them reconcile; fix the cause or report the gap.
- Do not state clinical conclusions as established; report what the screened abstracts say.
- State assumptions: PubMed only, abstract-level screening, one screener, no bias appraisal.
- Cite PRISMA 2020 (Page MJ et al., BMJ 2021;372:n71) for the flow diagram items.
References¶
references/prisma-schema.md- theprisma.jsonschema and reconciliation equationsreferences/search-and-screening.md- query building, deduplication, screening practice- Public sources: PRISMA 2020 statement, Page MJ et al., BMJ 2021;372:n71, item 16a (study selection) and the flow diagram; NCBI E-utilities documentation; NLM MeSH.
Templates: templates/review.md. Scripts: scripts/run_prisma_check.sh (thin wrapper).
Examples¶
Worked example: examples/discovery/literature-review/ (two real PubMed queries, one duplicate,
two included at abstract level, an empty-search case and a refusal). Fixtures:
skills/literature-review/evals/fixtures/.
Worked example¶
Committed example with inputs and outputs: examples/discovery/literature-review/.
Skill: skills/literature-review. Stage: discovery.
Source data: two real PubMed searches run on 2026-10-14 with
pharmaskills connectors pubmed search (NCBI E-utilities esearch and efetch), trimmed to PMID,
title, year, journal, publication types and the first 300 characters of the abstract, and
committed under skills/literature-review/evals/fixtures/search/. A third, empty search is in
fixtures/empty/. Evals and replay need no network.
Outputs in out/:
prisma.json: counts for the example; reconciles underpharmaskills lit check-prisma.screening_log.csv: 12 unique records with decision and reason; passespharmaskills lit check-screening-log.review.md: narrative draft with search strategy, criteria, flow counts, evidence table. Findings are[DATA NEEDED]because only abstract snippets were screened.prisma_empty.json,review_empty.md: the empty-search case (zero counts reconcile).refusal_fabricate_studies.md: correct response to the adversarial request.
Reproduce: pharmaskills eval run --skill literature-review.
Skill source: skills/literature-review/SKILL.md