cnki-export

Export CNKI paper citations to Zotero, RIS files, or GB/T 7714 format.

850|114|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/wentorai/Research-Claw --skill cnki-export
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cnki-export
Source: https://github.com/wentorai/Research-Claw/tree/main/skills/cnki-export
Command: npx skills add https://github.com/wentorai/Research-Claw --skill cnki-export

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Saving papers from CNKI (China National Knowledge Infrastructure) into a reference manager normally requires manual clicking through export dialogs for each paper. This Skill automates citation extraction from CNKI detail and search results pages and pushes entries directly into Zotero, including batch export of entire result pages.

Core Features & Use Cases

  • Single and Batch Export: Extract citation data from a CNKI paper detail page, or batch-export all (or selected) papers from a search results page via the CNKI export API without visiting each detail page.
  • Direct Zotero Integration: Push parsed citations to the Zotero desktop app through its local Connector API (localhost:23119), with idempotent session handling and optional PDF attachment upload.
  • Multiple Output Formats: Produce GB/T 7714 citation text, EndNote/RIS data, or structured Zotero items with authors, keywords, ISSN, and abstracts.
  • Use Case: After running a CNKI search that returns 9 relevant papers, batch-export all of them to your currently selected Zotero collection in a single operation instead of opening nine detail pages.

Quick Start

Ask the agent to export the papers on the current CNKI search results page to Zotero using the cnki-export skill.

Frequently Asked Questions about cnki-export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export citations from CNKI to Zotero?

Run the export JavaScript on a CNKI detail or search results page to call the CNKI export API, then pass the JSON output to the push_to_zotero.py script. The script parses the ELEARNING format and saves items through Zotero's local Connector API at localhost:23119.

How do I batch export multiple papers from CNKI search results?

On a CNKI search results page, the export script reads the input.cbItem checkbox values, which equal the encrypted export IDs, and calls the export API for each paper in one pass. This avoids navigating to individual detail pages and reduces tool calls by roughly 90 percent.

Does CNKI export to Zotero require the Zotero desktop app?

Yes, Zotero desktop must be running because the script communicates with its local Connector API at 127.0.0.1:23119. If Zotero is not running, the script returns a connection error and exits.

Why does pushing Chinese citations to Zotero fail on Windows?

Passing Chinese JSON through bash or curl directly causes encoding corruption on Windows. The skill requires routing data through the Python script with UTF-8 file input to preserve Chinese author names and titles.

What happens if I save the same CNKI papers to Zotero twice?

The script generates a deterministic session ID from a hash of the paper titles, so a duplicate save returns HTTP 409 from Zotero. This is treated as an idempotent success rather than creating duplicate entries.