← Back to Skills Marketplace
Stock Summary
by
Dongdong-Bryant
· GitHub ↗
· v1.0.0
· MIT-0
87
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install stock-summary
Description
Query stock quotes and technical analysis. Triggers on phrases like 查股价, 看股票, 帮我分析XX股票, XX走势. Input: stock code (A-share like 600519, HK like 00700, US like...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install stock-summary - After installation, invoke the skill by name or use
/stock-summary - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 87 downloads so far.
How do I install Stock Summary?
Run "/install stock-summary" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Stock Summary free?
Yes, Stock Summary is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Stock Summary support?
Stock Summary is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Stock Summary?
It is built and maintained by Dongdong-Bryant (@dongdong-bryant); the current version is v1.0.0.
More Skills