Research Information Lookup
Overview
This skill provides real-time research information lookup with intelligent backend routing, and it works with no API key:
- Scholarly backend (keyless, default for paper searches):
scripts/research_lookup.py queries Crossref, Europe PMC, arXiv and Semantic Scholar, merges the same work across indexes (DOI, then arXiv id / PMID / PMCID, then full title + year + first author), and returns index records — title, authors, year, venue, DOI, each index's citation count, an abstract snippet — in the indexes' relevance order (--rank cited orders by one declared index's citation count instead). You read the records, open the papers you cite, and write the synthesis.
- Keyless web lookup (default for general questions — statistics, market data, news, documentation): you run the search with WebSearch, open the sources with WebFetch, and save the result to
sources/ (procedure below).
- Parallel Chat API (
core model, optional, PARALLEL_API_KEY): synthesized multi-source web research reports with inline citations (https://api.parallel.ai/v1beta/chat/completions).
- Perplexity sonar-pro-search (optional,
OPENROUTER_API_KEY): synthesized academic answers with citations.
The skill detects the query type and routes it; keys only add the two paid backends.
When to Use This Skill
Use this skill when you need:
- Current Research Information: Latest studies, papers, and findings
- Literature Verification: Check facts, statistics, or claims against current research
- Background Research: Gather context and supporting evidence for scientific writing
- Citation Sources: Find relevant papers and studies to cite
- Technical Documentation: Look up specifications, protocols, or methodologies
- Market/Industry Data: Current statistics, trends, competitive intelligence
- Recent Developments: Emerging trends, breakthroughs, announcements
Does NOT Trigger
| Scenario |
Use Instead |
| You specifically want Perplexity (choosing a Sonar model yourself), no routing |
alterlab-perplexity |
| Extracting or verifying the content of a known URL, or calling Parallel's Search/Task APIs directly |
alterlab-parallel-web |
| Structured per-paper experimental data (sample sizes, effect sizes, quality scores) |
alterlab-bgpt-search |
| Mapping the citation network around a seed paper |
alterlab-citation-graph |
| A systematic review with PRISMA screening and risk-of-bias assessment |
alterlab-literature-review |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-perplexity) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Automatic Backend Selection
The skill automatically routes queries to the best backend based on content:
Routing Logic
Query arrives
|
+-- --terms / --since / --until / --cite-index / --rank cited given?
| --> scholarly backend (only it applies them)
|
+-- Contains academic keywords? (papers, DOI, journal, peer-reviewed, etc.)
| OPENROUTER_API_KEY set --> Perplexity sonar-pro-search (academic mode)
| otherwise --> scholarly backend (keyless index records)
|
+-- Everything else (general research, market data, technical info, statistics)
PARALLEL_API_KEY set --> Parallel Chat API (core model)
OPENROUTER_API_KEY set --> Perplexity
no key --> keyless web lookup with WebSearch/WebFetch (you);
the script, if run, returns papers only and says so
With no key at all — the usual case — paper searches run the script and everything else is a WebSearch/WebFetch lookup that you do yourself. The script prints the route it took on stderr.
Academic Keywords (paper-search route)
Queries containing these terms take the paper-search route (Perplexity with its key, the scholarly backend without):
- Paper finding:
find papers, find articles, research papers on, published studies
- Citations:
cite, citation, doi, pubmed, pmid
- Academic sources:
peer-reviewed, journal article, scholarly, arxiv, preprint
- Review types:
systematic review, meta-analysis, literature search
- Paper quality:
foundational papers, seminal papers, landmark papers, highly cited
Everything Else (general route)
General research questions, market and industry analysis, technical documentation, current events, comparative analysis and statistics go to Parallel when its key is set, and otherwise to the keyless web lookup.
Manual Override
You can force a specific backend:
# Keyless scholarly backend, whatever the query or keys
python scripts/research_lookup.py "your query" --force-backend scholarly
# Paid backends: only when the user asks for them (or their key is set and you want them)
python scripts/research_lookup.py "your query" --force-backend parallel
python scripts/research_lookup.py "your query" --force-backend perplexity
A forced paid backend whose key is missing exits 1 with a message naming the variable and the keyless alternatives; it never answers from another backend and writes nothing to -o. Tell the user which key is missing, then offer (or, if they only wanted results, run) the keyless route and label it as such.
Keyless Web Lookup (general questions, no key)
For statistics, market data, news, policy and documentation, do the lookup with Claude's own tools, keeping the same standards the paid backends promise:
- Plan. Turn the question into 2–4 specific searches (entity + measure + year + likely publisher, e.g.
CDC National Diabetes Statistics Report prevalence). Prefer primary publishers: agencies, statistical offices, registries, the journal itself.
- Search with WebSearch; note the result URLs and their dates.
- Open what you will cite with WebFetch — the primary page, not a news summary of it. A number you could not see on the page itself is marked "from a search snippet, not verified".
- Answer with every figure attributed inline (publisher, document, year, URL) and the retrieval date; say which figure is the most recent official one and flag disagreements between sources.
- Save a
sources/research_YYYYMMDD_HHMMSS_<topic>.md file with Write: the question, the searches run, the retrieval date, the answer, and a numbered source list (title, publisher, date, URL, the exact sentence or table cell each figure came from).
For academic claims inside a general question, run the scholarly backend as well and cite the papers by DOI.
Core Capabilities
1. Academic Paper Search (scholarly backend, keyless; Perplexity with its key)
Query Examples:
- "Find papers on transformer attention mechanisms in NeurIPS 2024"
- "Foundational papers on quantum error correction"
- "Systematic review of immunotherapy in non-small cell lung cancer"
- "Cite the original BERT paper and its most influential follow-ups"
- "Published studies on CRISPR off-target effects in clinical trials"
Keyless procedure:
- Run
python scripts/research_lookup.py "<request>" -o sources/papers_YYYYMMDD_HHMMSS_<topic>.md. It drops English routing words ("find peer-reviewed papers on … with DOIs") before searching and keeps words in every script as written (Turkish, Greek, CJK, … — never transliterated or translated). Pass --terms '"exact phrase" OR "synonym"' when you know the field's vocabulary (quotes, AND/OR/NOT in capitals, -word, parentheses), --since YYYY / --until YYYY (or YYYY-MM-DD) for a date window, --rank cited to order by citation count (the default order is relevance), --limit N for more records. Words such as "recent" or a year inside the topic never become a date filter — use --since.
- Read the records: they are real index entries (DOI, venue, year, the citation count each index reports, an abstract snippet), not generated citations. Keyword ranking can miss a field's classic — if you know it (e.g. the original BERT paper), confirm it with a DOI or title lookup (
--terms with its title, or https://api.crossref.org/works/<DOI>) rather than citing from memory.
- Open each paper you summarise (WebFetch the DOI or the Europe PMC record) before stating its findings; the abstract snippet is enough only for a one-line description.
- Write 5–8 high-quality citations with authors, titles, venues, years, DOIs and citation counts (say which index each count is from), key findings and methods, and research gaps — the same response Perplexity's academic mode gives.
With OPENROUTER_API_KEY: the same query goes to Perplexity sonar-pro-search, which returns a synthesized answer with sources; still open what you cite.
2. General Research Queries (keyless web lookup; Parallel with its key)
Query Examples:
- "Recent advances in CRISPR gene editing 2025"
- "Compare mRNA vaccines vs traditional vaccines for cancer treatment"
- "AI adoption in healthcare industry statistics"
- "Global renewable energy market trends and projections"
Without a key, follow Keyless Web Lookup above. With PARALLEL_API_KEY, the script's Parallel route returns a multi-source markdown report with inline citations, sections, and source URLs.
3. Technical and Methodological Information
Query Examples:
- "Western blot protocol for protein detection"
- "Statistical power analysis for clinical trials"
- "Machine learning model evaluation metrics comparison"
4. Statistical and Market Data
Query Examples:
- "Prevalence of diabetes in US population 2025"
- "Global AI market size and growth projections"
- "COVID-19 vaccination rates by country"
Paper Quality and Popularity Prioritization
When searching for papers, favor high-quality, influential work, but treat citation counts and venue as rough proxies rather than measures of quality: they lag for recent papers, vary widely by field, and under-represent null results, regional journals, and non-English work. Judge each paper on its design and evidence (see alterlab-scientific-thinking), and include a lower-profile paper when it is the most direct evidence for the claim. The thresholds below are working heuristics, not established cut-offs.
Citation-Based Ranking
| Paper Age |
Citation Threshold |
Classification |
| 0-3 years |
20+ citations |
Noteworthy |
| 0-3 years |
100+ citations |
Highly Influential |
| 3-7 years |
100+ citations |
Significant |
| 3-7 years |
500+ citations |
Landmark Paper |
| 7+ years |
500+ citations |
Seminal Work |
| 7+ years |
1000+ citations |
Foundational |
Venue Quality Tiers
Tier 1 - Premier Venues (prefer when relevant):
- General Science: Nature, Science, Cell, PNAS
- Medicine: NEJM, Lancet, JAMA, BMJ
- Field-Specific: Nature Medicine, Nature Biotechnology, Nature Methods
- Top CS/AI: NeurIPS, ICML, ICLR, ACL, CVPR
Tier 2 - High-Impact Specialized (Strong preference):
- Journals with Impact Factor > 10
- Top conferences in subfields (EMNLP, NAACL, ECCV, MICCAI)
Tier 3 - Respected Specialized (Include when relevant):
- Journals with Impact Factor 5-10
Technical Integration
Environment Variables (all optional)
# Optional paid backend for general research (Parallel Chat API)
export PARALLEL_API_KEY="your_parallel_api_key"
# Optional paid backend for academic answers (Perplexity via OpenRouter)
export OPENROUTER_API_KEY="your_openrouter_api_key"
No key is needed. Ask the user to set a key themselves (never paste it into chat) only when they want that paid backend.
API Specifications
Scholarly backend (keyless, scripts/scholarly_backend.py, stdlib only):
- Crossref
api.crossref.org/works (query.bibliographic, is-referenced-by-count), Europe PMC REST (TITLE_ABS: query, sort=CITED desc in cited mode), arXiv export.arxiv.org/api/query, Semantic Scholar graph/v1/paper/search, best effort: its shared keyless search pool is often spent (HTTP 429 for minutes, checked 2026-11-02), so it gets one retry after 2 s, is then skipped for the rest of the run, and is reported as not checked; Crossref, Europe PMC and arXiv carry the query on their own. An optional S2_API_KEY (or SEMANTIC_SCHOLAR_API_KEY), sent as a header, raises its limit. OpenAlex is no longer queried: since 2026 its keyless search is metered per IP, so dependable use needed an account
- A source that fails is listed under "Sources that did not answer" (a 429 there means not checked, not "no results"); the rest still return. Every record keeps each index's citation count separately and lists the index records it was merged from (
merged_from)
- Search syntax (
--terms, or quotes / AND OR NOT / parentheses / leading - in the request) is parsed and translated per index: Europe PMC and arXiv receive the exact boolean query; Crossref and Semantic Scholar have no boolean search, so they get an approximate keyword query (labelled) or, when the expression excludes terms, are skipped with the reason. Each run prints and returns query_translation per index. OR binds tighter than AND; malformed --terms (unbalanced quote or parenthesis, dangling operator) is an error, nothing is searched
- Dates:
--since/--until go to every index (Crossref from-/until-pub-date, Europe PMC FIRST_PDATE, arXiv submittedDate, Semantic Scholar year) and are re-checked on the returned dates: out-of-range records are dropped and counted, undated ones kept and marked "date unknown"
- Order: relevance by default;
--rank cited sorts by one index's count (--cite-index, default crossref) with uncounted records after, never by comparing counts across indexes. Full rules (tokenization, grammar, dedup, preprint vs published, ranking, dates, output schema v2): references/search_semantics.md
- Checked live 2026-10-22 and again on 2026-11-02 without OpenAlex (with v1.2.x, before the v1.3.0 query, date and ranking changes; not re-run since): "microplastics in human placenta" returned Ragusa et al. 2021, Environment International, DOI 10.1016/j.envint.2020.106274, first;
--terms '"testing effect" OR "retrieval practice"' returned Roediger & Karpicke 2006, DOI 10.1111/j.1467-9280.2006.01693.x, first
Parallel Chat API (Beta):
- Endpoint:
POST https://api.parallel.ai/v1beta/chat/completions (OpenAI SDK with base_url="https://api.parallel.ai/v1beta")
- Model:
core (60s-5min latency, complex multi-source synthesis)
- Output: Markdown text with inline citations
- Citations: Research basis with source URLs and excerpts
- Rate limit: 300 requests/min by default
- Python package:
openai
Perplexity sonar-pro-search:
- Model:
perplexity/sonar-pro-search (via OpenRouter; $3/$15 per million tokens plus $18 per 1,000 requests at 2026-09 list prices)
- Sends
web_search_options.search_context_size: high and Perplexity's search_mode: academic; OpenRouter may not forward the latter, so academic-only sourcing is best-effort
- Sources come back as
url_citation annotations and/or citations/search_results fields; the script merges and deduplicates them
- The script waits up to 90 s per request
- Python package:
requests
Command-Line Usage
The keyless route needs only the Python standard library. The optional Parallel route imports openai and the Perplexity route uses requests; where they are not installed, prefix those commands with uv run --python ">=3.11" --with openai --with requests instead of installing anything.
# Auto-routed research (recommended)
python scripts/research_lookup.py "your query" -o sources/research_YYYYMMDD_HHMMSS_<topic>.md
# Paper search with exact terms, influence order, 15 records (keyless)
python scripts/research_lookup.py "find papers" --terms '"testing effect" OR "retrieval practice"' \
--rank cited --limit 15 -o sources/papers_<topic>.md
# Boolean expression with an exclusion and a date window (keyless)
python scripts/research_lookup.py "find papers" --terms '(memory OR learning) AND sleep NOT rodent' \
--since 2020 --until 2024 -o sources/papers_<topic>.md
# Force specific backend
python scripts/research_lookup.py "your query" --force-backend scholarly -o sources/papers_<topic>.md
python scripts/research_lookup.py "your query" --force-backend parallel -o sources/research_<topic>.md
python scripts/research_lookup.py "your query" --force-backend perplexity -o sources/papers_<topic>.md
# JSON output
python scripts/research_lookup.py "your query" --json -o sources/research_<topic>.json
# Batch queries
python scripts/research_lookup.py --batch "query 1" "query 2" "query 3" -o sources/batch_research_<topic>.md
Save All Results to the Sources Folder
Save every research-lookup result to the project's sources/ folder. The saved file is what lets you (and reviewers) trace each citation back to the raw search output, and paid backends cost money per call.
Saving Rules
| Backend |
Target |
Filename Pattern |
| Scholarly backend (keyless) |
-o sources/papers_<topic>.md |
papers_YYYYMMDD_HHMMSS_<brief_topic>.md |
| Keyless web lookup (WebSearch/WebFetch) |
Write sources/research_<topic>.md |
research_YYYYMMDD_HHMMSS_<brief_topic>.md |
| Parallel Deep Research |
-o sources/research_<topic>.md |
research_YYYYMMDD_HHMMSS_<brief_topic>.md |
| Perplexity (academic) |
-o sources/papers_<topic>.md |
papers_YYYYMMDD_HHMMSS_<brief_topic>.md |
| Batch queries |
-o sources/batch_<topic>.md |
batch_research_YYYYMMDD_HHMMSS_<brief_topic>.md |
How to Save
Pass -o pointing into sources/ on every script call (create the folder first), and keep the citations, source URLs, and DOIs in the saved file — they are the audit trail. A failed or refused call writes nothing, so a file in sources/ always holds real results. The default text output already includes a Sources section (title, date, URL for each source) and an Additional References section (DOIs); use --json for the full citation metadata. For a keyless web lookup, write the file yourself in the shape described under Keyless Web Lookup.
# General research — save to sources/ (includes Sources + Additional References sections)
python scripts/research_lookup.py "Recent advances in CRISPR gene editing 2025" \
-o sources/research_20250217_143000_crispr_advances.md
# Academic paper search — save to sources/ (includes paper citations with DOIs)
python scripts/research_lookup.py "Find papers on transformer attention mechanisms in NeurIPS 2024" \
-o sources/papers_20250217_143500_transformer_attention.md
# JSON format for maximum citation metadata (full citation objects with URLs, DOIs, snippets)
python scripts/research_lookup.py "CRISPR clinical trials" --json \
-o sources/research_20250217_143000_crispr_trials.json
# Forced backend — save to sources/
python scripts/research_lookup.py "AI regulation landscape" --force-backend parallel \
-o sources/research_20250217_144000_ai_regulation.md
# Batch queries — save to sources/
python scripts/research_lookup.py --batch "mRNA vaccines efficacy" "mRNA vaccines safety" \
-o sources/batch_research_20250217_144500_mrna_vaccines.md
Citation Preservation in Saved Files
Each output format preserves citations differently:
| Format |
Citations Included |
When to Use |
| Text (default) |
Sources (N): section with [title] (date) + URL + Additional References (N): with DOIs and academic URLs |
Standard use — human-readable with all citations |
JSON (--json) |
Full citation objects: url, title, date, snippet, doi, type |
When you need maximum citation metadata |
For the scholarly backend, saved files include: the numbered index records (title, authors, year, venue, DOI, per-index citation counts, impact label, abstract snippet) + Sources list + DOIs, and which indexes did not answer.
For Parallel backend, saved files include: research report + Sources list (title, URL) + Additional References (DOIs, academic URLs).
For Perplexity backend, saved files include: academic summary + Sources list (title, date, URL, snippet) + Additional References (DOIs, academic URLs).
Use --json when you need to:
- Parse citation metadata programmatically
- Preserve full DOI and URL data for BibTeX generation
- Maintain the structured citation objects for cross-referencing
Why Save Everything
- Reproducibility: Every citation and claim can be traced back to its raw research source
- Context Window Recovery: If context is compacted, saved results can be re-read without re-querying
- Audit Trail: The
sources/ folder documents exactly how all research information was gathered
- Reuse Across Sections: Multiple sections can reference the same saved research without duplicate queries
- Cost Efficiency: Check
sources/ for existing results before making new API calls
- Peer Review Support: Reviewers can verify the research backing every citation
Before Making a New Query, Check Sources First
Before calling research_lookup.py, check if a relevant result already exists:
ls sources/ # Check existing saved results
If a prior lookup covers the same topic, re-read the saved file instead of making a new API call.
Logging
When saving research results, always log:
[HH:MM:SS] SAVED: Research lookup to sources/research_20250217_143000_crispr_advances.md (3,800 words, 8 citations)
[HH:MM:SS] SAVED: Paper search to sources/papers_20250217_143500_transformer_attention.md (6 papers found)
Integration with Scientific Writing
This skill supports scientific writing by providing (each result saved to sources/):
- Literature Review Support: Gather current research for introduction and discussion
- Methods Validation: Verify protocols against current standards
- Results Contextualization: Compare findings with recent similar studies
- Discussion Enhancement: Support arguments with latest evidence
- Citation Management: Provide properly formatted citations
Treat returned citations as leads: open and check any paper before citing it, because search-model answers can misattribute findings or garble bibliographic details (alterlab-citation-verifier checks that references exist).
Complementary Tools
| Task |
Skill |
| Citation network / co-citation map grown from a seed paper |
alterlab-citation-graph |
| PubMed search |
alterlab-pubmed |
| Zotero library / DOI-to-BibTeX management |
alterlab-pyzotero |
| Verify that the references you collected exist |
alterlab-citation-verifier |
Error Handling and Limitations
Known Limitations:
- Scholarly backend: keyword search in the indexes' relevance order, so a field's classic can rank below newer work — use
--terms and --rank cited, and confirm known classics by DOI; each index's citation count covers only its own corpus (they are labelled, never compared); Crossref and Semantic Scholar cannot run boolean queries (see query_translation); routing-word removal is English-only; Semantic Scholar's shared keyless search pool is often spent, so many runs answer from Crossref, Europe PMC and arXiv alone (the output names Semantic Scholar as not checked, never silently)
- Parallel Chat API (core model): Complex queries may take up to 5 minutes
- Perplexity: Information cutoff, may not access full text behind paywalls
- All: Cannot access proprietary or restricted databases
Fallback Behavior:
- Auto-routing without a key uses the keyless scholarly backend (and, for general questions, tells you on stderr to use WebSearch/WebFetch)
- A
--force-backend parallel|perplexity whose key is missing exits 1 naming the variable; it never answers from another backend
--terms, --since, --until, --cite-index and --rank cited exist only in the scholarly backend: given one, auto-routing uses the scholarly backend even when a key is set, and --force-backend parallel|perplexity refuses (exit 1) instead of ignoring it
- Malformed
--terms or an invalid date exits 1 (scholarly_backend.py exits 2) before any request; a request whose own text has unparseable syntax is searched as plain words and the output says so
- A call that fails is not retried on another backend; the result carries
success: false, the error goes to stderr, and the script exits 1 — rerun with --force-backend to try another
- Rephrase queries (or pass
--terms) for better results if the initial response is insufficient
Backend-key setup and specific error messages: see references/troubleshooting.md.
Usage Examples
| Query |
No key (default) |
With keys |
| "Find papers on CRISPR off-target effects in clinical trials" |
Scholarly backend → sources/papers_…md; you open and summarise 5–8 papers with DOIs and citation counts |
Perplexity sonar-pro-search (academic mode) |
| "Global AI adoption in healthcare statistics 2025" |
Keyless web lookup: WebSearch → WebFetch the primary reports → Write sources/research_…md |
Parallel Chat API (core model) |
| "Compare mRNA vaccines vs traditional vaccines for cancer treatment" |
Web lookup for the overview plus the scholarly backend for the trials and reviews you cite |
Parallel Chat API (core model) |
Summary
This skill is the primary research interface with intelligent routing, keyless by default:
- Scholarly backend (keyless): real index records from four open scholarly indexes for paper searches
- Keyless web lookup: WebSearch + WebFetch with saved, cited sources for everything else
- Parallel Chat API / Perplexity sonar-pro-search (optional keys): synthesized reports and academic answers
- Manual override: force any backend; a forced paid backend never silently falls back
- Complementary: Works alongside
alterlab-parallel-web for web search and URL extraction
Part of the AlterLab Academic Skills suite.
1---2name: alterlab-research-lookup3description: Look up current research and scholarly papers by auto-routing each query to the best backend and saving every result with citations to sources/. Keyless by default — paper searches go to the built-in scholarly backend (Crossref, Europe PMC, arXiv and Semantic Scholar index records with real DOIs, venues and citation counts) and general questions to Claude's WebSearch and WebFetch; the Parallel Chat API and Perplexity sonar-pro-search via OpenRouter are optional backends used when their keys are set. Use when finding papers, gathering research data, verifying scientific claims, or assembling citation lists and unsure which search backend fits. For plain general web search or extracting content from a known URL prefer alterlab-parallel-web; to call Perplexity directly with a chosen Sonar model prefer alterlab-perplexity. Part of the AlterLab Academic Skills suite.4allowed-tools: Read Write Edit Bash WebSearch WebFetch5license: MIT6compatibility: No API key required. The scholarly backend is stdlib Python that queries Crossref, Europe PMC, arXiv and (best effort) Semantic Scholar keyless; general web questions use Claude's WebSearch/WebFetch. Optional backends, used only when their keys are set or forced - PARALLEL_API_KEY (Parallel Chat API, openai package) and OPENROUTER_API_KEY (Perplexity, requests package) - send queries to those services.7metadata:8 source: https://skillmd.com/skills/alterlab-ieu/alterlab-research-lookup9 skill-author: AlterLab10 version: "1.3.0"11 last_updated: "2026-11-05"12 credentials: "optional: PARALLEL_API_KEY (Parallel Chat API synthesized web research reports; paid), OPENROUTER_API_KEY (Perplexity sonar-pro-search synthesized academic answers via OpenRouter; paid), S2_API_KEY or SEMANTIC_SCHOLAR_API_KEY (raises Semantic Scholar's shared keyless rate limit; free). None is needed: the keyless scholarly backend and WebSearch/WebFetch do the lookup without them"13---1415# Research Information Lookup1617## Overview1819This skill provides real-time research information lookup with **intelligent backend routing**, and it works with no API key:2021- **Scholarly backend** (keyless, default for paper searches): `scripts/research_lookup.py` queries Crossref, Europe PMC, arXiv and Semantic Scholar, merges the same work across indexes (DOI, then arXiv id / PMID / PMCID, then full title + year + first author), and returns index records — title, authors, year, venue, DOI, each index's citation count, an abstract snippet — in the indexes' relevance order (`--rank cited` orders by one declared index's citation count instead). You read the records, open the papers you cite, and write the synthesis.22- **Keyless web lookup** (default for general questions — statistics, market data, news, documentation): you run the search with WebSearch, open the sources with WebFetch, and save the result to `sources/` (procedure below).23- **Parallel Chat API** (`core` model, optional, `PARALLEL_API_KEY`): synthesized multi-source web research reports with inline citations (`https://api.parallel.ai/v1beta/chat/completions`).24- **Perplexity sonar-pro-search** (optional, `OPENROUTER_API_KEY`): synthesized academic answers with citations.2526The skill detects the query type and routes it; keys only add the two paid backends.2728## When to Use This Skill2930Use this skill when you need:3132- **Current Research Information**: Latest studies, papers, and findings33- **Literature Verification**: Check facts, statistics, or claims against current research34- **Background Research**: Gather context and supporting evidence for scientific writing35- **Citation Sources**: Find relevant papers and studies to cite36- **Technical Documentation**: Look up specifications, protocols, or methodologies37- **Market/Industry Data**: Current statistics, trends, competitive intelligence38- **Recent Developments**: Emerging trends, breakthroughs, announcements3940### Does NOT Trigger4142| Scenario | Use Instead |43|----------|-------------|44| You specifically want Perplexity (choosing a Sonar model yourself), no routing | `alterlab-perplexity` |45| Extracting or verifying the content of a known URL, or calling Parallel's Search/Task APIs directly | `alterlab-parallel-web` |46| Structured per-paper experimental data (sample sizes, effect sizes, quality scores) | `alterlab-bgpt-search` |47| Mapping the citation network around a seed paper | `alterlab-citation-graph` |48| A systematic review with PRISMA screening and risk-of-bias assessment | `alterlab-literature-review` |4950**Hand-off rule.** When the request matches a row above, open your answer by naming that skill by its exact id (for example `alterlab-perplexity`) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.5152## Automatic Backend Selection5354The skill automatically routes queries to the best backend based on content:5556### Routing Logic5758```59Query arrives60 |61 +-- --terms / --since / --until / --cite-index / --rank cited given?62 | --> scholarly backend (only it applies them)63 |64 +-- Contains academic keywords? (papers, DOI, journal, peer-reviewed, etc.)65 | OPENROUTER_API_KEY set --> Perplexity sonar-pro-search (academic mode)66 | otherwise --> scholarly backend (keyless index records)67 |68 +-- Everything else (general research, market data, technical info, statistics)69 PARALLEL_API_KEY set --> Parallel Chat API (core model)70 OPENROUTER_API_KEY set --> Perplexity71 no key --> keyless web lookup with WebSearch/WebFetch (you);72 the script, if run, returns papers only and says so73```7475With no key at all — the usual case — paper searches run the script and everything else is a WebSearch/WebFetch lookup that you do yourself. The script prints the route it took on stderr.7677### Academic Keywords (paper-search route)7879Queries containing these terms take the paper-search route (Perplexity with its key, the scholarly backend without):8081- Paper finding: `find papers`, `find articles`, `research papers on`, `published studies`82- Citations: `cite`, `citation`, `doi`, `pubmed`, `pmid`83- Academic sources: `peer-reviewed`, `journal article`, `scholarly`, `arxiv`, `preprint`84- Review types: `systematic review`, `meta-analysis`, `literature search`85- Paper quality: `foundational papers`, `seminal papers`, `landmark papers`, `highly cited`8687### Everything Else (general route)8889General research questions, market and industry analysis, technical documentation, current events, comparative analysis and statistics go to Parallel when its key is set, and otherwise to the keyless web lookup.9091### Manual Override9293You can force a specific backend:9495```bash96# Keyless scholarly backend, whatever the query or keys97python scripts/research_lookup.py "your query" --force-backend scholarly9899# Paid backends: only when the user asks for them (or their key is set and you want them)100python scripts/research_lookup.py "your query" --force-backend parallel101python scripts/research_lookup.py "your query" --force-backend perplexity102```103104A forced paid backend whose key is missing exits 1 with a message naming the variable and the keyless alternatives; it never answers from another backend and writes nothing to `-o`. Tell the user which key is missing, then offer (or, if they only wanted results, run) the keyless route and label it as such.105106## Keyless Web Lookup (general questions, no key)107108For statistics, market data, news, policy and documentation, do the lookup with Claude's own tools, keeping the same standards the paid backends promise:1091101. **Plan.** Turn the question into 2–4 specific searches (entity + measure + year + likely publisher, e.g. `CDC National Diabetes Statistics Report prevalence`). Prefer primary publishers: agencies, statistical offices, registries, the journal itself.1112. **Search** with WebSearch; note the result URLs and their dates.1123. **Open what you will cite** with WebFetch — the primary page, not a news summary of it. A number you could not see on the page itself is marked "from a search snippet, not verified".1134. **Answer** with every figure attributed inline (publisher, document, year, URL) and the retrieval date; say which figure is the most recent official one and flag disagreements between sources.1145. **Save** a `sources/research_YYYYMMDD_HHMMSS_<topic>.md` file with Write: the question, the searches run, the retrieval date, the answer, and a numbered source list (title, publisher, date, URL, the exact sentence or table cell each figure came from).115116For academic claims inside a general question, run the scholarly backend as well and cite the papers by DOI.117118---119120## Core Capabilities121122### 1. Academic Paper Search (scholarly backend, keyless; Perplexity with its key)123124```125Query Examples:126- "Find papers on transformer attention mechanisms in NeurIPS 2024"127- "Foundational papers on quantum error correction"128- "Systematic review of immunotherapy in non-small cell lung cancer"129- "Cite the original BERT paper and its most influential follow-ups"130- "Published studies on CRISPR off-target effects in clinical trials"131```132133**Keyless procedure:**1341. Run `python scripts/research_lookup.py "<request>" -o sources/papers_YYYYMMDD_HHMMSS_<topic>.md`. It drops English routing words ("find peer-reviewed papers on … with DOIs") before searching and keeps words in every script as written (Turkish, Greek, CJK, … — never transliterated or translated). Pass `--terms '"exact phrase" OR "synonym"'` when you know the field's vocabulary (quotes, `AND`/`OR`/`NOT` in capitals, `-word`, parentheses), `--since YYYY` / `--until YYYY` (or `YYYY-MM-DD`) for a date window, `--rank cited` to order by citation count (the default order is relevance), `--limit N` for more records. Words such as "recent" or a year inside the topic never become a date filter — use `--since`.1352. Read the records: they are real index entries (DOI, venue, year, the citation count each index reports, an abstract snippet), not generated citations. Keyword ranking can miss a field's classic — if you know it (e.g. the original BERT paper), confirm it with a DOI or title lookup (`--terms` with its title, or `https://api.crossref.org/works/<DOI>`) rather than citing from memory.1363. Open each paper you summarise (WebFetch the DOI or the Europe PMC record) before stating its findings; the abstract snippet is enough only for a one-line description.1374. Write 5–8 high-quality citations with authors, titles, venues, years, DOIs and citation counts (say which index each count is from), key findings and methods, and research gaps — the same response Perplexity's academic mode gives.138139**With `OPENROUTER_API_KEY`:** the same query goes to Perplexity sonar-pro-search, which returns a synthesized answer with sources; still open what you cite.140141### 2. General Research Queries (keyless web lookup; Parallel with its key)142143```144Query Examples:145- "Recent advances in CRISPR gene editing 2025"146- "Compare mRNA vaccines vs traditional vaccines for cancer treatment"147- "AI adoption in healthcare industry statistics"148- "Global renewable energy market trends and projections"149```150151Without a key, follow **Keyless Web Lookup** above. With `PARALLEL_API_KEY`, the script's Parallel route returns a multi-source markdown report with inline citations, sections, and source URLs.152153### 3. Technical and Methodological Information154155```156Query Examples:157- "Western blot protocol for protein detection"158- "Statistical power analysis for clinical trials"159- "Machine learning model evaluation metrics comparison"160```161162### 4. Statistical and Market Data163164```165Query Examples:166- "Prevalence of diabetes in US population 2025"167- "Global AI market size and growth projections"168- "COVID-19 vaccination rates by country"169```170171---172173## Paper Quality and Popularity Prioritization174175When searching for papers, favor high-quality, influential work, but treat citation counts and venue as rough proxies rather than measures of quality: they lag for recent papers, vary widely by field, and under-represent null results, regional journals, and non-English work. Judge each paper on its design and evidence (see `alterlab-scientific-thinking`), and include a lower-profile paper when it is the most direct evidence for the claim. The thresholds below are working heuristics, not established cut-offs.176177### Citation-Based Ranking178179| Paper Age | Citation Threshold | Classification |180|-----------|-------------------|----------------|181| 0-3 years | 20+ citations | Noteworthy |182| 0-3 years | 100+ citations | Highly Influential |183| 3-7 years | 100+ citations | Significant |184| 3-7 years | 500+ citations | Landmark Paper |185| 7+ years | 500+ citations | Seminal Work |186| 7+ years | 1000+ citations | Foundational |187188### Venue Quality Tiers189190**Tier 1 - Premier Venues** (prefer when relevant):191- **General Science**: Nature, Science, Cell, PNAS192- **Medicine**: NEJM, Lancet, JAMA, BMJ193- **Field-Specific**: Nature Medicine, Nature Biotechnology, Nature Methods194- **Top CS/AI**: NeurIPS, ICML, ICLR, ACL, CVPR195196**Tier 2 - High-Impact Specialized** (Strong preference):197- Journals with Impact Factor > 10198- Top conferences in subfields (EMNLP, NAACL, ECCV, MICCAI)199200**Tier 3 - Respected Specialized** (Include when relevant):201- Journals with Impact Factor 5-10202203---204205## Technical Integration206207### Environment Variables (all optional)208209```bash210# Optional paid backend for general research (Parallel Chat API)211export PARALLEL_API_KEY="your_parallel_api_key"212213# Optional paid backend for academic answers (Perplexity via OpenRouter)214export OPENROUTER_API_KEY="your_openrouter_api_key"215```216217No key is needed. Ask the user to set a key themselves (never paste it into chat) only when they want that paid backend.218219### API Specifications220221**Scholarly backend (keyless, `scripts/scholarly_backend.py`, stdlib only):**222- Crossref `api.crossref.org/works` (`query.bibliographic`, `is-referenced-by-count`), Europe PMC REST (`TITLE_ABS:` query, `sort=CITED desc` in cited mode), arXiv `export.arxiv.org/api/query`, Semantic Scholar `graph/v1/paper/search`, best effort: its shared keyless search pool is often spent (HTTP 429 for minutes, checked 2026-11-02), so it gets one retry after 2 s, is then skipped for the rest of the run, and is reported as not checked; Crossref, Europe PMC and arXiv carry the query on their own. An optional `S2_API_KEY` (or `SEMANTIC_SCHOLAR_API_KEY`), sent as a header, raises its limit. OpenAlex is no longer queried: since 2026 its keyless search is metered per IP, so dependable use needed an account223- A source that fails is listed under "Sources that did not answer" (a 429 there means not checked, not "no results"); the rest still return. Every record keeps each index's citation count separately and lists the index records it was merged from (`merged_from`)224- **Search syntax** (`--terms`, or quotes / `AND` `OR` `NOT` / parentheses / leading `-` in the request) is parsed and translated per index: Europe PMC and arXiv receive the exact boolean query; Crossref and Semantic Scholar have no boolean search, so they get an *approximate* keyword query (labelled) or, when the expression excludes terms, are *skipped* with the reason. Each run prints and returns `query_translation` per index. `OR` binds tighter than `AND`; malformed `--terms` (unbalanced quote or parenthesis, dangling operator) is an error, nothing is searched225- **Dates**: `--since`/`--until` go to every index (Crossref `from-/until-pub-date`, Europe PMC `FIRST_PDATE`, arXiv `submittedDate`, Semantic Scholar `year`) and are re-checked on the returned dates: out-of-range records are dropped and counted, undated ones kept and marked "date unknown"226- **Order**: relevance by default; `--rank cited` sorts by one index's count (`--cite-index`, default crossref) with uncounted records after, never by comparing counts across indexes. Full rules (tokenization, grammar, dedup, preprint vs published, ranking, dates, output schema v2): `references/search_semantics.md`227- Checked live 2026-10-22 and again on 2026-11-02 without OpenAlex (with v1.2.x, before the v1.3.0 query, date and ranking changes; not re-run since): "microplastics in human placenta" returned Ragusa et al. 2021, *Environment International*, DOI 10.1016/j.envint.2020.106274, first; `--terms '"testing effect" OR "retrieval practice"'` returned Roediger & Karpicke 2006, DOI 10.1111/j.1467-9280.2006.01693.x, first228229**Parallel Chat API (Beta):**230- Endpoint: `POST https://api.parallel.ai/v1beta/chat/completions` (OpenAI SDK with `base_url="https://api.parallel.ai/v1beta"`)231- Model: `core` (60s-5min latency, complex multi-source synthesis)232- Output: Markdown text with inline citations233- Citations: Research basis with source URLs and excerpts234- Rate limit: 300 requests/min by default235- Python package: `openai`236237**Perplexity sonar-pro-search:**238- Model: `perplexity/sonar-pro-search` (via OpenRouter; $3/$15 per million tokens plus $18 per 1,000 requests at 2026-09 list prices)239- Sends `web_search_options.search_context_size: high` and Perplexity's `search_mode: academic`; OpenRouter may not forward the latter, so academic-only sourcing is best-effort240- Sources come back as `url_citation` annotations and/or `citations`/`search_results` fields; the script merges and deduplicates them241- The script waits up to 90 s per request242- Python package: `requests`243244### Command-Line Usage245246The keyless route needs only the Python standard library. The optional Parallel route imports `openai` and the Perplexity route uses `requests`; where they are not installed, prefix those commands with `uv run --python ">=3.11" --with openai --with requests` instead of installing anything.247248```bash249# Auto-routed research (recommended)250python scripts/research_lookup.py "your query" -o sources/research_YYYYMMDD_HHMMSS_<topic>.md251252# Paper search with exact terms, influence order, 15 records (keyless)253python scripts/research_lookup.py "find papers" --terms '"testing effect" OR "retrieval practice"' \254 --rank cited --limit 15 -o sources/papers_<topic>.md255256# Boolean expression with an exclusion and a date window (keyless)257python scripts/research_lookup.py "find papers" --terms '(memory OR learning) AND sleep NOT rodent' \258 --since 2020 --until 2024 -o sources/papers_<topic>.md259260# Force specific backend261python scripts/research_lookup.py "your query" --force-backend scholarly -o sources/papers_<topic>.md262python scripts/research_lookup.py "your query" --force-backend parallel -o sources/research_<topic>.md263python scripts/research_lookup.py "your query" --force-backend perplexity -o sources/papers_<topic>.md264265# JSON output266python scripts/research_lookup.py "your query" --json -o sources/research_<topic>.json267268# Batch queries269python scripts/research_lookup.py --batch "query 1" "query 2" "query 3" -o sources/batch_research_<topic>.md270```271272---273274## Save All Results to the Sources Folder275276Save every research-lookup result to the project's `sources/` folder. The saved file is what lets you (and reviewers) trace each citation back to the raw search output, and paid backends cost money per call.277278### Saving Rules279280| Backend | Target | Filename Pattern |281|---------|--------|------------------|282| Scholarly backend (keyless) | `-o sources/papers_<topic>.md` | `papers_YYYYMMDD_HHMMSS_<brief_topic>.md` |283| Keyless web lookup (WebSearch/WebFetch) | Write `sources/research_<topic>.md` | `research_YYYYMMDD_HHMMSS_<brief_topic>.md` |284| Parallel Deep Research | `-o sources/research_<topic>.md` | `research_YYYYMMDD_HHMMSS_<brief_topic>.md` |285| Perplexity (academic) | `-o sources/papers_<topic>.md` | `papers_YYYYMMDD_HHMMSS_<brief_topic>.md` |286| Batch queries | `-o sources/batch_<topic>.md` | `batch_research_YYYYMMDD_HHMMSS_<brief_topic>.md` |287288### How to Save289290Pass `-o` pointing into `sources/` on every script call (create the folder first), and keep the citations, source URLs, and DOIs in the saved file — they are the audit trail. A failed or refused call writes nothing, so a file in `sources/` always holds real results. The default text output already includes a `Sources` section (title, date, URL for each source) and an `Additional References` section (DOIs); use `--json` for the full citation metadata. For a keyless web lookup, write the file yourself in the shape described under Keyless Web Lookup.291292```bash293# General research — save to sources/ (includes Sources + Additional References sections)294python scripts/research_lookup.py "Recent advances in CRISPR gene editing 2025" \295 -o sources/research_20250217_143000_crispr_advances.md296297# Academic paper search — save to sources/ (includes paper citations with DOIs)298python scripts/research_lookup.py "Find papers on transformer attention mechanisms in NeurIPS 2024" \299 -o sources/papers_20250217_143500_transformer_attention.md300301# JSON format for maximum citation metadata (full citation objects with URLs, DOIs, snippets)302python scripts/research_lookup.py "CRISPR clinical trials" --json \303 -o sources/research_20250217_143000_crispr_trials.json304305# Forced backend — save to sources/306python scripts/research_lookup.py "AI regulation landscape" --force-backend parallel \307 -o sources/research_20250217_144000_ai_regulation.md308309# Batch queries — save to sources/310python scripts/research_lookup.py --batch "mRNA vaccines efficacy" "mRNA vaccines safety" \311 -o sources/batch_research_20250217_144500_mrna_vaccines.md312```313314### Citation Preservation in Saved Files315316Each output format preserves citations differently:317318| Format | Citations Included | When to Use |319|--------|-------------------|-------------|320| Text (default) | `Sources (N):` section with `[title] (date) + URL` + `Additional References (N):` with DOIs and academic URLs | Standard use — human-readable with all citations |321| JSON (`--json`) | Full citation objects: `url`, `title`, `date`, `snippet`, `doi`, `type` | When you need maximum citation metadata |322323**For the scholarly backend**, saved files include: the numbered index records (title, authors, year, venue, DOI, per-index citation counts, impact label, abstract snippet) + Sources list + DOIs, and which indexes did not answer.324**For Parallel backend**, saved files include: research report + Sources list (title, URL) + Additional References (DOIs, academic URLs).325**For Perplexity backend**, saved files include: academic summary + Sources list (title, date, URL, snippet) + Additional References (DOIs, academic URLs).326327**Use `--json` when you need to:**328- Parse citation metadata programmatically329- Preserve full DOI and URL data for BibTeX generation330- Maintain the structured citation objects for cross-referencing331332### Why Save Everything3333341. **Reproducibility**: Every citation and claim can be traced back to its raw research source3352. **Context Window Recovery**: If context is compacted, saved results can be re-read without re-querying3363. **Audit Trail**: The `sources/` folder documents exactly how all research information was gathered3374. **Reuse Across Sections**: Multiple sections can reference the same saved research without duplicate queries3385. **Cost Efficiency**: Check `sources/` for existing results before making new API calls3396. **Peer Review Support**: Reviewers can verify the research backing every citation340341### Before Making a New Query, Check Sources First342343Before calling `research_lookup.py`, check if a relevant result already exists:344345```bash346ls sources/ # Check existing saved results347```348349If a prior lookup covers the same topic, re-read the saved file instead of making a new API call.350351### Logging352353When saving research results, always log:354355```356[HH:MM:SS] SAVED: Research lookup to sources/research_20250217_143000_crispr_advances.md (3,800 words, 8 citations)357[HH:MM:SS] SAVED: Paper search to sources/papers_20250217_143500_transformer_attention.md (6 papers found)358```359360---361362## Integration with Scientific Writing363364This skill supports scientific writing by providing (each result saved to `sources/`):3653661. **Literature Review Support**: Gather current research for introduction and discussion3672. **Methods Validation**: Verify protocols against current standards3683. **Results Contextualization**: Compare findings with recent similar studies3694. **Discussion Enhancement**: Support arguments with latest evidence3705. **Citation Management**: Provide properly formatted citations371372Treat returned citations as leads: open and check any paper before citing it, because search-model answers can misattribute findings or garble bibliographic details (`alterlab-citation-verifier` checks that references exist).373374## Complementary Tools375376| Task | Skill |377|------|------|378| Citation network / co-citation map grown from a seed paper | `alterlab-citation-graph` |379| PubMed search | `alterlab-pubmed` |380| Zotero library / DOI-to-BibTeX management | `alterlab-pyzotero` |381| Verify that the references you collected exist | `alterlab-citation-verifier` |382383---384385## Error Handling and Limitations386387**Known Limitations:**388- Scholarly backend: keyword search in the indexes' relevance order, so a field's classic can rank below newer work — use `--terms` and `--rank cited`, and confirm known classics by DOI; each index's citation count covers only its own corpus (they are labelled, never compared); Crossref and Semantic Scholar cannot run boolean queries (see `query_translation`); routing-word removal is English-only; Semantic Scholar's shared keyless search pool is often spent, so many runs answer from Crossref, Europe PMC and arXiv alone (the output names Semantic Scholar as not checked, never silently)389- Parallel Chat API (core model): Complex queries may take up to 5 minutes390- Perplexity: Information cutoff, may not access full text behind paywalls391- All: Cannot access proprietary or restricted databases392393**Fallback Behavior:**394- Auto-routing without a key uses the keyless scholarly backend (and, for general questions, tells you on stderr to use WebSearch/WebFetch)395- A `--force-backend parallel|perplexity` whose key is missing exits 1 naming the variable; it never answers from another backend396- `--terms`, `--since`, `--until`, `--cite-index` and `--rank cited` exist only in the scholarly backend: given one, auto-routing uses the scholarly backend even when a key is set, and `--force-backend parallel|perplexity` refuses (exit 1) instead of ignoring it397- Malformed `--terms` or an invalid date exits 1 (`scholarly_backend.py` exits 2) before any request; a request whose own text has unparseable syntax is searched as plain words and the output says so398- A call that fails is not retried on another backend; the result carries `success: false`, the error goes to stderr, and the script exits 1 — rerun with `--force-backend` to try another399- Rephrase queries (or pass `--terms`) for better results if the initial response is insufficient400401Backend-key setup and specific error messages: see `references/troubleshooting.md`.402403---404405## Usage Examples406407| Query | No key (default) | With keys |408|-------|------------------|-----------|409| "Find papers on CRISPR off-target effects in clinical trials" | Scholarly backend → `sources/papers_…md`; you open and summarise 5–8 papers with DOIs and citation counts | Perplexity sonar-pro-search (academic mode) |410| "Global AI adoption in healthcare statistics 2025" | Keyless web lookup: WebSearch → WebFetch the primary reports → Write `sources/research_…md` | Parallel Chat API (core model) |411| "Compare mRNA vaccines vs traditional vaccines for cancer treatment" | Web lookup for the overview plus the scholarly backend for the trials and reviews you cite | Parallel Chat API (core model) |412413---414415## Summary416417This skill is the primary research interface with intelligent routing, keyless by default:418419- **Scholarly backend** (keyless): real index records from four open scholarly indexes for paper searches420- **Keyless web lookup**: WebSearch + WebFetch with saved, cited sources for everything else421- **Parallel Chat API / Perplexity sonar-pro-search** (optional keys): synthesized reports and academic answers422- **Manual override**: force any backend; a forced paid backend never silently falls back423- **Complementary**: Works alongside `alterlab-parallel-web` for web search and URL extraction424425Part of the AlterLab Academic Skills suite.