Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
gracefullight avatar

Stock Analysis

  • 11.1k installs
  • 39 repo stars
  • Updated July 27, 2026
  • gracefullight/stock-checker

Should I buy/hold/sell this stock or crypto? What is my portfolio P&L and sector exposure?

About

Stock-analysis evaluates US equities and top-20 cryptocurrencies across 8 stock dimensions (earnings, fundamentals, sentiment, technicals, sector, momentum) and 3 crypto dimensions (market cap, correlation, momentum). Developers use it to build portfolio dashboards, monitor holdings with cost-basis P&L, detect pre/post-earnings risk, scan geopolitical/sector headwinds, and generate daily/weekly/monthly period returns. Core workflows: analyze single/multiple tickers via CLI, create/manage mixed asset portfolios (stocks + crypto), retrieve structured JSON for downstream analysis, and receive BUY/HOLD/SELL signals with 5-7 risk caveats (VIX, overbought, news alerts).

  • Portfolio management: create, add, remove, update assets; tracks cost basis and current P&L
  • 8 stock + 3 crypto analysis dimensions: earnings surprise, fundamentals, sentiment, technicals, sector, momentum, market
  • Pre/post-earnings timing detection: pre-earnings < 14 days becomes HOLD; post-spike > 15% in 5 days flags gains priced i
  • Risk flags: high VIX, overbought RSI, sector weakness, geopolitical news (Taiwan, China, Russia, Middle East, banking),
  • CLI + JSON output: Yahoo Finance data with 1-hour caching, async parallel fetch (3-5s per stock), 2 breaking news alerts

Stock Analysis by the numbers

  • 11,106 all-time installs (skills.sh)
  • +116 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #7 of 1,136 Finance & Trading skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

stock-analysis capabilities & compatibility

Free (Yahoo Finance, Google News RSS, CNN Fear & Greed).

Capabilities
single/multi ticker analysis with 8 stock or 3 c · portfolio crud: create, add, remove, update, lis · period returns: daily, weekly, monthly, quarterl · risk detection: pre/post earnings timing, overbo · sentiment indicators: fear & greed index, short · json and text output formats · async parallel fetch with 1 hour caching
Use cases
trading
Platforms
macOS · Windows · Linux
Runs
Runs locally
Pricing
Free
From the docs

What stock-analysis says it does

Analyze US stocks and cryptocurrencies using Yahoo Finance data. Includes portfolio management, crypto support, and periodic analysis.
stock-analysis/README.md#header
npx skills add https://github.com/gracefullight/stock-checker --skill stock-analysis

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs11.1k
repo stars39
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorygracefullight/stock-checker

What it does

Analyze US stocks and cryptocurrencies with portfolio tracking, earnings reactions, and periodic performance reports.

Who is it for?

Portfolio tracking dashboards, earnings reaction monitoring, crypto market cap analysis, risk-off detection, sector rotation alerts.

Skip if: High-frequency trading, options strategies, international stocks, crypto on-chain analysis, fundamental research deep dives.

When should I use this skill?

User asks for stock/crypto analysis, portfolio update, earnings timeline, sentiment signals, or P&L reports.

What you get

Automated stock/crypto scoring with 8 dimensions, portfolio dashboards with cost basis, and risk alerts (earnings timing, VIX, geopolitics, technicals).

  • BUY/HOLD/SELL signal with confidence score
  • 8-dimension stock metrics or 3-dimension crypto metrics
  • Portfolio P&L and concentration warnings

By the numbers

  • 8 analysis dimensions for stocks (earnings 30%, fundamentals 20%, sentiment 20%, technicals/momentum combined 25%)
  • 3 analysis dimensions for crypto (market cap, BTC correlation, momentum/RSI)
  • 20 supported cryptocurrencies: BTC, ETH, BNB, SOL, XRP, ADA, DOGE, AVAX, DOT, MATIC, LINK, ATOM, UNI, LTC, BCH, XLM, ALG

Files

SKILL.mdMarkdownGitHub ↗

Stock Analysis (v5.0)

Analyze US stocks and cryptocurrencies using Yahoo Finance data. Includes portfolio management, crypto support, and periodic analysis.

Quick Start

IMPORTANT: Pass ONLY the stock ticker symbol(s) as arguments. Do NOT add extra text, headers, or formatting in the command.

Analyze a single ticker:

uv run {baseDir}/scripts/analyze_stock.py AAPL
uv run {baseDir}/scripts/analyze_stock.py MSFT --output json

