s2-cli

Installation
SKILL.md

The s2 CLI is read-only. It queries the Semantic Scholar Graph API and requires PWC_SEMANTIC_SCHOLAR_API_KEY or S2_API_KEY. Run s2 --help or a nested --help command when the live parser and this skill disagree; the parser is authoritative.

Use compact TSV for reading. Prefer --jsonl for programmatic filtering, sorting, or joining: it emits one unnested paper object per line with the same shape for search, references, and citations. Use raw --json only when API edge metadata or other schema-specific fields are required.

PAPER accepts a modern or legacy arXiv ID, a DOI, a 40-character Semantic Scholar paper ID, a prefixed ID (ARXIV:, DOI:, CorpusId:, PMID:, URL:), an arXiv or Semantic Scholar URL, or a quoted title. Title matching uses Semantic Scholar's closest-title endpoint and prints a header with the matched title, ID, arXiv ID, and match score. If the header is wrong, rerun with an ID. Do not fall back to s2 search to resolve a specific paper.

In this Papers With Code checkout, prefix every command with:

Installs
1
GitHub Stars
343
First Seen
6 days ago