# Systematic Review Ledger

> Run a systematic or scoping review as an auditable screening funnel with the native `review` tool — protocol, record intake from literature searches, two-stage screening (single or dual reviewer), verbatim evidence, risk-of-bias appraisal, PRISMA-style counts, agreement statistics, and exports. Use when the user asks for a systematic review, scoping review, PRISMA audit, reproducible screening, dual-reviewer screening, or an evidence table built from a search.

- Skill: `raktim-mondol/systematic-review-ledger` (Agent Skill)
- Install (CLI): `npx get-skill add raktim-mondol/systematic-review-ledger`
- Raw SKILL.md: https://api.skillmd.com/api/skills/raktim-mondol/systematic-review-ledger/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- License: MIT
- Author: raktim-mondol (https://skillmd.com/u/raktim-mondol)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/raktim-mondol/systematic-review-ledger

---


# Systematic Review Ledger

> **In Academic Harness:** the native `review` tool is the ledger. It stores
> an append-only event log under `.dsh/review/<slug>/`; discovery still comes
> from `literature_search`, `openalex_search`, `pubmed_search`, `arxiv_search`,
> `s2_search`, or `crossref_lookup`. Run `integrity_check` before citing any
> record in the final report. After full-text inclusion, route risk-of-bias
> work to the `risk-of-bias-appraisal` skill.

Use this skill when the deliverable must show *how* studies were selected, not
just what was found. For an ordinary narrative literature review, use the
`literature-review` skill instead — a ledger adds bookkeeping that survey does
not need. For a survey-grade report with frozen research questions and
per-citation verification, use the Supervisor-Skills `deep-research`.

## Ledger layout

```
.dsh/review/<slug>/
  protocol.json      write-once review question, criteria, reviewer roster, instruments
  records.jsonl      append-only records with stable ids (r0001, …)
  search_log.jsonl   one row per `add`: source, query, added, skipped
  screening.jsonl    decision events (latest per record+stage+reviewer) and reconciles
  evidence.jsonl     append-only evidence rows (e0001, …)
  extraction_template.json  write-once structured-extraction field definitions
  extractions.jsonl  append-only extraction events (x0001, …) and field reconciles
  appraisal.jsonl    domain judgements and reconciles (a0001, …)
  instruments.json   frozen risk-of-bias instrument definitions
  exports/           review.md, evidence.csv, review.json, extraction tables, PRISMA flow, rob-table/rob-summary, SVGs
```

Never edit these files by hand. The event logs are the audit trail; rewriting
them destroys the record of what was decided and by whom.

## Workflow

### 1. Protocol before search

Agree the question and criteria with the user first, then:

```text
review action=start slug=<short-name> question="…" databases=["OpenAlex","PubMed"]
  inclusion=["…"] exclusion=["…"] date_range="2015-2026" [notes="…"]
```

`start` refuses to overwrite an existing review. `resume: true` continues one;
the protocol is never silently changed. Do not start searching before the
question and criteria are explicit — screening criteria invented after results
are known invalidate the funnel.

### 2. Discovery, then intake

Run searches in the normal search tools and pass each query's results to the
ledger:

```text
review action=add slug=<name> source=literature_search query="…" records=[…]
review action=add slug=<name> source=crossref query="…" path=literature/query-1.jsonl
```

- `records` takes the tool result array directly (normalized papers or
  CSL-JSON-like objects with `title`, `doi`, `authors`, `year`, `venue`).
- `path` reads a workspace JSON array, `{ "results": [...] }`, or JSONL.
- Deduplication order: DOI → PMID → arXiv → normalized title+year. Re-adding
  the same query must add zero records; it still writes a search-log row.
- One `add` per query, with the real query string, so the search log can be
  reported. Do not merge several queries into one intake call.

### 3. Two-stage screening

```text
review action=screen slug=<name> id=r0001 stage=title_abstract decision=include
review action=screen slug=<name> id=r0002 stage=title_abstract decision=exclude reason="animal study"
review action=screen slug=<name> id=r0001 stage=full_text decision=include
```

- Decisions are `include`, `exclude`, `maybe`. `exclude` and `maybe` require a
  reason; keep reasons short and criterion-shaped ("wrong population", not
  "not relevant").
- `full_text` is rejected until that reviewer has a `title_abstract` include.
- Re-screening a stage is rejected unless `override: true`; it replaces only
  that reviewer's event. Both events stay in the log — say in the report that a
  decision was overridden instead of hiding it.
- For dual review, declare `reviewers` at `start` and pass `reviewer` on every
  `screen`. Reviewers record independently; `status` reports a conflict when
  their resolved decisions differ. Reconcile with
  `reconcile scope=screening stage=… decision=… reviewer=… reason=…`; the
  originals stay in the log.
- The tool never decides. Ask the user (or apply the stated criteria one
  record at a time) and show the title before recording the decision. Never
  infer a decision from an abstract silently.

### 4. Evidence extraction

```text
review action=evidence slug=<name> id=r0001 claim="X reduced Y by 20%" \
  quote="X reduced Y by 20% (p=0.01)" location="Results, p. 4" page=4 section=Results
```

- Only for a record whose full-text decision resolves to `include`. A record
  still in a full-text conflict cannot take evidence; reconcile it first.
- `quote` is stored verbatim. If the paper is in PaperMemory, run
  `papermemory_quote_check` / `papermemory_trace` — the ledger does not verify
  evidence quotes and an unverified quote must not be presented as verified.
- `scan`/OCR-recovered papers are capped at `extracted` in PaperMemory; carry
  that caveat into the report.

### 5. Structured extraction

Freeze a template at `start` or on the first `extract`:

```text
review action=start slug=<name> question="…" extraction_template="pico"
review action=extract slug=<name> id=r0001 reviewer=human:alice \
  values={"population":"Adults","intervention":"X","comparator":"Placebo","outcome":"Y","design":"RCT","n":120,"effect":0.74,"effect_measure":"RR"} \
  quotes={"effect":{"quote":"RR 0.74 (95% CI 0.61–0.90)","location":"Results, p. 4"}} \
  paper=<papermemory-id>
review action=extract_status slug=<name>
```

- Built-in templates: `generic`, `pico`, `peco`, `diagnostic_accuracy`, `prognostic`, `qualitative`. An inline template is `{id, name, version, fields:[{id, label, type, required, options?, unit?}]}`.
- `values` keys must match template field ids. Missing required fields are counted, never filled. Unknown fields and wrong types are rejected.
- Use `row_id` for multiple outcomes, arms, or comparisons; each row is a separate extraction, not an overwrite.
- Field-level `quotes` need a location. With `paper`, the quote is re-found through `papermemory_quote_check`; a quote absent from a resolved paper is rejected, an unresolved paper is stored `unverified`.
- Dual extraction conflicts are field-level. Resolve one with `review action=reconcile scope=extraction id=r0001 field=n value=110 reviewer=human:alice reason="consensus"`; both originals stay.
- `extract_status` reports complete/incomplete/conflict/pending rows, missing required fields, and verified/unverified quotes. Never present a conflicted field as a value.

### 6. Status before counts

```text
review action=status slug=<name>
```

Report only what it returns: records total, search queries/added/skipped,
title/abstract and full-text counts, per-reviewer counts in dual mode,
`conflicts`, exclusion reasons, `included`, and `included_without_evidence`.
Resolve pendings, conflicts, and missing evidence with the user before writing
"N studies were included" — a PRISMA count is a claim about the funnel. Use
`agreement scope=screening` for inter-rater agreement; report it with N,
percent agreement, κ, and the marginal/prevalence caveat, never as a verdict.

### 7. Export the deliverable

```text
review action=export slug=<name> format=markdown
review action=export slug=<name> format=csv
review action=export slug=<name> format=json
review action=export slug=<name> format=extraction-table table_format=markdown
review action=export slug=<name> format=extraction-matrix table_format=csv
review action=export slug=<name> format=extraction-json
review action=export slug=<name> format=prisma-flow
review action=export slug=<name> format=rob-table table_format=markdown
review action=export slug=<name> format=rob-summary table_format=csv
review action=export slug=<name> format=rob-figure
```

- `markdown` — protocol, PRISMA-style table, exclusion reasons, included
  records, evidence table, extraction table (when a template is frozen), and
  review checklist.
- `csv` — evidence rows with record title/DOI.
- `json` — full protocol, derived status, records, screening events, evidence,
  extraction template/status/events, and (when present) appraisal events and
  frozen instruments.
- `extraction-table` / `extraction-matrix` — one row per study × outcome;
  Markdown or CSV. Missing required fields are blank and counted; a conflicted
  cell reads `conflict`.
- `extraction-json` — template, derived extraction status, and raw events.
- `prisma-flow` — `prisma-flow.svg` plus `prisma-flow.json`; counts come from
  the ledger, missing counts read `not recorded`, and the diagram is labelled
  PRISMA-style, not a compliance statement.

Exports refuse to overwrite unless `overwrite: true`; a second export of the
same format is a deliberate replacement, not routine.

## Reporting rules

- Label counts as **PRISMA-style**, derived from this ledger. The
  `prisma-flow` export is a PRISMA-style flow diagram generated from recorded
  counts; it is not a compliance statement, and missing counts must stay
  `not recorded`.
- Name every database and the date of search from the search log. Never
  present a ledger built from one source as a multi-database review.
- Duplicates skipped is a counted outcome, not an error to hide.
- Screening is a human decision; if the user has not made it, leave records
  pending rather than filling the table.
- A second reviewer does not overwrite the first; a disagreement is a conflict
  until reconciled. Keep `human:` and `ai:` judgements distinguishable.
- Inter-rater agreement is descriptive: report κ with its CI, N, and marginal
  caveats. Do not treat κ as proof that the screening is correct.
- Publication status comes from `integrity_check`, not from this ledger.
- Extraction values are records of what a reviewer reported, not verified
  facts. Report quote verification separately; never fill a missing field or
  silently choose one side of a conflict.

