OpenJudge paper-review
git clone https://github.com/agentscope-ai/OpenJudge
T=$(mktemp -d) && git clone --depth=1 https://github.com/agentscope-ai/OpenJudge "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/paper-review" ~/.claude/skills/agentscope-ai-openjudge-paper-review && rm -rf "$T"
skills/paper-review/SKILL.mdPaper Review Skill
Multi-stage academic paper review using the OpenJudge
PaperReviewPipeline:
- Safety check — jailbreak detection + format validation
- Correctness — objective errors (math, logic, data inconsistencies)
- Review — quality, novelty, significance (score 1–6)
- Criticality — severity of correctness issues
- BibTeX verification — cross-checks references against CrossRef/arXiv/DBLP
Prerequisites
# Install OpenJudge pip install py-openjudge # Extra dependency for paper_review pip install litellm pip install pypdfium2 # only if using vision mode (use_vision_for_pdf=True)
Gather from user before running
| Info | Required? | Notes |
|---|---|---|
| Paper file path | Yes | PDF or .tar.gz/.zip TeX package |
| API key | Yes | Env var preferred: , , etc. |
| Model name | No | , , . See Model selection below |
| Discipline | No | If not given, uses general CS/ML-oriented prompts |
| Venue | No | e.g. , |
| Instructions | No | Free-form reviewer guidance, e.g. |
| Language | No | (default) or for Simplified Chinese output |
| BibTeX file | No | Required only for reference verification |
| CrossRef email | No | Improves API rate limits for BibTeX verification |
Quick start
File type is auto-detected:
.pdf → PDF review, .tar.gz/.zip → TeX review, .bib → BibTeX verification.
# Basic PDF review python -m cookbooks.paper_review paper.pdf # With discipline and venue python -m cookbooks.paper_review paper.pdf \ --discipline cs --venue "NeurIPS 2025" # Chinese output python -m cookbooks.paper_review paper.pdf --language zh # Custom reviewer instructions python -m cookbooks.paper_review paper.pdf \ --instructions "Focus on experimental design and reproducibility" # PDF + BibTeX verification python -m cookbooks.paper_review paper.pdf \ --bib references.bib --email your@email.com # Vision mode (for models that prefer images over text extraction) python -m cookbooks.paper_review paper.pdf \ --vision --vision_max_pages 30 --format_vision_max_pages 10 # TeX source package python -m cookbooks.paper_review paper_source.tar.gz \ --discipline biology --email your@email.com # TeX source package with Chinese output and custom instructions python -m cookbooks.paper_review paper_source.tar.gz \ --language zh --instructions "This is a short paper, be concise" # Verify a standalone BibTeX file python -m cookbooks.paper_review --bib_only references.bib --email your@email.com
All options
| Flag | Default | Description |
|---|---|---|
(positional) | — | Path to PDF, TeX package, or .bib file |
| — | Path to .bib file for standalone verification (no review) |
| | Model name |
| env var | API key |
| — | Custom API endpoint — must end at , not (litellm appends the path automatically) |
| — | Academic discipline |
| — | Target conference/journal |
| — | Free-form reviewer guidance |
| | Output language: or |
| — | Path to .bib file (for PDF review + reference verification) |
| — | CrossRef mailto for BibTeX check |
| filename stem | Paper title in report |
| auto | Output .md report path |
| off | Skip safety checks |
| off | Skip correctness check |
| off | Skip criticality verification |
| off | Skip BibTeX verification |
| on | Use vision mode (requires pypdfium2); enabled by default |
| | Max pages in vision mode (0 = all) |
| | Max pages for format check (0 = use ) |
| | API timeout in seconds |
Interpreting results
Review score (1–6):
- 1–2: Reject (major flaws or well-known results)
- 3: Borderline reject
- 4: Borderline accept
- 5–6: Accept / Strong accept
Correctness score (1–3):
- 1: No objective errors
- 2: Minor errors (notation, arithmetic in non-critical parts)
- 3: Major errors (wrong proofs, core algorithm flaws)
BibTeX verification:
: found in CrossRef/arXiv/DBLPverified
: title/author mismatch or not found — manual check recommendedsuspect
Model selection
This pipeline uses litellm for model calls. Provider prefixes are handled automatically by the pipeline — see the table below.
IMPORTANT: The model MUST support multimodal (vision) input. PDF review uses vision mode (
--vision) to render pages as images, which requires a vision-capable model. Text-only models
will fail or produce empty reviews.
The
--model value uses a provider/model-name convention so the pipeline knows
which API endpoint to call. The table below shows the exact string to pass:
| Provider | value | Env var | Notes |
|---|---|---|---|
| OpenAI | , , … | | No prefix needed; is the current flagship vision model; check OpenAI models for the latest |
| Anthropic | , , … | | Use prefix; is the current flagship; check Anthropic models for the latest |
| DashScope (Qwen) | , , … | | Use prefix; the pipeline auto-routes to DashScope’s OpenAI-compatible endpoint |
| Custom endpoint | bare model name | + | Use the model name your endpoint expects; no prefix needed when is set |
Note on prefixes: The
anddashscope/prefixes are interpreted by the pipeline itself — do not add them to the actual API key or base URL. For OpenAI models the bare model name (e.g.anthropic/) is sufficient.gpt-5.2
If the user does not specify a model, choose one based on available API keys:
set → useDASHSCOPE_API_KEY
(vision-capable)dashscope/qwen-vl-plus
set → search web for the latest vision-capable OpenAI model and use it (currentlyOPENAI_API_KEY
)gpt-5.2
set → search web for the latest vision-capable Anthropic model and use it withANTHROPIC_API_KEY
prefix (currentlyanthropic/
)anthropic/claude-opus-4-6
Vision mode is enabled by default for PDF review. Pages are rendered as images, which preserves formatting, figures, and tables. To disable, pass
--no_vision (not recommended).
The model must support multimodal (vision) input.
Additional resources
- Full
options: reference.mdPipelineConfig - Discipline details and venues: reference.md
Troubleshooting API errors
CRITICAL: When the pipeline fails with an API error, you MUST diagnose and fix the root cause. Do NOT fall back to reading the PDF as plain text yourself and calling the API manually — this bypasses the entire review pipeline and produces incorrect, incomplete results.
Diagnose by reading the full error message, then follow the checklist below:
AuthenticationError / 401
- The API key is wrong or not set.
- Check the correct env var for the provider (see Model selection table).
- For DashScope:
— must be non-empty.echo $DASHSCOPE_API_KEY - Fix: export the correct key and re-run.
NotFoundError / 404 — model not found
- The model name string is wrong.
- Search the web for the provider's current model list and use the exact API ID.
- Common mistakes: using a ChatGPT UI name instead of the API ID, outdated snapshot suffix.
- Fix: correct
and re-run.--model
BadRequestError / 400
- Often caused by
ending with--base_url
instead of/v1/chat/completions
. litellm appends the path automatically — strip everything after/v1
./v1 - May also indicate the model does not support vision/image input.
Use a vision-capable model (see Model selection) or omit
.--vision - Fix: correct
or switch to a vision-capable model and re-run.--base_url
Connection error / endpoint not reachable
points to the wrong host or port.--base_url- Test the endpoint first:
curl <base_url>/models -H "Authorization: Bearer <key>" - Fix: correct
to the reachable endpoint and re-run.--base_url
Timeout
- The model is taking too long (common for long PDFs with vision mode).
- Fix: increase
(default 7500 s) or reduce--timeout
.--vision_max_pages
After fixing, always re-run the full pipeline command.
Never summarise or interpret the paper yourself as a substitute for a failed pipeline run.