← 返回 Skills 市场
zack995

AKShare

作者 Zack995 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
330
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install zack995-akshare
功能描述
Use AKShare for Chinese market and macro-finance data via Python. Use when the user asks for A股、港股、美股、ETF、基金、指数、宏观、利率、债券、期货、商品、分红、财务 or other public-market d...
安全使用建议
This skill does what it says (install AKShare and run queries) but the helper executes whatever Python expression you pass. That means a crafted expression could read local files, environment variables (including secrets), or perform network requests. Before installing or allowing the agent to invoke this skill autonomously: 1) Only use it if you trust the skill author and the environment where the venv will run. 2) Consider running the bootstrap and evaluation commands manually in an isolated sandbox (container or dedicated VM). 3) If you need to allow automated use, request or implement a safer evaluator that restricts builtins and blocks __import__/os/subprocess or only accepts pre-validated AKShare function calls. 4) Do not supply sensitive credentials to the agent when using this skill. If you want, ask the maintainer to replace eval with a safe execution model (e.g., whitelist of AKShare functions or AST-based expression validation).
功能分析
Type: OpenClaw Skill Name: zack995-akshare Version: 0.1.0 The skill contains a significant security vulnerability in 'scripts/akshare_eval.py', which uses the 'eval()' function to execute arbitrary Python code passed via the '--expr' argument. While this is a common (though risky) pattern for allowing an AI agent to execute dynamic data-fetching commands, it creates a Remote Code Execution (RCE) surface. The 'scripts/bootstrap_akshare_env.sh' script performs standard environment setup, and the overall functionality is consistent with the stated goal of fetching financial data via the AKShare library, but the lack of input sanitization in the execution script warrants a suspicious classification.
能力评估
Purpose & Capability
Name and description match the included code: the scripts bootstrap a venv and run AKShare queries. However, the provided helper intentionally accepts arbitrary Python expressions (via eval), which gives broader execution capability than a narrow 'AKShare-only' fetcher.
Instruction Scope
SKILL.md instructs the agent to run scripts that call akshare_eval.py with a user-supplied --expr. akshare_eval.py uses Python's eval with {'__builtins__': __builtins__} and exposes ak, pd, json in globals — this allows arbitrary Python execution (including __import__, os, subprocess, reading files, environment access, and network calls). The documentation does not warn about or constrain arbitrary code execution or exfiltration risk.
Install Mechanism
The bootstrap script uses a local Python venv and pip to install akshare from PyPI; this is a conventional and expected install method for a Python data library and does not download arbitrary archives or external binaries.
Credentials
The skill declares no required environment variables (correct for its purpose), but runtime allows arbitrary expressions that can access os.environ or other secrets present in the agent environment. The bootstrap script permits overriding PYTHON_BIN and AKSHARE_VENV (benign), but there is no mitigation against expressions reading or exfiltrating environment variables or other local files.
Persistence & Privilege
The skill does not request permanent 'always' presence and does not modify other skills or global agent configuration. It only creates a venv in a user-writable path by default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install zack995-akshare
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /zack995-akshare 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial public release: bootstrap installer, query helper, GitHub homepage, and maintainer links.
元数据
Slug zack995-akshare
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AKShare 是什么?

Use AKShare for Chinese market and macro-finance data via Python. Use when the user asks for A股、港股、美股、ETF、基金、指数、宏观、利率、债券、期货、商品、分红、财务 or other public-market d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 330 次。

如何安装 AKShare?

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

AKShare 是免费的吗?

是的,AKShare 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AKShare 支持哪些平台?

AKShare 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AKShare?

由 Zack995(@zack995)开发并维护,当前版本 v0.1.0。

💬 留言讨论