Skip to content

About

Agent plugin (MCP server + skills) for reading a scholarly article against its own text: argument draft, section and methodology review, reference and citation checks, a numbers check and reporting-guideline checklists.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

article-review

An agent plugin for reading a scholarly article against its own text. It gives your agent (Claude Code, Codex, pi, Hermes, DeepSeek Harness or any MCP client) source-linked tools over a local file:

  • an argument reconstruction;
  • section and methodology review;
  • reference and citation checks;
  • a numbers check that recomputes reported statistics;
  • reporting-guideline checklists (CONSORT 2025, PRISMA 2020, STROBE, PRISMA-ScR, COREQ, SRQR).

Every quotation it saves comes from passages the tools actually delivered; the server fills in the exact source text.

Sources: PDF, DOCX, XLSX, Markdown, text, DOC, HWP and HWPX.

Install

Needs Node 22 or later (the server runs with npx). Nothing to build.

Agent Install
Claude Code /plugin marketplace add junhewk/article-review, then /plugin install article-review@article-review
Codex codex plugin marketplace add junhewk/article-review, then codex plugin add article-review@article-review
pi npx -y article-review connect pi
Hermes npx -y article-review connect hermes
DeepSeek Harness npx -y article-review connect dsh
Any other MCP client server command npx -y article-review@0.1.1 mcp; skills in plugins/article-review/skills/; tools in docs/tools.md

The connect command is for agents that do not read Claude Code or Codex plugins.

  • What it changes: it adds the MCP server to the agent's own config (~/.pi/agent/mcp.json, ~/.hermes/config.yaml, ~/.dsh/cordis.patch.yml) and copies the skills as article-review-*. Only article-review's own entries are touched; comments and other servers are kept.
  • Backups: the previous config is saved under ~/.article-review/backups/.
  • Previewing and undoing: --dry-run shows the changes without making them, and npx -y article-review remove <agent> undoes them.

Start a new agent session after installing.

Use

Ask in your own words and give the file's absolute path. For example:

  • "Draft the main argument of /abs/path/paper.pdf in Korean."
  • "Do a section review of /abs/path/manuscript.docx."
  • "Review the methods of /abs/path/paper.pdf as a qualitative study."
  • "Check the references in /abs/path/manuscript.hwpx, then look up the ones without a DOI."
  • "Check whether the citations in /abs/path/paper.pdf say what the cited works say."
  • "Check the statistics and the tables in /abs/path/paper.pdf."
  • "Go through CONSORT for /abs/path/trial.docx."

Results are in English by default. Ask in Korean, or ask for Korean, and they are written in Korean.

What you see

Each module returns a short summary, one line per item, and writes the details to a file beside the source. The agent puts the summary first in its reply, as returned; any explanation of its own comes after it. The examples below are synthetic.

Opening a source. open_source finds the parts every module relies on. A paper need not have an "Abstract" or "References" heading:

  • headings come from the file's styles, PDF typography, or a short capitalised or numbered line;
  • a bibliography without a heading is found by its entries' form;
  • PDF notes are found in the small type at the foot of pages, and raised note numbers in the text are linked to them;
  • running heads, footers and page numbers are left out.

When part of the structure rests on inference (a bibliography found by its form, PDF notes, an abstract no heading ended) or on corrections, every module summary carries one line saying so, after its first line:

Structure to check: 12 notes read from small type at the foot of PDF pages (structure.md)

The agent can correct the structure with source_structure, and every module uses the correction. Ask about the structure and the agent shows the whole summary:

**Source structure** (PDF · 14 pages · 165 blocks)

- 16 headings: A TITLE SET LARGE · AN AUTHOR · ABSTRACT · INTRODUCTION · 12 more
- Abstract: seg-00004–seg-00008 (label)
- 12 notes (small type at the foot of PDF pages)
- No bibliography list (cited works are read from the notes)
- Left out: 27 running heads, footers and page numbers

If any of this is wrong, correct it with source_structure. Block by block: …/structure.md

Argument draft (skill argument-draft). The summary is a premise-conclusion reconstruction. Every proposition is one line, and premises come before what they support. A conclusion is marked ∴ with the lines it rests on, and named thought experiments and analogies sit beside their steps. Objections, replies, conditions and source passages are in draft.md.

**Argument reconstruction draft** (unreviewed)

Problem: Should every clinic adopt the reminder programme now?

1. The programme reduced missed appointments in three pilot districts. [fact]
2. (Thought experiment) The ferry timetable
3. Missed appointments harm patients and waste clinic time. [value]
4. ∴ The programme is worth adopting where conditions match the pilot. [intermediate] ← 1, 3
5. ∴ Every clinic should adopt the programme now. [conclusion] ← 4

Full draft (derivations, conditions, objections and replies, source passages, limits): …/argument/draft-1/draft.md

Section review (skill section-review). It asks questions about local inconsistency, shifts of concept or scope, unlicensed inference and consequential ambiguity, unit by unit. Each candidate is one line with its unit and labels; the question, reason, impact, strongest author answer and passages are in section/report.md.

