semantic-scholar-deep

通过 Semantic Scholar 图 API 进行深度研究,涵盖 allenai lookup 技能中缺失的端点——论文参考文献(反向引用)、推荐、批量论文查询(最多 500 个 ID)、片段搜索以及多跳引用图遍历(BFS 正/反向)。用于构建引用图、扩展文献种子、查找相关工作、执行引用网络遍历、探索某篇论文引用或被引用的内容,或批量解析多个 DOI/arXiv/S2 ID;不用于单个论文 ID 查询或主题发现。

仓库最近推送
GitHub Stars
194
Forks
17
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "semantic-scholar-deep":https://skillpi.com/zh/skills/deepskill-cd915ddb802dee923dc94bd5be710d34fd41eaf2a3493c0572eb41ca98356d3e。安装前核对上游来源和版本:https://github.com/CodeAlive-AI/ai-driven-development。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过 Semantic Scholar 图 API 进行深度研究,涵盖 allenai lookup 技能中缺失的端点——论文参考文献(反向引用)、推荐、批量论文查询(最多 500 个 ID)、片段搜索以及多跳引用图遍历(BFS 正/反向)。用于构建引用图、扩展文献种子、查找相关工作、执行引用网络遍历、探索某篇论文引用或被引用的内容,或批量解析多个 DOI/arXiv/S2 ID;不用于单个论文 ID 查询或主题发现。

0 下载

介绍来源: third_party · CodeAlive-AI · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: semantic-scholar-deep
description: Deep research over the Semantic Scholar Graph API. Covers endpoints missing from allenai's lookup skill — paper references (backward citations), recommendations, batch paper lookup (up to 500 IDs), snippet search, and multi-hop citation graph traversal (BFS forward/backward). Use when the user asks to build a citation graph, expand a literature seed, find related work, run a reference network traversal, explore what a paper cites or what cites it beyond simple lookup, or batch-resolve many DOI/arXiv/S2 IDs. For multi-step research questions, delegate to the deep-paper-researcher subagent to keep the main context clean. Not for single paper-by-ID lookups (use semantic-scholar-lookup) or topical discovery (use web_search_advanced_exa).
allowed-tools: Bash(python3:*), Read, Write, Edit, Glob, Grep, Agent

Semantic Scholar — Deep Research

Purpose: fill the gaps that semantic-scholar-lookup (allenai) leaves — references, recommendations, batch, and multi-hop citation-graph traversal.

Contents

Dispatch Rule (read first)

Two execution modes:

Inline (run the Bash scripts yourself)

Use when the user asks for one specific endpoint:

  • "get references of paper X" → ss_client.py references <id>
  • "recommendations for paper Y" → ss_client.py recommendations <id>
  • "batch-resolve these 30 DOIs" → ss_client.py batch ...
  • "find the snippet where X is said" → ss_client.py snippets "..."

Fast, cheap, no orchestration overhead.

Delegate to deep-paper-researcher subagent

Use when the task is multi-step or would otherwise flood the context:

  • Literature review on a topic
  • Citation graph / network analysis around a seed paper
  • Novelty check for an idea
  • State-of-the-art survey
  • Anything that requires merging Exa discovery + S2 graph + ranking

Mandatory prompt contents. The subagent runs in isolated context with no access to this conversation's system reminders. Include exactly these two things:

  1. Today's date — inline as Today is YYYY-MM-DD. Pull from the currentDate system-reminder field, or run date -I via Bash before delegating if it's missing. Never rely on training-data intuitions about the current year.
  2. User's request, verbatim — pass the user's original phrasing (topic + any freshness words like "современные / recent / классические / seminal" and any explicit dates like "since 2024"). Translate language if needed but do not paraphrase trigger words into date windows.

Do NOT do any of these:

  • Do NOT classify freshness yourself (RECENT/FOUNDATIONAL/MIXED). The subagent does that from the verbatim user request.
  • Do NOT invent a date window. If the user said "современные / recent / latest" without a year, the subagent defaults to last 6 months — don't preempt it with "2024-2026".
  • Do NOT drop the trigger words. The subagent relies on them to pick the right mode.

Call:

