MCPInstall

cnki-journal-toc

Browse journal issues, view table of contents, and download original TOC PDF from CNKI. Use when user wants to see papers in a specific journal issue or download the original cover/TOC pages.

Installs
331
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/cookjohn/cnki-skills --skill cnki-journal-toc
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads cnki-journal-toc automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

CNKI Journal Table of Contents (期刊目录浏览 + 原版目录下载)

Browse journal issues, extract the paper list, and optionally open/download the original TOC PDF (封面+目录扫描版).

Arguments

$ARGUMENTS describes what to browse:

  • {journal name} — which journal
  • {year} (optional) — which year, defaults to latest
  • {issue} (optional) — which issue number
  • download (optional) — if included, download the original TOC PDF

Examples:

  • 计算机学报 2026 01期 — browse 2026 issue 1
  • 计算机学报 2026 01期 download — download original TOC PDF
  • 计算机学报 — shows latest (网络首发)

Steps

1. Navigate to journal detail page

If not already on a journal detail page (navi.cnki.net/knavi/detail):

  • Use cnki-journal-search to find the journal
  • Use mcp__chrome-devtools__list_pages + mcp__chrome-devtools__select_page to switch to the journal detail tab (opens in new tab)

2. Select issue + extract papers (single async evaluate_script)

Replace YEAR and ISSUE with actual values (e.g., "2025", "No.01"). The "刊期浏览" tab is the default active view — no need to click it.

async () => {
  const year = "YEAR";
  const issue = "ISSUE"; // Format: "No.01", "No.12", etc.

  const dls = document.querySelectorAll('#yearissue0 dl.s-dataList');
  let target = null;
  for (const dl of dls) {
    if (dl.querySelector('dt')?.innerText?.trim() === year) {
      target = Array.from(dl.querySelectorAll('dd a')).find(a => a.innerText.trim() === issue);
      break;
    }
  }
  if (!target) {
    // Return available years and issues for the requested year
    const available = Array.from(dls).map(dl => ({
      year: dl.querySelector('dt')?.innerText?.trim(),
      issues: Array.from(dl.querySelectorAll('dd a')).map(a => a.innerText.trim())
    })).filter(y => y.year);
    return { error: 'issue_not_found', year, issue, available: available.slice(0, 5) };
  }

  target.click();

  // Wait for paper list to load
  await new Promise((r, j) => {
    let n = 0;
    const c = () => {
      const rows = document.querySelectorAll('#CataLogContent dd.row');
      if (rows.length > 0) r();
      else if (++n > 30) j('timeout');
      else setTimeout(c, 500);
    };
    setTimeout(c, 1000);
  });

  // Extract papers
  const rows = document.querySelectorAll('#CataLogContent dd.row');
  const papers = Array.from(rows).map((dd, i) => ({
    no: i + 1,
    title: dd.querySelector('span.name a')?.innerText?.trim(),
    authors: dd.querySelector('span.author')?.innerText?.trim()?.replace(/;$/, ''),
    pages: dd.querySelector('span.company')?.innerText?.trim()
  }));

  // Get 原版目录 URL
  const tocBtn = document.querySelector('a.btn-preview:not(.btn-back)');

  return {
    issueLabel: document.querySelector('span.date-list')?.innerText?.trim(),
    paperCount: papers.length,
    papers,
    tocUrl: tocBtn?.href || null,
    url: location.href
  };
}

3. Present results

## {journal_name} — {issueLabel}

共 {paperCount} 篇论文:

1. {title}  [pp. {pages}]
   作者:{authors}

2. {title}  [pp. {pages}]
   作者:{authors}
...

4. Download original TOC PDF (if requested)

If user requested download, or asks for "原版目录":

Method A — Click "原版目录浏览" to open reader, then download:

  1. Find the link with text "原版目录浏览" in the snapshot (class btn-preview)
  2. Click it — this opens a new tab with the reader page (kns.cnki.net/reader/report)
  3. Use mcp__chrome-devtools__list_pages to find the new reader tab
  4. Use mcp__chrome-devtools__select_page to switch to it
  5. Use mcp__chrome-devtools__wait_for with text ["下载"]
  6. Take snapshot — find the link with text "下载" (the download button in the reader toolbar)
  7. Click the download link — triggers PDF download via Chrome

