cnki-trend

Crawl CNKI getGroupData for a specified keyword, keep only non-empty group results, and produce a trend analysis report. The report includes charts and emphasizes current-year trends, recent annual momentum, topic concentration, discipline and journal concentration, author and institution distributions, and funding signals. Use when the user requests a CNKI keyword trend report or to fetch CNKI data before interpretation.

Last repository push
GitHub Stars
193
Forks
15
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cnki-trend" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-71002fa4c7d224bd4da0d06cfae0747f816b882540fb90c17d0c7f7057513f4a. Verify the upstream source and version against https://github.com/Drchronx/ai-agent-research-starter-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Crawl CNKI getGroupData for a specified keyword, keep only non-empty group results, and produce a trend analysis report. The report includes charts and emphasizes current-year trends, recent annual momentum, topic concentration, discipline and journal concentration, author and institution distributions, and funding signals. Use when the user requests a CNKI keyword trend report or to fetch CNKI data before interpretation.

0 Downloads

Introduction source: third_party · Drchronx · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: cnki-trend
description: Crawl CNKI `getGroupData` for a specific keyword, keep only non-empty group results, and generate a trend-analysis report with charts focused on the current year, recent yearly momentum, topic concentration, subject and journal concentration, author and institution distribution, and fund signals. Use when the user asks for a CNKI keyword trend report, a 知网关键词趋势分析, a 年度趋势汇报, or wants CNKI data fetched first and then interpreted.

CNKI Keyword Trend Report

Use this skill from /root/.openclaw/workspace-hotspot/skills/cnki-trend.

Workflow

  1. Install the local dependencies if needed:
python -m pip install -r scripts/requirements.txt
  1. Run the report script:
python scripts/cnki_keyword_trend_report.py "耐心资本" --print-report

Cookie 自动获取:脚本默认会自动调用 generate_client_id() 动态获取 Ecp_ClientId,无需手动配置。

  1. Read the generated files in reports/:
  • <keyword>_valid_groups.json
  • <keyword>_trend_report.md
  • charts/*.png
  1. Use only the valid groups in follow-up analysis. Ignore groups with empty responses.

Behavior

  • Cookie 管理(v2.0 新增):

    • 默认自动调用 generate_client_id() 动态获取 Ecp_ClientId(与 cnki-crawler 一致的方法)
    • 支持通过 --ecp-client-id 参数或 CNKI_ECP_CLIENT_ID 环境变量手动指定
    • 自动获取失败时回退到内置默认值
  • The script hits CNKI kvisual8/article/getGroupData.

  • It tests the known candidate groups, drops empty responses, and keeps unique (groupName, groupCode) pairs only.

  • It writes raw valid-group data to JSON for traceability.

  • It writes a Markdown report that interprets:

    • yearly distribution, peak year, recent-three-year share, and current-year YTD caveat
    • major and secondary topic concentration
    • subject concentration
    • journal concentration
    • author and institution dispersion
    • fund support signals
  • It renders chart images in reports/charts/ and prefers Chinese-capable fonts such as Microsoft YaHei or SimHei.

Parameters

  • Cookie 自动获取(默认行为):

    # 不传 --ecp-client-id 时,脚本自动调用 generate_client_id() 获取
    python scripts/cnki_keyword_trend_report.py "耐心资本" --print-report
  • 手动指定 Cookie(可选):

    # 方式 1:命令行参数
    python scripts/cnki_keyword_trend_report.py "耐心资本" --ecp-client-id "<your-client-id>"
    
    # 方式 2:环境变量(优先级高于自动获取)
    $env:CNKI_ECP_CLIENT_ID="<your-client-id>"
    python scripts/cnki_keyword_trend_report.py "耐心资本"
  • Change output directory:

    python scripts/cnki_keyword_trend_report.py "耐心资本" --output-dir "reports/cnki"

Interpretation Rules

  • Treat current-year counts as year-to-date values unless the year is complete.
  • Do not assume sum(y) equals unique paper count for topic, subject, author, institution, or fund groups. One paper can contribute to multiple buckets.
  • If the journal group collapses to a single source, call out that the sample may be too narrow for whole-CNKI conclusions.
  • Prefer trend wording such as “集中”“扩散”“头部明显”“分散” over hard causal claims.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供知网关键词趋势分析报告,满足学术研究需求
  • 支持多维度分析(年度趋势、主题集中度、作者机构分布等)
  • 自动生成图表增强可读性
Trigger Precision85/100

Highlights

  • 触发词覆盖中英文常见表述
  • 边界清晰,不易误触
Structure and Standards88/100

Highlights

  • 文档结构完整,流程清晰
  • 参数说明详细,含多种使用方式
  • 解释规则明确,避免误导性结论
Execution Reliability65/100

Areas to improve

  • 重要异常处理缺失 Reported severity: Major

    未明确说明网络异常、API 限流、数据解析失败等主要错误的处理机制

    Recommendation: 建议在脚本中添加 try-catch 块处理网络请求异常,增加重试逻辑,并在文档中说明常见错误应对策略

Highlights

  • Cookie 管理完善,支持自动获取和手动指定
  • 具备回退机制提升鲁棒性
Evidence Verifiability (mean of the first four)78/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 15

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.