Skip to content
Agentmart
Submit a tool

cn-literature

当用户需要检索或整理中文文献(CNKI 知网、万方、维普、超星)、把中文数据库 导出的题录文件解析成统一 PaperDocument、或把中文文献与英文检索结果合并去重 时使用。同义场景:中文文献检索、知网导出题录解析、万方检索、Refworks/EndNote 格式转换、"帮我把这份 CNKI 导出的 txt…

Skill by Hylouis233

IndexedMIT
Write a review

Chalk Labs

Need help deploying cn-literature?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hylouis233-cn-literature

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

当用户需要检索或整理中文文献(CNKI 知网、万方、维普、超星)、把中文数据库 导出的题录文件解析成统一 PaperDocument、或把中文文献与英文检索结果合并去重 时使用。同义场景:中文文献检索、知网导出题录解析、万方检索、Refworks/EndNote 格式转换、"帮我把这份 CNKI 导出的 txt 整理成文献表""中文核心期刊上关于 X 有哪些研究"。

Use cases: research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cn-literature

What's inside

Skill name
cn-literature
Description
当用户需要检索或整理中文文献(CNKI 知网、万方、维普、超星)、把中文数据库 导出的题录文件解析成统一 PaperDocument、或把中文文献与英文检索结果合并去重 时使用。同义场景:中文文献检索、知网导出题录解析、万方检索、Refworks/EndNote 格式转换、"帮我把这份 CNKI 导出的 txt 整理成文献表""中文核心期刊上关于 X 有哪些研究"。
License
MIT
Metadata
last_reviewed: 2026-08-18
Instructions
165 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • parse_refworks.py · scripts/
  • wanfang_search.py · scripts/

SKILL.md (first lines)

# cn-literature:中文文献检索与题录整理工作流

## 目的

把中文文献纳入与英文文献同一套 PaperDocument 产物体系。核心设计原则是
**诚实设计**:各中文数据库的能力边界差异很大,本技能对每个来源如实说明
"能做什么、不能做什么",不假装有接口、不绕过平台限制。

各来源能力边界(必须先读再执行):

- **CNKI(知网)**:无公开 API。本技能**不绕过验证码、不批量抓取**。
  推荐工作流是"人工检索 + 题录导出 + 脚本解析":用户在 CNKI 官网检索,
  导出 Refworks 或 EndNote 格式题录文件,再用
  `scripts/parse_refworks.py` 解析为 PaperDocument。
- **万方**:有官方开放平台(`api.wanfangdata.com.cn`,按点计费)。
  已配置 `WANFANG_TOKEN` 环境变量时,可用
  `scripts/wanfang_search.py` 直接检索;未配置时走与 CNKI 相同的
  人工导出流程。
- **维普 / 超星**:无可用接口,请用户人工检索后把题录粘贴到会话中,
  由你手工整理为 PaperDocument。

## 前置检查

1. 网络可用与否决定不了 CNKI 流程(其核心是本地解析),但万方直接
   检索需要网络;离线时只做解析类工作。
2. 明确用户手里有什么:是"还没检索"(→ 引导官网检索)、"已有导出
   文件"(→ 解析)、还是"已粘贴题录"(→ 手工整理)。
3. 检查 `scripts/parse_refworks.py` 与 `scripts/wanfang_search.py`
   存在;`python` 可用。
4. 计算 slug:检索主题规范化(Unicode NFKC 规范化、转小写、去首尾空白、
   连续空白折叠为单个空格)后取 sha1 十六进制摘要前 8 位。

## 操作规程

### 1. 按来源选择工作流

| 来源 | 工作流 | 说明 |
| --- | --- | --- |
| CNKI | 人工检索 → 导出题录 → `parse_refworks.py` | 无公开 API,禁止绕过验证码与批量抓取 |
| 万方(已配 WANFANG_TOKEN) | `wanfang_search.py` 直接检索 | 官方开放平台,按点计费 |
| 万方(未配置 token) | 同 CNKI 人工导出流程 | 先告知配置方法,由用户选择 |
| 维普 / 超星 | 人工检索 → 粘贴题录 → 手工整理 | 无接口 |