Compare multiple tickers:

uv run {baseDir}/scripts/analyze_stock.py AAPL MSFT GOOGL

Cryptocurrency Analysis (v5.0)

Analyze top 20 cryptocurrencies by market cap:

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

Supported Cryptos: BTC-USD, ETH-USD, BNB-USD, SOL-USD, XRP-USD, ADA-USD, DOGE-USD, AVAX-USD, DOT-USD, MATIC-USD, LINK-USD, ATOM-USD, UNI-USD, LTC-USD, BCH-USD, XLM-USD, ALGO-USD, VET-USD, FIL-USD, NEAR-USD

Crypto Analysis Dimensions:

  • Market cap (large/mid/small classification)
  • Category (Smart Contract L1, DeFi, Payment, etc.)
  • BTC correlation (30-day)
  • Momentum (RSI, price range)
  • Market context (VIX, general market regime)

Portfolio Management (v5.0)

Create and manage portfolios with mixed assets (stocks + crypto):

# Create portfolio
uv run {baseDir}/scripts/portfolio.py create "My Portfolio"

# Add assets
uv run {baseDir}/scripts/portfolio.py add AAPL --quantity 100 --cost 150.00
uv run {baseDir}/scripts/portfolio.py add BTC-USD --quantity 0.5 --cost 40000 --portfolio "My Portfolio"

# View holdings with current P&L
uv run {baseDir}/scripts/portfolio.py show

# Update/remove assets
uv run {baseDir}/scripts/portfolio.py update AAPL --quantity 150
uv run {baseDir}/scripts/portfolio.py remove BTC-USD

# List/delete portfolios
uv run {baseDir}/scripts/portfolio.py list
uv run {baseDir}/scripts/portfolio.py delete "My Portfolio"

Portfolio Storage: ~/.clawdbot/skills/stock-analysis/portfolios.json

Portfolio Analysis (v5.0)

Analyze all assets in a portfolio with optional period returns:

# Analyze portfolio
uv run {baseDir}/scripts/analyze_stock.py --portfolio "My Portfolio"

# With period returns (daily/weekly/monthly/quarterly/yearly)
uv run {baseDir}/scripts/analyze_stock.py --portfolio "My Portfolio" --period weekly
uv run {baseDir}/scripts/analyze_stock.py -p "My Portfolio" --period monthly

Portfolio Summary includes:

  • Total cost, current value, P&L
  • Period return (if specified)
  • Concentration warnings (>30% in single asset)
  • Recommendation summary (BUY/HOLD/SELL counts)

Examples:

  • ✅ CORRECT: uv run {baseDir}/scripts/analyze_stock.py BAC
  • ✅ CORRECT: uv run {baseDir}/scripts/analyze_stock.py BTC-USD
  • ❌ WRONG: uv run {baseDir}/scripts/analyze_stock.py === BANK OF AMERICA (BAC) - Q4 2025 EARNINGS ===
  • ❌ WRONG: uv run {baseDir}/scripts/analyze_stock.py "Bank of America"

Use the ticker symbol only (e.g., BAC, not "Bank of America"). For crypto, use the -USD suffix (e.g., BTC-USD).

Analysis Components

The script evaluates eight key dimensions:

1. Earnings Surprise (30% weight): Actual vs expected EPS, revenue beats/misses 2. Fundamentals (20% weight): P/E ratio, profit margins, revenue growth, debt levels 3. Analyst Sentiment (20% weight): Consensus ratings, price target vs current price 4. Historical Patterns (10% weight): Past earnings reactions, volatility 5. Market Context (10% weight): VIX, SPY/QQQ trends, market regime 6. Sector Performance (15% weight): Stock vs sector comparison, sector trends 7. Momentum (15% weight): RSI, 52-week range, volume, relative strength 8. Sentiment Analysis (10% weight): Fear/Greed Index, short interest, VIX term structure, insider trading, put/call ratio

Sentiment Sub-Indicators:

  • Fear & Greed Index (CNN): Contrarian signal (extreme fear = buy opportunity, extreme greed = caution)
  • Short Interest: High shorts + squeeze potential = bullish; justified shorts = bearish
  • VIX Term Structure: Contango = complacency/bullish; backwardation = stress/bearish
  • Insider Activity: Net buying/selling from SEC Form 4 filings (90-day window)
  • Put/Call Ratio: High ratio = excessive fear/bullish; low ratio = complacency/bearish

