Cnki Download
Single-step tool for downloading a CNKI paper's PDF or CAJ file from a detail page or URL.
- CCM score
- 64 of 100
- skills.sh installs
- 799
- GitHub stars
- 1.1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers navigating to a paper detail URL, then checking login state and triggering the PDF or CAJ download in one async script
- Checks for a slider captcha and a not-logged-in state, returning a message asking the user to resolve each in Chrome
- Uses verified selectors such as
#pdfDown,#cajDown, and.brief h1, and strips the trailing "网络首发" from titles - Designed for downloading one specific paper per call, using one or two tool calls, and requires an existing CNKI login
Install
$ npx -y skills add cookjohn/cnki-skills --skill cnki-download -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
CNKI Paper Download (文献下载)
Prerequisites
User must be logged in to CNKI with download permissions.
Arguments
$ARGUMENTS is optionally a paper detail URL. If blank, uses current page.
Steps
1. Navigate (if URL provided)
If URL provided: use navigate_page to go to the URL directly (no wait_for needed — Step 2 handles waiting).
Important: Always use navigate_page instead of clicking links on the search results page. Clicking opens a new tab and wastes 3 extra tool calls (list_pages + select_page + take_snapshot).
2. Check status and download (single async evaluate_script)
Replace FORMAT with "pdf" or "caj":
async () => {
// Wait for page load
await new Promise((r, j) => {
let n = 0;
const c = () => {
if (document.querySelector('.brief h1')) r();
else if (++n > 30) j('timeout');
else setTimeout(c, 500);
};
c();
});
// Captcha check
const cap = document.querySelector('#tcaptcha_transform_dy');
if (cap && cap.getBoundingClientRect().top >= 0) {
return { error: 'captcha', message: 'CNKI 正在显示滑块验证码。请在 Chrome 中手动完成拼图验证。' };
}
Details
- Repository
- github.com/cookjohn/cnki-skills
- Categories
- Research & Academic, Learning & Teaching, Browser Automation & Scraping
- First seen
- Jun 3, 2026
Questions
What does the cnki-download skill do?
The cnki-download skill downloads a paper's PDF or CAJ file from CNKI (China National Knowledge Infrastructure). It uses the paper detail page URL you give, or the page already open in Chrome if no URL is given, and clicks the matching download link.
Do I need to log in to CNKI before using cnki-download?
Yes, you must be logged in to CNKI with download permissions before using this skill. If you are not logged in, the skill reports that download requires login and asks you to sign in to your CNKI account in Chrome first.
How do I install cnki-download?
Run npx -y skills add cookjohn/cnki-skills --skill cnki-download -y in your project. The skill works through Chrome DevTools MCP and Chrome with remote debugging enabled, and it needs one or two tool calls per download.
Which skills lead cnki-download in the Research & Academic category?
cnki-download sits in the Research & Academic category on Claude Marketplaces, where research, paper-context-resolver, repo-intake-and-plan, minimal-run-and-audit and env-and-assets-bootstrap are listed as the other top skills. This skill focuses narrowly on downloading one specific CNKI paper as PDF or CAJ.
More from cookjohn/cnki-skills
All 10Similar to Cnki Download
More Research & Academiccnki-journal-tocSkillcookjohn/cnki-skills367 installsBrowse CNKI journal issues, extract paper lists by year and issue, and download original TOC PDFs.
cnki-searchSkillcookjohn/cnki-skills1.2K installsSearch CNKI by keyword and return paper counts plus structured result lists via one browser script.
pdf-extractionSkillclaude-office-skills/skills9.7K installsStructured PDF extraction skill using pdfplumber for text, tables, and metadata with character-level positioning.
annas-archive-ebooksSkillratacat/claude-skills320 installsSearch and download ebooks from Anna's Archive by title, author, or format, with verification against expected titles.
Paper SearchMCP serveropenags3.2K starsSearch and download academic papers from arXiv, PubMed, bioRxiv, Semantic Scholar, and many more sources.