agentleFS
MinLee0210MinLee0210/paper-orchestra-skills/skills/research-literature-review/SKILL.md

research-literature-review

Skill0 starsChanged 10 days agoApache-2.0View on GitHub

Discover, verify, deduplicate, and cite real academic literature, then write the Introduction and Related Work sections. Use when the user asks for a literature review, related work, citation gathering, bibliography or BibTeX construction, citation coverage, or wants to find and verify papers for a manuscript. Also use when another paper-writing skill needs registry.json, citation_map.json, references.bib, or a cited LaTeX template. Enforces a research cutoff and rejects unverifiable citations.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 14 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/prompts.md for the discovery and writing prompts.

    line 31
  2. Distinctive:

    Use the bundled script:

    line 44
  3. Distinctive:

    Do not proceed with a candidate whose metadata you could only obtain from model memory.

    line 70
  4. Distinctive:

    Write only those two sections.

    line 99
  5. Distinctive:

    Do not pad to hit an overall percentage.

    line 105
  6. Distinctive:

    Treat papers after the cutoff as concurrent work, never as baselines the method beats.

    line 108
  7. Very specific:

    Never claim state of the art over a cited paper unless that paper appears as a baseline in experimental_log.md.

    line 109
  8. Very specific:

    Do not change \usepackage[capitalize]{cleveref} to cleverref.

    line 111
  9. Very specific:

    every key in citation_map.json exists in references.bib and vice versa.

    line 127
  10. Very specific:

    every \cite{...} in the template resolves.

    line 128
  11. Very specific:

    every citation_candidates key in the outline exists in the map.

    line 129
  12. Distinctive:

    every Related Work cluster has at least two verified candidates.

    line 130
  13. Distinctive:

    no duplicate keys, missing titles, missing authors, or missing years.

    line 131
  14. Distinctive:

    Treat 20 unique papers as the minimum for a full research paper and 40+ as healthy.

    line 134
  15. Distinctive:

    Read the draft and name at most three paragraphs where a comparator, benchmark, or positioning claim is thinly supported.

    line 140
  16. Distinctive:

    Run the validator again. If nothing verifies, narrow the claim.

    line 143
  17. Distinctive:

    Cutoff is strict: If the venue deadline is November 2024, a December 2024 paper is concurrent work, not prior art.

    line 148
  18. Distinctive:

    Abstracts are evidence: If you cannot retrieve an abstract, you cannot describe the paper accurately.

    line 149
  19. Distinctive:

    No leakage: Do not reconstruct the source paper's reference list from memory.

    line 150
  20. Distinctive:

    No silent gaps: If a cluster has no verified papers, say so in the handoff instead of writing a vague paragraph.

    line 151

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Literature review agent

The literature stage has one job that must not be compromised: every citation in the paper must resolve to a real paper whose metadata was fetched from a bibliographic API, and the writing must use only those verified papers.

PaperOrchestra's key finding is that autonomous writers under-cite because they rely on keyword search and model memory. This skill separates discovery (broad, parallel, search-grounded) from verification (sequential, strict, API-grounded), then writes from the verified registry.

Inputs

  • outline.json — especially intro_related_work_plan and every citation_hints entry in section_plan.
  • idea.md, experimental_log.md — for framing and for deciding which dependencies must be cited.
  • template.tex — the skeleton whose Introduction and Related Work the stage fills.
  • guidelines.md — citation style, page limit, anonymity.
  • Research cutoff YYYY-MM — nothing published on or after this date may be treated as prior work.

Phase 1: Discovery

Collect search tasks from three sources:

  1. Introduction directions — each search_directions entry becomes an exploration task. Context: hook + problem gap.
  2. Related Work queries — each limitation_search_queries entry becomes an exploration task. Context: SOTA mission + limitation hypothesis. Fall back to <subsection_title> <methodology_cluster> when a cluster has no queries.
  3. Citation hints — every hint in section_plan becomes a targeted task. A targeted task asks for exactly one paper: the canonical paper that introduced the named dataset, metric, optimizer, baseline, architecture, or model.

Run discovery tasks in parallel (10 concurrent is a good default). For each task, ask a search-grounded model for candidates with title, year, and a one-line reason. Exploration tasks should return 10–15 candidates; do not force results when the task is narrow. Targeted tasks should return exactly one candidate.

Read references/prompts.md for the discovery and writing prompts.

Phase 2: Verification

For every candidate, sequentially:

  1. Query the configured providers in order: Semantic Scholar, arXiv, Crossref, then DBLP.
  2. Exploration tasks accept a fuzzy title ratio above 70. Targeted tasks (the canonical paper for a dataset, metric, optimizer, baseline, or model) require >= 90 and a year or author check.
  3. Reject if the paper is on or after the cutoff.
  4. Reject if there is no abstract; the writer needs the abstract to describe the work accurately. (DBLP records can be enriched by DOI through Crossref.)
  5. Fetch authors, venue, year, citation count, journal, volume, pages, and publication date.
  6. Deduplicate by normalized title and by provider paper ID.

Use the bundled script:

# Exploration: wider match, still cutoff-aware
python scripts/semantic_scholar.py search --title "Attention Is All You Need" --year 2017 --cutoff 2024-11

# Targeted: require a high-confidence canonical paper
python scripts/semantic_scholar.py search --title "AdamW" --author "Loshchilov" --year 2019 --targeted --cutoff 2024-11

# Batch: strings are treated as targeted; dicts use "targeted": true or "search_type": "targeted"
python scripts/semantic_scholar.py enrich --candidates candidates.json --out registry.json --cutoff 2024-11

