Paper Review
This skill builds a structured literature-review and data-extraction matrix. It supports Search, Folder, and Hybrid input modes. All instructions in this file and its referenced modules are in English. Follow the user's requested output language for extracted content.
Usage
The skill activates automatically for literature-matrix, paper-review, paper-synthesis, PDF/LaTeX extraction, and bibliography-export requests. Users may also invoke it explicitly by name:
Use paper-review in Search mode. Review 15 papers on [topic], preserve provenance,
verify DOI metadata, build papers.json, and validate before exporting.
Select Search, Folder, or Hybrid from the request. If the mode, scope, columns, filters, or
export formats are ambiguous, ask once before acquisition. Do not require a slash command when the
host supports natural-language skill activation.
Mandatory load order
- Load this
SKILL.md. - Load
references/search-sources.mdfor online acquisition, orreferences/extracting-papers.mdfor local PDF/LaTeX extraction. - Load
references/table-builder.mdbefore rendering or exporting. - Load
protocols/output-guardrails.mdbefore delivery. - For substantial matrices or comparisons, load
protocols/evaluation.mdandreferences/output-rubric.md.
Input modes
| Mode | Use when | Sources |
|---|---|---|
| Search | The user provides a topic, keywords, and optional target count | OpenAlex, Semantic Scholar, arXiv, Crossref, DOI, publishers, and web tools |
| Folder | The user provides a folder of papers | Local PDF or LaTeX files |
| Hybrid | The user requests both | Merge search and local results, then deduplicate |
Pipeline & workflow checklist
Copy this checklist and track progress internally before delivering:
- Step 0 — Clarify: Confirm input mode (
Search,Folder, orHybrid), topic/keywords, target count, columns, filters (years, quartile), language, and export formats. - Step 1 — Acquire & verify: Collect, deduplicate, and verify papers (
references/search-sources.mdorreferences/extracting-papers.md). - Step 2 — Extract with provenance: Read available sources and populate every agreed field with
[AB]or section markers ([I-1],[M-2],[R-1], etc.). - Step 3 — Build & export: Create
papers.jsonas the master source, renderliterature_table.md, and runscripts/export_formats.pyfor requested formats (references/table-builder.md). - Step 4 — Validate: Run
protocols/output-guardrails.md, DOI checks, and quality gates (protocols/evaluation.md+references/output-rubric.md) before delivering.
Ask for one initial confirmation when the scope is unclear. Do not ask for confirmation for each candidate after the user has approved the topic, count, columns, and filters.
Step 0 — Clarify
Confirm only the parameters that are not already clear:
- input mode: Search, Folder, or Hybrid;
- topic, keywords, and target number;
- default or custom columns;
- meaning of
Gaps: gap addressed by the paper or potential new research gap; - publication-year range and document type;
- journal-quality filter: Q1/Q2/Q3/Q4, peer-reviewed only, or no filter;
- paper language and output language;
- Markdown and requested export formats;
- local folder path for Folder or Hybrid mode.
Default to 10–15 papers for Search, all eligible files for Folder, the default matrix columns, the last five years, English papers, and Markdown output unless the user specifies otherwise.
Step 1 — Acquire and verify
Search mode
- Decompose the topic into 3–5 concepts and create 8–15 query combinations.
- Search OpenAlex first, then use Semantic Scholar, arXiv, Crossref, publishers, or web tools as needed.
- Collect approximately 1.5 times the target count as candidates.
- Score title/abstract relevance from 0–10 and retain candidates scoring at least 7 until the target is met.
- Record DOI, title, abstract, authors, year, journal, publisher, URL, query, source, and search date.
Folder mode
- Recursively scan the target folder for
.pdfand.texfiles. - Read LaTeX directly. Extract PDF text with
scripts/extract_text.sh,pdftotext, or an available PDF library. - Read the abstract, introduction, methods, results, discussion, limitations, conclusion, and future-work sections as available.
- If extraction is incomplete, use only the readable content and mark unavailable fields
—.
Hybrid mode
Merge search and local results. Prefer local full text over search metadata. Deduplicate by DOI; if no DOI exists, use a normalized title. Keep a record of removed duplicates.
Verification rules
- Every row must have a verifiable DOI or a readable local file.
- Resolve each DOI when web access is available.
- Mark failed resolution
UNVERIFIED — check manually. - Never add a paper that has no evidence of existence.
Step 2 — Extract
Create one row per paper. Fill every agreed column or use — when the source does not provide the
information. Do not turn a recap, count, or candidate list into the primary output.
Default columns
| Column | Required content |
|---|---|
| Title & Authors | Title and concise author list; use et al. after six authors |
| Journal | Journal name |
| Year | Publication year |
| Purpose | Study purpose from the abstract or introduction |
| Method (Variables/Samples) | Design, variables, sample, instruments, and analysis |
| Key Findings | Main findings and reported values |
| Limitations | Limitations stated by the authors |
| Gaps | Gap addressed by the paper, unless another meaning is selected |
| Theory Used | Theory or conceptual framework and its role |
| Novelty/Contribution | Author-stated novelty or contribution |
| Future Studies | All stated future-work recommendations |
| DOI & Publisher | DOI and publisher with verification status |
Provenance
Every factual sentence must end with a provenance marker:
[AB] Abstract or search metadata
[I-2] Introduction, paragraph 2
[M-3] Methods, paragraph 3
[R-1] Results, paragraph 1
[D-2] Discussion, paragraph 2
[L-1] Limitations, paragraph 1
[C-1] Conclusion, paragraph 1
[F-1] Future Work, paragraph 1
Use [AB] for search-only evidence. Do not claim full-text methods, results, limitations, or
future work when only an abstract is available. Use (summarized) for explicit inference and
never use inference to manufacture missing facts.
Step 3 — Build and export
- Build
papers.jsonas the master data source. - Render
literature_table.mdwith one row per paper. - Add search metadata and the provenance legend above or below the table.
- Run the export script only after validating JSON:
python3 scripts/export_formats.py papers.json \
--formats csv,xlsx,bib,xml,ris \
--out . \
--prefix literature_table
If openpyxl is missing, install it with python3 -m pip install openpyxl, or provide CSV and
clearly report that XLSX was not generated.
Step 4 — Validate
Load protocols/output-guardrails.md. For substantial output, also load
protocols/evaluation.md and references/output-rubric.md.
Before delivery, verify:
- every row has a source and correct metadata;
- every factual sentence has provenance;
- claims preserve source scope and modality;
- unavailable values use
—; - unresolved sources use
UNVERIFIED; - no papers, findings, numbers, citations, quotations, DOI values, or quartiles were invented;
papers.json, Markdown, CSV/XLSX, BibTeX, XML, and RIS agree in count and bibliographic values;- JSON and XML parse, RIS contains
TYandER, and BibTeX contains valid entries.
Report:
papers_checked: N
metadata_mismatches: N
claims_without_provenance: N
unverified_sources: N
export_mismatches: N
flags: N
status: PASS | PASS_WITH_FLAGS | FAIL
Any fabricated source/content, unsupported finding, missing required provenance, or master/export
mismatch is a hard failure. PASS_WITH_FLAGS is allowed only for explicitly reported unresolved
source limitations.
Handling missing or ambiguous information
- Unclear scope, mode, columns, or filters: Ask once before acquisition (Step 0). If the user asks to proceed with defaults, use 10–15 papers (Search), all eligible files (Folder), the 12 default columns, the last 5 years, English papers, and Markdown output.
- Unavailable field in a paper: Mark the cell with
—. Never guess or infer missing sample sizes, methods, theories, limitations, or findings. - Abstract-only access (no full text): Extract only what is explicitly stated in the abstract/metadata and tag with
[AB]. Mark full-text-only columns that are absent from the abstract as—. - Unresolved DOI or unverified bibliographic metadata: Preserve the available source text and mark the status
UNVERIFIED — check manually. Never fabricate a DOI, volume, issue, page range, or quartile. - Scanned or unreadable PDFs: Report the unreadable file to the user and use
—for unavailable fields rather than guessing from the title.
Common mistakes to avoid
- Replacing the table with a prose summary or candidate list: The primary deliverable must always be a complete, one-row-per-paper synthesis table.
- Inventing papers, DOIs, quartiles, or statistics: Never hallucinate citations or repair missing metadata from memory.
- Claiming full-text provenance from an abstract: Never attach
[M-1]or[R-1]markers when only the abstract ([AB]) was read. - Omitting provenance markers: Every factual extraction sentence in the table must end with a provenance tag (
[AB],[I-2],[M-3],[R-1],[D-2],[L-1],[C-1],[F-1]). - Diverging export files: Never edit Markdown, CSV, XLSX, BibTeX, XML, or RIS independently of
papers.json; always generate exports from the validatedpapers.json.
Non-negotiable rules
- The primary output is a complete per-paper table.
- Never invent papers, metadata, findings, methods, statistics, quotations, or recommendations.
- Extract claims from the paper, not from the agent's opinion.
- Preserve citations, provenance, scope, modality, terminology, numbers, and units.
- Keep
papers.jsonas the single source of truth. - Save artifacts in the user's working folder, not only in chat.
- Include search date, sources, filters, and keyword combinations for reproducibility.