skills$openclaw/stock-analysis
udiedrichsen2.1k

by udiedrichsen

stock-analysis – OpenClaw Skill

stock-analysis is an OpenClaw Skills integration for data analytics workflows. 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.

2.1k stars1.4k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namestock-analysis
descriptionAnalyze 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. OpenClaw Skills integration.
ownerudiedrichsen
repositoryudiedrichsen/stock-analysis
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @udiedrichsen/stock-analysis
last updatedFeb 7, 2026

Maintainer

udiedrichsen

udiedrichsen

Maintains stock-analysis in the OpenClaw Skills directory.

View GitHub profile
File Explorer
19 files
.
docs
ARCHITECTURE.md
16.2 KB
CONCEPT.md
8.9 KB
HOT_SCANNER.md
5.7 KB
README.md
2.3 KB
USAGE.md
8.7 KB
scripts
analyze_stock.py
87.8 KB
dividends.py
12.8 KB
hot_scanner.py
24.0 KB
portfolio.py
18.5 KB
rumor_scanner.py
11.3 KB
test_stock_analysis.py
11.7 KB
watchlist.py
11.3 KB
_meta.json
1.5 KB
App-Plan.md
14.4 KB
README.md
6.2 KB
SKILL.md
8.0 KB
TODO.md
12.5 KB
SKILL.md

name: stock-analysis description: 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. version: 6.2.0 homepage: https://finance.yahoo.com commands:

  • /stock - Analyze a stock or crypto (e.g., /stock AAPL)
  • /stock_compare - Compare multiple tickers
  • /stock_dividend - Analyze dividend metrics
  • /stock_watch - Add/remove from watchlist
  • /stock_alerts - Check triggered alerts
  • /stock_hot - Find trending stocks & crypto (Hot Scanner)
  • /stock_rumors - Find early signals, M&A rumors, insider activity (Rumor Scanner)
  • /portfolio - Show portfolio summary
  • /portfolio_add - Add asset to portfolio metadata: {"clawdbot":{"emoji":"📈","requires":{"bins":["uv"],"env":[]},"install":[{"id":"uv-brew","kind":"brew","formula":"uv","bins":["uv"],"label":"Install uv (brew)"}]}}

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

  1. Install bird: npm install -g @steipete/bird
  2. Login to x.com in Safari/Chrome
  3. 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

DimensionWeightDescription
Earnings Surprise30%EPS beat/miss
Fundamentals20%P/E, margins, growth
Analyst Sentiment20%Ratings, price targets
Historical10%Past earnings reactions
Market Context10%VIX, SPY/QQQ trends
Sector15%Relative strength
Momentum15%RSI, 52-week range
Sentiment10%Fear/Greed, shorts, insiders

Crypto

  • Market Cap & Category
  • BTC Correlation (30-day)
  • Momentum (RSI, range)

Sentiment Sub-Indicators

IndicatorSourceSignal
Fear & GreedCNNContrarian (fear=buy)
Short InterestYahooSqueeze potential
VIX StructureFuturesStress detection
Insider TradesSEC EDGARSmart money
Put/Call RatioOptionsSentiment 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

FlagEffectSpeed
(default)Full analysis5-10s
--no-insiderSkip SEC EDGAR3-5s
--fastSkip insider + news2-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

FileLocation
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.

README.md

📈 Stock Analysis v6.1

AI-powered stock & crypto analysis with portfolio management, watchlists, dividend analysis, and viral trend detection.

ClawHub Downloads OpenClaw Skill

What's New 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 New in v6.0

  • 🆕 Watchlist + Alerts — Price targets, stop losses, signal change notifications
  • 🆕 Dividend Analysis — Yield, payout ratio, growth rate, safety score
  • 🆕 Fast Mode — Skip slow analyses for quick checks
  • 🆕 Improved Commands — Better OpenClaw/Telegram integration
  • 🆕 Test Suite — Unit tests for core functionality

Features

FeatureDescription
8-Dimension AnalysisEarnings, fundamentals, analysts, momentum, sentiment, sector, market, history
Crypto SupportTop 20 cryptos with market cap, BTC correlation, momentum
Portfolio ManagementTrack holdings, P&L, concentration warnings
Watchlist + AlertsPrice targets, stop losses, signal changes
Dividend AnalysisYield, payout, growth, safety score
Risk DetectionGeopolitical, earnings timing, overbought, risk-off
Breaking NewsCrisis keyword scanning (last 24h)

Quick Start

Analyze Stocks

uv run scripts/analyze_stock.py AAPL
uv run scripts/analyze_stock.py AAPL MSFT GOOGL
uv run scripts/analyze_stock.py AAPL --fast  # Skip slow analyses

Analyze Crypto

