cnki-advanced-search
Perform advanced search on CNKI with field filters like author, title, journal, date range, source category (SCI/EI/CSSCI/北大核心).…
Search CNKI (中国知网) for papers by keyword. Use when the user wants to find academic papers on a topic.
Claude Code
$ npx -y skills add cookjohn/cnki-skills --skill cnki-search --agent claude-code
Codex
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a codex -y
Cursor
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a cursor -y
Gemini CLI
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a gemini-cli -y
GitHub Copilot
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a github-copilot -y
OpenCode
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a opencode -y
Windsurf
$ npx skills add cookjohn/cnki-skills --skill cnki-search -a windsurf -y
name: cnki-search description: Search CNKI (中国知网) for papers by keyword. Use when the user wants to find academic papers on a topic. argument-hint: "[search keywords]"
Search CNKI for papers using keyword(s). Returns result count and structured result list (titles, URLs, authors, journal, date) in a single call.
$ARGUMENTS contains the search keyword(s) in Chinese or English.
Use `mcp__chrome-devtools__navigate_page` → `https://kns.cnki.net/kns8s/search`
Replace `YOUR_KEYWORDS` with actual search terms:
async () => {
const query = "YOUR_KEYWORDS";
// Wait for search input (replaces wait_for)
await new Promise((r, j) => {
let n = 0;
const c = () => { if (document.querySelector('input.search-input')) r(); else if (++n > 30) j('timeout'); else setTimeout(c, 500); };
c();
});
// Check captcha (only if visible on screen, not hidden SDK at top:-1000000)
const outer = document.querySelector('#tcaptcha_transform_dy');
if (outer && outer.getBoundingClientRect().top >= 0) return { error: 'captcha' };
// Fill and submit (verified selectors: input.search-input, input.search-btn)
const input = document.querySelector('input.search-input');
input.value = query;
input.dispatchEvent(new Event('input', { bubbles: true }));
document.querySelector('input.search-btn')?.click();
// Wait for results
await new Promise((r, j) => {
let n = 0;
const c = () => { if (document.body.innerText.includes('条结果')) r(); else if (++n > 30) j('timeout'); else setTimeout(c, 500); };
c();
});
// Check captcha again
const outer2 = document.querySelector('#tcaptcha_transform_dy');
if (outer2 && outer2.getBoundingClientRect().top >= 0) return { error: 'captcha' };
// Extract current page results (merged parse-results)
const rows = document.querySelectorAll('.result-table-list tbody tr');
const checkboxes = document.querySelectorAll('.result-table-list tbody input.cbItem');
const results = Array.from(rows).map((row, i) => {
const titleLink = row.querySelector('td.name a.fz14');
const authors = Array.from(row.querySelectorAll('td.author a.KnowledgeNetLink') || []).map(a => a.innerText?.trim());
const journal = row.querySelector('td.source a')?.innerText?.trim() || '';
const date = row.querySelector('td.date')?.innerText?.trim() || '';
const citations = row.querySelector('td.quote')?.innerText?.trim() || '';
const downloads = row.querySelector('td.download')?.innerText?.trim() || '';
return {
n: i + 1,
title: titleLink?.innerText?.trim() || '',
href: titleLink?.href || '',
exportId: checkboxes[i]?.value || '',
authors: authors.join('; '),
journal,
date,
citations,
downloads
};
});
return {
query,
total: document.querySelector('.pagerTitleCell')?.innerText?.match(/([\d,]+)/)?.[1] || '0',
page: document.querySelector('.countPageMark')?.innerText || '1/1',
results
};
}Present results as a numbered list:
Searched CNKI for "$ARGUMENTS": found {total} results (page {page}).
1. {title}
Authors: {authors} | Journal: {journal} | Date: {date}
Citations: {citations} | Downloads: {downloads}
2. ...When the user wants to open or download a specific paper, use `navigate_page` with the result's `href` URL directly — do NOT click the link (clicking opens a new tab and wastes 3 extra tool calls for tab management).
Check `#tcaptcha_transform_dy` element's `getBoundingClientRect().top >= 0`. Tencent captcha SDK preloads DOM at `top: -1000000px` (off-screen, not active). Only return `error: 'captcha'` when `top >= 0` (actually visible to user).
| Element | Selector | Notes | |---------|----------|-------| | Search input | `input.search-input` | id=`txt_search`, placeholder "中文文献、外文文献" | | Search button | `input.search-btn` | type="button" | | Result count | `.pagerTitleCell` | text "共找到 X 条结果" | | Page indicator | `.countPageMark` | text "1/300" | | Result rows | `.result-table-list tbody tr` | Each row = one paper | | Title link | `td.name a.fz14` | Paper title with href | | Authors | `td.author a.KnowledgeNetLink` | Author name links | | Journal | `td.source a` | Journal/source link | | Date | `td.date` | Publication date text | | Citations | `td.quote` | Citation count | | Downloads | `td.download` | Download count |
When user wants to save results to Zotero, use batch export directly from the results page — **do NOT navigate to each detail page**. The `exportId` in results equals the detail page's `#export-id`. Call `cnki-export` skill with batch mode (Step 1B). See cnki-export SKILL.md for details.
CNKI (中国知网) skills for Claude Code — search, browse journals, download PDFs, export to Zotero via Chrome DevTools MCP
Perform advanced search on CNKI with field filters like author, title, journal, date range, source category (SCI/EI/CSSCI/北大核心).…
Download a paper PDF/CAJ from CNKI. Requires user to be logged in. Use when user wants to download a specific paper.
Export paper from CNKI and push to Zotero, or save as RIS file. Use when user wants to save a paper to Zotero or export citation…
Query journal indexing/inclusion status on CNKI - check which databases include a journal (北大核心, CSSCI, CSCD, SCI, EI, etc.), get…
Search for journals/publications on CNKI by name, ISSN, CN, or sponsor. Use when the user wants to find a specific journal or…
Browse journal issues, view table of contents, and download original TOC PDF from CNKI. Use when user wants to see papers in a…
Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…
Search literature across sources, verify or manage citations, and build MeSH strategies or citation-impact audits. Use for…