Skip to content
Back to skills

Research Lit

ASecurity

Search and analyze research papers, run survey-grade deep literature investigations, create bilingual close-reading paper readers, and survey/select existing benchmarks. Use when user says "find papers", "related work", "literature review", "deep research", "survey", "translate/read this paper", "select benchmarks", or needs to understand academic papers.

  • 10 stars
  • 0 votes
  • 1 copy
  • 4 views
  • Added November 27, 2026
researchpythongoshellbashspringgitapidatabasedocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add AfonsoZhang/Novum --skill research-lit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Research Lit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Research Lit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/afonsozhang-research-lit/badge)](https://www.skillsdirectory.com/skills/afonsozhang-research-lit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: research-lit
description: Search and analyze research papers, run survey-grade deep literature investigations, create bilingual close-reading paper readers, and survey/select existing benchmarks. Use when user says "find papers", "related work", "literature review", "deep research", "survey", "translate/read this paper", "select benchmarks", or needs to understand academic papers.
argument-hint: "[paper-topic-or-url]"
allowed-tools: Bash(*), Read, Glob, Grep, WebSearch, WebFetch, Write, Agent, mcp__zotero__*, mcp__obsidian-vault__*
---

# Research Literature Review

## Integrated literature modules

Use the default workflow below for rapid related-work search and multi-source paper lookup. Load a specialist module on demand when the task requires it:

| Need | Module guide |
|---|---|
| Survey-grade deep literature investigation (frozen RQs, adversarial multi-perspective search, verified citations, MECE taxonomy) | [modules/deep-research/GUIDE.md](modules/deep-research/GUIDE.md) |
| Source-grounded Chinese-English bilingual paper reader / close reading with aligned figures, tables, and equations | [modules/paper-reader/GUIDE.md](modules/paper-reader/GUIDE.md) |
| Survey and select existing benchmarks, datasets, metrics, protocols, and baselines with source evidence | [modules/benchmark-research/GUIDE.md](modules/benchmark-research/GUIDE.md) |

Apply the shared [working-language policy](../shared-references/research-autonomy.md#working-language) to internal work and user reports.

Research topic: $ARGUMENTS

For literature discovery/synthesis, first read the [publication/version policy](../shared-references/publication-policy.md). It defines the shared publication records, official-source verification, version selection and downstream handoff. A single-paper question still stays scoped to that question.

When this task includes assessing a candidate contribution, use the [shared topic-selection policy](../shared-references/topic-selection-policy.md). Literature coverage or venue fit alone does not settle research value. Do not restart topic selection for an ordinary literature/venue update.

## Constants


- **PAPER_LIBRARY** — Local directory containing user's paper collection (PDFs). Check these paths in order:
  1. `papers/` in the current project directory
  2. `literature/` in the current project directory
  3. Custom path specified by user in `CLAUDE.md` under `## Paper Library`
- **MAX_LOCAL_PAPERS = 20** — Maximum number of local PDFs to scan (read first 3 pages each). If more are found, prioritize by filename relevance to the topic.
- **SOURCES = `all`** — Which literature sources to search. Options: `zotero`, `obsidian`, `local`, `web`, `semantic-scholar`, `deepxiv`, `exa`, `openalex`, `all`. Full source table and selection rules: see `## Data Sources` below.
- **ARXIV_DOWNLOAD = false** — When `true`, download top 3-5 most relevant arXiv PDFs to PAPER_LIBRARY after search. When `false` (default), only fetch metadata (title, abstract, authors) via arXiv API — no files are downloaded.
- **ARXIV_MAX_DOWNLOAD = 5** — Maximum number of PDFs to download when `ARXIV_DOWNLOAD = true`.

> 💡 Overrides:
> - `/research-lit "topic" — paper library: ~/my_papers/` — custom local PDF path
> - `/research-lit "topic" — sources: zotero, local` — only search Zotero + local PDFs
> - `/research-lit "topic" — sources: web` — only search the web (skip all local)
> - `/research-lit "topic" — sources: web, semantic-scholar` — also search Semantic Scholar for published venue papers (IEEE, ACM, etc.)
> - `/research-lit "topic" — sources: all, deepxiv` — use default sources plus DeepXiv
> - `/research-lit "topic" — arxiv download: true` — download top relevant arXiv PDFs
> - `/research-lit "topic" — arxiv download: true, max download: 10` — download up to 10 PDFs

## Data Sources

This skill checks multiple sources **in priority order**. Skip unrequested sources; report unavailable requested/default sources so coverage is clear.

### Source Selection

Parse `$ARGUMENTS` for a `— sources:` directive:
- **If `— sources:` is specified**: Only search the listed sources (comma-separated). Valid values: `zotero`, `obsidian`, `local`, `web`, `semantic-scholar`, `deepxiv`, `exa`, `openalex`, `all`.
- **If not specified**: Default to `all`: available Zotero/Obsidian/local libraries plus `semantic-scholar`, `exa`, `openalex`, and `web`. Local reuse comes first, S2 is the main structured search, OpenAlex cross-checks metadata, and Exa/web discover official publication evidence. Only `deepxiv` requires explicit opt-in.
- An explicit list without `all` restricts discovery to that list; preserve offline/local-only requests. If status cannot be checked under that scope, record `unknown` instead of silently going online.
- Use the existing S2/Exa credentials as described in the shared policy. Source failure is reported; it does not certify absence or publication status.

Examples:
```
/research-lit "diffusion models"                                    → all (includes S2, Exa, OpenAlex)
/research-lit "diffusion models" — sources: all                     → all (includes S2, Exa, OpenAlex)
/research-lit "diffusion models" — sources: zotero                  → Zotero only
/research-lit "diffusion models" — sources: zotero, web             → Zotero + web
/research-lit "diffusion models" — sources: local                   → local PDFs only
/research-lit "topic" — sources: obsidian, local, web               → skip Zotero
/research-lit "topic" — sources: web, semantic-scholar              → web + S2 API (IEEE/ACM venue papers)
/research-lit "topic" — sources: deepxiv                            → DeepXiv only
/research-lit "topic" — sources: all, deepxiv                       → default sources + DeepXiv
/research-lit "topic" — sources: all, semantic-scholar              → all (S2 already included)
/research-lit "topic" — sources: exa                               → Exa only (broad web + content extraction)
/research-lit "topic" — sources: all, exa                          → all (Exa already included)
/research-lit "topic" — sources: openalex                          → OpenAlex only (open citation graph + institutions)
/research-lit "topic" — sources: semantic-scholar, openalex         → S2 + OpenAlex (complementary metadata)
```

### Source Table

| Priority | Source | ID | How to detect | What it provides |
|----------|--------|----|---------------|-----------------|
| 1 | **Zotero** (via MCP) | `zotero` | Try calling any `mcp__zotero__*` tool — if unavailable, skip | Collections, tags, annotations, PDF highlights, BibTeX, semantic search |
| 2 | **Obsidian** (via MCP) | `obsidian` | Try calling any `mcp__obsidian-vault__*` tool — if unavailable, skip | Research notes, paper summaries, tagged references, wikilinks |
| 3 | **Local PDFs** | `local` | `Glob: papers/**/*.pdf, literature/**/*.pdf` | Raw PDF content (first 3 pages) |
| 4 | **Web search** | `web` | Always available (WebSearch) | arXiv, Semantic Scholar, Google Scholar, **OpenReview** (peer-review critiques, rejection rationales, in-submission overlap), **DBLP & Crossref** (canonical venue/DOI records) |
| 5 | **Semantic Scholar API** | `semantic-scholar` | `$S2_FETCHER` resolves (canonical name `semantic_scholar_fetch.py`) | Published venue papers (IEEE, ACM, Springer) with structured metadata: citation counts, venue info, TLDR. **Included in default `all`; also selectable** via `— sources: semantic-scholar` or `— sources: web, semantic-scholar` |
| 6 | **DeepXiv CLI** | `deepxiv` | `$DEEPXIV_FETCHER` resolves (canonical name `deepxiv_fetch.py`) **and** `deepxiv` CLI present (`command -v deepxiv`) | Progressive paper retrieval: search, brief, head, section, trending, web search. **Only runs when explicitly requested** via `— sources: deepxiv` or `— sources: all, deepxiv` |
| 7 | **Exa Search** | `exa` | `$EXA_FETCHER` resolves (canonical name `exa_search.py`); fetcher handles `exa-py` SDK + API key internally | AI-powered broad web search with content extraction (highlights, text, summaries). Covers blogs, docs, news, companies, and research papers beyond arXiv/S2. **Included in default `all`; also selectable** via `— sources: exa` or `— sources: all, exa` |
| 8 | **OpenAlex** | `openalex` | `$OPENALEX_FETCHER` resolves (canonical name `openalex_fetch.py`) **and** Python `requests` module importable | Open citation graph with institutional affiliations, funding data, and comprehensive metadata across 250M+ works. Fully open API. **Included in default `all`; also selectable** via `— sources: openalex` or `— sources: all, openalex` |

> **Graceful degradation**: If no MCP servers are configured, the skill works exactly as before (local PDFs + web search). Zotero and Obsidian are pure additions.

## Workflow

### Step 0a: Search Zotero Library (if available)

**Skip this step entirely if Zotero MCP is not configured.**

Try calling a Zotero MCP tool (e.g., search). If it succeeds:

1. **Search by topic**: Use the Zotero search tool to find papers matching the research topic
2. **Read collections**: Check if the user has a relevant collection/folder for this topic
3. **Extract annotations**: For highly relevant papers, pull PDF highlights and notes — these represent what the user found important
4. **Export BibTeX**: Get citation data for relevant papers (useful for `paper-writer` later)
5. **Compile results**: For each relevant Zotero entry, extract:
   - Title, authors, year, venue
   - User's annotations/highlights (if any)
   - Tags the user assigned
   - Which collection it belongs to

> 📚 Zotero annotations are gold — they show what the user personally highlighted as important, which is far more valuable than generic summaries.

### Step 0b: Search Obsidian Vault (if available)

**Skip this step entirely if Obsidian MCP is not configured.**

Try calling an Obsidian MCP tool (e.g., search). If it succeeds:

1. **Search vault**: Search for notes related to the research topic
2. **Check tags**: Look for notes tagged with relevant topics (e.g., `#diffusion-models`, `#paper-review`)
3. **Read research notes**: For relevant notes, extract the user's own summaries and insights
4. **Follow links**: If notes link to other relevant notes (wikilinks), follow them for additional context
5. **Compile results**: For each relevant note:
   - Note title and path
   - User's summary/insights
   - Links to other notes (research graph)
   - Any frontmatter metadata (paper URL, status, rating)

> 📝 Obsidian notes represent the user's **processed understanding** — more valuable than raw paper content for understanding their perspective.

### Step 0c: Scan Local Paper Library

Before searching online, check if the user already has relevant papers locally:

1. **Locate library**: Check PAPER_LIBRARY paths for PDF files
   ```
   Glob: papers/**/*.pdf, literature/**/*.pdf
   ```

2. **De-duplicate against Zotero**: If Step 0a found papers, skip any local PDFs already covered by Zotero results (match by filename or title).

3. **Filter by relevance**: Match filenames and first-page content against the research topic. Skip clearly unrelated papers.

4. **Summarize relevant papers**: For each relevant local PDF (up to MAX_LOCAL_PAPERS):
   - Read first 3 pages (title, abstract, intro)
   - Extract: title, authors, year, core contribution, relevance to topic
   - Flag papers that are directly related vs tangentially related

5. **Build local knowledge base**: Compile summaries into a "papers you already have" section. This becomes the starting point — external search fills the gaps.

> 📚 If the user has a comprehensive local collection, the external search can be more targeted (focus on what's missing).
>
> ⚠️ **If all three PAPER_LIBRARY paths miss, say so before moving on** — do not skip silently. A user whose PDFs live in a reference manager (Zotero, Mendeley, ...) otherwise assumes `— sources: all` covered them. Emit:
>
> `WARN: local contributed nothing — no PDFs found in papers/, literature/, or a configured paper library. To include yours, add a "## Paper Library" heading to CLAUDE.md followed by the directory path.`
>
> Then continue to Step 1.

### Step 1: Search (external)
- Use WebSearch to find recent papers on the topic
- Check arXiv, Semantic Scholar, Google Scholar
- Focus on papers from last 2 years unless studying foundational work
- **De-duplicate**: Skip papers already found in Zotero, Obsidian, or local library

#### Multi-facet queries

For topic discovery, draft a keyword query and a semantic query for each facet:
**Topical** (research question or objective), **Contextual** (task, domain,
population or evaluation setting), and **Methodological** (mechanism, method
family or study design). Use field terms and aliases in the keyword variants
and describe the same intent in ordinary language in the semantic variants.

Use independently confirmed, relevant papers from the supplied material, local
records or an initial search as seeds. For each discovery query, check whether a
seed relevant to that facet appears in its ranked Top-20 results. Search up to
20 results where the source supports it, using `--max 20` for the helper
examples below during this check. If the query misses the seed, rewrite it and
rerun the check. Use exact titles or identifiers separately to establish seed
identity and source coverage. If a ranked check is unavailable or a seed still
cannot be recovered, record the coverage gap. A successful seed check validates
the query against a known paper and leaves overall coverage open. Keep the
requested source and date limits, and skip this procedure for a single-paper
question.

**arXiv API search** (runs when `— sources:` is unset, contains `web` or `all`; no download by default — arXiv API is part of the Priority-4 Web tier, see Source Table above):

**Policy D2 tracking discipline (orchestrator-managed)**: the
executor (you, the LLM) maintains an in-context list of contributing
sources. For **helper-backed bash sources** (arxiv, semantic-scholar,
deepxiv, exa, openalex), a source contributes iff its bash block
ran its helper successfully (helper resolved AND invocation exited 0;
note: the helper exiting 0 with an empty result list still counts as
"ran" — downstream relevance ranking is what decides whether the user
actually sees content). For **non-helper sources** (zotero / obsidian /
local PDF / WebSearch), the contribution rule is stated in
the Step-1 finalization block below — these are tracked separately
because they don't emit `D2 contribution:` log lines from bash. Sources
that were not requested via `— sources:` do not count. At the end of
Step 1 (before "Optional PDF download"), if zero sources contributed,
surface a D2 empty-aggregate error and stop. (The in-context tracking
replaces a shared bash accumulator because SKILL bash blocks are
executed as separate shells; state does not survive.)

Resolve `$ARXIV_FETCHER` via the canonical chain (Policy D2 — this
source contributes to the multi-source aggregate; warn-and-continue
on failure, never abort the whole aggregate):

```bash
# Resolve the bundled helper (install.sh registers .agents/aris/tools in .aris/installed-skills.txt).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
ARXIV_FETCHER=".aris/tools/arxiv_fetch.py"
[ -f "$ARXIV_FETCHER" ] || ARXIV_FETCHER="tools/arxiv_fetch.py"
[ -f "$ARXIV_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && ARXIV_FETCHER="$ARIS_REPO/tools/arxiv_fetch.py"; }
[ -f "$ARXIV_FETCHER" ] || ARXIV_FETCHER=""

if [ -n "$ARXIV_FETCHER" ]; then
  # Search arXiv API for structured results (title, abstract, authors, categories).
  # Wrap with if/then/else so set -e doesn't abort the SKILL.
  if python3 "$ARXIV_FETCHER" search "QUERY" --max 10; then
    echo "D2 contribution: arxiv (helper invocation exit 0)" >&2
  else
    echo "WARN: arxiv_fetch.py invocation failed; D2 aggregate continues with WebSearch results." >&2
  fi
else
  echo "WARN: arxiv_fetch.py not resolved; falling back to WebSearch for arXiv hits." >&2
fi
```

> **Record-keeping**: track the `D2 contribution: …` lines emitted by
> each source's bash block. They form the contributing-source list
> the orchestrator uses for the Step-1 finalization gate below.
> WebSearch (Priority 4) is treated as having contributed iff
> WebSearch was requested (no `— sources:` filter, or the list
> contains `web` or `all`) AND was actually invoked; the orchestrator
> records that separately. (The finalization block below restates
> this rule canonically — both lines must stay in sync.)

If `$ARXIV_FETCHER` is empty (D2 graceful degradation), fall back to WebSearch for arXiv (same as before).

The arXiv API returns structured metadata (title, abstract, full author list, categories, dates) — richer than WebSearch snippets. Merge these results with WebSearch findings and de-duplicate.

**Semantic Scholar API search** (when `semantic-scholar` or `all` is in sources):

When using default `all` or explicitly selecting `semantic-scholar`, search for published venue papers beyond arXiv:

```bash
# Re-resolve $ARIS_REPO (SKILL bash blocks may run in separate shells).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
# Resolve $S2_FETCHER (Policy D2 — warn-and-skip on missing).
S2_FETCHER=".aris/tools/semantic_scholar_fetch.py"
[ -f "$S2_FETCHER" ] || S2_FETCHER="tools/semantic_scholar_fetch.py"
[ -f "$S2_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && S2_FETCHER="$ARIS_REPO/tools/semantic_scholar_fetch.py"; }
[ -f "$S2_FETCHER" ] || S2_FETCHER=""

if [ -n "$S2_FETCHER" ]; then
  # Search journal, conference and review candidates; types are not review proof.
  # Wrap with if/then/else so set -e doesn't abort the SKILL.
  if python3 "$S2_FETCHER" search "QUERY" --max 10 \
      --fields-of-study "Computer Science,Engineering" \
      --publication-types "JournalArticle,Conference,Review"; then
    echo "D2 contribution: semantic_scholar (helper invocation exit 0)" >&2
  else
    echo "WARN: semantic_scholar_fetch.py invocation failed; D2 aggregate continues with remaining sources." >&2
  fi
fi
```

If `$S2_FETCHER` is empty (canonical chain exhausted), report that Semantic Scholar is unavailable and continue D2 with the remaining resolved sources.

**Why use Semantic Scholar?** Many IEEE/ACM journal papers are NOT on arXiv. S2 fills the gap for published venue-only papers with citation counts and venue metadata.

**De-duplication between arXiv and S2**: Match by arXiv ID (S2 returns `externalIds.ArXiv`):
- If a paper appears in both, treat S2 venue/DOI as a candidate publication match. Confirm the official record in Step 1.6; venue metadata alone is not peer-review proof. Preserve the arXiv link as an alternate version, not automatically the PDF selected for reading.
- If S2 has no venue, keep publication status unknown until checked; an empty index field does not prove the work remains a preprint.
- S2 results without `externalIds.ArXiv` are **venue-only papers** not on arXiv — these are the unique value of this source.

**DeepXiv search** (only when `deepxiv` is in sources):

When the user explicitly requests `— sources: deepxiv` (or includes `deepxiv` in a combined source list), use the DeepXiv adapter for progressive retrieval:

```bash
# Re-resolve $ARIS_REPO (SKILL bash blocks may run in separate shells).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
# Resolve $DEEPXIV_FETCHER (Policy D2 — warn-and-skip on missing).
DEEPXIV_FETCHER=".aris/tools/deepxiv_fetch.py"
[ -f "$DEEPXIV_FETCHER" ] || DEEPXIV_FETCHER="tools/deepxiv_fetch.py"
[ -f "$DEEPXIV_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && DEEPXIV_FETCHER="$ARIS_REPO/tools/deepxiv_fetch.py"; }
[ -f "$DEEPXIV_FETCHER" ] || DEEPXIV_FETCHER=""

if [ -n "$DEEPXIV_FETCHER" ] && command -v deepxiv >/dev/null 2>&1; then
  # Wrap each adapter call so set -e doesn't abort the SKILL.
  if python3 "$DEEPXIV_FETCHER" search "QUERY" --max 10; then
    echo "D2 contribution: deepxiv (helper invocation exit 0)" >&2

    # Then deepen only for the most relevant papers (sub-calls don't change D2 aggregate count):
    python3 "$DEEPXIV_FETCHER" paper-brief ARXIV_ID \
      || echo "WARN: deepxiv_fetch.py paper-brief failed; skipping deepen step." >&2
    python3 "$DEEPXIV_FETCHER" paper-head ARXIV_ID \
      || echo "WARN: deepxiv_fetch.py paper-head failed; skipping deepen step." >&2
    python3 "$DEEPXIV_FETCHER" paper-section ARXIV_ID "Experiments" \
      || echo "WARN: deepxiv_fetch.py paper-section failed; skipping deepen step." >&2
  else
    echo "WARN: deepxiv_fetch.py search invocation failed; D2 aggregate continues with remaining sources." >&2
  fi
fi
```

If `$DEEPXIV_FETCHER` is empty or the `deepxiv` CLI is unavailable, skip this source gracefully and continue with the remaining requested sources (Policy D2 graceful degradation).

**Why use DeepXiv?** It is useful when a broad search should be followed by staged reading rather than immediate full-paper loading. This reduces unnecessary context while still surfacing structure, TLDRs, and the most relevant sections.

**De-duplication against arXiv and S2**:
- Match by arXiv ID first, DOI second, normalized title third
- If DeepXiv and arXiv refer to the same preprint, keep one canonical paper row and record `deepxiv` as an additional source
- If DeepXiv overlaps with S2 on a published paper, prefer S2 venue/citation metadata in the final table, but keep DeepXiv-derived section notes when they add value

**Exa search** (when `exa` or `all` is in sources):

When using default `all` or explicitly selecting `exa`, use the Exa tool for broad AI-powered web search with content extraction:

```bash
# Re-resolve $ARIS_REPO (SKILL bash blocks may run in separate shells).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
# Resolve $EXA_FETCHER (Policy D2 — warn-and-skip on missing).
EXA_FETCHER=".aris/tools/exa_search.py"
[ -f "$EXA_FETCHER" ] || EXA_FETCHER="tools/exa_search.py"
[ -f "$EXA_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && EXA_FETCHER="$ARIS_REPO/tools/exa_search.py"; }
[ -f "$EXA_FETCHER" ] || EXA_FETCHER=""

if [ -n "$EXA_FETCHER" ]; then
  # Search for research papers with highlights.
  # Wrap with if/then/else so set -e doesn't abort the SKILL.
  exa_contributed=false
  if python3 "$EXA_FETCHER" search "QUERY" --max 10 --category "research paper" --content highlights; then
    exa_contributed=true
  else
    echo "WARN: exa_search.py research-paper invocation failed; D2 aggregate continues." >&2
  fi
  # Search for broader web content (blogs, docs, news)
  if python3 "$EXA_FETCHER" search "QUERY" --max 10 --content highlights; then
    exa_contributed=true
  else
    echo "WARN: exa_search.py broad-web invocation failed; D2 aggregate continues." >&2
  fi
  [ "$exa_contributed" = "true" ] && echo "D2 contribution: exa (at least one invocation exit 0)" >&2
fi
```

If `$EXA_FETCHER` is empty or the `exa-py` SDK is unavailable, skip this source gracefully and continue with the remaining requested sources (Policy D2 graceful degradation).

**Why use Exa?** Exa provides AI-powered search across the broader web (blogs, documentation, news, company pages) with built-in content extraction. It fills a gap between academic databases (arXiv, S2) and generic WebSearch by returning richer content with each result.

**De-duplication against arXiv, S2, and DeepXiv**:
- Match by URL first, then normalized title
- If Exa returns an arXiv paper already found by arXiv/S2, prefer the structured metadata from those sources
- Exa results from non-academic domains (blogs, docs, news) are unique value not covered by other sources

**OpenAlex search** (when `openalex` or `all` is in sources):

When using default `all` or explicitly selecting `openalex`, use OpenAlex API for comprehensive academic metadata:

```bash
# Re-resolve $ARIS_REPO (SKILL bash blocks may run in separate shells).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
# Resolve $OPENALEX_FETCHER (Policy D2 — warn-and-skip on missing).
OPENALEX_FETCHER=".aris/tools/openalex_fetch.py"
[ -f "$OPENALEX_FETCHER" ] || OPENALEX_FETCHER="tools/openalex_fetch.py"
[ -f "$OPENALEX_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && OPENALEX_FETCHER="$ARIS_REPO/tools/openalex_fetch.py"; }
[ -f "$OPENALEX_FETCHER" ] || OPENALEX_FETCHER=""

# Preflight: report OpenAlex unavailable if the helper is unresolved OR the
# `requests` Python package is missing. Both checks must pass before
# the script is invoked, so users without `requests` installed never see
# a stack trace from a default `/research-lit` run.
if [ -z "$OPENALEX_FETCHER" ] || ! python3 -c "import requests" >/dev/null 2>&1; then
  echo "OpenAlex source not available (openalex_fetch.py unresolved or 'requests' module missing); skipping." >&2
else
  # Search for papers with comprehensive metadata.
  # Wrap with if/then/else so set -e doesn't abort the SKILL.
  if python3 "$OPENALEX_FETCHER" search "QUERY" --max 10 \
      --sort relevance --json; then
    echo "D2 contribution: openalex (helper invocation exit 0)" >&2
  else
    echo "WARN: openalex_fetch.py invocation failed; D2 aggregate continues with remaining sources." >&2
  fi
fi
```

If `openalex_fetch.py` is not found or `requests` module is missing, skip this source gracefully and continue with the remaining requested sources.

**Why use OpenAlex?** Cross-disciplinary citation graph, institutional affiliations, funding and topic metadata. Use the helper's existing credential configuration; report API access failures and continue with the other sources.

**De-duplication against arXiv, S2, DeepXiv, and Exa**:
- Match by DOI first, then arXiv ID. A normalized-title match is a lead: confirm authors and contribution before merging.
- If OpenAlex and S2 both have the same paper:
  - Retain the source/date of citation counts; do not assume one index is always fresher
  - Resolve venue conflicts against official publication evidence
  - Use OpenAlex for institutional affiliations and funding data (unique value)
  - Merge both into a richer record
- If OpenAlex and arXiv overlap, prefer the officially confirmed publication metadata and selected published/accepted version. Retain arXiv as an alias/alternate location. Never silently transfer source excerpts across versions.
- OpenAlex's unique value: institutional affiliations, funding sources, comprehensive topic classification, and cross-discipline coverage

**D2 aggregate finalization:**

The orchestrator (you, the LLM) maintains an in-context list of
contributing sources by reading the `D2 contribution: <name>` log
lines emitted by each source's bash block above, plus:

- `zotero` if Step 0a returned non-empty Zotero hits.
- `obsidian` if Step 0b returned non-empty Obsidian hits.
- `local` if Step 0c found at least one relevant local PDF.
- `web` if WebSearch (Priority 4) was requested (either no `— sources:`
  filter, or the list contains `web` or `all`) AND was actually invoked.
  Note: `— sources: all` includes available zotero, obsidian, local,
  semantic-scholar, exa, openalex and web sources. Only deepxiv requires explicit opt-in (e.g. `— sources: all, deepxiv`).

If the resulting contributing-source list has zero entries, surface:

> **ERROR**: D2 aggregate empty — every requested source either was
> unresolved, not invoked, failed, or (for MCP / local PDF
> sources) returned no usable result. (Note: WebSearch contributes
> when requested and invoked, even if the result set is empty.) The
> multi-source aggregate cannot proceed. Suggest the user retry with
> a wider `— sources:` list (e.g. `web, local`) or check helper
> resolution and SDK installation.

Then stop before Step 1.5. Otherwise log the contributing-source
list to the user (e.g. "Sources contributed: arxiv, semantic_scholar,
web") and proceed.

**Optional PDF download** (only when `ARXIV_DOWNLOAD = true`):

After all sources are searched and papers are ranked by relevance:
```bash
# Re-resolve $ARXIV_FETCHER (SKILL bash blocks may run in separate shells).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
ARXIV_FETCHER=".aris/tools/arxiv_fetch.py"
[ -f "$ARXIV_FETCHER" ] || ARXIV_FETCHER="tools/arxiv_fetch.py"
[ -f "$ARXIV_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && ARXIV_FETCHER="$ARIS_REPO/tools/arxiv_fetch.py"; }
[ -f "$ARXIV_FETCHER" ] || ARXIV_FETCHER=""

# Download top N most relevant arXiv papers; skip silently if helper unresolved.
[ -n "$ARXIV_FETCHER" ] && python3 "$ARXIV_FETCHER" download ARXIV_ID --dir papers/
```
- Only download papers ranked in the top ARXIV_MAX_DOWNLOAD by relevance
- Skip papers already in the local library
- 1-second delay between downloads (rate limiting)
- Verify each PDF > 10 KB

### Step 1.5: Verify Candidate Papers (anti-hallucination, mandatory)

Before analysis, run pre-search verification on **all** candidate papers
collected from Steps 0a-1 to filter out LLM-fabricated arXiv IDs / DOIs /
titles. Helper: `verify_papers.py` (resolved by the same chain; Policy D1 —
primary helper with degraded-output fallback). If the
helper is unresolved on this machine, the SKILL emits a fallback
`verified_papers.json` tagging every candidate `[UNVERIFIED]` so
downstream analysis proceeds with audit-visible degraded output
rather than silently dropping candidates.

```bash
# 1. Resolve $VERIFY_PAPERS via the canonical strict-safe chain (§2).
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
VERIFY_PAPERS=".aris/tools/verify_papers.py"
[ -f "$VERIFY_PAPERS" ] || VERIFY_PAPERS="tools/verify_papers.py"
[ -f "$VERIFY_PAPERS" ] || { [ -n "${ARIS_REPO:-}" ] && VERIFY_PAPERS="$ARIS_REPO/tools/verify_papers.py"; }
[ -f "$VERIFY_PAPERS" ] || VERIFY_PAPERS=""

# 2. Emit candidates as JSON. Verification scratch lives under .aris/.
mkdir -p .aris/verify-papers
cat > .aris/verify-papers/candidate_papers.json <<'JSON'
[
  {"id": "p1", "arxiv_id": "2307.03172", "doi": null, "title": "Lost in the Middle"},
  {"id": "p2", "arxiv_id": null, "doi": "10.1145/...", "title": "..."},
  {"id": "p3", "arxiv_id": null, "doi": null, "title": "Some Paper Title"}
]
JSON

# 3. Run 3-layer verification (arXiv batch → CrossRef → Semantic Scholar fuzzy).
#    Policy D1: when the helper is unresolved OR its invocation fails, emit
#    a degraded verified set tagging everything [UNVERIFIED] so the user
#    can audit search quality. If python3 itself is missing, we BLOCK
#    rather than hand-roll JSON in shell.
verify_ok=false
if [ -n "$VERIFY_PAPERS" ]; then
  if python3 "$VERIFY_PAPERS" \
        --input  .aris/verify-papers/candidate_papers.json \
        --output .aris/verify-papers/verified_papers.json; then
    verify_ok=true
  else
    echo "WARN: verify_papers.py invocation failed (resolved at $VERIFY_PAPERS); falling back to [UNVERIFIED] tagging." >&2
  fi
else
  echo "WARN: verify_papers.py not resolved at .aris/tools/, tools/, \$ARIS_REPO/tools/, or via ~/.aris/repo." >&2
  echo "      Fix: rerun bash tools/install_aris.sh or smart_update.sh (refreshes ~/.aris/repo), export ARIS_REPO, or copy the helper to tools/." >&2
fi
if [ "$verify_ok" = "false" ]; then
  if ! command -v python3 >/dev/null 2>&1; then
    echo "ERROR: python3 unavailable; cannot emit fallback verified_papers.json." >&2
    echo "       Status: BLOCKED. Install python3 or restore the helper to proceed." >&2
    exit 1
  fi
  echo "      Emitting unverified candidate set with [UNVERIFIED] tags." >&2
  python3 - <<'PY'
import json
cands = json.load(open('.aris/verify-papers/candidate_papers.json'))
out = {
  'verdict': 'WARN',
  'reason_code': 'verify_papers_unavailable',
  'summary': 'verify_papers.py helper unresolved or invocation failed; all candidates tagged [UNVERIFIED] for audit visibility.',
  'papers': [dict(p, status='unverified', method='none') for p in cands],
}
with open('.aris/verify-papers/verified_papers.json', 'w') as f:
  json.dump(out, f, indent=2)
PY
fi

# 4. Read verdict + per-paper status from .aris/verify-papers/verified_papers.json;
#    surface warnings to the user.
```

**Mandatory output rules** (see
[`shared-references/citation-discipline.md`](../shared-references/citation-discipline.md)
§ Pre-Search Verification Protocol for the full contract):

- Tag every paper in the analyzed list with its status: `✅ verified (via
  arxiv|crossref|s2)` or `⚠️ UNVERIFIED (reason)` or `… verify_pending`.
- **Never silently drop unverified papers** — keep them in the output with the
  `[UNVERIFIED]` marker so the user can audit the search quality.
- Never fabricate a DOI or arXiv ID from memory. If a field is unknown, leave
  it `null` in `candidate_papers.json` — the helper will fall through to title
  search.
- If the helper returns `WARN` with `high_hallucination_rate`, surface the
  warning verbatim and recommend re-running with narrower queries.
- For papers tagged `verify_pending`, do not promote them to `verified` —
  show the pending state to the user and retry on the next session.

Optional: set `ARIS_VERIFY_EMAIL=you@institution.edu` in your shell to lift
CrossRef rate limits to the polite pool.

### Step 1.6: Resolve Publication and Select Versions

Apply the [publication/version policy](../shared-references/publication-policy.md) to candidates before substantive extraction. Write or update `literature/publication_records.json`; retain pending and excluded rows. Keep `existence_status` separate from publication/review status. Use Exa/web to open official records, resolve published counterparts, and preserve matching evidence. Run `publication_gate.py` on the records. Its PASS checks record consistency only, not the truth of evidence.

### Step 2: Analyze Each Paper

> **Parallel extraction (optional).** Papers are independent, so with many
> candidates and sub-agents available, extraction may be split by paper or small
> batch. Each part returns the fields below keyed by the stable record ID
> (arXiv ID, DOI or title hash from Step 1.5); the main agent merges and
> deduplicates. Otherwise, iterate sequentially.
>
> Step 1.5 verifies existence only; Step 1.6 selects versions and evidence tiers.
> Extractors preserve both statuses and the stable record ID. Index/API success
> does not validate a paper's claims or make it eligible for core synthesis.

For **every** paper in `.aris/verify-papers/verified_papers.json`
(including unresolved rows for auditability), report the fields below only when the source supports them; use null/unknown otherwise. For core/supplement papers, use `nature-reader` source-linked reading of the selected version and record `read_source`. Do not generate a full bilingual reader unless requested. Extract:
- **Publication record**: stable `id`, `tier`, publication/review status, selected version and official evidence URL.
- **Problem**: What gap does it address?
- **Method**: Core technical contribution (1-2 sentences)
- **Results**: Key numbers/claims
- **Relevance**: How does it relate to our work?
- **Source**: Where we found it (Zotero/Obsidian/local/web) — helps user know what they already have vs what's new
- **Citation role and comparison evidence**: Use the fields below for relevant citations and baselines.
- **Verification status** (one of):
  - `✅ verified (via arxiv|crossref|s2)`
  - `⚠️ UNVERIFIED (verification unavailable: helper unresolved or invocation failed)`
  - `⚠️ UNVERIFIED (searched: not found in any source)`
  - `… VERIFY_PENDING (transient API failure — retry next session)`
  - `❌ ERROR (malformed input: no arxiv, no DOI, no title)`

  Show the status in the analyzed table — never silently drop a
  paper because its status is anything other than `verified`.

#### Empirical comparison fields

- **Background citation** identifies contextual, theoretical or related-work
  references. Record the cited work and citation locator when relevant.
- **Empirical comparison** records `source uses_baseline baseline` when the
  source study actually compares against the baseline's method. The same
  evidence supports the inverse `baseline is_baseline_of source`. Keep one
  evidence record per comparison with both stable paper IDs, the method label,
  the selected source version, and its experiment table or section locator.
  Verify that `baseline year ≤ source year` using the dated versions involved
  in the comparison, including a verified earlier preprint where appropriate.
  Mark missing full text, unresolved method identity or inconsistent dates
  as unverified and keep those candidates outside the confirmed neighborhood.

### Step 3: Synthesize
- Base the main synthesis on core records; label supplements/preprints explicitly and explain their role. Pending rows remain an unresolved list, not evidence for conclusions. No core papers means that limitation must be reported.
- Link claims to the version and actual section/page/table read; abstracts alone cannot support detailed experimental comparisons.
- Group papers by approach/theme
- Identify consensus vs disagreements in the field
- Find gaps that our work could fill
- If Obsidian notes exist, incorporate the user's own insights into the synthesis

When the requested task includes benchmark selection or experiment planning,
retain the closest papers' actual datasets/tasks, protocols, metrics, baselines
and experiment/table/code locators, along with the confirmed comparison edges
and coverage gaps. Hand these and the shared publication records
to [benchmark-research-skill](modules/benchmark-research/GUIDE.md) for a reusable
benchmark comparison. This stays within the requested scope; an ordinary literature
review does not automatically launch selection, construction or experiments.

### Step 4: Output
Present as a structured literature table:

```
| Paper / Record ID | Venue & publication/review status | Tier / Version | Method | Key Result | Relevance | Evidence |
|---|---|---|---|---|---|---|
```

Plus a narrative summary of the landscape (3-5 paragraphs) and a brief **Evidence Readiness Summary** (when supporting ideation or novelty checks):
- **Baseline & bottleneck coverage:** Are dominant baselines and their stated limitations grounded in read core papers?
- **Recent / competing coverage:** Are recent preprints and OpenReview submissions (where relevant) scanned, or are coverage gaps noted?
- **Failure-mode / critique coverage:** Are known failure modes, negative results, or reviewer critiques captured?
- **Readiness status:** `Ready` / `Needs targeted follow-up` (list exact missing facets).

If Zotero BibTeX was exported, include a `references.bib` snippet for direct use in paper writing.

### Step 5: Save (if requested)
The shared publication records are already persisted by Step 1.6 for cross-skill reuse; the optional saves below concern additional artifacts. Hand off the record path to `novelty-check`, `ts-paper-cite`, and `nature-ref-verifier` instead of initiating independent searches.
- Save paper PDFs to `literature/` or `papers/`
- Update related work notes in project memory
- If Obsidian is available, optionally create a literature review note in the vault

## Key Rules
- Always include paper citations (authors, year, venue)
- Distinguish between peer-reviewed and preprints
- Be honest about limitations of each paper
- Note if a paper directly competes with or supports our approach
- **Never fail because a MCP server is not configured** — always fall back gracefully to the next data source
- Zotero/Obsidian tools may have different names depending on how the user configured the MCP server (e.g., `mcp__zotero__search` or `mcp__zotero-mcp__search_items`). Try the most common patterns and adapt.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.