**Section review** (2 of 2 units complete · 2 candidates)

- P1. [unit 1 · Background] "Pilot" means three districts here but every rural clinic later [concept shift · explicit difference]
- P2. [unit 2 · Argument] Scope widens from small rural clinics to every clinic [scope shift · unlicensed inference]

Full report (questions, reasons, impact, author answers, source passages): …/section/report.md

Methodology review (skill methodology-review). It first reconstructs each unit's methods from the source. It then raises concerns under one study profile: quantitative, qualitative, systematic review, scoping review or narrative review.

**Methodology review: Quantitative methods** (3 of 3 units complete · 1 candidate)

- P1. [unit 2 · Methods] The denominator for the pilot districts is not reported [criterion: population · reporting gap]

Full report (questions, reasons, impact, author answers, source passages): …/methodology/quantitative/report.md

Reference check (skill reference-check). It checks bibliography format and consistency and looks up records at Crossref or OpenAlex. A record also shows retractions, expressions of concern and corrections (from the publisher or the Retraction Watch Database). The summary lists only what needs attention and counts the rest; references/report.md has every entry.

**Reference check** (24 references · citation style numbered · parse confidence high)

1 retraction, concern or correction notice
- R3 retraction (Retraction Watch · 2022-05-01 · notice 10.1000/xyz): Lee H. Signage trial. Test J. 20…
(checked only in the 6 of 24 entries looked up)

1 format issue
- In-text citation [25] has no detected bibliography entry.

6 looked up: matching 4 · field difference 1 · unresolved 1
- R7 field difference (year): Smith J. Road markings. Test Journal. 2019;1:1-3.
- R12 unresolved: Jones K. Navigation in rural settings. Regional Press; 2008.
(a missing record is not proof the work does not exist)

Full report (entry text, lookups, limits): …/references/report.md

Citation check (skill citation-check, experimental). It compares each citing claim with the cited work's passages, after finding its sources at fixed scholarly APIs. When the cited work is unclear or no text is available, it stops and asks you.

**Citation check** (complete · 3 links · 2 compared · 1 unchecked · 0 deferred · 5 lookups)

- l1 [R1] “Road markings cut navigation errors [1].” → supported
- l2 [R2, R3] “Navigation aids work in every setting [2, 3].” → partial · question
- l3 [R4] “Older drivers benefit most [4].” → unchecked: no full text available

Full report (claims, reasons, component evidence, source passages): …/citations/report.md

