Stock Deep Analyzer
One-stop comprehensive stock analysis tool that generates professional-grade investment reports.
Features
- Real-time Market Data — Current price, volume, market cap, beta
- Value Investing Metrics — P/E, P/B, ROE, ROA, dividend yield, payout ratio
- Technical Indicators — MA5/20/60, RSI, MACD, Bollinger Bands, VWAP
- Growth Analysis — Revenue growth, earnings growth, profit margins
- Financial Health — Asset/liability ratio, liquidity ratio
- Investment Rating — Multi-dimensional scoring (value 35% / technical 25% / growth 25% / financial 15%)
- Trading Strategies — Long-term hold, swing trade, short-term speculation
- Risk Assessment — Key risks and price levels
Dependencies
Python packages (install once):
pip install yfinance pandas numpy
Usage
IMPORTANT: Always use the $SKILLS_ROOT environment variable to locate scripts.
Basic Analysis
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 601288.SS
Specify Analysis Period
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 000001.SZ --period 1y
US Stocks
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" AAPL
Parameters
| Parameter |
Description |
Example |
Default |
ticker |
Stock ticker symbol (required) |
601288.SS, AAPL |
- |
--period |
Analysis period |
1mo, 3mo, 6mo, 1y, 2y |
6mo |
--output |
Output format |
text, json |
text |
Stock Ticker Formats
- A-share (Shanghai):
600519.SS, 601288.SS
- A-share (Shenzhen):
000001.SZ, 002594.SZ
- US stocks:
AAPL, TSLA, NVDA
- HK stocks:
0700.HK, 9988.HK
Output Structure
The analysis report includes 8 sections:
- Real-time Market Overview
- Value Investing Indicators (Score /10)
- Technical Analysis (Score /10)
- Growth Indicators (Score /10)
- Financial Health (Score /10)
- Comprehensive Investment Rating (Overall /10)
- Recommended Trading Strategies
- Key Risk Warnings
Workflow
When user requests stock analysis:
Identify ticker symbol
- User may provide company name → use web-search to find ticker
- A-share: Shanghai =
.SS, Shenzhen = .SZ
Execute analysis
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" <ticker>
Interpret results
- Extract overall rating and key findings
- Highlight investment recommendation
- Emphasize risk warnings
- Provide actionable price levels
Limitations
- Yahoo Finance data quality varies by market
- Some metrics may be N/A for loss-making companies
- Historical data limited for newly listed stocks
- Real-time quotes may have 15-min delay
When to Use This Skill
- User requests "深度分析", "complete analysis", "comprehensive report"
- User wants multi-dimensional evaluation (value + growth + technical)
- User needs actionable trading strategies
- User asks for investment recommendations with risk assessment
1---2name: stock-analyzer3description: A comprehensive stock deep analysis tool that combines real-time quotes, fundamental metrics, technical indicators, and growth analysis into a single professional report. Supports A-share, US stocks, HK stocks. Generates detailed investment recommendations with risk assessment and actionable trading strategies.4---5
6# Stock Deep Analyzer
7
8One-stop comprehensive stock analysis tool that generates professional-grade investment reports.
9
10## Features
11
12- **Real-time Market Data** — Current price, volume, market cap, beta
13- **Value Investing Metrics** — P/E, P/B, ROE, ROA, dividend yield, payout ratio
14- **Technical Indicators** — MA5/20/60, RSI, MACD, Bollinger Bands, VWAP
15- **Growth Analysis** — Revenue growth, earnings growth, profit margins
16- **Financial Health** — Asset/liability ratio, liquidity ratio
17- **Investment Rating** — Multi-dimensional scoring (value 35% / technical 25% / growth 25% / financial 15%)
18- **Trading Strategies** — Long-term hold, swing trade, short-term speculation
19- **Risk Assessment** — Key risks and price levels
20
21## Dependencies
22
23Python packages (install once):
24
25```bash
26pip install yfinance pandas numpy
27```
28
29## Usage
30
31**IMPORTANT:** Always use the `$SKILLS_ROOT` environment variable to locate scripts.
32
33### Basic Analysis
34
35```bash
36export PYTHONIOENCODING=utf-8
37python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 601288.SS
38```
39
40### Specify Analysis Period
41
42```bash
43export PYTHONIOENCODING=utf-8
44python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 000001.SZ --period 1y
45```
46
47### US Stocks
48
49```bash
50export PYTHONIOENCODING=utf-8
51python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" AAPL
52```
53
54### Parameters
55
56| Parameter | Description | Example | Default |
57|-----------|-------------|---------|---------|
58| `ticker` | Stock ticker symbol (required) | 601288.SS, AAPL | - |
59| `--period` | Analysis period | 1mo, 3mo, 6mo, 1y, 2y | 6mo |
60| `--output` | Output format | text, json | text |
61
62## Stock Ticker Formats
63
64- **A-share (Shanghai)**: `600519.SS`, `601288.SS`
65- **A-share (Shenzhen)**: `000001.SZ`, `002594.SZ`
66- **US stocks**: `AAPL`, `TSLA`, `NVDA`
67- **HK stocks**: `0700.HK`, `9988.HK`
68
69## Output Structure
70
71The analysis report includes 8 sections:
72
731. Real-time Market Overview
742. Value Investing Indicators (Score /10)
753. Technical Analysis (Score /10)
764. Growth Indicators (Score /10)
775. Financial Health (Score /10)
786. Comprehensive Investment Rating (Overall /10)
797. Recommended Trading Strategies
808. Key Risk Warnings
81
82## Workflow
83
84When user requests stock analysis:
85
861. **Identify ticker symbol**
87 - User may provide company name → use web-search to find ticker
88 - A-share: Shanghai = `.SS`, Shenzhen = `.SZ`
89
902. **Execute analysis**
91 ```bash
92 export PYTHONIOENCODING=utf-8
93 python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" <ticker>
94 ```
95
963. **Interpret results**
97 - Extract overall rating and key findings
98 - Highlight investment recommendation
99 - Emphasize risk warnings
100 - Provide actionable price levels
101
102## Limitations
103
104- Yahoo Finance data quality varies by market
105- Some metrics may be N/A for loss-making companies
106- Historical data limited for newly listed stocks
107- Real-time quotes may have 15-min delay
108
109## When to Use This Skill
110
111- User requests "深度分析", "complete analysis", "comprehensive report"
112- User wants multi-dimensional evaluation (value + growth + technical)
113- User needs actionable trading strategies
114- User asks for investment recommendations with risk assessment