Cnki

v1.0.0

中国知网 (CNKI) 统一入口 - 搜索、下载、导出、详情查询一体化技能

0· 125·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for jirboy/cnki.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Cnki" (jirboy/cnki) from ClawHub.
Skill page: https://clawhub.ai/jirboy/cnki
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install cnki

ClawHub CLI

Package manager switcher

npx clawhub@latest install cnki
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (CNKI search/download/export/detail) matches the instructions: navigate CNKI pages, extract metadata, handle downloads and export to Zotero. Required capabilities (browser automation, page JS evaluation) are appropriate for the stated purpose.
Instruction Scope
SKILL.md limits actions to navigating kns.cnki.net, detecting visible captchas, extracting metadata, clicking download links, and exporting citations. It explicitly requires manual captcha solving and a logged-in browser for downloads. One minor ambiguity: the completion report references a 'bash → 推送到 Zotero' step but SKILL.md doesn't detail how Zotero pushing is implemented (browser connector, zotero-cli, or local script). This is an implementation detail to confirm before trusting automated exports.
Install Mechanism
Instruction-only skill with no install spec and no code files to write or execute on disk. Low install risk.
Credentials
The skill requests no environment variables or credentials. However, it requires control of a Chrome session (Chrome + DevTools / CDP) and relies on the user's logged-in browser session for downloads — so the real 'credentials' are the browser session state (cookies). Users should be aware the skill operates within their browser context and will see pages and any logged-in session data.
Persistence & Privilege
No always:true, no install changes, and no requests to modify other skills or system-wide configs. The skill is user-invocable and can be called by the agent when allowed — this is expected behavior.
Assessment
This skill appears coherent for automating CNKI browsing, extraction, downloading, and exporting. It does not request API keys or other secrets, but it requires use of your Chrome/DevTools session and relies on whatever account you are signed into in that browser. Before installing/use: (1) verify how Zotero export is implemented (browser connector, local CLI, or custom script) and avoid exposing sensitive accounts to unknown automation; (2) use an account with only necessary permissions or log out of unrelated services in that browser; (3) be prepared to manually solve captchas as the skill indicates; (4) note the skill author/source is unknown and there is no homepage — treat it as community-contributed and test with non-sensitive data first. If you need stricter assurance, ask the maintainer for exact details of the Zotero push step and for a provenance/homepage link.

Like a lobster shell, security has layers — review code before you run it.

latestvk97702x1cx77vw1q2y8pyzp1ed84zh8h
125downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

CNKI 统一入口技能

版本: 1.0.0
整合自: cnki-search, cnki-advanced-search, cnki-paper-detail, cnki-download, cnki-export, cnki-journal-search, cnki-journal-toc, cnki-parse-results


🎯 功能概览

命令功能原技能
search基础搜索cnki-search
advsearch高级搜索(作者/期刊/年份/SCI/EI 等)cnki-advanced-search
detail获取论文详情cnki-paper-detail
download下载 PDF/CAJcnki-download
export导出到 Zotero 或 RIScnki-export
journal期刊搜索cnki-journal-search
toc期刊目录cnki-journal-toc

📖 使用方式

1️⃣ 基础搜索

search [关键词]
search 振动控制
search 实时混合试验 RTHS

2️⃣ 高级搜索

advsearch [自然语言描述条件]
advsearch 作者 张三 期刊 建筑结构学报 2020-2025
advsearch 主题 振动控制 来源类别 SCI,EI

3️⃣ 论文详情

detail [URL]
detail https://kns.cnki.net/kcms2/article/abstract?xxx

(如已在论文详情页,可省略 URL)

4️⃣ 下载论文

download pdf [URL]
download caj [URL]

(如已在论文详情页,可省略 URL)

5️⃣ 导出文献

export zotero [URL]     # 导出到 Zotero(默认)
export ris [URL]        # 保存为 RIS 文件
export gb [URL]         # 输出 GB/T 7714 格式引用

6️⃣ 期刊相关

journal [期刊名]        # 搜索期刊
toc [期刊名] [年份]     # 查看期刊目录

🛠️ 工作流程

search 命令流程

1. 导航到搜索页 (kns.cnki.net/kns8s/search)
2. 填入关键词并搜索
3. 提取结果(标题/作者/期刊/日期/引用/下载)
4. 返回结构化结果

advsearch 命令流程

1. 导航到高级搜索页 (kns.cnki.net/kns/AdvSearch)
2. 解析自然语言条件 → 填充表单字段
   - 主题/篇名/关键词
   - 作者/期刊
   - 年份范围
   - 来源类别 (SCI/EI/北大核心/CSSCI/CSCD)
