--- name: paper-reviewer description: Use this skill when the task is to review an academic paper PDF from the repo input folder, run specialized auditors, and compile a final report. --- # Paper Reviewer Skill This skill runs a reproducible multi-agent paper-review workflow for academic PDFs. ## Use this skill when - the input is an academic paper PDF - the task is review, auditing, or verification - the user wants a structured report - the task involves literature claims, references, numeric checks, or internal cross-references ## Do not use this skill when - the user wants only a summary - the user wants only proofreading - the user wants only a rewrite - parsed artifacts already exist and the request is unrelated to the review pipeline ## Default input convention - If the user names a bare PDF filename, first look for it under `inputs/`. - If the user gives a repo-relative path, use it. - If the user gives an absolute path, use it as provided. ## Workflow For fresh runs, use `scripts/review_paper.py` as the primary entry point. The pipeline stages are: 1. Resolve the input PDF path. 2. Derive `paper_id` from the filename stem unless explicitly provided. 3. Preprocess the PDF into `work//parsed/`. 4. Render run-specific prompts into `work//prompts/`. 5. Launch preflight reviewers from `config/reviewers.json`. 6. Validate preflight JSON and stop on blocking parser-quality failures. 7. Route substantive reviewers around parser-quality warnings using the deterministic artifacts and parser-quality JSON. 8. Run the conservative applicability router and record its complete decision in `work//selection/reviewer_selection.json`. Mixed, unknown, or lower-confidence classifications automatically expand to every conditional specialist. 9. Write the active run roster and selection provenance to `work//selection/selected_reviewers.json`. 10. Rerender prompts using the selected reviewer roster and parser-quality guidance. 11. Launch the 8 universal review-stage reviewers and every applicable conditional specialist. The full roster contains 19 substantive reviewers. 12. Validate each reviewer JSON output under `work//reviews/`. 13. Conservatively normalize reviewer outputs into a precision-first, lossless `work//editor/normalized_bundle.json`. Preserve every source finding's details and do not merge findings merely because they share a quote or path. 14. Build `work//editor/editor_input.md` from the deterministic editor brief, the lossless bundle, and a compact provenance index. Validate the source reviewer JSON files, but do not duplicate them in the editor input or truncate evidence. 15. Run the editor to author `work//editor/editor_decisions.json`; validate dispositions and deterministically render its prose to `outputs//report.md`. 16. Smoke-check the final report with `scripts/check_final_report.py --bundle work//editor/normalized_bundle.json`. The supported quality defaults are `gpt-6.2-sol`, `xhigh` reasoning for substantive reviewers and the editor, and `high` for parser-quality preflight and applicability routing. Model availability and structural validation do not establish scientific quality. GPT-6 Luna (`gpt-6-luna`) remains an explicit lower-cost override, without a quality-equivalence claim. There is one public workflow rather than separate static and dynamic modes. ## Editor-only refresh If parsed artifacts, all selected reviewer JSON files, and `work//selection/selected_reviewers.json` already exist, use `scripts/refresh_editor.py --paper-id ` to resume synthesis without rerunning reviewers. The helper: 1. Validates every selected reviewer JSON against the schema, semantic rules, and provenance constraints. 2. Rebuilds the precision-first lossless `work//editor/normalized_bundle.json` from the validated reviews. 3. Rerenders prompts and rebuilds the deterministic brief, lossless bundle, and provenance-only editor input using the active reviewer config. 4. With `--run-editor`, reruns the editor and smoke-checks the final report. Do not use editor-only refresh when reviewer evidence, parser artifacts, or reviewer selection needs to change. Correct or rerun invalid reviewer output first; the helper will refuse to synthesize it. Current editor-only refresh requires unchanged runtime resources and current acceptance receipts. Retain older runs with their original runtime; do not invent completion records or rewrite checkpoint hashes. See `docs/evidence_gates.md` in ordinary checkouts for migration and optional shadow-verification details. ## Critical rules - Internal reviewers return JSON only. - The editor authors all substantive report prose; the shared deterministic renderer writes Markdown and its traceability map from validated editorial decisions. - Literature and reference verification require web search when enabled. - Never guess missing evidence; use `cannot_verify`. - Preserve exact source locations whenever possible. - If parsed artifacts are poor, fix preprocessing before trusting reviewer outputs. - Treat parser-quality preflight warnings as reportable caveats; treat high-confidence blocking parser findings as a reason to stop before substantive review. - Never generate or infer repaired parser content. Do not invoke an external parsing service or an LLM-generated repair layer. If deterministic artifacts do not support a reliable check, use `cannot_verify`. - Keep final-report traceability in the traceability appendix. Do not reintroduce repeated traceability footers in the body. - Literature and novelty critiques must be grounded in concrete studies or marked `cannot_verify`; do not assert lack of novelty from vague prior-work impressions. - If the final report cites external studies, registry records, web pages, or other external evidence, include the external-sources appendix using only source details already present in reviewer evidence. - Put parser/preprocessing issues in the technical appendix and describe them as limitations of the review artifacts. Mention one in the main report only when it materially reduces confidence in a substantive conclusion or prevents verification of an important claim. - Treat `scripts/check_final_report.py` as a structure and traceability smoke check, not as independent verification that external sources are real or current. - Treat every conditional specialist as a full-quality reviewer. Skip one only when a high-confidence classification shows that its entire remit is materially absent. The theory-logic specialist checks formal validity and assumption-to-result logic; the universal model/equation auditor separately checks notation, definitions, and text-equation consistency. - If a reviewer's assigned scope is absent, return `run_status: ok` with an empty findings array. Do not turn the absence of an empirical design, formal model, dataset, experiment, or other method into a criticism. - A missing, stale or invalid editor-decisions object remains incomplete. Preserve diagnostics; do not promote a Markdown acknowledgement or transcript fragment. ## Output conventions - Parsed artifacts: `work//parsed/` - Reviewer selection: `work//selection/` - Reviewer outputs: `work//reviews/` - Final report: `outputs//report.md` The expected final report shape is synthesis-first and consequence-ranked: a compact executive summary; 3 to 6 confirmed corrections when supported; a concise revision sequence; separate material qualifications and exploratory development advice; domain sections; and late appendices for bibliography maintenance, copyediting, external sources, parser limitations, review scope, and traceability. Use one short plain-language review-scope paragraph near the end rather than listing agents or routing metadata.