uv run scripts/analyze_stock.py BTC-USD
uv run scripts/analyze_stock.py ETH-USD SOL-USD

Dividend Analysis

uv run scripts/dividends.py JNJ PG KO

Watchlist

uv run scripts/watchlist.py add AAPL --target 200 --stop 150
uv run scripts/watchlist.py list
uv run scripts/watchlist.py check --notify

Portfolio

uv run scripts/portfolio.py create "My Portfolio"
uv run scripts/portfolio.py add AAPL --quantity 100 --cost 150
uv run scripts/portfolio.py show

🔥 Hot Scanner (NEW)

# Full scan with all sources
python3 scripts/hot_scanner.py

# Fast scan (skip social media)
python3 scripts/hot_scanner.py --no-social

# JSON output for automation
python3 scripts/hot_scanner.py --json

Analysis Dimensions

Stocks (8 dimensions)

  1. Earnings Surprise (30%) — EPS beat/miss
  2. Fundamentals (20%) — P/E, margins, growth, debt
  3. Analyst Sentiment (20%) — Ratings, price targets
  4. Historical Patterns (10%) — Past earnings reactions
  5. Market Context (10%) — VIX, SPY/QQQ trends
  6. Sector Performance (15%) — Relative strength
  7. Momentum (15%) — RSI, 52-week range
  8. Sentiment (10%) — Fear/Greed, shorts, insiders

Crypto (3 dimensions)

  • Market Cap & Category
  • BTC Correlation (30-day)
  • Momentum (RSI, range)

Dividend Metrics

MetricDescription
YieldAnnual dividend / price
Payout RatioDividend / EPS
5Y GrowthCAGR of dividend
Consecutive YearsYears of increases
Safety Score0-100 composite
Income RatingExcellent → Poor

🔥 Hot Scanner

Find what's trending RIGHT NOW across stocks & crypto.

Data Sources

SourceWhat it finds
CoinGecko TrendingTop 15 trending coins
CoinGecko MoversBiggest gainers/losers (>3%)
Google NewsBreaking finance & crypto news
Yahoo FinanceTop gainers, losers, most active
Twitter/XSocial sentiment (requires auth)

Output

📊 TOP TRENDING (by buzz):
   1. BTC      (6 pts) [CoinGecko, Google News] 📉 bearish (-2.5%)
   2. ETH      (5 pts) [CoinGecko, Twitter] 📉 bearish (-7.2%)
   3. NVDA     (3 pts) [Google News, Yahoo] 📰 Earnings beat...

🪙 CRYPTO HIGHLIGHTS:
   🚀 RIVER    River              +14.0%
   📉 BTC      Bitcoin             -2.5%

📈 STOCK MOVERS:
   🟢 NVDA (gainers)
   🔴 TSLA (losers)

📰 BREAKING NEWS:
   [BTC, ETH] Crypto crash: $2.5B liquidated...

Twitter/X Setup (Optional)

  1. Install bird CLI: npm install -g @steipete/bird
  2. Login to x.com in Safari/Chrome
  3. Create .env file:
AUTH_TOKEN=your_auth_token
CT0=your_ct0_token

Get tokens from browser DevTools → Application → Cookies → x.com

Automation

Set up a daily cron job for morning reports:

# Run at 8 AM daily
0 8 * * * python3 /path/to/hot_scanner.py --no-social >> /var/log/hot_scanner.log

Risk Detection

  • ⚠️ Pre-earnings warning (< 14 days)
  • ⚠️ Post-earnings spike (> 15% in 5 days)
  • ⚠️ Overbought (RSI > 70 + near 52w high)
  • ⚠️ Risk-off mode (GLD/TLT/UUP rising)
  • ⚠️ Geopolitical keywords (Taiwan, China, etc.)
  • ⚠️ Breaking news alerts

Performance Options

FlagSpeedDescription
(default)5-10sFull analysis
--no-insider3-5sSkip SEC EDGAR
--fast2-3sSkip insider + news

Data Sources

Storage

DataLocation
Portfolios~/.clawdbot/skills/stock-analysis/portfolios.json
Watchlist~/.clawdbot/skills/stock-analysis/watchlist.json

Testing

uv run pytest scripts/test_stock_analysis.py -v

Limitations

  • Yahoo Finance may lag 15-20 minutes
  • Short interest lags ~2 weeks (FINRA)
  • US markets only

Disclaimer

⚠️ NOT FINANCIAL ADVICE. For informational purposes only. Consult a licensed financial advisor before making investment decisions.


Built for OpenClaw 🦞 | ClawHub

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install stock-analysis?

Run openclaw add @udiedrichsen/stock-analysis in your terminal. This installs stock-analysis into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/udiedrichsen/stock-analysis. Review commits and README documentation before installing.