analyze
Original:🇨🇳 Chinese
Translated
In-depth analysis of individual stocks. Use this skill when the user says "Analyze XX", "How is XX doing", "Is XX worth buying", "Research XX".
11installs
Added on
NPX Install
npx skill4agent add allenai2014/ai-investment-advisor analyzeTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →/analyze - In-depth Individual Stock Analysis v3.0
Based on the three-tier analysis framework of Macro-Industry-Individual Stock, data-driven professional investment analysis.
Usage
/analyze 588000 # Analyze ETF
/analyze 002594 # Analyze A-share stock
/analyze 00700 # Analyze Hong Kong stock
/analyze 比亚迪 # You can also use the stock nameCore Investment Framework
┌─────────────────────────────────────────────────┐
│ Investment Analysis Framework │
├─────────────────────────────────────────────────┤
│ 1. Macro Environment (General Market) 20 points│
│ ├─ Market Cycle: Bull/Bear/Volatile │
│ ├─ Index Trend: CSI 300 vs MA20 │
│ ├─ Capital Environment: Northbound Capital Flow│
│ └─ Market Sentiment: Rise-Fall Ratio │
├─────────────────────────────────────────────────┤
│ 2. Industry Analysis (Mid-view) 20 points │
│ ├─ Sector Strength: Ranking of Related Sectors│
│ ├─ Capital Flow: Net Inflow of Sectors │
│ ├─ Relative Strength: ETF Horizontal Comparison│
│ └─ Policy Catalyst: Industry Policy Trends │
├─────────────────────────────────────────────────┤
│ 3. Individual Stock Analysis (Micro-view) 60 points│
│ ├─ Trend: Moving Average Arrangement + Multi-cycle Resonance│
│ ├─ Momentum: MACD+RSI │
│ ├─ Volume-Price: Volume Ratio + Volume-Price Coordination + Divergence│
│ └─ Position: ATR Stop Loss + Support and Resistance│
├─────────────────────────────────────────────────┤
│ 4. Trading Strategy │
│ ├─ Buy Point: Ideal/Aggressive Price │
│ ├─ Stop Loss: ATR Dynamic Stop Loss │
│ └─ Target: Reference for Resistance Level │
└─────────────────────────────────────────────────┘Data Source Priority
| Priority | Source | Purpose |
|---|---|---|
| 1 | | Full set of macro, industry and technical data |
| 2 | User Configuration Files | Positions, Focus Areas, Investment Style |
| 3 | WebSearch | Only used for financial reports, announcements, research reports |
Prohibited Actions
- ❌ Using WebSearch to obtain price data
- ❌ Fabricating technical indicators
- ❌ Skipping analysis when script fails
- ❌ Vague judgments without data support
Execution Steps
Step 1: Run the Full Analysis Script (Required)
bash
cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py <code>Hong Kong Stock:
bash
cd "Stock Market Info" && python3 scripts/fetch_full_analysis.py 00700 --market hkStep 2: Interpret Script Output
Core modules of script output:
| Module | Field | Description |
|---|---|---|
| Macro | | Price changes of major indices |
| Judgment of bull/bear/volatile market | |
| Northbound capital flow direction | |
| Ratio of rising vs falling stocks | |
| Industry | | Performance of related sectors |
| Capital inflow of sectors | |
| Horizontal comparison of ETFs | |
| Leading/Following Rise/Following Fall | |
| Technical | | Moving average trend |
| MACD status | |
| RSI overbought/oversold status | |
| ATR stop loss reference | |
| Volume-price coordination | |
| Score | | 100-point comprehensive score |
Step 3: Read User Configuration
Stock Market Info/Config/Holdings.md → Whether the stock is held
Stock Market Info/Config/Watchlist.md → Focus areas
Stock Market Info/Config/Profile.md → Investment styleStep 4: WebSearch Supplement (Only When Necessary)
Use only in the following cases:
- Company's latest financial report
- Recent major announcements
- Institutional research reports/target prices
Must mark the source and date
Detailed Analysis Framework
1. Macro Environment Analysis (20 points)
Script output field:
macrojson
{
"market_trend": {
"cycle": "Bull Market",
"cycle_score": 2,
"hs300_vs_ma20": 1.51
},
"north_flow": {
"5d_total": 150.5,
"consecutive_days": 3,
"direction": "Inflow",
"signal": "Foreign capital is positive"
},
"market_sentiment": {
"up_ratio": 65.2,
"sentiment": "Optimistic"
}
}Market Cycle Judgment Rules:
| Condition | Cycle | Score |
|---|---|---|
| CSI 300 > MA20 and 60-day increase > 0 | Bull Market | +12 |
| CSI 300 < MA20 and 60-day decrease > 10% | Bear Market | +4 |
| Others | Volatile | +8 |
Northbound Capital Signal:
| 5-day Cumulative | Direction | Score |
|---|---|---|
| > 5 billion RMB | Continuous Inflow | +8 |
| < -5 billion RMB | Continuous Outflow | +2 |
| Others | Neutral | +4 |
2. Industry Analysis (20 points)
Script output field:
sectorjson
{
"related_sectors": [
{"name": "Semiconductor Concept", "change": 2.34, "turnover": 5.95},
{"name": "Memory Chip", "change": 1.13, "turnover": 4.27}
],
"sector_flow": [
{"name": "Semiconductor Concept", "net_flow": 3.88 billion RMB, "net_ratio": 0.88}
],
"etf_comparison": [
{"code": "159995", "name": "Chip ETF", "change": 1.16},
{"code": "588000", "name": "STAR 50 ETF", "change": -0.38}
],
"relative_strength": "Following Fall"
}Relative Strength Judgment:
| ETF vs Peers | Relative Strength | Score |
|---|---|---|
| Top 30% in gain ranking | Leading Rise | +15 |
| Gain close to average | Following Rise | +10 |
| Bottom 30% in gain ranking | Following Fall | +5 |
Sector Capital Flow:
| Net Inflow of Related Sectors | Signal | Score |
|---|---|---|
| Most sectors have inflow | High sector popularity | +5 |
| Most sectors have outflow | Sector cooling down | +0 |
3. Individual Stock Technical Analysis (60 points)
Trend Analysis (25 points)
json
{
"trend": {
"status": "Bullish Arrangement",
"score": 2
}
}| Moving Average Status | Score |
|---|---|
| Bullish arrangement (MA5>MA10>MA20>MA60) | +25 |
| Bullish bias (Price>MA20) | +15 |
| Entangled | +10 |
| Bearish arrangement | +5 |
Momentum Indicators (15 points)
json
{
"macd": {"signal": "Bullish"},
"rsi": {"value": 65, "signal": "Neutral"}
}| MACD Status | Score |
|---|---|
| Golden Cross/Bullish | +10 |
| Death Cross/Bearish | +5 |
| RSI Status | Score |
|---|---|
| Neutral (30-70) | +5 |
| Overbought (>70) or Oversold (<30) | +3 |
Volume-Price Analysis (10 points)
json
{
"volume": {
"ratio": 0.87,
"vol_price": "Volume-price Stable"
}
}| Volume-Price Relationship | Score |
|---|---|
| Rising with increased volume | +10 |
| Stable volume-price | +6 |
| Rising with decreased volume | +4 |
| Falling with increased volume | +2 |
ATR Stop Loss (10 points)
json
{
"atr": {
"value": 0.0382,
"stop_loss": 1.4966,
"stop_loss_pct": -4.86
}
}Stop Loss Recommendations:
- Conservative: 1x ATR
- Standard: 2x ATR → Use
stop_loss - Aggressive: 3x ATR
Comprehensive Scoring System
| Dimension | Full Score | Evaluation Content |
|---|---|---|
| Macro | 20 | Market Cycle + Northbound Capital |
| Industry | 20 | Relative Strength + Sector Capital Flow |
| Technical | 60 | Trend + Momentum + Volume-Price + Position |
| Total | 100 |
Score Levels:
| Score | Level | Recommendation |
|---|---|---|
| 80-100 | Strong | Active participation is acceptable |
| 65-79 | Moderately Strong | Moderate participation is acceptable |
| 50-64 | Neutral | Mainly wait and see |
| 35-49 | Weak | Be cautious |
| 0-34 | Very Weak | Avoid |
Report Template
markdown
# [Code] [Name] In-depth Analysis
**Analysis Time**: YYYY-MM-DD HH:MM
**Data Source**: AKShare v3.0
**Analysis Framework**: Macro-Industry-Individual Stock
---
## Quick Summary
| Level | Judgment | Score |
|------|------|------|
| Macro Environment | Bull/Bear/Volatile | XX/20 |
| Industry Strength | Leading/Following Rise/Following Fall | XX/20 |
| Technical Pattern | Bullish/Bearish/Volatile | XX/60 |
| **Comprehensive** | **Strong/Moderately Strong/Neutral/Weak/Very Weak** | **XX/100** |
---
## 1. Macro Environment (General Market Trend)
### Market Cycle
- CSI 300: XXXX (+X.X%)
- vs MA20: +X.X%
- Judgment: **Bull/Bear/Volatile Market**
### Northbound Capital
- Today's Net Inflow: XX billion RMB
- 5-day Cumulative: XX billion RMB
- Continuous Inflow/Outflow: X days
- Signal: Foreign capital is positive/waiting/retreating
### Market Sentiment
- Number of Rising Stocks: XXXX
- Number of Falling Stocks: XXXX
- Rise-Fall Ratio: X:X
- Sentiment: Optimistic/Neutral/Pessimistic
**Macro Score**: XX/20
---
## 2. Industry Analysis (Mid-view)
### Related Sectors Performance
| Sector | Change | Turnover |
|------|------|------|
| XX | +X.X% | X.X% |
### Sector Capital Flow
| Sector | Net Inflow | Proportion |
|------|--------|------|
| XX | XX billion RMB | X.X% |
### ETF Horizontal Comparison
| ETF | Change | Relative Strength |
|-----|------|----------|
| Target ETF | X.X% | Leading/Following Rise/Following Fall |
| Peer ETF | X.X% | |
**Industry Score**: XX/20
---
## 3. Technical Analysis (Micro-view)
### Trend
- Moving Average Arrangement: Bullish/Bearish/Entangled
- Positions of MA5/10/20/60
### MACD
- DIF: X.XXX
- DEA: X.XXX
- Status: Bullish/Bearish/Golden Cross/Death Cross
### RSI
- Value: XX
- Status: Overbought/Oversold/Neutral
### Volume-Price
- Volume Ratio: X.XX
- Volume-Price Coordination: Healthy/Cautionary/Wait and See
**Technical Score**: XX/60
---
## 4. Comprehensive Score
| Dimension | Score | Full Score | Details |
|------|------|------|------|
| Macro | XX | 20 | [detail] |
| Industry | XX | 20 | [detail] |
| Technical | XX | 60 | [detail] |
| **Total** | **XX** | 100 | **Level** |
---
## 5. Trading Strategy
### ATR Dynamic Stop Loss
- Current ATR: X.XXX (X.X%)
- **Recommended Stop Loss**: X.XX (-X.X%)
### Operation Recommendations
| Scenario | Price | Description |
|------|------|------|
| Ideal Buy Point | X.XX | Pullback to support level |
| Aggressive Buy Point | X.XX | Breakout confirmation |
| Stop Loss Level | X.XX | 2x ATR |
| Target Level | X.XX | Near resistance level |
### Is It Suitable for You?
- ✅/❌ Macro environment supports
- ✅/❌ Industry is in upward cycle
- ✅/❌ Technical pattern is healthy
- ✅/❌ Matches your investment style
---
*Data Source: AKShare*
*Disclaimer: This analysis is based on historical data and does not constitute investment advice*ETF vs Individual Stock Differences
| Item | ETF | Individual Stock |
|---|---|---|
| Capital Flow | None (Check sector) | Available |
| Valuation Data | None | Available |
| Financial Data | None | Available |
| Dragon and Tiger List | None | Available |
| Component Stocks | Available | None |
| Analysis Focus | Macro + Industry + Trend | Comprehensive analysis |
Important Reminders
- Macro environment determines direction - Even the best stocks will fall in a bear market
- Industry strength determines excess returns - Choosing the right industry is more important than choosing the right stock
- Technical analysis determines entry and exit points - Wait for the right position even if you are bullish
- Stop loss is the last line of defense - Always set stop loss to control risk
- Score is a reference, not a decision - Combine with qualitative judgment
Version History
| Version | Date | Updates |
|---|---|---|
| v1.0 | 2026-01 | Basic technical analysis |
| v2.0 | 2026-01 | Added volume-price analysis, multi-cycle trend, ATR stop loss |
| v3.0 | 2026-01 | Complete three-tier framework: Macro+Industry+Individual Stock |