### 2. CNKI 人工导出引导(未检索时给用户的话术要点)

1. 在 CNKI 官网用检索主题完成检索并勾选目标文献;
2. 选择"导出与分析"→ 导出格式选 **Refworks**(次选 EndNote);
3. 保存为 UTF-8 编码的 `.txt` 文件,放到工作区;
4. 把文件路径交给本技能。

如实告知:CNKI 导出的题录是**仅元数据**(metadata-only),不含全文;
全文需用户凭机构权限自行下载,本技能不代为获取。

### 3. 解析题录文件

```bash
python scripts/parse_refworks.py --input <题录.txt> --format json --origin CNKI
```

- `--origin` 填来源名(CNKI / 万方 / 维普 / 超星),写入每条的 `source`
  字段,供下游按 guardrail 第 1 条标注 `[CNKI]`、`[万方]`。
- 脚本容错:未知标签跳过、缺字段留 null;解析结果逐条检查 title 是否
  为空,空 title 的条目挑出来交用户核对,不静默丢弃。
- EndNote 格式(%0/%T/%A 标签)与 Refworks 格式(RT/T1/A1 标签)结构
  类似;本脚本按 Refworks 标签解析,EndNote 导出文件请用户重新导出为
  Refworks,或由你手工整理。

### 4. 万方直接检索(仅已配置 token 时)

```bash
python scripts/wanfang_search.py --query "<检索主题>" --limit 20 --format json
```

- token 从环境变量 `WANFANG_TOKEN` 读取;未配置时脚本输出
  `{"error": {"type": "auth_missing", ...}}`,此时回到人工导出流程,
  并把配置指引转告用户。
- 接口字段以万方开放平台官方文档为准;上游变更时脚本输出
  `upstream_changed` 错误,如实转告用户,不自行猜字段修补结果。

### 5. 统一 PaperDocument 与标注规则

- 全部来源统一为:
  `{id, title, authors, year, venue, doi, url, abstract, source, retrieved_at}`
  (`source` 为字符串数组)。
- `source` 字段记录来源列表(如 `["CNKI"]`、`["万方"]`);写入任何
  产物时按 science-core guardrail 第 1 条在同句标注 `[CNKI]` / `[万方]`。
- 仅有元数据、无全文/无摘要的条目,在落盘 JSON 之外给用户的汇总中
  明确标注 **metadata-only**,下游 literature-survey 引用时不得把
  metadata-only 条目当作"已读原文"。
- 中文文献常缺 DOI:id 用 `来源:sha1(标题+首作者)前8位` 形式生成,
  保证同批去重稳定。

### 6. 与英文检索结果合并(可选)

- 若同主题已有 literature-search 的 `papers.json`,按同一去重规则合并:
  ① DOI(统一小写、去 `https://doi.org/` 前缀);② 标题模糊匹配
  (小写、去标点、折叠空白)。
- 中英文重复条目(同一工作的不同语言版本)一般不算重复,保留两条并
  在 manifest 注明疑似同工作对,交用户判断。

### 7. 落盘

目录 `output/cn-literature/<slug>/latest/`:

- `papers.json`:PaperDocument 数组;
- `manifest.json`:主题、来源与各自条数、工作流类型(parse / api /
  manual)、metadata-only 条数、errors、执行时间。

## 输出模板

### papers.json

```json
[
  {
    "id": "CNKI:a1b2c3d4",
    "title": "钠离子电池层状氧化物正极材料研究进展",
    "authors": ["张三", "李四"],
    "year": 2023,

From Hylouis233/workbuddy-skills, MIT.

More from Hylouis233/workbuddy-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 23, 2026 (7 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Hylouis233

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get cn-literature running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying cn-literature?

CallGet help
Cite this page

cn-literature skill. Agent Mart. https://agentmart.dev/skills/hylouis233-cn-literature (last updated 2026-10-24)