Fallback providers are tried in order (--sources semantic_scholar,arxiv,crossref,dblp). A provider rate-limit or network block is not a reason to verify from memory; it is a reason to fall back or retry.

candidates.json may be a list of strings or objects:

[
  {"title": "Attention Is All You Need", "year": 2017, "section": "Related Work: Efficient Attention", "reason": "Foundational architecture"},
  "research paper or technical report introducing 'AdamW optimizer'"
]

Semantic Scholar rate-limits unauthenticated requests aggressively. If the API returns 429, set SEMANTIC_SCHOLAR_API_KEY and retry; do not replace the verification step with model memory. Discovery can continue while verification waits.

Do not proceed with a candidate whose metadata you could only obtain from model memory. If the API fails, retry later or drop the candidate; never hand-write a BibTeX entry from recall.

Starting from a user-supplied bibliography

A raw_materials/references.bib is a source of candidates, not of citations. Convert it, then verify it like any other candidate list:

python scripts/bib_to_candidates.py raw_materials/references.bib --out candidates_user.json
python scripts/semantic_scholar.py enrich --candidates candidates_user.json --out registry_user.json --cutoff 2024-11

Entries become targeted lookups (title ratio >= 90 plus a year or author check). Merge registry_user.json with the discovery registry before Phase 3. Entries that fail verification are dropped and reported, never kept as written.

Phase 3: Build the bibliography and citation map

python scripts/build_bib.py --registry registry.json --out literature_agent_output

This writes references.bib and citation_map.json, uniquifies citation keys, and preserves abstracts for the writer. Then inject the verified candidates into the outline:

python scripts/inject_citations.py --outline outline.json --registry registry.json --out literature_agent_output/outline_v1.json

Each subsection gains citation_candidates and loses citation_hints. Clusters with zero candidates are reported so they can be searched again.

Phase 4: Write Introduction and Related Work

Write only those two sections. Leave every other section untouched.

Rules:

  • Cite only keys from citation_map.json. A citation key not in the map is a bug.
  • Cover every P0 dependency: baselines, datasets, metrics, and foundational methods. In Related Work, cite at least two verified papers per methodology cluster.
  • Do not pad to hit an overall percentage. A citation that does not support its sentence is a defect, not coverage.
  • Introduction: macro context, impact, foundational work, surveys, and the gap. Cite statistics and broad claims.
  • Related Work: micro comparisons, grouped by methodology cluster. Use comparative sentences ("Several methods [A, B] reduce ... but assume ...") rather than a list of summaries.
  • Treat papers after the cutoff as concurrent work, never as baselines the method beats.
  • Never claim state of the art over a cited paper unless that paper appears as a baseline in experimental_log.md.
  • Preserve the template's preamble, packages, and already-filled sections.
  • Do not change \usepackage[capitalize]{cleveref} to cleverref.
  • Return the full updated template.tex, not a diff.

Save as updated_template.tex in the output directory.

Phase 5: Validate

python scripts/validate_literature.py \
  --dir literature_agent_output \
  --outline literature_agent_output/outline_v1.json \
  --template literature_agent_output/updated_template.tex

Checks:

  • every key in citation_map.json exists in references.bib and vice versa;
  • every \cite{...} in the template resolves;
  • every citation_candidates key in the outline exists in the map;
  • every Related Work cluster has at least two verified candidates;
  • no duplicate keys, missing titles, missing authors, or missing years;
  • paper count and per-cluster coverage are plausible for a full paper. Overall citation percentage is reported, not enforced as a quota.

Treat 20 unique papers as the minimum for a full research paper and 40+ as healthy. A thin registry is a reason to rerun discovery, not a reason to lower the bar.

Optional: citation gap pass after drafting

A full draft shows gaps the outline could not predict. Run one targeted pass, not a new survey:

  1. Read the draft and name at most three paragraphs where a comparator, benchmark, or positioning claim is thinly supported. Ignore numbers already grounded in the log, and do not add citations only to enlarge the bibliography.
  2. For each, write one to three focused queries. Discover and verify exactly as in Phases 1 and 2, with the same cutoff and thresholds.
  3. Merge the verified entries into the registry, rebuild with build_bib.py, and rewrite only the targeted paragraphs.
  4. Run the validator again. If nothing verifies, narrow the claim.

Non-negotiable rules

  • No invented citations. A plausible-looking BibTeX entry is worse than a missing one.
  • Cutoff is strict. If the venue deadline is November 2024, a December 2024 paper is concurrent work, not prior art.
  • Abstracts are evidence. If you cannot retrieve an abstract, you cannot describe the paper accurately; drop it.
  • No leakage. Do not reconstruct the source paper's reference list from memory. Discover from the outline's tasks.
  • No silent gaps. If a cluster has no verified papers, say so in the handoff instead of writing a vague paragraph.

Files

  • references/prompts.md — discovery, targeted search, and Introduction/Related Work prompts.
  • references/citation-policy.md — verification thresholds, cutoff logic, and P0/P1 definitions.
  • scripts/semantic_scholar.py — Semantic Scholar plus arXiv/Crossref/DBLP fallback, targeted matching, deduplication, and key generation.
  • scripts/bib_to_candidates.py — turn a user-supplied BibTeX file into targeted verification candidates.
  • scripts/build_bib.py — registry to BibTeX and citation map.
  • scripts/inject_citations.py — attach verified keys to the outline.
  • scripts/validate_literature.py — consistency checks before writing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.