# Stock Analyzer

A comprehensive stock deep analysis tool that combines real-time quotes, fundamental...

- Repository: https://github.com/netease-youdao/LobsterAI (6161 stars)
- Category: Marketing
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add netease-youdao/LobsterAI --skill stock-analyzer -g -a claude-code -y`
Codex: `npx skills add netease-youdao/LobsterAI --skill stock-analyzer -g -a codex -y`
Cursor: `npx skills add netease-youdao/LobsterAI --skill stock-analyzer -g -a cursor -y`
Gemini CLI: `npx skills add netease-youdao/LobsterAI --skill stock-analyzer -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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):

```bash
pip install yfinance pandas numpy
```

## Usage

**IMPORTANT:** Always use the `$SKILLS_ROOT` environment variable to locate scripts.

### Basic Analysis

```bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 601288.SS
```

### Specify Analysis Period

```bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-analyzer/scripts/analyze.py" 000001.SZ --period 1y
```

### US Stocks

```bash
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:

The rest: https://github.com/netease-youdao/LobsterAI/blob/HEAD/SKILLs/stock-analyzer/SKILL.md