Numbers check (skill numbers-check). With no model, the server recomputes what the paper prints in recognisable forms: p values from t, F, χ², r and z with their degrees of freedom, percentages from counts, and ratio estimates against their confidence intervals. For what the scan cannot pair, the agent asks for a calculation, giving each value as printed and where; the server confirms the values are there before computing:

  • table values: GRIM, GRIMMER, sums, percentages, tests and intervals;
  • a 2×2 table: the odds ratio and χ² (with and without Yates's correction) from two groups' counts, against the printed ones;
  • a sample-size statement: the power two proportions give at the stated n.

The distribution functions are checked against R. A mismatch is a question for the authors, not evidence of misconduct.

**Numbers check** (31 checked · 2 inconsistent · 1 changing significance · 4 calculations)

- N7 [page:5/block:3] t(28) = 2.20, p = .36 → p 0.0358–0.0366 (two-tailed) · changes significance at .05
- C2 GRIM (Table 2, control): mean 3.48 · n 15 → nearest 52/15 = 3.47 · inconsistent (no whole total gives this mean)

Not checked: 3 p values printed without a test statistic
Means, totals and other table values are checked one by one with numbers_calculate.

Full report (every check, its recomputation and where it is printed): …/numbers/report.md

Reporting checklist (skill reporting-checklist). For CONSORT 2025, PRISMA 2020, STROBE, PRISMA-ScR, COREQ or SRQR, followed by the declarations the guideline lacks (ethics approval, consent, conflicts, funding, data availability, registration), the agent records each item as found (with source passages), not found (with where it looked) or not applicable (with why). Item numbers follow the official checklists; the item wording is the tool's own short version, so check borderline items against the official checklist.

**Reporting checklist: CONSORT 2025** (44 items · found 38 · not found 3 · not applicable 1 · not yet recorded 2)

- 8 Patient and public involvement → not found (searched methods and acknowledgements)
- 16b Interim analyses → not found (no interim analysis or stopping rule mentioned)
- 24b Concomitant care → not found
(Not found does not mean not reported; check against the official checklist wording.)

Full report (each item's source passages, notes and the guideline's source): …/checklists/consort-2025/report.md

Files

open_source parses the file and creates one work folder beside it, <file>.article-review/:

paper.pdf.article-review/
  source.json                  path, hash, format
  structure.md, structure.json every block's part; the agent's corrections
  argument/draft-N/            draft.md, backbone.json, session.json
  section/                     report.md, state.json
  methodology/<profile>/       report.md, state.json
  references/                  report.md, report.json, state.json
  citations/                   report.md, state.json, tasks/, responses/
  numbers/                     report.md, state.json
  checklists/<guideline>/      report.md, session.json

The .md files are for reading. The JSON files are the full records. Running a module again updates its files: a new argument draft gets its own folder, and a review can be continued or started over. When a structure correction changes a review's units or the bibliography, the earlier review or check is kept as <folder>-previous-N and a new one starts.

How it works

Each module hands the agent a contract: system text, tool schemas and a packaged skill. The agent reads through the tools and saves its results through them. The server checks the results are well formed before it writes them:

  • schemas, including one-line propositions and titles;
  • quotations only from issued selectors, with exact source ranges;
  • IDs, links and graph structure;
  • an unchanged source file, detected by hash.

Usage is not limited: no budgets, approvals, one-shot submissions or correction limits. A rejected call explains what to fix and nothing ends. Drafts can be resubmitted, units reopened and lookups repeated. Long papers take many tool calls; in Claude Code a subagent per task keeps that reading out of the main conversation.

Privacy and network

The server calls no model. The source text goes to whatever model runs your agent; choose that model accordingly. The only network use is the reference and citation checks, which go over HTTPS to these fixed hosts:

  • Crossref, OpenAlex, DataCite and Unpaywall;
  • NCBI E-utilities (PubMed, PMC) and Europe PMC;
  • arXiv and bioRxiv.

Their URLs are built from the saved bibliography or a bound identifier. Any other host is refused, so a URL suggested by a model or a source is never fetched. Requests to one host go one at a time, and a rate-limit reply (429) is retried once after the wait the host asks for. Open-access locations are listed but not downloaded; you can attach a PDF you obtained yourself. Retraction data comes from Crossref, including the Retraction Watch Database, and reports credit it.

What the results are

Drafts and proposals for the person using them:

  • A saved argument draft is unreviewed.
  • A question is a proposal carrying the model's own labels.
  • A "matching record" is not proof of a source's content.
  • Missing text is never a contradiction.

Nothing here certifies an article's logic or science or replaces the reader's judgment.

Known limits

  • Reading. Figures and images are not read; tables are read as text. A scanned PDF has no text (there is no OCR). Supplementary files, registrations and protocols are not fetched.
  • Structure. Footnotes numbered from 1 again on each page are not split correctly. Endnotes set in body type under a "Notes" heading are read as notes by the reviews but as body by the reference check, and their note numbers in the text are not linked. A bibliography without a heading is found only at the end of the text or just before an appendix, with at least five entries.
  • References. A record matches on title, DOI, author and year; a note that names several works looks up poorly, and books and chapters are thinly indexed. Retractions are known only for entries looked up.
  • Citation check. Experimental. It compares only text it can obtain (open full text, abstracts or a PDF you attach).
  • Numbers check. It finds common printed forms only; p values are taken as two-tailed and ratio intervals as 95%. GRIM and GRIMMER fit whole-number data only, and power uses the normal approximation.
  • Checklists. Item wording is the tool's own short version; "not found" means the agent did not find it.
  • Reviews and drafts. Questions, candidates and drafts come from the model running the agent, and their quality depends on it. Long papers take many tool calls.

Development

corepack pnpm install
corepack pnpm typecheck
corepack pnpm test           # kernel, plugin, connect and release-consistency tests
corepack pnpm build          # server/: the article-review command, pdf.js data, skill texts, licences
node server/article-review.mjs connect hermes --local   # register this checkout's build with an agent

src/core/ holds the review kernels and src/plugin/ the MCP host, the summaries and report files, and the article-review command. plugins/article-review/ is the Claude Code and Codex plugin, and its skills/ are the skills every agent receives.

  • docs/design.md: where rules live and how the tests relate to the original Python core.
  • docs/tools.md: every tool and its parameters, written from the server (corepack pnpm docs:tools; a test fails when it is out of date).
  • docs/evaluation.md: checking a change in an agent's own UI, with a synthetic manuscript whose planted errors are known.
  • CHANGELOG.md: what each release changed.

Releasing:

  1. corepack pnpm version:set X.Y.Z updates package.json and every pinned article-review@X.Y.Z.
  2. Date the version's entry in CHANGELOG.md and commit, then tag and push vX.Y.Z.
  3. The release workflow tests the build, publishes to npm through npm trusted publishing (OIDC, with provenance; no token is stored) and creates the GitHub release.

Origin and licence

The kernels come from ReviewTab, a desktop reviewer-support app discontinued at 0.1.3. This repository drops the app's UI, locked model host, budgets and approvals. MIT licensed; see LICENSE. The built server bundles the third-party packages listed in server/THIRD_PARTY_LICENSES.md (pdf.js and cfb are Apache-2.0, yaml is ISC, the rest are MIT).

About

Agent plugin (MCP server + skills) for reading a scholarly article against its own text: argument draft, section and methodology review, reference and citation checks, a numbers check and reporting-guideline checklists.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages