/wos-search:wos-search [search keywords] [--edition SCI/SSCI/...] [--sort citations/date/relevance] [--db woscc|alldb|...]from wos-search
Performs Web of Science searches (topic, author, title, DOI, advanced) via internal API with SID fallback, parses paper details and result pages (including offline snapshots), and handles pagination.
Ships in wos-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
一个技能覆盖 Web of Science 站内全部动作。检索在本文件;其余场景按路由表进入对应子流程文档。
| 用户想做什么 | 进入哪个流程 |
|---|---|
检索(本文件主流程:内部 API + no_session 回退) | 下文 |
| 打开/解析某篇论文详情页 | references/paper-detail.md |
| 解析当前结果页(或已保存的页面快照,离线模式) | references/parse-results.md |
| 结果翻页 | references/navigate-pages.md |
| WoS 页面 DOM 结构参考(选择器速查) | references/dom-reference.md |
| 下载/导出/推送 Zotero | 条目交给 scansci-pdf 技能 |
The browser must be on any webofscience.com page (logged in). The skill calls the WoS internal API directly via fetch, so no page navigation is needed.
WoS databases (especially SCI/SSCI) primarily index English-language literature. If the user provides Chinese keywords, translate to English (e.g., "价值共创" → "value co-creation"). Inform the user about the translation.
product)| User says | product | Description |
|---|---|---|
| "core collection" / default | WOSCC | WoS Core Collection |
| "all databases" | ALLDB | All databases combined |
| "medline" | MEDLINE | Biomedical literature |
| "preprint" | PPRN | Preprint Citation Index |
| "scielo" | SCIELO | SciELO Citation Index |
| User says | editions value |
|---|---|
| "SCI" / "science" | WOS.SCI |
| "SSCI" / "social science" | WOS.SSCI |
| "CPCI" / "conference" | WOS.CPCI-S, WOS.CPCI-SSH |
| "all" / default | omit editions field (or include all) |
Multiple editions can be combined: ["WOS.SCI", "WOS.SSCI"]
| User says | sort value |
|---|---|
| "citations" / "most cited" | times-cited-descending |
| "newest" / "latest" | date-descending |
| "oldest" | date-ascending |
| "relevance" / default | relevance |
| "usage" | usage-count-last-180-days-descending |
| User says | rowField |
|---|---|
| topic / keyword / about | TS |
| title | TI |
| author | AU |
| DOI | DO |
| journal / source | SO |
| year | PY |
| affiliation / institution | OG |
| abstract | AB |
| funding | FO |
| country | CU |
{
"product": "WOSCC",
"searchMode": "general",
"viewType": "search",
"serviceMode": "summary",
"search": {
"mode": "general",
"database": "WOSCC",
"query": [
{"rowField": "TS", "rowText": "USER_QUERY"}
],
"editions": ["WOS.SSCI"]
},
"retrieve": {
"count": 10,
"history": true,
"jcr": true,
"sort": "times-cited-descending",
"analyzes": [],
"locale": "en"
},
"eventMode": null
}
query: array of {rowField, rowText} objects. For multiple conditions, add rowBoolean (AND/OR/NOT) to subsequent rows.editions: optional, omit for all editions.count: number of records to retrieve (default 10, max 50).sort: default relevance.This is the only tool call needed — 1 call total.
If the browser was previously on a non-WoS page (e.g., after following a publisher link), SID will be lost. In that case, first navigate back to any WoS page (navigate_page to https://www.webofscience.com/wos/woscc/basic-search) to re-establish the session, then run the API call. This adds 1 extra tool call (2 total).
Alternatively, use the URL-based fallback (Step 2B below) which always works regardless of SID state.
async () => {
// Extract SID from network history
const sid = performance.getEntriesByType('resource')
.filter(r => r.name.includes('SID='))
.map(r => r.name.match(/SID=([^&]+)/)?.[1])
.filter(Boolean)[0] || '';
if (!sid) return { status: 'no_session', message: 'SID lost (likely navigated to external site). Use Step 2B or navigate to any WoS page first.' };
const response = await fetch(`/api/wosnx/core/runQuerySearch?SID=${sid}`, {
method: 'POST',
headers: { 'Content-Type': 'text/plain;charset=UTF-8', 'Accept': 'application/x-ndjson' },
body: JSON.stringify({
"product": "{PRODUCT}",
"searchMode": "general",
"viewType": "search",
"serviceMode": "summary",
"search": {
"mode": "general",
"database": "{PRODUCT}",
"query": [{QUERY_ROWS}],
"editions": [{EDITIONS}]
},
"retrieve": {
"count": {COUNT},
"history": true,
"jcr": true,
"sort": "{SORT}",
"analyzes": [],
"locale": "en"
},
"eventMode": null
})
});
const text = await response.text();
const lines = text.trim().split('\n').map(line => {
try { return JSON.parse(line); } catch(e) { return null; }
}).filter(Boolean);
const searchInfo = lines.find(l => l.key === 'searchInfo')?.payload;
const recordsData = lines.find(l => l.key === 'records')?.payload;
let records = [];
if (recordsData) {
records = Object.entries(recordsData).map(([idx, rec]) => ({
idx: parseInt(idx),
wosId: rec.colluid,
title: rec.titles?.item?.en?.[0]?.title || '',
authors: rec.names?.author?.en?.filter(Boolean).map(a => a.wos_standard).join('; ') || '',
source: rec.titles?.source?.en?.[0]?.title || '',
year: rec.pub_info?.pubyear || '',
vol: rec.pub_info?.vol || '',
issue: rec.pub_info?.issue || '',
pages: rec.pub_info?.page_no || '',
doi: rec.doi || '',
citations: rec.citation_related?.counts?.WOSCC || 0,
citationsAll: rec.citation_related?.counts?.ALLDB || 0,
refCount: rec.ref_count || 0,
abstract: rec.abstract?.basic?.en?.abstract?.replace(/<[^>]*>/g, '')?.substring(0, 300) || '',
docType: rec.doctypes?.[0] || '',
oa: rec.oa || false
}));
}
return {
status: 'ok',
totalResults: searchInfo?.RecordsFound || 0,
recordsSearched: searchInfo?.RecordsSearched || 0,
queryId: searchInfo?.QueryID || '',
records
};
}
Display as a table:
Found **{totalResults}** results in {database} ({edition}).
Sorted by: {sort}.
| # | Title | Authors | Source | Year | Cited | WoS ID |
|---|-------|---------|--------|------|-------|--------|
| 1 | {title} | {authors} | {source} | {year} | {citations} | {wosId} |
| ... |
Offer next actions:
/wos-paper-detail {WoS ID} for detailed information"scansci-pdf skill (scansci_pdf_citation / scansci_pdf_zotero_push)"count or use /wos-navigate-pagesIf API returns no_session (e.g., after navigating to an external publisher site), fall back to URL navigation:
navigate_page({
url: "https://www.webofscience.com/wos/{db}/general-summary?queryJson={ENCODED_QUERY_JSON}",
initScript: "Object.defineProperty(navigator, 'webdriver', {get: () => undefined})"
})
Then extract results via evaluate_script with DOM selectors (see wos-parse-results Mode B), or re-attempt the API call (SID will be re-established after the navigation).
When to use: After the browser visited an external site (publisher, DOI link, etc.) and performance.getEntriesByType('resource') no longer contains WoS SID entries.
editions field uses format WOS.SCI, WOS.SSCI, WOS.CPCI-S, etc.retrieve.count to controlhistory: true saves the search to WoS session historyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yuanyuanma03/academic-research-skills --plugin wos-searchOther plugins' skills for the same job