← 返回 Skills 市场
yingjie-zhang-dev

国家统计局数据采集

作者 Jackie Zhang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
103
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install nbs-data-collection
功能描述
国家统计局数据采集技能。当用户需要采集国家统计局(NBS)的宏观经济数据(如GDP、CPI、PPI、产出缺口等)时触发。适用场景包括:(1)采集GDP、CPI、PPI等指标;(2)从国家统计局官网/统计年鉴获取数据;(3)计算产出缺口(HP滤波);(4)整理数据到Excel。本skill包含标准工作流程、数据源U...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install nbs-data-collection
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /nbs-data-collection 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug nbs-data-collection
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

国家统计局数据采集 是什么?

国家统计局数据采集技能。当用户需要采集国家统计局(NBS)的宏观经济数据(如GDP、CPI、PPI、产出缺口等)时触发。适用场景包括:(1)采集GDP、CPI、PPI等指标;(2)从国家统计局官网/统计年鉴获取数据;(3)计算产出缺口(HP滤波);(4)整理数据到Excel。本skill包含标准工作流程、数据源U... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 103 次。

如何安装 国家统计局数据采集?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install nbs-data-collection」即可一键安装,无需额外配置。

国家统计局数据采集 是免费的吗?

是的,国家统计局数据采集 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

国家统计局数据采集 支持哪些平台?

国家统计局数据采集 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 国家统计局数据采集?

由 Jackie Zhang(@yingjie-zhang-dev)开发并维护,当前版本 v1.0.0。

💬 留言讨论