<< All versions

Skill v1.0.0

currentAutomated scan100/100
igamenovoer/domain-skills/imsight-paper-search
──Details
PublishedNovember 20, 2026 at 12:37 AM
Content Hashsha256:406a105597957449...
Git SHAfc2a14d95bb9
──Files
Files (1 file, 8.1 KB)
SKILL.md8.1 KBactive
SKILL.md · 126 lines · 8.1 KB

name: imsight-paper-search description: Use when the user wants to search, fetch, or bulk-collect academic papers, authors, citations, references, recommendations, or Semantic Scholar datasets through direct curl calls to the Semantic Scholar APIs. metadata: version: "1.0.0" skill_invocation_notation: > Top-level skill entrypoints use SKILL.md. Parent-scoped subskill entrypoints use SKILL-MAIN.md and are loaded explicitly through their parent; nested SKILL.md is accepted only as legacy input when SKILL-MAIN.md is absent. Skill and subskill entrypoints use bare object paths: X invokes skill X and X->Y->Z invokes subskill Z. Subcommands use parenthesized components: X->cmd() invokes a direct subcommand, X->Y->cmd() invokes a subcommand of subskill Y, and X->parent()->child() invokes child subcommand child exposed by parent subcommand parent. Intermediate subcommands act as object generators. Forms such as X() and X->Y() are invalid for skill or subskill entrypoints.


Imsight Paper Search

Overview

This skill provides direct curl recipes for the Semantic Scholar Academic Graph, Recommendations, and Datasets APIs. It maps common research tasks to endpoints, builds curl requests, and handles pagination and field selection without requiring a client library.

When to Use

  • Use when the user asks to search papers, retrieve paper or author details, list citations or references, get paper recommendations, or list or download Semantic Scholar datasets.
  • Use when the user explicitly wants to call the Semantic Scholar API directly or with curl.
  • Do NOT use when a higher-level wrapper, SDK, or database is the better fit.

Workflow

When this skill is invoked, execute the following steps in order.

  1. Identify the API and endpoint that matches the user's task from the API Overview table below.
  2. Open the matching reference page for parameter details and a copy-paste curl template.
  3. Build the curl request:
  • Select the correct base URL from Base URLs.
  • Replace path placeholders such as {paper_id} with real IDs.
  • Add required query parameters and any desired optional filters.
  • Resolve the API key following API Key. If a non-empty key is found, include -H "x-api-key: $S2_API_KEY" in the curl command. Do not expose the key in output.
  • For POST endpoints, set -H "Content-Type: application/json" and pass the JSON body with -d.
  1. Run curl and parse the JSON response. Use jq or another JSON formatter to inspect results.
  2. Paginate list endpoints using offset/limit or the next/token fields returned in the response. Stop when there is no next page or the user has enough results.

If the user's task does not map cleanly to a documented endpoint, use your native planning tool to build a step-by-step curl-based plan using the reference pages and constraints in this skill, then execute the plan.

API Overview

TaskAPIMethodEndpointDetail
Get details for multiple authors at onceAcademic GraphPOST/author/batchreferences/academic-graph-api.md
Search for authors by nameAcademic GraphGET/author/searchreferences/academic-graph-api.md
Details about an authorAcademic GraphGET/author/{author_id}references/academic-graph-api.md
Details about an author's papersAcademic GraphGET/author/{author_id}/papersreferences/academic-graph-api.md
Suggest paper query completionsAcademic GraphGET/paper/autocompletereferences/academic-graph-api.md
Get details for multiple papers at onceAcademic GraphPOST/paper/batchreferences/academic-graph-api.md
Paper relevance searchAcademic GraphGET/paper/searchreferences/academic-graph-api.md
Paper bulk searchAcademic GraphGET/paper/search/bulkreferences/academic-graph-api.md
Paper title searchAcademic GraphGET/paper/search/matchreferences/academic-graph-api.md
Details about a paperAcademic GraphGET/paper/{paper_id}references/academic-graph-api.md
Details about a paper's authorsAcademic GraphGET/paper/{paper_id}/authorsreferences/academic-graph-api.md
Details about a paper's citationsAcademic GraphGET/paper/{paper_id}/citationsreferences/academic-graph-api.md
Details about a paper's referencesAcademic GraphGET/paper/{paper_id}/referencesreferences/academic-graph-api.md
Text snippet searchAcademic GraphGET/snippet/searchreferences/academic-graph-api.md
Get recommended papers for lists of positive and negative example papersRecommendationsPOST/papers/references/recommendations-api.md
Get recommended papers for a single positive example paperRecommendationsGET/papers/forpaper/{paper_id}references/recommendations-api.md
Download links for incremental diffsDatasetsGET/diffs/{start_release_id}/to/{end_release_id}/{dataset_name}references/datasets-api.md
List available releasesDatasetsGET/release/references/datasets-api.md
List datasets in a releaseDatasetsGET/release/{release_id}references/datasets-api.md
Download links for a datasetDatasetsGET/release/{release_id}/dataset/{dataset_name}references/datasets-api.md

API Key

Do not mix key acquisition into the workflow. Resolve the key in this dedicated section and reference it from workflow step 3.

Obtaining a key

Request a Semantic Scholar API key through the official API registration process. Once granted, store it in an environment variable or secret manager. Never commit the key.

Resolving the key

When a curl command needs authentication, look for a key in this order:

  1. User prompt — the key provided explicitly in the current request.
  2. Previous chat context — a key already shared or set earlier in the conversation.
  3. Shell environment — the S2_API_KEY environment variable if it is set and non-empty.
  4. Environment files — common files such as .env or .env.local in the working directory that define S2_API_KEY.
  5. No key — proceed without a key. The API still works but with lower rate limits.

When a key is found, pass it as:

bash
-H "x-api-key: $S2_API_KEY"

Do not expose the key in chat output, logs, or persisted artifacts.

Base URLs

APIBase URLReference
Academic Graph APIhttps://api.semanticscholar.org/graph/v1references/academic-graph-api.md
Recommendations APIhttps://api.semanticscholar.org/recommendations/v1references/recommendations-api.md
Datasets APIhttps://api.semanticscholar.org/datasets/v1references/datasets-api.md

Pagination and Field Selection

  • Use the fields query parameter to request specific fields and reduce payload size. Subfields use dot notation, for example authors.name or citations.title.
  • Most list endpoints support offset (default 0) and limit (up to 1000). The response includes a next offset when more pages exist.
  • /paper/search (relevance search) returns up to 1,000 results total. For larger result sets, use /paper/search/bulk and follow the token field, or use the Datasets API.

References

  • references/academic-graph-api.md — paper, author, citation, reference, and snippet endpoints.
  • references/recommendations-api.md — paper recommendation endpoints.
  • references/datasets-api.md — release and dataset download endpoints.

Guardrails

  • DO NOT commit API keys or hardcode them into skill files, scripts, or example commands.
  • DO NOT expose the API key in chat output, logs, or persisted artifacts.
  • DO NOT read environment files outside the working directory to find an API key unless the user explicitly directs it.
  • DO NOT use /paper/search for result sets larger than 1,000; use bulk search or the Datasets API.
  • DO NOT exceed documented per-request limits, such as 500 paper IDs in /paper/batch or 1,000 author IDs in /author/batch.
  • DO NOT assume every response record contains every requested field; handle missing or null values gracefully.
All versions