3. 执行搜索并返回结果

detail 命令流程

1. 导航到论文页(如提供 URL)
2. 检查验证码(滑块拼图)
3. 提取完整元数据:
   - 标题/作者/单位
   - 摘要/关键词
   - 基金/分类号
   - DOI/URL

download 命令流程

1. 导航到论文页(如提供 URL)
2. 检查登录状态和验证码
3. 点击下载链接(PDF 或 CAJ)
4. 确认下载开始

export 命令流程

1. 检查当前页面类型(详情页/列表页)
2. 单篇模式:从详情页提取引用数据
3. 批量模式:从列表页批量导出
4. 推送到 Zotero 或保存 RIS 文件

⚠️ 注意事项

验证码处理

  • 滑块拼图: 需手动在 Chrome 中完成
  • 检测逻辑: 仅检查可见验证码(排除隐藏的 SDK 验证)
  • 提示: 发现验证码时立即通知用户

登录要求

  • 下载: 必须登录 CNKI 且有下载权限
  • 导出: 部分功能需要登录
  • 搜索: 无需登录

浏览器要求

  • 必须: Chrome + chrome-devtools MCP
  • 推荐: 保持登录状态

📊 效率优化

工具调用次数对比

场景原多技能统一入口节省
搜索 + 详情2 次调用1 次调用50%
搜索 + 下载3 次调用2 次调用33%
搜索 + 导出3 次调用2 次调用33%
批量导出N×3 次N+1 次~66%

批量导出优化

原流程: 每篇论文单独导航 → 3 次调用 × N 篇
新流程: 列表页直接批量导出 → 2 次调用总计


🔧 技术实现

核心 JavaScript 函数

所有浏览器操作通过单个 evaluate_script 完成,避免多次 wait_for

async () => {
  // 1. 等待页面加载(轮询检测)
  await new Promise((r, j) => {
    let n = 0;
    const c = () => {
      if (document.querySelector('目标选择器')) r();
      else if (++n > 30) j('timeout');
      else setTimeout(c, 500);
    };
    c();
  });

  // 2. 检查验证码(仅可见区域)
  const captcha = document.querySelector('#tcaptcha_transform_dy');
  if (captcha && captcha.getBoundingClientRect().top >= 0) {
    return { error: 'captcha', message: '需要手动完成验证' };
  }

  // 3. 执行操作并返回结果
  // ...
}

统一错误处理

return {
  success: true/false,
  data: { ... },
  error: '错误类型',
  message: '用户友好提示',
  nextStep: '建议下一步操作'
}

📋 示例对话

示例 1:搜索文献

用户:search 振动台控制
CNKI:搜索完成,找到 1,234 条结果(第 1/50 页)

1. 地震模拟振动台控制系统的研究进展
   作者:张三,李四 | 期刊:建筑结构学报 | 2024
   引用:45 | 下载:1,234

2. 基于 RTHS 的混合试验方法
   作者:王五 | 期刊:土木工程学报 | 2023
   引用:32 | 下载:876

需要查看详情、下载或导出吗?

示例 2:高级搜索

用户:advsearch 主题 振动控制 作者 纪志斌 期刊 建筑结构学报 2020-2025
CNKI:高级搜索完成,找到 8 条结果

[结果列表]

符合条件的论文较少,是否扩大搜索范围?

示例 3:下载论文

用户:download pdf https://kns.cnki.net/kcms2/article/abstract?xxx
CNKI:开始下载 PDF...

✅ 下载已开始,请检查浏览器下载文件夹

需要导出到 Zotero 吗?

示例 4:批量导出

用户:export zotero
CNKI:检测到当前在搜索结果页(10 篇论文)

选项:
1. 导出全部 10 篇
2. 导出选中的(请勾选)
3. 导出前 N 篇(指定 N)

请选择 → 用户:1
CNKI:正在推送到 Zotero...

✅ 成功导出 10 篇到 Zotero 桌面版

🚀 后续扩展

计划功能

  • 批量下载(需登录验证)
  • 引文网络分析
  • 学者主页查询
  • 机构知识库搜索
  • 跨库检索(期刊/学位/会议/专利)

性能优化

  • 结果缓存(减少重复搜索)
  • 分页预加载
  • 并发提取详情

整合时间:2026-04-08
整合者:SuperMike
原技能保留:是(向后兼容)

Comments

Loading comments...