OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add cookjohn/cnki-skills --skill cnki-download
Download a paper PDF/CAJ from CNKI. Requires user to be logged in. Use when user wants to download a specific paper.
npx skills add cookjohn/cnki-skills --skill cnki-download
User must be logged in to CNKI with download permissions.
$ARGUMENTS is optionally a paper detail URL. If blank, uses current page.
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).
Replace FORMAT with "pdf" or "caj":
Based on JS result:
status: downloading → "PDF 下载已触发:{title}。请在 Chrome 下载管理器中查看。"error: not_logged_in → tell user to log inerror: captcha → tell user to solve captcha| Element | Selector | Notes |
|---|---|---|
| PDF download | #pdfDown | <a> inside li.btn-dlpdf |
| CAJ download | #cajDown | <a> inside li.btn-dlcaj |
| Download area | .download-btns | parent <div> |
| Not logged in | .downloadlink.icon-notlogged | |
| Title | .brief h1 | strip trailing "网络首发" |
Check #tcaptcha_transform_dy element's getBoundingClientRect().top >= 0.
Only active when top >= 0 (visible). Pre-loaded SDK sits at top: -1000000px.