← Back to Skills Marketplace
yingjie-zhang-dev

国家统计局数据采集

by Jackie Zhang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
103
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install nbs-data-collection
Description
国家统计局数据采集技能。当用户需要采集国家统计局(NBS)的宏观经济数据(如GDP、CPI、PPI、产出缺口等)时触发。适用场景包括:(1)采集GDP、CPI、PPI等指标;(2)从国家统计局官网/统计年鉴获取数据;(3)计算产出缺口(HP滤波);(4)整理数据到Excel。本skill包含标准工作流程、数据源U...
Usage Guidance
This skill is generally coherent with its stated purpose, but review and take precautions before running: - Inspect any Excel files you provide: verify_links.py will extract hyperlinks and run curl against each URL. Do not give it spreadsheets containing internal/private URLs (this could cause unwanted internal network probes). - Run the scripts in an isolated environment (sandbox, VM, or container) if you are unsure about network/host exposure. - Ensure required runtime dependencies are present: Python 3.10+, openpyxl, numpy (and optionally scipy if you add it), and the curl binary. The skill does not install these automatically. - Note some crawler functions are placeholders (TODO) and return null values; verify that nbs_crawler actually retrieves data for your target timeframe before relying on outputs. - If you need stricter behavior, consider modifying verify_links.py to whitelist domains (e.g., stats.gov.cn, data.stats.gov.cn) rather than checking all links, or add an option to skip network checks. If you want, I can: (1) list exact commands to create an isolated environment and install dependencies, (2) show the minimal code change to make verify_links.py domain-whitelist-only, or (3) walk through the crawler functions and point out where to implement real API calls.
Capability Analysis
Type: OpenClaw Skill Name: nbs-data-collection Version: 1.0.0 The nbs-data-collection skill bundle is a legitimate and well-structured tool designed for macro-economic research. It provides a comprehensive workflow for collecting GDP, CPI, and PPI data from the National Bureau of Statistics of China (stats.gov.cn). The included Python scripts perform specialized tasks such as Hodrick-Prescott (HP) filtering for output gap calculation (scripts/hp_filter.py), Excel report generation with automated charting (scripts/add_charts.py), and link validation (scripts/verify_links.py). While verify_links.py utilizes subprocess to execute curl for HTTP status checks, it follows best practices by using argument lists to prevent shell injection and serves a clear, functional purpose. The documentation (SKILL.md, README.md) is professional and aligns perfectly with the code's behavior, with no signs of data exfiltration, persistence, or malicious prompt injection.
Capability Assessment
Purpose & Capability
Name/description match the code and instructions: scripts and SKILL.md focus on downloading NBS data, computing HP filter, adding charts, verifying links and producing Excel. Network endpoints referenced are the expected NBS domains (stats.gov.cn, data.stats.gov.cn) and examples (Google search). No unrelated cloud credentials, exotic binaries or unrelated services are requested.
Instruction Scope
Instructions remain within the stated purpose (planning → crawl → process → verify → output). However, the SKILL.md and README do not fully declare runtime needs: scripts call curl (via subprocess) and require Python packages (openpyxl, numpy). verify_links.py will extract hyperlinks from a provided Excel file and run curl against them — this behavior is expected for link-checking but means the skill will attempt network connections for any URL present in the spreadsheet (including internal or private URLs).
Install Mechanism
This is an instruction-only skill with no install spec. No third-party archives or arbitrary download+extract steps are used. The risk here is operational: the code expects external Python packages and curl to be available on the host, but the skill does not install them itself.
Credentials
The skill requests no environment variables or credentials (good). But verify_links.py will execute curl on every URL it finds in an Excel file; if a user-supplied spreadsheet contains internal network URLs or attacker-controlled endpoints, the script will probe them from the host. That can be used to scan internal services or cause unwanted outbound requests. Also some files contain placeholder/TODO behavior (nbs_crawler returns gdp/cpi fields as None) — not a credential issue but affects usefulness.
Persistence & Privilege
Skill does not request persistent/high privileges or always:true. It writes output/checkpoint files to a local output/ path (normal). It does not modify other skills or system-wide configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install nbs-data-collection
  3. After installation, invoke the skill by name or use /nbs-data-collection
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
nbs-data-collection v1.0.0 - Initial release of the 国家统计局(NBS)数据采集技能。 - Provides a standard workflow for collecting, processing, and verifying macroeconomic indicators (GDP, CPI, PPI, output gap, etc.) from the NBS. - Includes data source URLs, indicator explanations, and reusable scripts for key steps (data crawling, HP filtering, Excel charting, link verification). - Defines output structure: organized Excel files, checkpoints, and raw data folders. - Covers special handling for data before 2015, API migration, and updated NBS data access rules. - Detailed documentation and references included for workflow and data sources.
Metadata
Slug nbs-data-collection
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is 国家统计局数据采集?

国家统计局数据采集技能。当用户需要采集国家统计局(NBS)的宏观经济数据(如GDP、CPI、PPI、产出缺口等)时触发。适用场景包括:(1)采集GDP、CPI、PPI等指标;(2)从国家统计局官网/统计年鉴获取数据;(3)计算产出缺口(HP滤波);(4)整理数据到Excel。本skill包含标准工作流程、数据源U... It is an AI Agent Skill for Claude Code / OpenClaw, with 103 downloads so far.

How do I install 国家统计局数据采集?

Run "/install nbs-data-collection" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 国家统计局数据采集 free?

Yes, 国家统计局数据采集 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 国家统计局数据采集 support?

国家统计局数据采集 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 国家统计局数据采集?

It is built and maintained by Jackie Zhang (@yingjie-zhang-dev); the current version is v1.0.0.

💬 Comments