Stock Analysis v6.1
Analyze US stocks and cryptocurrencies with 8-dimension analysis, portfolio management, watchlists, alerts, dividend analysis, and viral trend detection.
What's New in v6.2
- 🔮 Rumor Scanner — Early signals before mainstream news
- M&A rumors and takeover bids
- Insider buying/selling activity
- Analyst upgrades/downgrades
- Twitter/X "hearing that...", "sources say..." detection
- 🎯 Impact Scoring — Rumors ranked by potential market impact
What's in v6.1
- 🔥 Hot Scanner — Find viral stocks & crypto across multiple sources
- 🐦 Twitter/X Integration — Social sentiment via bird CLI
- 📰 Multi-Source Aggregation — CoinGecko, Google News, Yahoo Finance
- ⏰ Cron Support — Daily trend reports
What's in v6.0
- 🆕 Watchlist + Alerts — Price targets, stop losses, signal changes
- 🆕 Dividend Analysis — Yield, payout ratio, growth, safety score
- 🆕 Fast Mode —
--fast skips slow analyses (insider, news)
- 🆕 Improved Performance —
--no-insider for faster runs
Quick Commands
Stock Analysis
# Basic analysis
uv run {baseDir}/scripts/analyze_stock.py AAPL
# Fast mode (skips insider trading & breaking news)
uv run {baseDir}/scripts/analyze_stock.py AAPL --fast
# Compare multiple
uv run {baseDir}/scripts/analyze_stock.py AAPL MSFT GOOGL
# Crypto
uv run {baseDir}/scripts/analyze_stock.py BTC-USD ETH-USD
Dividend Analysis (NEW v6.0)
# Analyze dividends
uv run {baseDir}/scripts/dividends.py JNJ
# Compare dividend stocks
uv run {baseDir}/scripts/dividends.py JNJ PG KO MCD --output json
Dividend Metrics:
- Dividend Yield & Annual Payout
- Payout Ratio (safe/moderate/high/unsustainable)
- 5-Year Dividend Growth (CAGR)
- Consecutive Years of Increases
- Safety Score (0-100)
- Income Rating (excellent/good/moderate/poor)
Watchlist + Alerts (NEW v6.0)
# Add to watchlist
uv run {baseDir}/scripts/watchlist.py add AAPL
# With price target alert
uv run {baseDir}/scripts/watchlist.py add AAPL --target 200
# With stop loss alert
uv run {baseDir}/scripts/watchlist.py add AAPL --stop 150
# Alert on signal change (BUY→SELL)
uv run {baseDir}/scripts/watchlist.py add AAPL --alert-on signal
# View watchlist
uv run {baseDir}/scripts/watchlist.py list
# Check for triggered alerts
uv run {baseDir}/scripts/watchlist.py check
uv run {baseDir}/scripts/watchlist.py check --notify # Telegram format
# Remove from watchlist
uv run {baseDir}/scripts/watchlist.py remove AAPL
Alert Types:
- 🎯 Target Hit — Price >= target
- 🛑 Stop Hit — Price <= stop
- 📊 Signal Change — BUY/HOLD/SELL changed
Portfolio Management
# Create portfolio
uv run {baseDir}/scripts/portfolio.py create "Tech Portfolio"
# Add assets
uv run {baseDir}/scripts/portfolio.py add AAPL --quantity 100 --cost 150
uv run {baseDir}/scripts/portfolio.py add BTC-USD --quantity 0.5 --cost 40000
# View portfolio
uv run {baseDir}/scripts/portfolio.py show
# Analyze with period returns
uv run {baseDir}/scripts/analyze_stock.py --portfolio "Tech Portfolio" --period weekly
🔥 Hot Scanner (NEW v6.1)
# Full scan - find what's trending NOW
python3 {baseDir}/scripts/hot_scanner.py
# Fast scan (skip social media)
python3 {baseDir}/scripts/hot_scanner.py --no-social
# JSON output for automation
python3 {baseDir}/scripts/hot_scanner.py --json
Data Sources:
- 📊 CoinGecko Trending — Top 15 trending coins
- 📈 CoinGecko Movers — Biggest gainers/losers
- 📰 Google News — Finance & crypto headlines
- 📉 Yahoo Finance — Gainers, losers, most active
- 🐦 Twitter/X — Social sentiment (requires auth)
Output:
- Top trending by mention count
- Crypto highlights with 24h changes
- Stock movers by category
- Breaking news with tickers
Twitter Setup (Optional):
- Install bird:
npm install -g @steipete/bird
- Login to x.com in Safari/Chrome
- Create
.env with AUTH_TOKEN and CT0
🔮 Rumor Scanner (NEW v6.2)
# Find early signals, M&A rumors, insider activity
python3 {baseDir}/scripts/rumor_scanner.py
What it finds:
- 🏢 M&A Rumors — Merger, acquisition, takeover bids
- 👔 Insider Activity — CEO/Director buying/selling
- 📊 Analyst Actions — Upgrades, downgrades, price target changes
- 🐦 Twitter Whispers — "hearing that...", "sources say...", "rumor"
- ⚖️ SEC Activity — Investigations, filings
Impact Scoring:
- Each rumor is scored by potential market impact (1-10)
- M&A/Takeover: +5 points
- Insider buying: +4 points
- Upgrade/Downgrade: +3 points
- "Hearing"/"Sources say": +2 points
- High engagement: +2 bonus
Best Practice: Run at 07:00 before US market open to catch pre-market signals.
Analysis Dimensions (8 for stocks, 3 for crypto)
Stocks
| Dimension |
Weight |
Description |
| Earnings Surprise |
30% |
EPS beat/miss |
| Fundamentals |
20% |
P/E, margins, growth |
| Analyst Sentiment |
20% |
Ratings, price targets |
| Historical |
10% |
Past earnings reactions |
| Market Context |
10% |
VIX, SPY/QQQ trends |
| Sector |
15% |
Relative strength |
| Momentum |
15% |
RSI, 52-week range |
| Sentiment |
10% |
Fear/Greed, shorts, insiders |
Crypto
- Market Cap & Category
- BTC Correlation (30-day)
- Momentum (RSI, range)
Sentiment Sub-Indicators
| Indicator |
Source |
Signal |
| Fear & Greed |
CNN |
Contrarian (fear=buy) |
| Short Interest |
Yahoo |
Squeeze potential |
| VIX Structure |
Futures |
Stress detection |
| Insider Trades |
SEC EDGAR |
Smart money |
| Put/Call Ratio |
Options |
Sentiment extreme |
Risk Detection
- ⚠️ Pre-Earnings — Warns if < 14 days to earnings
- ⚠️ Post-Spike — Flags if up >15% in 5 days
- ⚠️ Overbought — RSI >70 + near 52w high
- ⚠️ Risk-Off — GLD/TLT/UUP rising together
- ⚠️ Geopolitical — Taiwan, China, Russia, Middle East keywords
- ⚠️ Breaking News — Crisis keywords in last 24h
Performance Options
| Flag |
Effect |
Speed |
| (default) |
Full analysis |
5-10s |
--no-insider |
Skip SEC EDGAR |
3-5s |
--fast |
Skip insider + news |
2-3s |
Supported Cryptos (Top 20)
BTC, ETH, BNB, SOL, XRP, ADA, DOGE, AVAX, DOT, MATIC, LINK, ATOM, UNI, LTC, BCH, XLM, ALGO, VET, FIL, NEAR
(Use -USD suffix: BTC-USD, ETH-USD)
Data Storage
| File |
Location |
| Portfolios |
~/.clawdbot/skills/stock-analysis/portfolios.json |
| Watchlist |
~/.clawdbot/skills/stock-analysis/watchlist.json |
Limitations
- Yahoo Finance may lag 15-20 minutes
- Short interest lags ~2 weeks (FINRA)
- Insider trades lag 2-3 days (SEC filing)
- US markets only (non-US incomplete)
- Breaking news: 1h cache, keyword-based
Disclaimer
⚠️ NOT FINANCIAL ADVICE. For informational purposes only. Consult a licensed financial advisor before making investment decisions.
1---
2name: stock-analysis
3description: Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
4description_zh: "股票与加密货币分析(8维评分、组合管理、趋势扫描、传闻探测)"
5description_en: "Stock & crypto analysis with 8-dim scoring, portfolio, trend & rumor scanning"
6version: 6.2.1
7homepage: https://finance.yahoo.com
8metadata:
9 source: https://skillmd.com/skills/infometa/stock-analysis
10 clawdbot:
11 emoji: "\U0001F4C8"
12 requires:
13 bins:
14 - uv
15 env: []
16 install:
17 - id: uv-brew
18 kind: brew
19 formula: uv
20 bins:
21 - uv
22 label: Install uv (brew)
23commands:
24 - /stock - Analyze a stock or crypto (e.g., /stock AAPL)
25 - /stock_compare - Compare multiple tickers
26 - /stock_dividend - Analyze dividend metrics
27 - /stock_watch - Add/remove from watchlist
28 - /stock_alerts - Check triggered alerts
29 - /stock_hot - Find trending stocks & crypto (Hot Scanner)
30 - /stock_rumors - Find early signals, M&A rumors, insider activity (Rumor Scanner)
31 - /portfolio - Show portfolio summary
32 - /portfolio_add - Add asset to portfolio
33display_name: "Stock Analysis"
34display_name_en: "Stock Analysis"
35visibility: "public"
36---
37
38# Stock Analysis v6.1
39
40Analyze US stocks and cryptocurrencies with 8-dimension analysis, portfolio management, watchlists, alerts, dividend analysis, and **viral trend detection**.
41
42## What's New in v6.2
43
44- 🔮 **Rumor Scanner** — Early signals before mainstream news
45 - M&A rumors and takeover bids
46 - Insider buying/selling activity
47 - Analyst upgrades/downgrades
48 - Twitter/X "hearing that...", "sources say..." detection
49- 🎯 **Impact Scoring** — Rumors ranked by potential market impact
50
51## What's in v6.1
52
53- 🔥 **Hot Scanner** — Find viral stocks & crypto across multiple sources
54- 🐦 **Twitter/X Integration** — Social sentiment via bird CLI
55- 📰 **Multi-Source Aggregation** — CoinGecko, Google News, Yahoo Finance
56- ⏰ **Cron Support** — Daily trend reports
57
58## What's in v6.0
59
60- 🆕 **Watchlist + Alerts** — Price targets, stop losses, signal changes
61- 🆕 **Dividend Analysis** — Yield, payout ratio, growth, safety score
62- 🆕 **Fast Mode** — `--fast` skips slow analyses (insider, news)
63- 🆕 **Improved Performance** — `--no-insider` for faster runs
64
65## Quick Commands
66
67### Stock Analysis
68```bash
69# Basic analysis
70uv run {baseDir}/scripts/analyze_stock.py AAPL
71
72# Fast mode (skips insider trading & breaking news)
73uv run {baseDir}/scripts/analyze_stock.py AAPL --fast
74
75# Compare multiple
76uv run {baseDir}/scripts/analyze_stock.py AAPL MSFT GOOGL
77
78# Crypto
79uv run {baseDir}/scripts/analyze_stock.py BTC-USD ETH-USD
80```
81
82### Dividend Analysis (NEW v6.0)
83```bash
84# Analyze dividends
85uv run {baseDir}/scripts/dividends.py JNJ
86
87# Compare dividend stocks
88uv run {baseDir}/scripts/dividends.py JNJ PG KO MCD --output json
89```
90
91**Dividend Metrics:**
92- Dividend Yield & Annual Payout
93- Payout Ratio (safe/moderate/high/unsustainable)
94- 5-Year Dividend Growth (CAGR)
95- Consecutive Years of Increases
96- Safety Score (0-100)
97- Income Rating (excellent/good/moderate/poor)
98
99### Watchlist + Alerts (NEW v6.0)
100```bash
101# Add to watchlist
102uv run {baseDir}/scripts/watchlist.py add AAPL
103
104# With price target alert
105uv run {baseDir}/scripts/watchlist.py add AAPL --target 200
106
107# With stop loss alert
108uv run {baseDir}/scripts/watchlist.py add AAPL --stop 150
109
110# Alert on signal change (BUY→SELL)
111uv run {baseDir}/scripts/watchlist.py add AAPL --alert-on signal
112
113# View watchlist
114uv run {baseDir}/scripts/watchlist.py list
115
116# Check for triggered alerts
117uv run {baseDir}/scripts/watchlist.py check
118uv run {baseDir}/scripts/watchlist.py check --notify # Telegram format
119
120# Remove from watchlist
121uv run {baseDir}/scripts/watchlist.py remove AAPL
122```
123
124**Alert Types:**
125- 🎯 **Target Hit** — Price >= target
126- 🛑 **Stop Hit** — Price <= stop
127- 📊 **Signal Change** — BUY/HOLD/SELL changed
128
129### Portfolio Management
130```bash
131# Create portfolio
132uv run {baseDir}/scripts/portfolio.py create "Tech Portfolio"
133
134# Add assets
135uv run {baseDir}/scripts/portfolio.py add AAPL --quantity 100 --cost 150
136uv run {baseDir}/scripts/portfolio.py add BTC-USD --quantity 0.5 --cost 40000
137
138# View portfolio
139uv run {baseDir}/scripts/portfolio.py show
140
141# Analyze with period returns
142uv run {baseDir}/scripts/analyze_stock.py --portfolio "Tech Portfolio" --period weekly
143```
144
145### 🔥 Hot Scanner (NEW v6.1)
146```bash
147# Full scan - find what's trending NOW
148python3 {baseDir}/scripts/hot_scanner.py
149
150# Fast scan (skip social media)
151python3 {baseDir}/scripts/hot_scanner.py --no-social
152
153# JSON output for automation
154python3 {baseDir}/scripts/hot_scanner.py --json
155```
156
157**Data Sources:**
158- 📊 CoinGecko Trending — Top 15 trending coins
159- 📈 CoinGecko Movers — Biggest gainers/losers
160- 📰 Google News — Finance & crypto headlines
161- 📉 Yahoo Finance — Gainers, losers, most active
162- 🐦 Twitter/X — Social sentiment (requires auth)
163
164**Output:**
165- Top trending by mention count
166- Crypto highlights with 24h changes
167- Stock movers by category
168- Breaking news with tickers
169
170**Twitter Setup (Optional):**
1711. Install bird: `npm install -g @steipete/bird`
1722. Login to x.com in Safari/Chrome
1733. Create `.env` with `AUTH_TOKEN` and `CT0`
174
175### 🔮 Rumor Scanner (NEW v6.2)
176```bash
177# Find early signals, M&A rumors, insider activity
178python3 {baseDir}/scripts/rumor_scanner.py
179```
180
181**What it finds:**
182- 🏢 **M&A Rumors** — Merger, acquisition, takeover bids
183- 👔 **Insider Activity** — CEO/Director buying/selling
184- 📊 **Analyst Actions** — Upgrades, downgrades, price target changes
185- 🐦 **Twitter Whispers** — "hearing that...", "sources say...", "rumor"
186- ⚖️ **SEC Activity** — Investigations, filings
187
188**Impact Scoring:**
189- Each rumor is scored by potential market impact (1-10)
190- M&A/Takeover: +5 points
191- Insider buying: +4 points
192- Upgrade/Downgrade: +3 points
193- "Hearing"/"Sources say": +2 points
194- High engagement: +2 bonus
195
196**Best Practice:** Run at 07:00 before US market open to catch pre-market signals.
197
198## Analysis Dimensions (8 for stocks, 3 for crypto)
199
200### Stocks
201| Dimension | Weight | Description |
202|-----------|--------|-------------|
203| Earnings Surprise | 30% | EPS beat/miss |
204| Fundamentals | 20% | P/E, margins, growth |
205| Analyst Sentiment | 20% | Ratings, price targets |
206| Historical | 10% | Past earnings reactions |
207| Market Context | 10% | VIX, SPY/QQQ trends |
208| Sector | 15% | Relative strength |
209| Momentum | 15% | RSI, 52-week range |
210| Sentiment | 10% | Fear/Greed, shorts, insiders |
211
212### Crypto
213- Market Cap & Category
214- BTC Correlation (30-day)
215- Momentum (RSI, range)
216
217## Sentiment Sub-Indicators
218
219| Indicator | Source | Signal |
220|-----------|--------|--------|
221| Fear & Greed | CNN | Contrarian (fear=buy) |
222| Short Interest | Yahoo | Squeeze potential |
223| VIX Structure | Futures | Stress detection |
224| Insider Trades | SEC EDGAR | Smart money |
225| Put/Call Ratio | Options | Sentiment extreme |
226
227## Risk Detection
228
229- ⚠️ **Pre-Earnings** — Warns if < 14 days to earnings
230- ⚠️ **Post-Spike** — Flags if up >15% in 5 days
231- ⚠️ **Overbought** — RSI >70 + near 52w high
232- ⚠️ **Risk-Off** — GLD/TLT/UUP rising together
233- ⚠️ **Geopolitical** — Taiwan, China, Russia, Middle East keywords
234- ⚠️ **Breaking News** — Crisis keywords in last 24h
235
236## Performance Options
237
238| Flag | Effect | Speed |
239|------|--------|-------|
240| (default) | Full analysis | 5-10s |
241| `--no-insider` | Skip SEC EDGAR | 3-5s |
242| `--fast` | Skip insider + news | 2-3s |
243
244## Supported Cryptos (Top 20)
245
246BTC, ETH, BNB, SOL, XRP, ADA, DOGE, AVAX, DOT, MATIC, LINK, ATOM, UNI, LTC, BCH, XLM, ALGO, VET, FIL, NEAR
247
248(Use `-USD` suffix: `BTC-USD`, `ETH-USD`)
249
250## Data Storage
251
252| File | Location |
253|------|----------|
254| Portfolios | `~/.clawdbot/skills/stock-analysis/portfolios.json` |
255| Watchlist | `~/.clawdbot/skills/stock-analysis/watchlist.json` |
256
257## Limitations
258
259- Yahoo Finance may lag 15-20 minutes
260- Short interest lags ~2 weeks (FINRA)
261- Insider trades lag 2-3 days (SEC filing)
262- US markets only (non-US incomplete)
263- Breaking news: 1h cache, keyword-based
264
265## Disclaimer
266
267⚠️ **NOT FINANCIAL ADVICE.** For informational purposes only. Consult a licensed financial advisor before making investment decisions.