Skip to content
Agentmart
Submit a tool

search-lit

Use when finding papers or building a reference list.

Skill by Aperivue

IndexedMIT★ 349
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aperivue-search-lit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when finding papers or building a reference list. Searches PubMed, Semantic Scholar and bioRxiv/medRxiv, includes only references verified through an API, and generates BibTeX. Auditing an existing reference list is /verify-refs.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/search-lit

What's inside

Skill name
search-lit
Description
Use when finding papers or building a reference list. Searches PubMed, Semantic Scholar and bioRxiv/medRxiv, includes only references verified through an API, and generates BibTeX. Auditing an existing reference list is /verify-refs.
License
MIT
Metadata
triggers: literature search, find papers, citation, references, bibliography, PubMed search, related work
Instructions
376 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • files: referenced but missing: references/search_results.tsv, references/library.bib, references/zotero_collection.json

Files (28)

  • SKILL.md
  • embase_browser.md · references/
  • parse_pubmed.py · references/
  • pubmed_eutils.sh · references/
  • snowball.py · references/
  • snowball.bib · references/snowball_challenge/expected/
  • DOI_10_0_seed1.backward.json · references/snowball_challenge/fixture/
  • DOI_10_0_seed1.forward.json · references/snowball_challenge/fixture/
  • DOI_10_0_seed1.similar.json · references/snowball_challenge/fixture/
  • DOI_10_0_seed_err.backward.json · references/snowball_challenge/fixture/
  • DOI_10_0_seed_trunc.forward.json · references/snowball_challenge/fixture/
  • library.bib · references/snowball_challenge/fixture/
  • problem.md · references/snowball_challenge/
  • verify.sh · references/snowball_challenge/
  • check_doi_record_match.py · scripts/
  • 10.1000%2Farticle.008.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Ferratum.007.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Fmarkup.005.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Fmatch.001.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Fother.002.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Fsuppl.003.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • 10.1000%2Fversion.009.json · scripts/check_doi_record_match_challenge/fixture/cache/
  • screening.tsv · scripts/check_doi_record_match_challenge/fixture/
  • update_notice.tsv · scripts/check_doi_record_match_challenge/fixture/
  • verify.sh · scripts/check_doi_record_match_challenge/
  • skill.yml
  • test_parse_pubmed.sh · tests/
  • test_pubmed_eutils.sh · tests/

SKILL.md (first lines)

# Literature Search Skill

Every reference you produce must come from a live database result — never generate a citation from
memory alone, because a recalled citation can look real and not exist.

## Search Tools: MCP (Primary) + E-utilities (Fallback)

### Primary: MCP Tools (Claude.ai Remote)

| Database | MCP Tool | Purpose |
|----------|----------|---------|
| PubMed | `mcp__claude_ai_PubMed__search_articles` | Search by query, MeSH terms |
| PubMed | `mcp__claude_ai_PubMed__get_article_metadata` | Full metadata for a PMID |
| PubMed | `mcp__claude_ai_PubMed__find_related_articles` | Related articles for a PMID |
| PubMed | `mcp__claude_ai_PubMed__lookup_article_by_citation` | Verify a citation |
| PubMed | `mcp__claude_ai_PubMed__convert_article_ids` | Convert between PMID/DOI/PMCID |
| Semantic Scholar | `mcp__claude_ai_Scholar_Gateway__semanticSearch` | Semantic search across all fields |
| bioRxiv/medRxiv | `mcp__claude_ai_bioRxiv__search_preprints` | Search preprint servers |
| bioRxiv/medRxiv | `mcp__claude_ai_bioRxiv__get_preprint` | Full preprint metadata |
| CrossRef | WebFetch with `https://api.crossref.org/works/{DOI}` | DOI verification |

### Fallback: NCBI E-utilities (Direct API via Bash)

If any `mcp__claude_ai_PubMed__*` call returns an error containing "terminated", "not found",
"not available", or "not connected", switch ALL subsequent PubMed calls in this session to the
bundled E-utilities scripts. Do not retry MCP after a disconnect — it will not recover within the
same conversation.

