Skip to main content
skill CX Codex

cnki-export — Claude Code skill: export CNKI papers to Zotero

Pulls citation data off a CNKI page and pushes it to Zotero or saves an RIS file. Useful when you are building a bibliography from Chinese journals.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cookjohn/cnki-skills --skill cnki-export -a claude-code
Open on GitHub

What cnki-export does

The skill drives the browser: a script on a paper detail page or a search results page calls the CNKI export API and gets citation fields in three modes at once — GBTREFER, elearning and EndNote. A Python script then parses them and hands the item to Zotero.

Pick a mode with the argument: zotero (the default), ris, or gb for a GB/T 7714 citation string. On a results page you can export in bulk, because the input.cbItem checkbox values hold the same encrypted IDs as #export-id on a detail page. No need to open each paper. With a dozen papers that is far fewer tool calls.

Zotero desktop has to be running for the push, since the script talks to localhost:23119. On Windows Chinese JSON will not survive a direct bash handoff, so the data goes through a temp file and the Python script. Items land in whichever Zotero collection is currently selected — worth checking before a batch, or the papers end up in the wrong folder.

What it helps with

  • push a CNKI paper's citation into Zotero in one step
  • save citation data as an RIS file for another reference manager
  • get a GB/T 7714 citation string
  • export several papers straight from a search results page
  • avoid Chinese encoding breakage on Windows

Example prompts for the agent

  • export this paper to zotero
  • save all checked papers as ris
  • give me the gb citation for the paper on this page

How to install cnki-export

1Skills CLI (Vercel)

npx skills add cookjohn/cnki-skills --skill cnki-export -a claude-code

2Manually: put the files in place

~/.claude/skills/cnki-export/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cnki-export/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cnki-export

How do I install cnki-export in Claude?

Run npx skills add cookjohn/cnki-skills --skill cnki-export -a claude-code. The skill lands at ~/.claude/skills/cnki-export/SKILL.md.

What does cnki-export do?

It reads citation data from a CNKI page and either pushes it to Zotero desktop, writes a .ris file, or prints a GB/T 7714 citation.

What does cnki-export need to run?

Zotero desktop must be running for the zotero mode, because the script calls localhost:23119. On Windows the export goes through a Python script to handle encoding.

Similar skills

Everything for Science and research →

From the same set4

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor