yuanyuanma03/academic-research-skills/cnki-search

Claude Code and agent skill by yuanyuanma03/academic-research-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

CNKI (中国知网) 全流程技能:关键词检索、高级检索(作者/期刊/日期/核心库过滤)、论文详情解析、结果页解析、翻页、期刊检索/目录/导航。Use when the user wants to search CNKI, browse CNKI journals, or open/parse CNKI paper pages.

Install

npx vskill@latest install yuanyuanma03/academic-research-skills/cnki-search

SKILL.md

The same SKILL.md was published earlier as yuanyuanma03/academic-research-skills/cnki-search.

CNKI Search — 全流程技能

一个技能覆盖 CNKI 站内全部动作。基础检索在本文件;其余场景按路由表进入对应子流程文档。

场景路由

用户想做什么进入哪个流程
关键词检索(本文件主流程)下文 Steps
高级检索(作者/标题/期刊/日期/SCI-EI-CSSCI-北大核心过滤)references/advanced-search.md
打开/解析某篇论文详情页references/paper-detail.md
解析当前结果页(独立于检索)references/parse-results.md
结果翻页references/navigate-pages.md
检索特定期刊references/journal-search.md
浏览期刊目录(某期文章列表)references/journal-toc.md
期刊导航体系(核心期刊分类)references/journal-index.md
下载/导出/推送 Zotero条目交给 scansci-pdf 技能(见文末)

Arguments

$ARGUMENTS contains the search keyword(s) in Chinese or English.

Steps

1. Navigate

Use mcp__chrome-devtools__navigate_page → https://kns.cnki.net/kns8s/search

2. Search + extract results (single evaluate_script, NO wait_for)

Replace YOUR_KEYWORDS with actual search terms:

javascript
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
};
}
3. Report

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. ...
4. Follow-up: navigate to a paper

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).

Captcha detection

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).

Two more wall types (verified 2026-10-29):

SignatureVerdictAction
Page shows 请完成安全验证 + 向右滑动完成验证CNKI slider wallAutomated/embedded browser contexts trigger this on load. Do NOT script the drag; hand the visible browser to the user to slide once, or switch to the user's daily Chrome via chrome-devtools.
Search returns nothing and page requires re-loginsession expiredRe-enter via the user's authenticated browser.

Anti-detection prerequisite: this skill expects chrome-devtools driving the user's daily Chrome (the bundled .mcp.json already passes --disable-blink-features=AutomationControlled). Embedded/automation webviews (e.g. Electron-based in-app browsers) are fingerprinted immediately — see docs/PLAYBOOK.md failure-signature table.

Verified selectors

ElementSelectorNotes
Search inputinput.search-inputid=txt_search, placeholder "中文文献、外文文献"
Search buttoninput.search-btntype="button"
Result count.pagerTitleCelltext "共找到 X 条结果"
Page indicator.countPageMarktext "1/300"
Result rows.result-table-list tbody trEach row = one paper
Title linktd.name a.fz14Paper title with href
Authorstd.author a.KnowledgeNetLinkAuthor name links
Journaltd.source aJournal/source link
Datetd.datePublication date text
Citationstd.quoteCitation count
Downloadstd.downloadDownload count

Batch export to Zotero

When user wants to save results to Zotero, hand the collected entries (title, authors, source, date) to the scansci-pdf skill — scansci_pdf_citation for citation export, scansci_pdf_zotero_push for the Zotero push. The old cnki-export skill was removed; docs/REFERENCE.md has the migration table.

Tool calls: 2 (navigate + evaluate_script)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
69
Repository forks
7
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yuanyuanma03/academic-research-skills/cnki-search/badge)](https://verified-skill.com/skills/yuanyuanma03/academic-research-skills/cnki-search)

Something wrong with this skill or its page? Tell us.