# cnki-export

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 412 installs · ★ 1017
- Author: cookjohn
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cookjohn/cnki-skills/tree/HEAD/skills/cnki-export/SKILL.md
- Updated: 2026-03-13
- HTML: https://affpapa.org/en/nevibecode/skills/cnki-export

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add cookjohn/cnki-skills --skill cnki-export -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/cnki-export/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/cnki-export/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add cookjohn/cnki-skills --skill cnki-export -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/cnki-export/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add cookjohn/cnki-skills --skill cnki-export -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/cnki-export/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install cookjohn/cnki-skills cnki-export
```

2. **Manually: put the files in place**
- File: `.github/skills/cnki-export/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add cookjohn/cnki-skills --skill cnki-export -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/cookjohn/cnki-skills --path skills/cnki-export
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/cnki-export/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add cookjohn/cnki-skills --skill cnki-export -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/cookjohn/cnki-skills/tree/HEAD/skills/cnki-export/SKILL.md

## When to use it
- 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
- export this paper to zotero
- save all checked papers as ris
- give me the gb citation for the paper on this page

## Similar
- [blog-notebooklm](https://affpapa.org/en/nevibecode/skills/blog-notebooklm.md) — skill · 2500 installs
- [research-ideation](https://affpapa.org/en/nevibecode/skills/galaxy-dawn-research-ideation.md) — skill · 566 installs
- [zotero-obsidian-bridge](https://affpapa.org/en/nevibecode/skills/zotero-obsidian-bridge.md) — skill · 473 installs
- [firecrawl-deep-research](https://affpapa.org/en/nevibecode/skills/firecrawl-deep-research.md) — skill · 35400 installs
- [Zotero](https://affpapa.org/en/nevibecode/skills/zotero.md) — skill · 24 installs
- [deep-research](https://affpapa.org/en/nevibecode/skills/affaan-m-deep-research.md) — skill · 5100 installs

From the same set: [cookjohn/cnki-skills](https://affpapa.org/en/nevibecode/by/cookjohn/cnki-skills.md) — 8 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
