Skip to content
Back to search

cnki-skills

SkillWorks with Claude CodeGitHub

CNKI (中国知网) skills for Claude Code — search, browse journals, download PDFs, export to Zotero via Chrome DevTools MCP

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/cookjohn-cnki-skills/badge.svg)](/listings/cookjohn-cnki-skills)

HTML

<a href="/listings/cookjohn-cnki-skills"><img src="/api/listings/cookjohn-cnki-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

1. Install Chrome DevTools MCP server

claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest

2. Install CNKI skills

git clone https://github.com/cookjohn/cnki-skills.git
cd cnki-skills
cp -r skills/ agents/ .claude/

Or add to an existing project:

git clone https://github.com/cookjohn/cnki-skills.git /tmp/cnki-skills
cp -r /tmp/cnki-skills/skills/ your-project/.claude/skills/
cp -r /tmp/cnki-skills/agents/ your-project/.claude/agents/

3. Start Chrome with remote debugging

# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

# Linux
google-chrome --remote-debugging-port=9222

4. Launch Claude Code

claude

Skills and agent are picked up automatically. Try `/cnki-search 深度学习` to verify.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 222 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # CNKI Skills for Claude Code
  2. [English](#english) | [中文](#中文)
  3. | WeChat Official Account (公众号) | WeChat Group (微信群) | Discord |
  4. |:---:|:---:|:---:|
  5. | <img src="qrcode_for_gh_a1c14419b847_258.jpg" width="200"> | <img src="0320.jpg" width="200"> | [Join Discord](https://discord.gg/tGd5vTDASg) |
  6. | 未来论文实验室 | 扫码加入交流群 | English & Chinese |
  7. ---
  8. <a id="english"></a>
  9. ## English
  10. [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skills that let Claude interact with [CNKI (中国知网)](https://www.cnki.net) through Chrome DevTools MCP.
  11. Search papers, browse journals, check indexing status, download PDFs, and export to Zotero — all from the Claude Code CLI.
  12. ### Prerequisites
  13. - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI installed
  14. - Chrome browser (login handled manually for downloads)
  15. - [Zotero](https://www.zotero.org/) desktop app (optional, for export)
  16. - Python 3 (optional, for Zotero push script)
  17. ### Skills
  18. | Skill | Description | Invocation |
  19. |-------|-------------|------------|
  20. | `cnki-search` | Keyword search with structured result extraction | `/cnki-search 人工智能` |
  21. | `cnki-advanced-search` | Filtered search: author, journal, date, source category (SCI/EI/CSSCI/北大核心/CSCD) | `/cnki-advanced-search CSSCI 人工智能 2020-2025` |
  22. | `cnki-parse-results` | Re-parse an existing search results page | `/cnki-parse-results` |
  23. | `cnki-navigate-pages` | Pagination and sort order | `/cnki-navigate-pages next` |
  24. | `cnki-paper-detail` | Extract full paper metadata (abstract, keywords, etc.) | `/cnki-paper-detail` |
  25. | `cnki-journal-search` | Find journals by name, ISSN, or CN | `/cnki-journal-search 计算机学报` |
  26. | `cnki-journal-index` | Check journal indexing status and impact factors | `/cnki-journal-index 计算机学报` |
  27. | `cnki-journal-toc` | Browse issue table of contents | `/cnki-journal-toc 计算机学报 2025 01期` |
  28. | `cnki-download` | Download paper PDF/CAJ | `/cnki-download` |
  29. | `cnki-export` | Push to Zotero or output GB/T 7714 citation | `/cnki-export zotero` |
  30. ### Agent
  31. **`cnki-researcher`** — orchestrates all 10 skills. Handles captcha detection (pauses and asks user to solve manually), tab management, and multi-step workflows like "search → filter → export to Zotero".
  32. ### Installation
  33. #### 1. Install Chrome DevTools MCP server
  34. ```bash
  35. claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
  36. ```
  37. #### 2. Install CNKI skills
  38. ```bash
  39. git clone https://github.com/cookjohn/cnki-skills.git
  40. cd cnki-skills
  41. cp -r skills/ agents/ .claude/
  42. ```
  43. Or add to an existing project:
  44. ```bash
  45. git clone https://github.com/cookjohn/cnki-skills.git /tmp/cnki-skills
  46. cp -r /tmp/cnki-skills/skills/ your-project/.claude/skills/
  47. cp -r /tmp/cnki-skills/agents/ your-project/.claude/agents/
  48. ```
  49. #### 3. Start Chrome with remote debugging
  50. ```bash
  51. # Windows
  52. "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
  53. # macOS
  54. /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  55. # Linux
  56. google-chrome --remote-debugging-port=9222
  57. ```
  58. #### 4. Launch Claude Code
  59. ```bash
  60. claude
  61. ```
  62. Skills and agent are picked up automatically. Try `/cnki-search 深度学习` to verify.
  63. ### How It Works
  64. All skills use async `evaluate_script` calls via Chrome DevTools MCP — no screenshot parsing or OCR. Each skill operates in 1-2 tool calls (navigate + evaluate_script), making interactions fast and reliable.
  65. Key design choices:
  66. - **Single async script per operation** — replaces multi-step snapshot → click → wait_for patterns
  67. - **`navigate_page` over link clicking** — CNKI opens links in new tabs; navigating directly avoids tab management overhead
  68. - **Batch export** — export multiple papers from search results in one call instead of visiting each detail page
  69. - **Captcha-aware** — detects Tencent slider captcha and pauses for manual resolution
  70. ### Project Structure
  71. ```
  72. skills/
  73. ├── cnki-search/SKILL.md # Basic keyword search
  74. ├── cnki-advanced-search/SKILL.md # Filtered search (source category, date, etc.)
  75. ├── cnki-parse-results/SKILL.md # Parse existing results page
  76. ├── cnki-navigate-pages/SKILL.md # Pagination & sorting
  77. ├── cnki-paper-detail/SKILL.md # Paper metadata extraction
  78. ├── cnki-journal-search/SKILL.md # Journal lookup
  79. ├── cnki-journal-index/SKILL.md # Journal indexing & impact factors
  80. ├── cnki-journal-toc/SKILL.md # Issue table of contents
  81. ├── cnki-download/SKILL.md # PDF/CAJ download
  82. └── cnki-export/ # Citation export & Zotero
  83. ├── SKILL.md
  84. └── scripts/
  85. └── push_to_zotero.py # Zotero Connector API client
  86. agents/
  87. └── cnki-researcher.md # Agent: orchestrates all skills
  88. ```
  89. ---
  90. <a id="中文"></a>
  91. ## 中文
  92. | 公众号 | 微信交流群 | Discord |
  93. |:---:|:---:|:---:|
  94. | <img src="qrcode_for_gh_a1c14419b847_258.jpg" width="200"> | <img src="0320.jpg" width="200"> | [加入 Discord](https://discord.gg/tGd5vTDASg) |
  95. | 未来论文实验室 | 扫码加入交流群 | 中英文交流 |
  96. 让 [Claude Code](https://docs.anthropic.com/en/docs/claude-code) 通过 Chrome DevTools MCP 操作 [中国知网 (CNKI)](https://www.cnki.net) 的技能集。
  97. 支持论文检索、期刊浏览、收录查询、PDF 下载、导出到 Zotero 等功能,全部在 Claude Code 命令行中完成。
  98. ### 前置要求
  99. - 已安装 [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI
  100. - Chrome 浏览器(下载功能需手动登录知网)
  101. - [Zotero](https://www.zotero.org/) 桌面端(可选,用于导出)
  102. - Python 3(可选,用于 Zotero 推送脚本)
  103. ### 技能列表
  104. | 技能 | 功能 | 调用方式 |
  105. |------|------|----------|
  106. | `cnki-search` | 关键词检索,返回结构化结果 | `/cnki-search 人工智能` |
  107. | `cnki-advanced-search` | 高级检索:作者、期刊、时间、来源类别(SCI/EI/CSSCI/北大核心/CSCD) | `/cnki-advanced-search CSSCI 人工智能 2020-2025` |
  108. | `cnki-parse-results` | 重新解析当前搜索结果页 | `/cnki-parse-results` |
  109. | `cnki-navigate-pages` | 翻页与排序 | `/cnki-navigate-pages next` |
  110. | `cnki-paper-detail` | 提取论文详细信息(摘要、关键词等) | `/cnki-paper-detail` |
  111. | `cnki-journal-search` | 按名称、ISSN、CN 号查找期刊 | `/cnki-journal-search 计算机学报` |
  112. | `cnki-journal-index` | 查询期刊收录情况和影响因子 | `/cnki-journal-index 计算机学报` |
  113. | `cnki-journal-toc` | 浏览期刊目录 | `/cnki-journal-toc 计算机学报 2025 01期` |
  114. | `cnki-download` | 下载论文 PDF/CAJ | `/cnki-download` |
  115. | `cnki-export` | 推送到 Zotero 或输出 GB/T 7714 引用 | `/cnki-export zotero` |
  116. ### 智能体
  117. **`cnki-researcher`** — 统一调度全部 10 个技能。自动处理验证码检测(暂停并提示用户手动完成)、标签页管理,支持"检索 → 筛选 → 导出到 Zotero"等复合工作流。
  118. ### 安装方法
  119. #### 1. 安装 Chrome DevTools MCP 服务器
  120. ```bash
  121. claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
  122. ```
  123. #### 2. 安装 CNKI 技能
  124. ```bash
  125. git clone https://github.com/cookjohn/cnki-skills.git
  126. cd cnki-skills
  127. cp -r skills/ agents/ .claude/
  128. ```
  129. 添加到已有项目:
  130. ```bash
  131. git clone https://github.com/cookjohn/cnki-skills.git /tmp/cnki-skills
  132. cp -r /tmp/cnki-skills/skills/ your-project/.claude/skills/
  133. cp -r /tmp/cnki-skills/agents/ your-project/.claude/agents/
  134. ```
  135. #### 3. 启动 Chrome 远程调试
  136. ```bash
  137. # Windows
  138. "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
  139. # macOS
  140. /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  141. # Linux
  142. google-chrome --remote-debugging-port=9222
  143. ```
  144. #### 4. 启动 Claude Code
  145. ```bash
  146. claude
  147. ```
  148. 技能和智能体会自动加载。输入 `/cnki-search 深度学习` 验证是否正常。
  149. ### 工作原理
  150. 所有技能通过 Chrome DevTools MCP 的 `evaluate_script` 异步执行 JavaScript,无需截图识别或 OCR。每个操作仅需 1-2 次工具调用(导航 + 执行脚本),快速且稳定。
  151. 核心设计:
  152. - **单次异步脚本** — 取代多步骤的 snapshot → click → wait_for 模式
  153. - **直接导航优于点击链接** — 知网链接会打开新标签页,直接导航避免标签页管理开销
  154. - **批量导出** — 从搜索结果页一次性导出多篇论文,无需逐篇进入详情页
  155. - **验证码感知** — 检测到腾讯滑块验证码时自动暂停,等待用户手动处理
  156. ---
  157. ## License
  158. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.