Method B — Direct download from reader page:

If already on a reader page (kns.cnki.net/reader/report):

  1. Take snapshot
  2. Find link with text "下载"
  3. Click it

After clicking, inform the user:

原版目录 PDF 下载已触发,请在 Chrome 下载管理器中查看。

Tool calls

  • Browse issue: 1 (evaluate_script only) — after navigating to journal page
  • Download TOC: requires snapshot + click + tab switching (new tab)

Verified selectors

Journal Detail — 刊期浏览

ElementSelectorNotes
刊期浏览 taba text "刊期浏览"default active (li.on.cur), no need to click
Year area#yearissue0 / .yearissuepage
Year groupsdl.s-dataListinside #yearissue0
Year labeldl.s-dataList dttext "2026", "2025" etc.
Issue linksdl.s-dataList dd atext "No.01", "No.12" etc.
Issue labelspan.date-listtext "2025年01期"
Paper container#CataLogContent
Paper entries#CataLogContent dd.row
Paper titledd.row span.name ahref to kcms2/article/abstract
Paper authorsdd.row span.authorsemicolon-separated
Paper page rangedd.row span.companyclass is "company" but holds page range
Paper IDdd.row b[name="encrypt"]id like "JSJX202512001"
原版目录浏览a.btn-preview:not(.btn-back)href to bar.cnki.net/bar/download/order
返回a.btn-preview.btn-back

Reader Page (kns.cnki.net/reader/report)

ElementPattern
Page titleRootWebArea "期刊原版目录"
Download buttonlink text "下载", URL to bar.cnki.net/bar/download/order
Current pagetextbox value (page number)
Total pagesStaticText (e.g., "4")
Navigationgeneric description "上一页" / "下一页"

Important Notes

  • "原版目录浏览" only appears when a specific issue is selected (not for 网络首发 view).
  • The reader page opens in a new tab.
  • The download link in the reader requires login. If download fails, remind user to log in.
  • The download URL is session-specific — do not cache or reuse.

FAQ

What does the cnki-journal-toc skill do?

Browse journal issues, view table of contents, and download original TOC PDF from CNKI. Use when user wants to see papers in a specific journal issue or download the original cover/TOC pages.

How do I install cnki-journal-toc?

Run npx skills add https://github.com/cookjohn/cnki-skills --skill cnki-journal-toc in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/cnki-journal-toc/ (personal) or .claude/skills/cnki-journal-toc/ (project).

Which AI agents can use cnki-journal-toc?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is cnki-journal-toc safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains cnki-journal-toc?

It is published by cookjohn in cookjohn/cnki-skills. It has 331 recorded installs.

More from cookjohn/cnki-skills

View all →

cnki-search

cookjohn/cnki-skills

Search CNKI (中国知网) for papers by keyword. Use when the user wants to find academic papers on a topic.

Education & Science1.1K installs

cnki-download

cookjohn/cnki-skills

Download a paper PDF/CAJ from CNKI. Requires user to be logged in. Use when user wants to download a specific paper.

cnki-advanced-search

cookjohn/cnki-skills

Perform advanced search on CNKI with field filters like author, title, journal, date range, source category (SCI/EI/CSSCI/北大核心). Use when user needs precise filtered search beyond simple keywords.

737 installs

cnki-paper-detail

cookjohn/cnki-skills

Extract full paper details from a CNKI paper page including title, authors, affiliations, abstract, keywords, fund, classification. Use when the user needs detailed information about a specific paper.

cnki-journal-search

cookjohn/cnki-skills

Search for journals/publications on CNKI by name, ISSN, CN, or sponsor. Use when the user wants to find a specific journal or browse publications.

578 installs

cnki-journal-index

cookjohn/cnki-skills

Query journal indexing/inclusion status on CNKI - check which databases include a journal (北大核心, CSSCI, CSCD, SCI, EI, etc.), get impact factors and evaluation data. Use when user asks about a journal's level, indexing, or ranking.

530 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs