jpskill.com
🛠️ 開発・MCP コミュニティ

semantic-scholar-library-feed

Work with a user's Semantic Scholar account to read Research Feeds, inspect private Library folders, add papers to folders, and resolve Semantic Scholar paper records from identifiers such as arXiv IDs.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o semantic-scholar-library-feed.zip https://jpskill.com/download/21291.zip && unzip -o semantic-scholar-library-feed.zip && rm semantic-scholar-library-feed.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21291.zip -OutFile "$d\semantic-scholar-library-feed.zip"; Expand-Archive "$d\semantic-scholar-library-feed.zip" -DestinationPath $d -Force; ri "$d\semantic-scholar-library-feed.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して semantic-scholar-library-feed.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → semantic-scholar-library-feed フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
6

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Semantic Scholar Library & Feed

概要

このスキルは、ブラウザによるログインフローなしで、Semantic Scholarの認証済みライブラリおよびリサーチフィードのインターフェースを操作するために使用します。Cookie Storeの検査、ブラウザからのcurlインポート、SSRプロービング、フィードのページネーション、フォルダの検査、フォルダへの書き込み、およびGraph paper/batchルックアップには、バンドルされているCLIを使用することをお勧めします。

クイックスタート

  1. 固定のCookie Storeがすでに存在するかどうかを確認します。
python3 scripts/semantic_scholar_cli.py cookie-summary
  1. Cookie Storeがないか古くなっている場合は、ユーザーに認証済みのSemantic ScholarリクエストをブラウザのDevToolsからcurlとしてコピーしてもらい、それをインポートするように依頼します。
python3 scripts/semantic_scholar_cli.py import-curl \
  --curl-file /tmp/semantic-scholar-request.sh

ユーザーがすでに生のCookieヘッダーのみを抽出している場合は、import-headerも利用できます。

  1. Cookieの状態を確認します。
python3 scripts/semantic_scholar_cli.py cookie-summary
  1. 以下のタスクモジュールを選択します。

Cookie Store

Semantic Scholarの認証状態は以下に保存されます。

  • ~/.auth/semantic-scholar.cookies.json
  • ~/.auth/semantic-scholar.cookie-header.txt

sids2は、プライベートなライブラリとフィードへのアクセスに最低限必要なCookieとして扱われます。どちらかが欠けている場合は、プライベートエンドポイントにアクセスする前に、ユーザーに新しいブラウザコピーのcurlを要求し、再インポートするように依頼してください。

Cookie Storeのワークフローやcurlインポート形式が必要な場合は、references/auth-and-cookies.mdをお読みください。

タスクモジュール

リサーチフィード

ユーザーがフィードのエクスポート、履歴のクロール、またはローカルでの粗いフィルタリングを希望する場合に、このパスを使用します。

  1. var DATAを検査する必要がある場合は、SSRをプローブします。
python3 scripts/semantic_scholar_cli.py ssr-dump --list-names
  1. /api/1/library/folders/recommendationsを通じてフィードをクロールします。
python3 scripts/semantic_scholar_cli.py feed-crawl \
  --output /tmp/research-feed.json
  1. 各ウィンドウの後に結果を永続化します。クロール全体が完了するのを待たないでください。

SSRデコード順序、実際のAPIパス、またはページネーション停止ルールが必要な場合は、references/research-feed.mdをお読みください。

ライブラリフォルダ

ユーザーがフォルダの内容、フォルダの差分、または一括追加操作を希望する場合に、このパスを使用します。

  1. フォルダをエクスポートします。
python3 scripts/semantic_scholar_cli.py folder-entries \
  --folder-id 13895811 \
  --all-pages \
  --output /tmp/folder.json
  1. フォルダに論文を追加します。
python3 scripts/semantic_scholar_cli.py folder-add \
  --paper-id 25f612200a3821c71b99819cd671f2e60df5b470 \
  --paper-title 'AgentArk: Distilling Multi-Agent Intelligence into a Single LLM Agent' \
  --folder-ids 13895811

エンドポイントの動作、pageSizeの制限、または検証済みのentries/bulkリクエストの形式が必要な場合は、references/library.mdをお読みください。

論文IDの解決

BibTeXにarXiv IDのような安定した識別子が含まれている場合は、Graph paper/batchを使用します。

python3 scripts/semantic_scholar_cli.py graph-batch \
  --ids ARXIV:2602.08234,ARXIV:2602.12670

可能な場合は、検索ページのスクレイピングよりもこちらを優先してください。