```bash
EUTILS="${CLAUDE_SKILL_DIR}/references/pubmed_eutils.sh"
PARSER="${CLAUDE_SKILL_DIR}/references/parse_pubmed.py"

# Search PubMed (returns PMIDs)
bash "$EUTILS" search "diagnostic test accuracy meta-analysis radiology" 20 \
  | python3 "$PARSER" esearch

# Get article summaries as markdown table
bash "$EUTILS" fetch_json "16168343,16085191,31462531" \
  | python3 "$PARSER" esummary

# Get detailed metadata
bash "$EUTILS" fetch "16168343" \
  | python3 "$PARSER" efetch

# Generate BibTeX entries
bash "$EUTILS" fetch "16168343,16085191" \
  | python3 "$PARSER" bibtex

# Verify a citation by exact title
bash "$EUTILS" cite_lookup "Bivariate analysis of sensitivity and specificity" \
  | python3 "$PARSER" esearch

# Find related articles for a PMID
bash "$EUTILS" related "16168343" 10 \
  | python3 "$PARSER" esummary
```

The script sleeps 350 ms between calls (NCBI allows 3 requests/s without an API key, 10/s with
`NCBI_API_KEY`); keep batch calls sequential.

| MCP Tool | E-utilities Command | Parser Mode |
|----------|-------------------|-------------|
| `search_articles` | `search <query> [retmax]` | `esearch` |
| `get_article_metadata` | `fetch <pmids>` | `efetch` or `bibtex` |
| `find_related_articles` | `related <pmid> [retmax]` | `esummary` |
| `lookup_article_by_citation` | `cite_lookup <title>` | `esearch` → `fetch` |
| `convert_article_ids` | Not available (use CrossRef DOI lookup) | — |

---

## Workflow

### Phase 1: Search Strategy

1. Get the research topic, question, or manuscript section that needs references.
2. Build the query from the key concepts (Population, Intervention/Exposure, Comparison, Outcome),
   with MeSH terms for PubMed: `(concept1 OR synonym1) AND (concept2 OR synonym2)`.
3. Set scope: date range (default: last 10 years unless the user specifies), article types, and
   language (default: English).
4. Present the Boolean query, databases, and filters to the user.

**Gate:** Wait for user approval before running searches.

### Phase 2: Execute Search

1. Search PubMed (`search_articles`, Boolean query), Semantic Scholar (`semanticSearch`, natural
   language query), and bioRxiv/medRxiv (`search_preprints`) when preprints are relevant.
2. Deduplicate across databases by DOI or title similarity.
3. Present the results in this table, and write the same rows to `references/search_results.tsv`:

```
| # | Title | Authors (first + last) | Year | Journal | PMID/DOI | Relevance |
|---|-------|----------------------|------|---------|----------|-----------|
| 1 | ...   | Kim J, ... Lee S     | 2024 | Radiology | 12345678 | High      |
```

4. Ask the user to select which papers to include.

#### Record what the source said existed, not only what you downloaded

A wrong haul raises no error, and a PRISMA flow built on a wrong number is fiction that nothing
downstream contradicts. Check both of these:

- **A count that equals a page cap exactly.** Every source reports a total:
  `esearchresult.count`, `opensearch:totalResults`, `meta.count`. **Record `api_total` beside
  `downloaded`, and fail loudly when `downloaded < api_total`, or when `downloaded` equals a page or
  loop cap exactly** (e.g. a loop's own `if start >= 2000: break` reporting 2,000 records). Print
  `TRUNCATED` and refuse to write the search record.
- **A boolean that was never applied.** OpenAlex's `search=` is a relevance-ranked free-text
  parameter that **silently ignores AND/OR**; `filter=title_and_abstract.search:` honours them. Run
  the query once more with one mandatory clause negated. **If the hit count does not drop, the
  boolean is being ignored** — the engine is ranking, not filtering.

PubMed via E-utilities is the one place where the naive pattern is safe. Everywhere else, do both.

#### A DOI in a screening row is not necessarily that row's DOI

When the pipeline **filled** a `doi` column (matched against Crossref by title similarity) rather
than receiving it with the record, a wrong match is a valid, resolvable DOI for a different paper.

From Aperivue/medsci-skills, MIT.

More from Aperivue/medsci-skills

Signals

Stars
349
Forks
83
Open issues
4
Last commit (this folder)
Oct 2, 2026 (27 days ago)
Last release
Oct 4, 2026 (25 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Aperivue

Cite this page

search-lit skill. Agent Mart. https://agentmart.dev/skills/aperivue-search-lit (last updated 2026-10-24)