← 返回 Skills 市场
Stock Summary
作者
Dongdong-Bryant
· GitHub ↗
· v1.0.0
· MIT-0
87
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install stock-summary
功能描述
Query stock quotes and technical analysis. Triggers on phrases like 查股价, 看股票, 帮我分析XX股票, XX走势. Input: stock code (A-share like 600519, HK like 00700, US like...
安全使用建议
Before installing or running: 1) Review and fix the market-detection regex (5-digit numeric codes will currently be treated as CN, not HK). 2) Confirm where the chart will be written — the script uses a hard-coded '/root/.openclaw/workspace/stock_chart.png' path that may not exist or may expose host filesystem; prefer a relative or documented workspace path. 3) Ensure required Python packages (requests, numpy, matplotlib, yfinance) are present in a sandboxed runtime; if the agent will auto-install them, be aware that pip installs require network access and can pull arbitrary code. 4) Test the script in an isolated environment to validate outputs and error handling (the code has some naive error handling and unused imports). 5) If you plan to use it in a production agent, request the publisher add an explicit install spec, document dependencies and output paths, and correct the noted bugs. These issues look like sloppy engineering rather than intentional malice, but they increase operational risk and merit review.
功能分析
Type: OpenClaw Skill
Name: stock-summary
Version: 1.0.0
The stock-summary skill is a functional tool for querying stock quotes and generating technical analysis charts. The Python script (scripts/stock_summary.py) uses legitimate data sources like East Money and Yahoo Finance (via yfinance) and performs standard technical indicator calculations (RSI, MACD). There is no evidence of data exfiltration, malicious execution, or prompt injection; the code is transparent and aligns with its stated purpose.
能力评估
Purpose & Capability
Name/description match the code: the script fetches A/H/US market data, computes RSI/MACD and renders a 1-month chart. No credentials or unrelated services are requested. However, the implementation has minor mismatches with the doc (see instruction_scope): e.g., SKILL.md says save as stock_chart.png (no path) but script writes to /root/.openclaw/workspace/stock_chart.png. Also regexes for market detection will misclassify some 5-digit codes (HK) as CN.
Instruction Scope
SKILL.md instructs running python3 scripts/stock_summary.py <code> and sending stock_chart.png; the script writes to a hard-coded path under /root/.openclaw/workspace which is not documented. The script performs network calls to EastMoney and Yahoo (via yfinance/requests), and will require Python packages at runtime even though no install steps are provided. The script imports subprocess/os (subprocess unused) and writes files — these behaviors are within scope for a data-fetching tool but the hard-coded root path and undocumented network/dependency needs are concerning.
Install Mechanism
No install spec is provided (instruction-only skill), so runtime must already have dependencies (requests, numpy, matplotlib, yfinance). If the agent or operator attempts to auto-install these, that implies network access and arbitrary package installation which increases risk. Lack of an explicit, auditable install step is a practical and security concern.
Credentials
The skill requests no environment variables, credentials, or config paths. Network access to third-party APIs (EastMoney, Yahoo) is required but proportionate to the stated purpose. No secrets are requested or read.
Persistence & Privilege
always is false and the skill does not request persistent/global privileges. It writes an image file to a workspace path; there is no code that modifies other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install stock-summary - 安装完成后,直接呼叫该 Skill 的名称或使用
/stock-summary触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Stock Summary Skill 1.0.0 – Initial Release
- Provides real-time quotes, RSI/MACD technical analysis, buy/sell/hold signal, and trend chart for A-shares, Hong Kong, and US stocks.
- Triggers on phrases like 查股价, 看股票, 帮我分析XX股票, XX走势.
- Supports stock codes for A股 (6 digits), 港股 (5 digits), and 美股 (alphabet codes).
- Outputs a detailed summary with live data, key indicators, and a 1-month trend chart with MA5/MA10 lines.
- No API key required for A-shares; uses yfinance for Hong Kong and US stocks.
元数据
常见问题
Stock Summary 是什么?
Query stock quotes and technical analysis. Triggers on phrases like 查股价, 看股票, 帮我分析XX股票, XX走势. Input: stock code (A-share like 600519, HK like 00700, US like... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。
如何安装 Stock Summary?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-summary」即可一键安装,无需额外配置。
Stock Summary 是免费的吗?
是的,Stock Summary 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Stock Summary 支持哪些平台?
Stock Summary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Stock Summary?
由 Dongdong-Bryant(@dongdong-bryant)开发并维护,当前版本 v1.0.0。
推荐 Skills