Agent(
  subagent_type="deep-paper-researcher",
  description="<3–5 word task>",
  prompt="Today is 2026-04-22.\n\nUser's request: найди современные 10 статей про AI Code Review на arXiv.\n\n<optional: output format hints, language preference>"
  # model: "opus"  ← add only when the user opts in (see below)
)

The subagent's Freshness Mode section handles classification; keep this layer thin.

Model selection (Sonnet default, Opus on demand)

The subagent's model frontmatter is sonnet — that's the default.

Override to Opus by passing model: "opus" to the Agent tool only if the user explicitly requests deeper reasoning. Triggers (any of):

  • English: "deep dive", "thorough", "rigorous", "use Opus", "high quality", "comprehensive", "exhaustive"
  • Russian: "глубокий/глубже", "тщательный/тщательно", "подробно", "в режиме Опус/Opus", "максимально качественно", "серьёзный ресерч"

Never auto-upgrade to Opus without a user signal — Sonnet handles the default literature-review workflow fine and costs less.

When to Use

Trigger this skill for:

  • Citation graph / network over a seed paper or topic
  • Backward references (what does this paper cite?) — not covered by allenai
  • Forward citations with pagination beyond 1000 results
  • Recommendations — related-paper discovery from a seed
  • Batch lookup — resolve 50-500 DOI/arXiv/CorpusId/S2 IDs in one call
  • Snippet search — find specific passages across the S2 corpus

Do NOT use for:

  • Simple "get paper by ID" or "who cited this" — use semantic-scholar-lookup (faster, no Python)
  • Broad topical discovery — use web_search_advanced_exa with category: "research paper" (Exa MCP)
  • Consumer-level literature questions — use the deep-paper-researcher subagent, which orchestrates all three tools

Scripts

Located under ${SKILL_DIR}/scripts/.

ss_client.py — raw API client

Subcommands (all output JSON on stdout):

Command Endpoint Notes
search <query> /graph/v1/paper/search --bulk switches to /search/bulk (up to 1000/page)
paper <id> /graph/v1/paper/{id} ID forms: raw, DOI:, ARXIV:, CorpusId:, PMID:, URL:
citations <id> /graph/v1/paper/{id}/citations paginated; up to 1000 per page
references <id> /graph/v1/paper/{id}/references paginated; up to 1000 per page
recommendations <id> /recommendations/v1/papers/forpaper/{id} --pool recent|all-cs
batch <id1> <id2> ... POST /graph/v1/paper/batch up to 500 IDs
author-search <query> /graph/v1/author/search
author <id> /graph/v1/author/{id}
author-papers <id> /graph/v1/author/{id}/papers
snippets <query> /graph/v1/snippet/search Full-text snippets

Common flags: --limit, --offset, --fields, --year, --fields-of-study, --venue, --min-citation-count.

citation_graph.py — BFS traversal

python3 ${SKILL_DIR}/scripts/citation_graph.py <paperId> \
    --direction both \
    --depth 2 \
    --max-nodes 200 \
    --per-hop-limit 50 \
    --output graph.json

Directions: forward (citations), backward (references), both. Output schema described in the script docstring — nodes: {paperId → metadata+depth}, edges: [{src, dst, direction}].

Authentication & Rate Limits

  • Without API key: ~1 RPS shared, 100 queries/5min bursts. Fine for small graphs.
  • With SEMANTIC_SCHOLAR_API_KEY env var: much higher limits.
  • Apply: https://www.semanticscholar.org/product/api#api-key
  • The client does exponential backoff (1→30s) on HTTP 429/5xx, respects Retry-After.

Progressive Disclosure

  • references/endpoints.md — complete field list per endpoint + query examples
  • references/workflows.md — lit-review, novelty-check, seed-expansion patterns

Output Hygiene

Scripts emit raw JSON — redirect to files for anything beyond ~20 results. For graphs >50 nodes always pass --output graph.json to avoid flooding the conversation context.

Integration

Typical pipeline inside the deep-paper-researcher subagent:

  1. Discovery — mcp__exa__web_search_advanced_exa (neural + multi-source)
  2. ID resolution — ss_client.py search / batch to get paperId from titles or DOIs
  3. Graph expansion — citation_graph.py with the top 3-5 seeds
  4. Synthesis — distill nodes/edges into a ranked report

