← 返回 Skills 市场
Stock Theme Events
作者
shinelp100
· GitHub ↗
· v2.0.0
· MIT-0
142
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install stock-theme-events
功能描述
获取 A 股市场炒作题材对应的真实新闻事件。使用场景:(1) 分析近 N 日涨幅前列股票的题材分布,(2) 将相似题材聚类合并,(3) 从金十数据等新闻源获取对应题材的真实资讯事件,(4) 生成题材 - 事件关联分析报告。支持被其他 skill 调用或独立运行。
安全使用建议
This skill appears to implement the described functionality, but take precautions before installing/running it:
- Verify runtime requirements: the code calls an 'openclaw' CLI via subprocess to invoke ths-stock-themes; ensure you have (or intentionally want) that CLI available. The skill metadata did not declare this binary dependency.
- Review and adjust file paths: run_full_analysis.py uses a hardcoded author-specific path (/Users/shinelp100/...), and scripts create cache and output files — change those paths to a safe workspace to avoid unexpected overwrites.
- Expect large downloads: the sentence-transformers model (~500MB) will be fetched on first run if you install that dependency.
- Network and automation: the skill uses akshare (network calls) and may direct a browser automation tool to scrape Jin10/other sites; only run in an environment where outbound network and web automation are acceptable.
- Trust boundary: the skill spawns another skill (ths-stock-themes). Inspect or vet that other skill before allowing subprocess-based invocations, since its output is parsed and used here.
If you plan to use this skill, run it in a sandboxed environment (or inspect/modify get_stock_themes.py to replace the subprocess call with a direct API or validated interface), update output paths, and ensure required Python packages and the 'openclaw' CLI are intentionally provided.
功能分析
Type: OpenClaw Skill
Name: stock-theme-events
Version: 2.0.0
The skill bundle is classified as suspicious due to a vulnerability in 'scripts/get_stock_themes.py', where user-provided stock codes are directly interpolated into a natural language task string for a sub-agent ('openclaw sessions spawn'), creating a vector for indirect prompt injection. Additionally, 'scripts/run_full_analysis.py' contains hardcoded absolute file paths (e.g., '/Users/shinelp100/...'), which indicates poor portability and potential for unexpected behavior. While the core logic for stock theme clustering and news searching (using akshare and jin10.com) aligns with the stated purpose, the lack of input sanitization when constructing agent tasks is a significant security flaw in an autonomous agent environment.
能力评估
Purpose & Capability
The skill's code and instructions align with the stated purpose (collect stock themes, cluster them, fetch news via akshare/browser, generate a Markdown report). Required Python packages (akshare, sentence-transformers, scikit-learn) are appropriate for the functionality. However, scripts call the OpenClaw CLI ('openclaw sessions spawn ...') to invoke the ths-stock-themes skill, but the skill metadata declares no required binaries — this is an undeclared runtime dependency and an environment mismatch.
Instruction Scope
SKILL.md instructs calling 'ths-stock-themes' (expected), using akshare and a browser fallback (expected). In practice, get_stock_themes.py spawns the OpenClaw CLI via subprocess to call that other skill and then attempts to extract JSON from CLI stdout with regex — this invocation method is not described in metadata and is fragile. search_news returns a 'browser_search' instruction object intended to be executed by an external browser tool; that is reasonable but means the agent or environment must actually execute browser actions. Several code paths read/write local cache and output paths and use hardcoded absolute paths (see run_full_analysis.py) which extend scope to filesystem writes beyond the working directory.
Install Mechanism
There is no install specification (instruction-only), which keeps risk lower. The README/SKILL.md recommend pip installing dependencies. No network download URLs or archive extracts are present in the bundle. The only notable install/runtime action is that sentence-transformers models (about 500MB) will be downloaded at first use — a large model download that the user should expect.
Credentials
The skill declares no required environment variables or credentials, which is reasonable. However, it implicitly requires: (1) an 'openclaw' CLI binary available in PATH for subprocess-based skill-to-skill calls, (2) network access for akshare and browser searches, and (3) disk write permissions to various cache/output paths. Additionally, run_full_analysis.py contains a hardcoded output_dir under '/Users/shinelp100/...' which may overwrite files in that location if present. These implicit requirements are not declared in the metadata and could surprise users.
Persistence & Privilege
The skill does not request permanent inclusion (always:false) and does not modify other skills' configurations. It will write its own cache and report files (normal for this kind of tool). It spawns other skills via the OpenClaw CLI rather than modifying their configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install stock-theme-events - 安装完成后,直接呼叫该 Skill 的名称或使用
/stock-theme-events触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Monorepo 独立版本
v1.0.4
Monorepo 结构重构,独立发布版本
v1.0.0
首次独立发布:支持题材提取、语义聚类、新闻事件搜索、Markdown 报告生成
v1.0.3
初始版本发布:支持题材聚类、新闻搜索、报告生成
v1.0.2
初始版本发布:支持题材聚类、新闻搜索、报告生成
v1.0.1
初始版本发布:支持题材聚类、新闻搜索、报告生成
元数据
常见问题
Stock Theme Events 是什么?
获取 A 股市场炒作题材对应的真实新闻事件。使用场景:(1) 分析近 N 日涨幅前列股票的题材分布,(2) 将相似题材聚类合并,(3) 从金十数据等新闻源获取对应题材的真实资讯事件,(4) 生成题材 - 事件关联分析报告。支持被其他 skill 调用或独立运行。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。
如何安装 Stock Theme Events?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-theme-events」即可一键安装,无需额外配置。
Stock Theme Events 是免费的吗?
是的,Stock Theme Events 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Stock Theme Events 支持哪些平台?
Stock Theme Events 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Stock Theme Events?
由 shinelp100(@shinelp100)开发并维护,当前版本 v2.0.0。
推荐 Skills