/cnki-search:cnki-searchfrom 知网检索助手 (CNKI Search)
Searches CNKI (China National Knowledge Infrastructure) for academic papers and exports references in GB/T 7714 citation format. Useful for Chinese literature retrieval and bibliography workflows.
Ships in 知网检索助手 (CNKI Search). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the local cnki Go CLI to search CNKI over HTTP, parse metadata, fetch details/references when available, and render results for reference-list workflows. This skill is for finding references, not downloading full text.
Core capability to preserve: direct citation export with --format=citation.
Check the CLI first:
cnki --version
If it is unavailable, tell the user to install the release binary or run:
go install github.com/ExquisiteCore/cnki-search/cmd/cnki@latest
The CLI needs network access to www.cnki.net, kns.cnki.net, and recsys.cnki.net. In Codex sandboxed environments, rerun blocked live CNKI commands with network approval instead of silently falling back to invented results.
cnki search flags.--format=json when you need to inspect, filter, or post-process results.--format=citation directly when the user asks for references/citations.Default command:
cnki search "<query>" --field=topic --sort=relevance --size=20 --format=json
Common examples:
cnki search "知识图谱" --size=20 --format=citation
cnki search "大语言模型" --from=2020 --to=2025 --sort=cited --size=30 --format=json
cnki search "张钹" --field=author --size=15 --format=table
| Need | Flag | Values / Notes |
|---|---|---|
| Query | positional <query> | Required; join multi-word topics with spaces |
| Field | --field | topic, keyword, title, author, abstract, fulltext, doi |
| Year range | --from, --to | YYYY |
| Type | --type | journal, master, phd, conference, newspaper, yearbook; repeatable |
| Source filter | --source | Not supported in HTTP mode; do not use unless testing the explicit error |
| Sort | --sort | relevance, date, cited, downloads |
| Count | --size | 1-500; use small values for exploratory searches |
| Output | --format | json, table, citation, markdown |
If the query is missing, ask one short clarification question. Otherwise use conservative defaults.
Only call detail/reference commands with URLs returned by cnki search; CNKI detail URLs contain session/query parameters and must not be reconstructed.
cnki detail "<paper url>" --format=json
cnki detail "<paper url>" --with-refs --format=markdown
cnki refs "<paper url>" --format=json
Detail pages may trigger CNKI security verification more often than search. If that happens, report the block and keep the search metadata/citation output rather than fabricating detail fields.
For literature lists, prefer citation output:
cnki search "<topic>" --size=20 --format=citation
For screening papers, use JSON or table and summarize:
| # | Title | Authors | Source | Year | Cited |
|---|---|---|---|---:|---:|
For JSON processing, use fields from .results[]: seq, title, url, authors, source, year, issue, cited, downloads.
cnki exit codes:
| Code | Meaning | Response |
|---|---|---|
| 0 | Success | Parse/render output |
| 1 | General HTTP/parse/network error | Report stderr and retry only if the fix is clear |
| 2 | Captcha or anti-bot challenge | Tell the user CNKI blocked the request; reduce frequency or retry later |
| 3 | No results | Relax query, year, field, or type filters |
| 4 | Invalid arguments | Correct flags and rerun |
Never present partial or invented CNKI results when the command failed.
--size=10 to --size=30 unless the user asks for more.references/cnki.net.md only when debugging CNKI HTTP behavior or anti-bot responses.When delegating or documenting a task for another Codex agent, phrase it like:
Use $cnki-search to search CNKI for papers about "<topic>", prefer cited papers from 2020-2025, and return GB/T 7714 citations.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub exquisitecore/cnki-search --plugin cnki-searchOther plugins' skills for the same job