Optional: Bundled Subagent

A paired subagent definition ships alongside the skill at agents/deep-paper-researcher.md. It orchestrates Exa MCP + allenai semantic-scholar-lookup + this skill's scripts into a token-isolated research agent with:

  • Mandatory input validation (today's date anchoring + caller-paraphrased-window detection)
  • Freshness Mode classifier (RECENT / FOUNDATIONAL / MIXED)
  • Sort-then-tiebreak ranking (never multiplies citations × recency into a single score)
  • Compact report format with explicit Anchor date / Mode / Window header

To install for Claude Code (manual, one-time):

cp ~/.agents/skills/semantic-scholar-deep/agents/deep-paper-researcher.md ~/.claude/agents/

(Path may differ on other agents — copy to the agent's subagents directory, then restart the session.)

Prerequisites for full pipeline: Exa MCP connected, allenai/asta-plugins@"Semantic Scholar Lookup" skill installed.

版本历史

  1. v10.11.0 GitHub ↗
    原版更新说明

    ## pragmatic-architecture (new) A design method for simple solutions that are not fragile, from the choice of model, state ownership and boundaries down to the order of implementation steps. It unfolds Kent Beck's rule: "For each desired change, make the change easy (warning: this may be hard), then make the easy change." - **Two tests, in order.** A design that breaks a must under a realistic sequence of events is out. Among the admissible ones, prefer the design in which this change and the next plausible ones cost least. - **A route of eight steps,** each ending in an output, from naming the change to rehearsing it. How deep to go is decided by what the change touches, not by the size of the diff. - **The context that decides a design** is part of the method: eight groups of facts, a filter question, criteria, cost over the horizon and a stopping condition (`references/context.md`). - **A property card for each promise at risk:** mechanism, assumptions, a counterexample of 3-4 events, the nearest failure the mechanism does not stop, evidence, recovery. - References on models and boundaries, failure and recovery, the change path, and 22 moves indexed by symptom. The `architecture-consilium` skill in [pragmatic-orchestration](https://github.com/CodeAlive-AI/pragmatic-orchestration) applies the method with several independent architect models. Not measured yet: the effect of the skill on real design work. One probe on a single task showed no difference with and without the core; the task was too easy to tell. ## pragmatic-verification - Case design: a mode, setting or permission the user can turn on needs a case that turns it off again and one that shows which state is current. ## maintaining-macos-health - `mac-heavy` rewritten: a holder blocks other heavy jobs only while it is busy (its first 45 s, or while its process tree uses at least 50 % CPU or 1024 MB RSS), so something light wrapped by mistake no longer holds the queue. ## fetch-url-as-markdown - The script runs through `uv` with an inline PEP 723 header and a lock file, instead of a system-wide `pip` install.

  2. v10.10.0 GitHub ↗
    原版更新说明

    ## pragmatic-verification Three gaps found by an experiment in which two models planned the verification of a real issue with and without the skill: - **Time bounds are boundaries.** Delays, timeouts, expiry and upper caps are checked just before and just after the bound with a controlled clock, including the cap that ends waiting and a wait that outlives the process. - **Platform rules a substitute does not enforce.** The fidelity questions for a significant fake now ask which rules of the real platform (required user-visible effects, permissions, background limits, quotas, sizes, signing) the substitute skips. - **The purpose after release.** When a change exists to move an outcome only real use shows, closeout names the signal, its baseline and when it is read, and reports the purpose as not verified until then. ## maintaining-macos-health - Memory guard: recalibrated alert and kill thresholds, swap gated on VM free space, limited freezes, a 60-second projection; the 120-second frozen-unit hold and the repeat-offender exception restored; ALERT on slow swap growth with less than 10 GiB free. ## skills-management - `install_skill.py --link` no longer refuses to link a canonical source that the duplicate audit finds at the same real path. - A project-scope install from inside a skill directory is refused, and the CLI prints the same command with `--scope global`. ## fpf-problem-solving - Library synced with upstream; new Core patterns routed. ## Docs - README: the `openrouter-provider-ranking` skill now points to rodion-m/model-that-fits-my-task; the skill tree is rebuilt.

  3. v10.9.0 GitHub ↗
    原版更新说明

    - **Renamed:** `verification-playbook` is now `pragmatic-verification`. Install it under the new name; the old name no longer exists. - **New: audit of an existing project.** The skill now audits the tests, gates and QA practice of a project with no particular change at hand (`references/suite-audit.md`). The auditor sizes the project, asks once (scope, worker models, parallelism, whether anything may be run), splits the tests into shards, lets cheaper worker models scan them, verifies their claims itself and reports three to seven ranked, concrete fixes. Read-only and static by default. No score and no coverage target. - **Worker contract** (`references/suite-audit-worker.md`): lettered signals for self-confirming and vacuous tests, doubles, level, duplicates, brittle and flaky sources, checks that may be off, heavy setup and UI hygiene. Every finding carries a file, a line and one line quoted exactly, so locations are checked mechanically. - **Calibrated on a real repository** with three worker models (21 runs). What the run changed: - The auditor reads each critical shard itself and also gives it to one worker. One model found between a third and two thirds of what three found together. - Shards stay at about 2,000 lines for any model: a larger shard gave every model fewer findings per line. - Findings of several workers are joined by location, recall is counted by signal family, and search hits are classified by reading before they serve as the answer key. - Delivery rules for harnesses confined to the repository, and a read-only check that compares the audited files with the recorded revision. - The worker's own confidence is not used to pick what to verify.

  4. v10.8.0 GitHub ↗
    原版更新说明

    - New `verification-playbook` skill: a language-agnostic playbook for thoughtful tests and checks. For each risk, pick the cheapest check that still contains the mechanism of the defect and lets the correct result be observed. - Decides what goes to unit, integration, contract or e2e, when to mock and what must stay real, and how to avoid self-confirming, redundant, brittle and flaky tests. - Plans and runs QA passes through browser, computer or phone use, and closes out with per-claim evidence statuses (verified / partially verified / not verified / blocked). - Compact `SKILL.md` (~2k tokens) with a read-when table, eight topical references and per-stack tooling files (Python, TypeScript/JavaScript, JVM, .NET, Go, mobile).

  5. v10.7.0 GitHub ↗
    原版更新说明

    - New `mac-heavy` wrapper (maintaining-macos-health): one Mac-wide slot for heavy local work (lint, type checks, tests, installs, land gates); admits only while the memory guard reports CALM; nested calls run inline; default wait 30 min, exit 75 on timeout; `mac-heavy status` shows holder, waiters and guard level; best-effort ledger without argv. - The memory guard now writes a live status file every sample (`~/.local/state/mac-health/memory-guard.status`), atomically, at mode 0600. - If the guard status is unavailable, admission warns visibly and uses the slot alone.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 填补基础 lookup 技能空白,提供参考文献、推荐、批量查询、多跳引用图遍历等高阶学术功能
  • 适用于文献综述、引用网络分析、种子扩展等明确科研场景,实用性强
触发精准90/100

亮点

  • 触发场景定义清晰(如构建引用图、批量解析 ID),排除场景明确(如单篇查询、主题发现)
  • 边界清晰,不易与其他 Skill 重叠
结构规范90/100

待提升项

  • description 写错位置 原报告严重程度:轻微

    顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部

    改进建议:建议将 description 内容移至顶层 frontmatter 字段,以符合规范

  • 文档过长 原报告严重程度:轻微

    主文档约1800词,内容详尽但可能影响可读性

    改进建议:建议将部分细节(如完整字段列表、工作流示例)移至 references/ 目录下独立文件

亮点

  • 结构完整,包含执行模式划分、脚本说明、集成流程等关键章节
  • 提供了清晰的子代理委托规则和模型选择策略
执行可靠88/100

亮点

  • 工具来源明确,支持分页和批量操作,处理速率限制
  • 对多步任务推荐委托子代理,避免上下文溢出,输出建议重定向到文件
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 129, 131 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • www.semanticscholar.org

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。