Install
openclaw skills install psych-literature-searchSearches and organizes academic literature on a given topic or research question. Queries PubMed (NCBI E-utilities, no API key required) and Semantic Scholar (free REST API, no key required). Produces structured tables including: title, keywords (bilingual), DOI/URL link, full abstract (with Chinese translation), research variable conceptual definitions, and operational definitions (measurement instruments/scales). Also includes citation counts and publication types. This skill should be used when the user wants to find and organize academic papers on any topic, conduct a systematic literature review, extract research variable definitions and measurement instruments, or compile references for a study.
openclaw skills install psych-literature-search针对用户给定的研究主题,自动搜索 PubMed(NCBI E-utilities,无需 API Key)与 Semantic Scholar(免费 REST API,无需 Key)两大数据库,提取每篇文献的核心信息,并整理为结构化表格,包含:文献标题、关键词、链接、摘要、研究变量的概念定义、操作性定义(测量工具)等。
当用户出现以下任一意图时,立即启用此 Skill:
中文触发词:
English trigger phrases:
If the query is unclear, ask the user:
建议澄清提示(中文):
"请告诉我:① 具体研究主题或关键词;② 时间范围(默认近10年);③ 需要多少篇?如有 Web of Science 或 Springer API 密钥请提供,没有也可以用免费通道搜索。"
PubMed 和 Semantic Scholar 均无需 API Key,直接运行附带脚本即可。
使用托管 Python 运行时并行运行两个脚本:
PubMed(NCBI E-utilities,无需 Key):
"C:\Users\refresh\.workbuddy\binaries\python\versions\3.13.12\python.exe" \
"C:/Users/refresh/.workbuddy/skills/psych-literature-search/scripts/search_pubmed.py" \
--query "[TOPIC]" --max 30
Semantic Scholar(免费 REST API,无需 Key):
"C:\Users\refresh\.workbuddy\binaries\python\versions\3.13.12\python.exe" \
"C:/Users/refresh/.workbuddy/skills/psych-literature-search/scripts/search_semantic.py" \
--query "[TOPIC]" --max 30
两个脚本并行运行;解析 JSON 输出,每个返回 hits 数组,包含 title, authors, year, journal, doi, abstract, keywords, url, database 字段。
PubMed 参数说明:
--mindate 2015 / --maxdate 2024:时间范围过滤--email you@example.com:可选,填写你的邮箱以符合 NCBI 礼仪要求Semantic Scholar 参数说明:
--year 2015-2024:年份过滤--venue "Journal Name":按期刊/会议过滤若脚本执行失败,使用 WebFetch 工具直接调用 API:
PubMed E-utilities(WebFetch):
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=[URL-ENCODED TOPIC]&retmax=20&sort=relevance&retmode=xml
然后对返回的每个 PMID 调用:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=[PMIDs]&retmode=xml
Semantic Scholar(WebFetch):
https://api.semanticscholar.org/graph/v1/paper/search?query=[URL-ENCODED TOPIC]&fields=title,authors,year,venue,doi,abstract,citationCount,fieldsOfStudy&limit=20
如脚本和 WebFetch 均失败,使用 WebSearch:
"[topic]" pubmed abstract"[topic]" site:semanticscholar.org"[topic]" (site:pubmed.ncbi.nlm.nih.gov OR site:semanticscholar.org)PubMed 结果已包含 publication_types(如 "Journal Article", "Review", "Meta-Analysis")。
Semantic Scholar 结果已包含 citations(被引次数)和 influential_citations(高影响力被引次数)。
无需额外脚本调用,直接使用 Step 2 返回的数据即可。
可选:如需补充期刊水平信息(JCR 分区、影响因子),可运行(需要相应 API 访问权限):
"C:\Users\refresh\.workbuddy\binaries\python\versions\3.13.12\python.exe" \
"C:/Users/refresh/.workbuddy/skills/psych-literature-search/scripts/journal_level.py" \
--journal "[JOURNAL NAME]"
未查询到分区信息时,注明"详见 JCR/Scimago"并附链接:
[双库收录])按照 references/output_templates.md 中的格式,输出以下内容:
主输出:一体化文献整理表(核心需求)
输出一张包含所有字段的综合表格,列包括:
| 编号 | 标题(含链接) | 关键词 | 摘要(原文) | 摘要(中文) | 研究变量 | 概念定义 | 操作性定义 | 期刊水平 | 被引次数 |
|---|
若一篇文献有多个研究变量,将同一编号的行合并或拆分多行分别描述每个变量。
辅助四表结构(用于系统化综述报告):
综合分析部分(可选,系统综述时使用):
APA 7 参考文献列表
详见 references/output_templates.md 中的完整模板。
[主题]_文献整理_[日期].md 到工作区references/api_reference.md — PubMed E-utilities 与 Semantic Scholar API 端点、字段映射、速率限制references/output_templates.md — 报告模板与输出格式规则(含所有表格示例)scripts/search_pubmed.py — PubMed 搜索脚本(无需 API Key)scripts/search_semantic.py — Semantic Scholar 搜索脚本(无需 API Key)scripts/journal_level.py — 期刊影响因子/分区查询脚本(可选)https://doi.org/[DOI] 作为标准链接;无 DOI 时使用 PubMed 链接或 Semantic Scholar 链接。(推断) 标注。双语格式:英文原词 + 中文翻译,如 cognitive empathy(认知共情)。(推断)。fieldsOfStudy:Psychology 过滤。[摘要不可获取,请查阅原文]。