get-paper

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Purpose

用途

This Skill searches Google Scholar using Chrome DevTools MCP tools, presents search results to the user for selection, and retrieves BibTeX entries for selected papers. It automates the manual process of searching Google Scholar, clicking "Cite", and copying BibTeX. This Skill does NOT use Semantic Scholar MCP — it operates entirely through browser automation.
本Skill借助Chrome DevTools MCP工具搜索Google Scholar,将搜索结果展示给用户供其选择,并为选中的论文获取BibTeX条目。它自动化了手动搜索Google Scholar、点击“引用”并复制BibTeX的流程。本Skill不使用Semantic Scholar MCP——完全通过浏览器自动化运行。

Trigger

触发条件

Activates when the user asks to:
  • Search Google Scholar for a paper
  • Get BibTeX from Google Scholar
  • /get-paper <search query>
当用户提出以下请求时激活:
  • 在Google Scholar中搜索论文
  • 从Google Scholar获取BibTeX
  • /get-paper <搜索关键词>

Workflow

工作流程

Step 1: Navigate to Google Scholar

步骤1:导航至Google Scholar

  • Call
    mcp__chrome-devtools__list_pages
    to check browser state.
  • If no page is open on
    scholar.google.com
    , call
    mcp__chrome-devtools__navigate_page
    to
    https://scholar.google.com
    .
  • If already on Google Scholar, reuse the current page.
  • 调用
    mcp__chrome-devtools__list_pages
    检查浏览器状态。
  • 如果未打开
    scholar.google.com
    页面,调用
    mcp__chrome-devtools__navigate_page
    导航至
    https://scholar.google.com
  • 如果已在Google Scholar页面,则复用当前页面。

Step 2: Search

步骤2:执行搜索

  • Take a snapshot to find the search box element.
  • Fill the search box with the user's query using
    mcp__chrome-devtools__fill
    .
  • Click the Search button using
    mcp__chrome-devtools__click
    .
  • Wait for results with
    mcp__chrome-devtools__wait_for
    (text:
    ["Cited by"]
    ).
  • 截取页面快照以定位搜索框元素。
  • 使用
    mcp__chrome-devtools__fill
    将用户的搜索关键词填入搜索框。
  • 使用
    mcp__chrome-devtools__click
    点击搜索按钮。
  • 使用
    mcp__chrome-devtools__wait_for
    等待搜索结果加载(检测文本:
    ["Cited by"]
    )。

Step 3: Present Results

步骤3:展示搜索结果

  • Take a snapshot of search results.
  • Extract the top 5-8 results: title, authors, venue, year, citation count.
  • Present them as a numbered list to the user.
  • Ask the user which paper(s) to retrieve BibTeX for (support multiple selections).
  • If the user's query is an exact title and the first result is a clear match, skip asking and auto-select it.
  • 截取搜索结果页面的快照。
  • 提取排名前5-8的结果:标题、作者、发表期刊、年份、引用量。
  • 将结果以编号列表形式展示给用户。
  • 询问用户要获取哪些论文的BibTeX条目(支持多选)。
  • 如果用户的搜索关键词是精确标题且第一个结果匹配度极高,则跳过询问环节,自动选中该论文。

Step 4: Get BibTeX (for each selected paper)

步骤4:获取BibTeX条目(针对每篇选中的论文)

For each selected paper:
  1. Click Cite: Click the
    Cite
    button (haspopup="menu") for the selected result.
  2. Wait for dialog: Wait for
    ["BibTeX"]
    text to appear.
  3. Click BibTeX link: Click the
    BibTeX
    link inside the Cite dialog.
  4. Read BibTeX: Wait for
    ["@"]
    to appear on the new page. Take a snapshot and extract the full BibTeX entry text.
  5. Navigate back: Go back to the search results page (
    mcp__chrome-devtools__navigate_page
    type=back).
  6. Close dialog if open: If the Cite dialog is still showing, click Cancel.
对于每篇选中的论文:
  1. 点击引用按钮:点击对应结果的
    Cite
    按钮(带有haspopup="menu"属性)。
  2. 等待对话框加载:等待文本
    ["BibTeX"]
    出现。
  3. 点击BibTeX链接:在引用对话框内点击
    BibTeX
    链接。
  4. 读取BibTeX内容:等待新页面出现文本
    ["@"]
    ,截取页面快照并提取完整的BibTeX条目文本。
  5. 返回搜索结果页:调用
    mcp__chrome-devtools__navigate_page
    (type=back)回到搜索结果页面。
  6. 关闭对话框(若未关闭):如果引用对话框仍显示,点击取消按钮。

Step 5: Output

步骤5:输出结果

  • Display all collected BibTeX entries to the user.
  • Ask the user if they want to append these entries to a specific
    .bib
    file.
    • If yes, read the target bib file, check for duplicate keys, and append new entries.
    • Default target:
      manuscript/references/references.bib
      (if it exists in the current project).
  • 将收集到的所有BibTeX条目展示给用户。
  • 询问用户是否要将这些条目追加到指定的
    .bib
    文件中。
    • 如果用户同意,读取目标bib文件,检查重复键,然后追加新条目。
    • 默认目标文件:
      manuscript/references/references.bib
      (如果当前项目中存在该文件)。

Output Contract

输出约定

OutputFormatCondition
bibtex_entry
BibTeX textAlways produced
Paper metadataNumbered list with title, authors, venue, year, citationsAlways presented before selection
输出内容格式触发条件
bibtex_entry
BibTeX文本始终生成
论文元数据包含标题、作者、期刊、年份、引用量的编号列表选择前始终展示

Edge Cases

边缘情况处理

SituationHandling
Google Scholar CAPTCHA or rate-limitInform the user and stop
No results foundInform the user, suggest alternative keywords
BibTeX page fails to loadRetry once, then inform the user
Multiple papers selectedLoop through Step 4 for each selection
Cite dialog not closingNavigate back to force close
场景处理方式
Google Scholar出现验证码或限流告知用户并终止流程
未找到搜索结果告知用户,建议更换关键词
BibTeX页面加载失败重试一次,若仍失败则告知用户
用户选中多篇论文对每篇论文重复执行步骤4
引用对话框无法关闭通过返回页面强制关闭

Notes

注意事项

  • BibTeX keys from Google Scholar are auto-generated (e.g.,
    wang2024assessing
    ). Do not modify them unless the user asks.
  • This skill uses Chrome DevTools MCP tools only. It does NOT use Semantic Scholar MCP.
  • Multiple papers can be fetched in one session by repeating Step 4.
  • Google Scholar自动生成BibTeX键(例如:
    wang2024assessing
    )。除非用户要求,否则不要修改这些键。
  • 本Skill仅使用Chrome DevTools MCP工具,不使用Semantic Scholar MCP。
  • 可通过重复步骤4在一次会话中获取多篇论文的BibTeX条目。

Prerequisites

前置条件

This Skill requires Chrome DevTools MCP server to be configured in Claude Code. To enable it:
  1. Open Claude Code settings.
  2. Navigate to MCP Servers.
  3. Add the Chrome DevTools MCP server.
  4. Ensure a Chrome browser is running with remote debugging enabled.

Skill: get-paper
本Skill要求在Claude Code中配置Chrome DevTools MCP服务器。启用步骤如下:
  1. 打开Claude Code设置。
  2. 导航至MCP Servers
  3. 添加Chrome DevTools MCP服务器。
  4. 确保Chrome浏览器已开启远程调试模式并运行。

Skill: get-paper