cnki-navigate-pages

Navigate CNKI search result pages and change sort order via browser evaluate_script.

2|Updated Aug 15, 2026
One-click install
npx skills add https://github.com/Jensen-Yao/agents-skills --skill cnki-navigate-pages-jensen-yao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cnki-navigate-pages
Source: https://github.com/Jensen-Yao/agents-skills/tree/main/skills/cnki-navigate-pages
Command: npx skills add https://github.com/Jensen-Yao/agents-skills --skill cnki-navigate-pages-jensen-yao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When browsing CNKI (China National Knowledge Infrastructure) search results through a browser automation agent, moving between pages or changing the sort order normally requires multiple snapshot and click steps. This Skill performs pagination and sorting in a single evaluate_script call, with built-in captcha detection and page-change waiting. ## Core Features & Use Cases - Pagination: Jump to the next page, previous page, or a specific page number on CNKI search results. - Sorting: Reorder results by relevance, publication date, citations, downloads, or comprehensive score using verified DOM selectors. - Captcha Detection: Detects the Tencent captcha overlay (#tcaptcha_transform_dy) before and after navigation and returns a structured error instead of failing silently. - Use Case: While reviewing literature on CNKI, ask the agent to sort the current results by citations and then move to page 3, receiving the new page marker, total result count, and URL in one response. ## Quick Start Use the cnki-navigate-pages skill to sort the current CNKI results by citations and go to the next page.

Frequently Asked Questions about cnki-navigate-pages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I go to the next page of CNKI search results with a browser agent?▼

Run a single evaluate_script that finds the link with text 下一页 inside .pages a and clicks it, then polls .countPageMark until the page marker changes. The script returns the new page number, total results, and current URL.

How to sort CNKI search results by citations or date?▼

Click the corresponding element in #orderList li: li#CF for citations, li#PT for publication date, li#DFR for downloads, li#FFD for relevance, or li#ZH for comprehensive. Sorting resets the results to page 1, so wait for the page marker to refresh.

Does CNKI pagination require multiple browser tool calls?▼

No. Both pagination and sorting are implemented as one async evaluate_script call each, with no separate snapshot or wait_for steps. The script internally waits for the page counter to change before returning.

Why does CNKI navigation return a captcha error?▼

CNKI shows a Tencent captcha overlay (#tcaptcha_transform_dy) when it detects automated traffic. The script checks whether the element's bounding rect top is at least 0, meaning visible, and returns { error: 'captcha' } so a human can solve it before retrying.

What happens when the requested CNKI page number does not exist?▼

The script returns { error: 'page_not_found' } along with the list of available page link labels. Similarly, missing next or previous links return no_next_page or no_previous_page errors instead of throwing.