cnki-navigate-pages — Claude Code skill: paging CNKI results
Pages through CNKI search results and switches the sort order to date, citations or downloads. Handy once you have read past the first page of hits.
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a claude-codeWhat cnki-navigate-pages does
The skill takes a single argument and performs one action per call. For paging that is next, previous or page N; for sorting it is sort by date, sort by citations, sort by downloads, sort by relevance or sort by comprehensive. Everything runs through one async evaluate_script — no page snapshot, no wait step.
The script collects the links in .pages a, clicks the one you asked for and polls .countPageMark until the counter changes. Sorting works differently: it clicks an entry in #orderList by a fixed id — li#FFD for relevance, li#PT for date, li#CF for citations, li#DFR for downloads, li#ZH for comprehensive. The result list then resets to page one.
Before each action it checks for a captcha via the #tcaptcha_transform_dy element. If that element is visible, the call returns a captcha error and nothing gets clicked, so a triggered challenge stops the paging until you clear it yourself. A missing page number or sort option comes back as an error listing what was actually available.
What it helps with
- move past the first page of CNKI results
- go back to the previous page of hits
- jump straight to a specific result page
- re-sort results by publication date
- rank papers by citation or download count
Example prompts for the agent
- go to the next page of CNKI results
- open page 3 of the results
- sort the results by citations
How to install cnki-navigate-pages
1Skills CLI (Vercel)
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a claude-code2Manually: put the files in place
~/.claude/skills/cnki-navigate-pages/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cnki-navigate-pages/
1Skills CLI (Vercel)
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a codex2Manually: put the files in place
.agents/skills/cnki-navigate-pages/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a cursor2Manually: put the files in place
.cursor/skills/cnki-navigate-pages/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cookjohn/cnki-skills cnki-navigate-pages2Manually: put the files in place
.github/skills/cnki-navigate-pages/SKILL.md1Skills CLI (Vercel)
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a gemini-cli2Platform CLI
gemini skills install https://github.com/cookjohn/cnki-skills --path skills/cnki-navigate-pagesManually: put the files in place
.devin/skills/cnki-navigate-pages/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cnki-navigate-pages
How do I install cnki-navigate-pages in Claude?
Run npx skills add cookjohn/cnki-skills --skill cnki-navigate-pages -a claude-code. The skill lands in ~/.claude/skills/cnki-navigate-pages/SKILL.md.
What does cnki-navigate-pages do?
It moves through CNKI search result pages — next, previous or a given number — and changes the sort order of the results. One call, one action.
What happens if CNKI shows a captcha?
The skill inspects the #tcaptcha_transform_dy element and returns a captcha error instead of clicking when it is visible. Paging stops until you deal with the challenge.