get-paper
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePurpose
用途
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 to check browser state.
mcp__chrome-devtools__list_pages - If no page is open on , call
scholar.google.comtomcp__chrome-devtools__navigate_page.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 (text:
mcp__chrome-devtools__wait_for).["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:
- Click Cite: Click the button (haspopup="menu") for the selected result.
Cite - Wait for dialog: Wait for text to appear.
["BibTeX"] - Click BibTeX link: Click the link inside the Cite dialog.
BibTeX - Read BibTeX: Wait for to appear on the new page. Take a snapshot and extract the full BibTeX entry text.
["@"] - Navigate back: Go back to the search results page (type=back).
mcp__chrome-devtools__navigate_page - Close dialog if open: If the Cite dialog is still showing, click Cancel.
对于每篇选中的论文:
- 点击引用按钮:点击对应结果的按钮(带有haspopup="menu"属性)。
Cite - 等待对话框加载:等待文本出现。
["BibTeX"] - 点击BibTeX链接:在引用对话框内点击链接。
BibTeX - 读取BibTeX内容:等待新页面出现文本,截取页面快照并提取完整的BibTeX条目文本。
["@"] - 返回搜索结果页:调用(type=back)回到搜索结果页面。
mcp__chrome-devtools__navigate_page - 关闭对话框(若未关闭):如果引用对话框仍显示,点击取消按钮。
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 file.
.bib- If yes, read the target bib file, check for duplicate keys, and append new entries.
- Default target: (if it exists in the current project).
manuscript/references/references.bib
- 将收集到的所有BibTeX条目展示给用户。
- 询问用户是否要将这些条目追加到指定的文件中。
.bib- 如果用户同意,读取目标bib文件,检查重复键,然后追加新条目。
- 默认目标文件:(如果当前项目中存在该文件)。
manuscript/references/references.bib
Output Contract
输出约定
| Output | Format | Condition |
|---|---|---|
| BibTeX text | Always produced |
| Paper metadata | Numbered list with title, authors, venue, year, citations | Always presented before selection |
| 输出内容 | 格式 | 触发条件 |
|---|---|---|
| BibTeX文本 | 始终生成 |
| 论文元数据 | 包含标题、作者、期刊、年份、引用量的编号列表 | 选择前始终展示 |
Edge Cases
边缘情况处理
| Situation | Handling |
|---|---|
| Google Scholar CAPTCHA or rate-limit | Inform the user and stop |
| No results found | Inform the user, suggest alternative keywords |
| BibTeX page fails to load | Retry once, then inform the user |
| Multiple papers selected | Loop through Step 4 for each selection |
| Cite dialog not closing | Navigate back to force close |
| 场景 | 处理方式 |
|---|---|
| Google Scholar出现验证码或限流 | 告知用户并终止流程 |
| 未找到搜索结果 | 告知用户,建议更换关键词 |
| BibTeX页面加载失败 | 重试一次,若仍失败则告知用户 |
| 用户选中多篇论文 | 对每篇论文重复执行步骤4 |
| 引用对话框无法关闭 | 通过返回页面强制关闭 |
Notes
注意事项
- BibTeX keys from Google Scholar are auto-generated (e.g., ). Do not modify them unless the user asks.
wang2024assessing - 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:
- Open Claude Code settings.
- Navigate to MCP Servers.
- Add the Chrome DevTools MCP server.
- Ensure a Chrome browser is running with remote debugging enabled.
Skill: get-paper
本Skill要求在Claude Code中配置Chrome DevTools MCP服务器。启用步骤如下:
- 打开Claude Code设置。
- 导航至MCP Servers。
- 添加Chrome DevTools MCP服务器。
- 确保Chrome浏览器已开启远程调试模式并运行。
Skill: get-paper