Skip to content

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
View on GitHub

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 -y

Installs 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 10

Similar to Cnki Download

More Research & Academic