運用ルール

  • Cookieが存在する場合は、直接HTTPを優先してください。
  • ログインにPlaywrightを使用しないでください。Cookie Storeがない場合は、ユーザーに認証済みのブラウザリクエストをcurlとしてコピーしてインポートするように依頼してください。
  • Playwrightは、レンダリングされたページの動作やネットワーク検査が必要な場合にのみ、隠されたインターフェースを発見するために使用してください。
  • ブラウザのクリックは偵察ステップとして扱い、主要な抽出パスとはしないでください。
  • フィード履歴の場合、empty daysnextWindowUTCの欠落、または繰り返されるウィンドウで停止してください。
  • フォルダ同期の場合、まずpaperIdを解決し、既存のフォルダエントリと差分を取り、その後folder-addを呼び出してください。
  • タスクがプライベートページに依存し、401を返す場合は、エンドポイントをデバッグする前に、新しいブラウザコピーのcurlを要求し、Cookie Storeを更新してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Semantic Scholar Library & Feed

Overview

Use this skill to work against Semantic Scholar's authenticated Library and Research Feed surfaces without browser-driven login flows. Prefer the bundled CLI for Cookie Store inspection, browser-curl import, SSR probing, feed pagination, folder inspection, folder writes, and Graph paper/batch lookups.

Quick Start

  1. Check whether the fixed Cookie Store already exists:
python3 scripts/semantic_scholar_cli.py cookie-summary
  1. If the Cookie Store is missing or stale, ask the user to copy an authenticated Semantic Scholar request as curl from browser DevTools, then import it:
python3 scripts/semantic_scholar_cli.py import-curl \
  --curl-file /tmp/semantic-scholar-request.sh

import-header is still available when the user already extracted only the raw Cookie header.

  1. Check cookie health:
python3 scripts/semantic_scholar_cli.py cookie-summary
  1. Choose the task module below.

Cookie Store

Save Semantic Scholar auth state under:

  • ~/.auth/semantic-scholar.cookies.json
  • ~/.auth/semantic-scholar.cookie-header.txt

Treat sid and s2 as the minimum required cookies for private Library and Feed access. If either is missing, ask the user for a fresh browser-copied curl and re-import it before touching private endpoints.

Read references/auth-and-cookies.md when you need the Cookie Store workflow or the curl import format.

Task Modules

Research Feed

Use this path when the user wants feed export, history crawl, or local coarse filtering.

  1. Probe SSR if you need to inspect var DATA:
python3 scripts/semantic_scholar_cli.py ssr-dump --list-names
  1. Crawl the feed through /api/1/library/folders/recommendations:
python3 scripts/semantic_scholar_cli.py feed-crawl \
  --output /tmp/research-feed.json
  1. Persist output after every window. Do not wait for the entire crawl to finish.

Read references/research-feed.md when you need the SSR decode order, the real API path, or the pagination stop rules.

Library Folder

Use this path when the user wants folder contents, folder diffs, or bulk add operations.

  1. Export a folder:
python3 scripts/semantic_scholar_cli.py folder-entries \
  --folder-id 13895811 \
  --all-pages \
  --output /tmp/folder.json
  1. Add a paper to a folder:
python3 scripts/semantic_scholar_cli.py folder-add \
  --paper-id 25f612200a3821c71b99819cd671f2e60df5b470 \
  --paper-title 'AgentArk: Distilling Multi-Agent Intelligence into a Single LLM Agent' \
  --folder-ids 13895811

Read references/library.md when you need endpoint behavior, pageSize limits, or the verified entries/bulk request shape.

Paper ID Resolution

Use Graph paper/batch when BibTeX already contains stable identifiers such as arXiv IDs.

python3 scripts/semantic_scholar_cli.py graph-batch \
  --ids ARXIV:2602.08234,ARXIV:2602.12670

Prefer this over search-page scraping when possible.

Operating Rules

  • Prefer direct HTTP after cookies exist.
  • Do not use Playwright for login. If the Cookie Store is missing, ask the user to copy an authenticated browser request as curl and import it.
  • Use Playwright only when rendered-page behavior or network inspection is needed to discover hidden interfaces.
  • Treat browser clicking as a reconnaissance step, not the main extraction path.
  • For feed history, stop on empty days, missing nextWindowUTC, or repeated windows.
  • For folder sync, resolve paperId first, diff against existing folder entries, then call folder-add.
  • If the task depends on a private page and returns 401, ask for a fresh browser-copied curl and refresh the Cookie Store before debugging the endpoint.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。