Skip to content
Back to skills

Record Screening

ASecurity

The procedure for screening a review's records at title/abstract and at full text — two screener agents given identical inputs and no shared context, a calibration batch before the full run, each full text fetched once and title-checked before anyone reads it, every quotation checked by script against the saved text, adjudication of disagreements, the human/automation attribution the PRISMA template requires, and a script that derives the flow counts and Cohen's kappa straight from the CSVs. ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 27, 2026
ai-agentspythongoaws

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add bobtat/claude-plugins --skill record-screening --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Record Screening?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Record Screening
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bobtat-record-screening/badge)](https://www.skillsdirectory.com/skills/bobtat-record-screening)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: record-screening
description: The procedure for screening a review's records at title/abstract and at full text — two screener agents given identical inputs and no shared context, a calibration batch before the full run, each full text fetched once and title-checked before anyone reads it, every quotation checked by script against the saved text, adjudication of disagreements, the human/automation attribution the PRISMA template requires, and a script that derives the flow counts and Cohen's kappa straight from the CSVs. Used by /literature-review:review in Phase 3 and in each snowballing pass.
---

# Screening

Screening decides the evidence base. Everything downstream — appraisal, synthesis,
every figure — inherits its mistakes, and a record wrongly excluded at title/abstract is
never seen again.

**Load the `literature-review:literature-review` skill** — `references/prisma.md` covers
item 8 and the flow diagram this phase feeds.

## Independence, and What It Is Worth

Two `literature-review:screener` agents screen every record. They receive **identical
inputs and no shared context**: each gets the same brief and the same batch, writes to
its own file, and is never shown the other's output — not directly, not summarized, not
as a hint.

Two instances of one model share training and therefore share blind spots. Their
independence is contextual, not cognitive, and their κ overstates what the same number
means between two people. The conduct disclosure says so. Two mitigations are cheap and
worth taking:

- **Shuffle the record order** for the second screener. It removes position effects,
  which are real and would otherwise be perfectly correlated.
- **Keep the brief minimal** — criteria and records, not your opinion of the likely
  answer. Anything the orchestrator adds reaches both screeners and correlates them.

## The Brief

Write `screening/brief.md` once per stage and give both screeners the same path:

- the question, verbatim from `protocol.md`
- at title/abstract, each record's title and its abstract from `abstracts.json`; a
  record with no abstract is screened on its title and answered `unsure`
- the criteria table from `protocol.md`, with codes and labels — screeners cite
  exclusions exactly as the table writes them, E-codes only
- which criteria are decidable at this stage
- the decision rules below

## Calibration First

Screen a **pilot batch of about twenty records** with both screeners before the full
run, and compute κ. If it falls below the protocol's threshold, the criteria are
ambiguous: rewrite the criterion the disagreements cluster on, record the amendment in
`protocol.md` section 14, and re-pilot.

Adjudicating a hundred disagreements caused by one vague criterion is the most expensive
possible way to fix it. Calibration is standard practice for human teams for the same
reason.

### Agreement does not show a shared doubt

κ finds criteria the two screeners read differently. It cannot find one they both read
the same way while neither was sure, and two instances of one model usually do. In the
second end-to-end run the pilot agreed on 15 of 15 records and no criterion was
changed; 12 of the 52 studies later included were of doubtful eligibility.

So each screener also fills a `doubt` column: the criterion that did not clearly decide
a record, and the question it leaves open. After the pilot, read the doubts before
reading κ. **A criterion that draws doubts in the pilot is revised now** — an amendment
giving it a case on each side of the line, then a re-pilot — whatever the agreement
was. One doubt is worth a look; the same criterion doubted on three records is a gap.

### Project the full-text volume

The pilot also measures how many records advance. Before the full run, project it:

```
projected full texts = (pilot records advanced ÷ pilot size) × records to screen
```

Compare it with the full-text estimate in `protocol.md` section 13. **If the projection
is well above the estimate — half again or more — stop and raise it with the user**
before screening the rest. Name the cause, which is usually a discriminating criterion
that is full-text-only, and the choices: make that criterion decidable from an abstract
(an amendment), narrow a string (an amendment), or accept the volume. In the first
end-to-end run, nine records in ten advanced. A projection from the pilot is how to
learn that before the full run rather than after it.

Record the projection, the estimate and the decision in `search-log.md`.

## Stage 1 — Title and Abstract

Both screeners answer `include`, `exclude` or `unsure` per record, citing an exclusion
code for every `exclude`. A record failing inclusion criterion I<n> is excluded under
its mirror E<n>.

**The liberal rule:** a record advances to full text if **either** screener answers
`include` or `unsure`. It is excluded only when both exclude. A title/abstract exclusion
is irreversible and cheap to avoid; eligibility is properly decided at full text. State
this rule in `protocol.md` section 6 — PRISMA item 8 asks how decisions were made.

A criterion that needs the full text is answered `unsure` at this stage, never guessed.

## Stage 2 — Full Text

### Fetch once, before anyone reads

Retrieve every advanced record's text **once**, before either screener starts, so both
screeners, the adjudicator and later the appraisal agents all read the same file — and
every quotation they make can be checked against it:

```
python3 ${CLAUDE_SKILL_DIR}/scripts/fetch_fulltext.py records.csv <record_id>... --out fulltext --log retrieval.csv
```

It saves `fulltext/<record_id>.txt` from the arXiv HTML rendering or Europe PMC's
open-access XML, and **refuses to save a text that does not carry the record's title**.
For each record the log says whether it was retrieved, by which route, and why not.

For a record the script could not route — a DOI with no arXiv ID or PMID — try an
open-access copy yourself. Check its title against the record before saving it as
`fulltext/<record_id>.txt`, and update that record's `retrieval.csv` row with the route
you used. Open-access routes only.

`full_text_retrieved` in `screening.csv` comes from `retrieval.csv`, not from the
screeners. A record with no saved text is `full_text_retrieved=no`. That is the "Reports
not retrieved" box, and it stays in the flow rather than disappearing.

### Judge

Only records with a saved text go to the screeners. Both judge eligibility against the
saved texts, given the `fulltext/` path, in **batches of about five**, each writing
`screening/ft-<batch>-s1.csv` or `-s2.csv`. They read the sections that decide
eligibility — methods, population, design — one paper at a time, and never fetch.

Batches are small because the failure they prevent is real. In this pipeline's first
end-to-end run, a screener with a large batch in view quoted a passage from one paper
as evidence about another.

- **Both agree** → that is the decision. A doubt either of them recorded stays with
  the record.
- **They disagree** → `literature-review:screening-adjudicator` decides, citing the
  criterion and the passage, or escalates to the user when the criterion itself is
  ambiguous. It writes `screening/adjudication-<round>.csv`, where the round is the
  main search or a snowballing iteration.

Every full-text exclusion carries a criterion. The flow diagram lists exclusion reasons
with a count each, and the count comes from this column.

### Check every quotation

As each screener's file returns, **before comparing it with the other's**:

```
python3 ${CLAUDE_SKILL_DIR}/../literature-review/scripts/verify_quotes.py --fulltext fulltext --own protocol.md --own screening/brief.md screening/ft-<batch>-s<n>.csv
```

It finds each quotation in the saved text of the record on its row. `--own` keeps a
criterion quoted from the protocol or the brief from being read as a paper's words. Any `NOT FOUND` or
`TRANSPLANT` — real words from a different paper — fails the batch:

1. **Discard that screener's whole batch**, not just the bad row. A screener that
   misattributed one passage may have misjudged its neighbours, and its other decisions
   were made in the same context.
2. Move the file to `screening/rejected/` — it is evidence for the disclosure.
3. Re-run that batch with a **fresh** screener instance, same brief, same records.
4. If the fresh instance fails too, stop and tell the user. The batch or the brief is
   the problem.

κ is computed on the decisions that survived, so it measures the re-run, and the
conduct disclosure says so with the number of batches replaced.

Check the adjudicator's file the same way. Before the gate, make one final run over
every surviving full-text file and the adjudications, with
`--report checks/quote-check-screening.md`. `UNCHECKABLE` there means a quotation about
a record with no saved text, which should not happen when screeners read only saved
texts — find out why.

Title/abstract rationales are not checked: they quote abstracts both screeners had in
the brief, and an exclusion there needs both screeners to agree anyway.

### Reports and studies

When two included records are reports of one study — a preprint and its published
version, a trial and its secondary analysis — give them the same `study_id`. The flow
diagram's last box counts both studies and reports, and this column is where that
distinction lives.

## Who Decided

The PRISMA template's second footnote requires a review using automation tools to report
how many records a human excluded and how many the tools did. Agent screening is an
automation tool.

`decided_by` is `automation` when the screeners agreed or the adjudicator decided, and
`human` **only when the user made or changed that specific decision**. Approving the
inclusion set as a whole does not make every decision in it human; claiming otherwise
inflates the human count the footnote exists to make visible.

## `screening.csv`

One row per record per stage:

```csv
record_id,stage,screener_1,screener_1_criterion,screener_2,screener_2_criterion,agreed,adjudication,final,final_criterion,decided_by,full_text_retrieved,study_id,doubt
```

`stage` is `title_abstract` or `full_text`. `full_text_retrieved` and `study_id` apply
to full-text rows. `doubt` carries a doubt from either screener or the adjudicator at
that stage: the criterion code first, then the open question; where two were recorded,
the one on the criterion that mattered most to the decision. A doubt at title/abstract
that the full text settled is not carried to the full-text row. `examples/screening.csv` and `examples/records.csv` exercise every
case — a duplicate, an automation-ineligible record, human and automation exclusions,
`unsure` votes, an adjudicated disagreement, an unretrieved report, and a
preprint/published pair counted as one study.

## Deriving the Numbers

At the end of each screening round:

```
python3 ${CLAUDE_SKILL_DIR}/scripts/screening_stats.py records.csv screening.csv --protocol protocol.md --out prisma-flow.json
```

It emits the flow counts — the input to the figure phase's `prisma_flow.py` — and κ with
raw agreement for each stage. **No number in the flow diagram is transcribed by hand.**

It checks the files first and **refuses to emit counts** from inconsistent data: a kept
record never screened, a screening row for a duplicate, a record advanced with no
full-text row, a full-text exclusion with no reason, a record ID that could not name a
saved text. Fix the data; do not work around
the check.

It also counts the included reports whose full-text row carries a doubt, by criterion,
as `eligibility_doubt`. Those are the doubtful inclusions the gate lists and the
synthesis reports with and without.

`--protocol` renders each exclusion reason from the criteria table — `E2: Not adults`,
not whatever a screener wrote — and counts sub-codes such as `E2a` under their parent.
It refuses an I-code given as an exclusion reason, a code the table does not define,
and a table missing labels or mirrors. Without it the reasons appear as written, and
one criterion can split across several lines of the flow diagram; always pass it.

κ for full text excludes reports that were never retrieved, since nobody could judge
them.

Other-methods records lose some to deduplication and title/abstract screening before
they are "sought", and the two-column template has no box for that. The script emits a
note with the numbers; put it in the figure caption.

## The Gate

After the last snowballing pass is screened, present — with `AskUserQuestion` where
there is a real choice:

- The flow counts from `prisma-flow.json`
- κ and raw agreement per stage, and whether calibration changed any criterion
- Every adjudicated record, with the adjudicator's reasoning
- Anything the adjudicator escalated
- **Doubtful inclusions**, grouped by criterion: every included record whose row
  carries a doubt, the question each leaves open, and for each criterion the sentence
  that would settle it. When they are more than about a tenth of the inclusion set,
  recommend the amendment and re-screening the affected records over carrying them
  forward
- **Near-misses** — records that nearly met the criteria and why they were excluded.
  PRISMA item 16b asks for these by name
- Reports not retrieved, which the user may be able to obtain. A text the user
  supplies is saved as `fulltext/<record_id>.txt`, its `retrieval.csv` row marked
  `route=user`, and the record screened like any other
- The quote check: quotations checked, every failure, and the batches replaced
- Reports grouped under one `study_id`

Recommend, do not just list. **Appraisal does not start until the user approves the
inclusion set** — or, in an unattended run, until `gate-2.md` records the decision taken
in their place, as the `/literature-review:review` command describes. Any decision the
user changes gets `decided_by=human`, and `screening_stats.py` is re-run.

## Never

- **Never show one screener the other's decisions.**
- **Never exclude at title/abstract on a criterion that needs the full text.**
- **Never mark a decision human** that the user did not individually make.
- **Never invoke Sci-Hub** for a full text.
- **Never compare a screener's decisions before its quotations pass.**
- **Never let an agent fetch a full text during screening.** Fetching is done once, by
  script, before screening.
- **Never drop an unretrieved report.** It is a box in the flow diagram.
- **Never let agreement clear a doubt.** Two screeners agreeing on an unclear criterion
  is one reading, counted twice.

Files in this skill

  • SKILL.md14.3 KB
  • examples/protocol.md992 B
  • examples/records.csv2.7 KB
  • examples/screening.csv2.6 KB
  • scripts/fetch_fulltext.py5.7 KB
  • scripts/screening_stats.py13.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.