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 analyze

SKILL.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 name

Core 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

PrioritySourcePurpose
1
fetch_full_analysis.py
Full set of macro, industry and technical data
2User Configuration FilesPositions, Focus Areas, Investment Style
3WebSearchOnly 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 hk

Step 2: Interpret Script Output

Core modules of script output:
ModuleFieldDescription
Macro
macro.indices
Price changes of major indices
macro.market_trend
Judgment of bull/bear/volatile market
macro.north_flow
Northbound capital flow direction
macro.market_sentiment
Ratio of rising vs falling stocks
Industry
sector.related_sectors
Performance of related sectors
sector.sector_flow
Capital inflow of sectors
sector.etf_comparison
Horizontal comparison of ETFs
sector.relative_strength
Leading/Following Rise/Following Fall
Technical
technical.trend
Moving average trend
technical.macd
MACD status
technical.rsi
RSI overbought/oversold status
technical.atr
ATR stop loss reference
technical.volume
Volume-price coordination
Score
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 style

Step 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
macro
field:
json
{
  "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:
ConditionCycleScore
CSI 300 > MA20 and 60-day increase > 0Bull Market+12
CSI 300 < MA20 and 60-day decrease > 10%Bear Market+4
OthersVolatile+8
Northbound Capital Signal:
5-day CumulativeDirectionScore
> 5 billion RMBContinuous Inflow+8
< -5 billion RMBContinuous Outflow+2
OthersNeutral+4

2. Industry Analysis (20 points)

Script output
sector
field:
json
{
  "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 PeersRelative StrengthScore
Top 30% in gain rankingLeading Rise+15
Gain close to averageFollowing Rise+10
Bottom 30% in gain rankingFollowing Fall+5
Sector Capital Flow:
Net Inflow of Related SectorsSignalScore
Most sectors have inflowHigh sector popularity+5
Most sectors have outflowSector cooling down+0

3. Individual Stock Technical Analysis (60 points)

Trend Analysis (25 points)

json
{
  "trend": {
    "status": "Bullish Arrangement",
    "score": 2
  }
}
Moving Average StatusScore
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 StatusScore
Golden Cross/Bullish+10
Death Cross/Bearish+5
RSI StatusScore
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 RelationshipScore
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

DimensionFull ScoreEvaluation Content
Macro20Market Cycle + Northbound Capital
Industry20Relative Strength + Sector Capital Flow
Technical60Trend + Momentum + Volume-Price + Position
Total100
Score Levels:
ScoreLevelRecommendation
80-100StrongActive participation is acceptable
65-79Moderately StrongModerate participation is acceptable
50-64NeutralMainly wait and see
35-49WeakBe cautious
0-34Very WeakAvoid

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

ItemETFIndividual Stock
Capital FlowNone (Check sector)Available
Valuation DataNoneAvailable
Financial DataNoneAvailable
Dragon and Tiger ListNoneAvailable
Component StocksAvailableNone
Analysis FocusMacro + Industry + TrendComprehensive analysis

Important Reminders

  1. Macro environment determines direction - Even the best stocks will fall in a bear market
  2. Industry strength determines excess returns - Choosing the right industry is more important than choosing the right stock
  3. Technical analysis determines entry and exit points - Wait for the right position even if you are bullish
  4. Stop loss is the last line of defense - Always set stop loss to control risk
  5. Score is a reference, not a decision - Combine with qualitative judgment

Version History

VersionDateUpdates
v1.02026-01Basic technical analysis
v2.02026-01Added volume-price analysis, multi-cycle trend, ATR stop loss
v3.02026-01Complete three-tier framework: Macro+Industry+Individual Stock