grenzlinie/semantic-scholar-skills · Archived

semantic-scholar

Search, retrieve, and organize scholarly metadata with the Semantic Scholar APIs.

First seen Apr 15, 2026

Installation

$ npx skills add grenzlinie/semantic-scholar-skills --skill semantic-scholar

Summary

  • Search, retrieve, and organize scholarly metadata with the Semantic Scholar APIs.
  • Use when Codex needs to find papers or authors, build paper sets from complex queries, fetch records in batch by IDs, get related-paper recommendations from seed papers, or decide between Graph API, Recommendations API, and Datasets API workflows for Semantic Scholar.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,742 B
  • docs SUMMARY.md 374 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Semantic Scholar

Overview

Choose the right Semantic Scholar API workflow before writing code or issuing requests. Prefer small, field-scoped online calls for interactive search, paper/search/bulk for large retrieval jobs, recommendations when the user already has seed papers, and datasets only for offline or release-based data pulls.

Workflow Decision Tree

Start by classifying the task:

  • Use the Graph API for live paper or author lookup, metadata retrieval, query refinement, and batch fetches by known IDs.
  • Use the Recommendations API when the user already has one or more relevant papers and wants similar or related work.
  • Use the Datasets API when the user needs offline snapshots, release-to-release diffs, or corpus-scale ingestion rather than interactive search.

Then choose the endpoint pattern:

  • Use paper/search for normal interactive search, smaller result sets, ranking, and iterative query tuning.
  • Use paper/search/bulk for large result collection; it uses continuation-token pagination and is the default for broad literature harvesting.
  • Use paper/batch or author/batch when the user already has IDs and wants metadata efficiently.
  • Use author/search for author discovery by name or affiliation-like clues.
  • Use recommendations for "papers like this one" workflows.

Operating Rules

  • Request only the fields needed for the task. Semantic Scholar explicitly supports field projection; smaller field lists are faster and less error-prone.
  • Prefer API key authentication via SEMANTICSCHOLARAPI_KEY when available, especially for repeated or larger jobs.
  • Handle pagination explicitly. paper/search and author/search are interactive search flows; paper/search/bulk uses continuation tokens.
  • Add retry and backoff for 429 and transient 5xx responses.
  • Preserve raw results before flattening or post-processing them.
  • For broad discovery, write Boolean-rich queries instead of a single brittle phrase. Use exact phrases only when the user asks for them.
  • Do not route normal search tasks to Datasets API. Use datasets only when the user truly needs offline release files or diffs.

Typical Workflows

Search papers interactively

Use this for "find papers about X", "search by title keywords", or "filter by year/citations/open access".

  • Start with paper/search if the user expects inspection and refinement.
  • Keep fields minimal.
  • If the search must collect many records, switch to paper/search/bulk.
  • Read [references/query-recipes.md](references/query-recipes.md) for query patterns.
  • Read [references/graph-api.md](references/graph-api.md) for endpoint details.

Harvest a broad paper set

Use this for literature review corpora, screening spreadsheets, or downstream ranking.

  • Prefer scripts/semanticscholarbulk_search.py.
  • Save raw output to JSONL and only then export CSV if the user needs tabular review.
  • Expose query, year filter, sort, and field selection as parameters instead of hardcoding them.

Fetch by known IDs

Use paper/batch or author/batch when IDs are already known from previous steps or user input.

  • Batch fetch is usually better than repeated single-record lookups.
  • Ask for only the fields required for the analysis or export.

Expand from seed papers

Use recommendations when the user says things like "find papers similar to this", "expand from these seed papers", or "build a related-work set".

  • Use the Recommendations API instead of trying to approximate similarity with a new keyword query.
  • Keep the seed-paper IDs and result set separate from keyword-search results so provenance stays clear.
  • Read [references/recommendations-api.md](references/recommendations-api.md).

Pull datasets or release diffs

Use the Datasets API only for offline ingestion or change tracking between releases.

  • Read [references/datasets-api.md](references/datasets-api.md).
  • Confirm storage expectations before downloading large files.
  • Document the exact release identifiers used in the workflow.

References

  • Read [references/api-overview.md](references/api-overview.md) first when deciding which API family to use.
  • Read [references/graph-api.md](references/graph-api.md) for paper and author search, batch, pagination, and field projection.
  • Read [references/recommendations-api.md](references/recommendations-api.md) for related-paper workflows.
  • Read [references/datasets-api.md](references/datasets-api.md) for release, download, and diff workflows.
  • Read [references/query-recipes.md](references/query-recipes.md) for Boolean query templates and search heuristics.

Script

  • Use [scripts/semanticscholarbulksearch.py](scripts/semanticscholarbulksearch.py) for broad paper harvesting with retries, continuation-token pagination, JSONL output, and optional CSV export.
  • Use [scripts/paperbatchfetch.py](scripts/paperbatchfetch.py) to fetch paper metadata in batches from known paper IDs.
  • Use [scripts/authorbatchfetch.py](scripts/authorbatchfetch.py) to fetch author metadata in batches from known author IDs.
  • Use [scripts/recommendpapers.py](scripts/recommendpapers.py) to retrieve recommendation results from seed paper IDs.
  • Use [scripts/smoketestlive.sh](scripts/smoketestlive.sh) to run one live end-to-end smoke test across all four API scripts.