Weights auto-normalize if some components unavailable.

Special Timing Checks:

  • Pre-earnings warning (< 14 days): Recommends HOLD instead of BUY
  • Post-earnings spike detection (> 15% in 5 days): Flags "gains priced in"
  • Overbought conditions (RSI > 70 + near 52w high): Reduces confidence

Timing Warnings & Risk Flags

The script detects high-risk scenarios:

Earnings Timing

  • Pre-Earnings Period: If earnings < 14 days away, BUY signals become HOLD
  • Post-Earnings Spike: If stock up > 15% in 5 days after earnings, warns "gains may be priced in"

Technical Risk

  • Overbought Conditions: RSI > 70 + near 52-week high = high-risk entry

Market Risk

  • High VIX: Market fear (VIX > 30) reduces confidence in BUY signals
  • Risk-Off Mode (v4.0.0): When safe-havens (GLD, TLT, UUP) rise together, reduces BUY confidence by 30%
  • Detects flight to safety across gold, treasuries, and USD
  • Triggers when GLD ≥ +2%, TLT ≥ +1%, UUP ≥ +1% (5-day change)

Sector Risk

  • Sector Weakness: Stock may look good but sector is rotating out

Geopolitical Risk (v4.0.0)

The script now scans breaking news (last 24h) for crisis keywords and automatically flags affected stocks:

  • Taiwan Conflict: Semiconductors (NVDA, AMD, TSM, INTC, etc.) → 30% confidence penalty
  • China Tensions: Tech/Consumer (AAPL, QCOM, NKE, SBUX, etc.) → 30% confidence penalty
  • Russia-Ukraine: Energy/Materials (XOM, CVX, MOS, CF, etc.) → 30% confidence penalty
  • Middle East: Oil/Defense (XOM, LMT, RTX, etc.) → 30% confidence penalty
  • Banking Crisis: Financials (JPM, BAC, WFC, C, etc.) → 30% confidence penalty

If a ticker is not in the affected list but its sector is exposed, applies a 15% confidence penalty.

Example Alert:

⚠️ SECTOR RISK: Tech supply chain and consumer market exposure (detected: china, tariff)

Breaking News Alerts (v4.0.0)

  • Scans Google News RSS for crisis keywords (war, recession, sanctions, disasters, etc.)
  • Displays up to 2 breaking news alerts in caveats (last 24 hours)
  • Uses 1-hour cache to avoid excessive API calls

Output Format

Default (text): Concise buy/hold/sell signal with 3-5 bullet points and caveats

JSON: Structured data with scores, metrics, and raw data for further analysis

Limitations

  • Data freshness: Yahoo Finance may lag 15-20 minutes
  • Sentiment data staleness:
  • Short interest data lags ~2 weeks (FINRA reporting schedule)
  • Insider trades may lag filing by 2-3 days
  • VIX term structure only updates during futures trading hours
  • Breaking news limitations (v4.0.0):
  • Google News RSS may lag by 15-60 minutes
  • Keyword matching may have false positives/negatives
  • Does not analyze sentiment, only detects keywords
  • 1-hour cache means alerts may be slightly stale
  • Missing data: Not all stocks have analyst coverage, options chains, or complete fundamentals
  • Execution time: 3-5s per stock with async parallel fetching and caching (shared indicators cached for 1h)
  • Disclaimer: All outputs include prominent "not financial advice" warning
  • US markets only: Non-US tickers may have incomplete data

Error Handling

The script gracefully handles:

  • Invalid tickers → Clear error message
  • Missing analyst data → Signal based on available metrics only
  • API failures → Retry with exponential backoff, fail after 3 attempts

Related skills

Forks & variants (1)

Stock Analysis has 1 known copy in the catalog totaling 143 installs. They canonicalize to this original listing.

FAQ

What data sources does stock-analysis use?

Yahoo Finance (stock/crypto prices, fundamentals, analyst ratings), CNN Fear & Greed Index, Google News RSS (breaking news), FINRA (short interest), SEC Form 4 (insider trades).

How often is data refreshed?

Yahoo Finance lags 15-20 minutes; short interest ~2 weeks; insider trades 2-3 days; breaking news 15-60 minutes. Shared indicators cached 1 hour.

Can I analyze non-US stocks or crypto outside top 20?

US markets only. Crypto limited to top 20 by market cap (BTC-USD, ETH-USD, SOL-USD, etc.). Non-US tickers have incomplete data.

Is Stock Analysis safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.