merkyorlynn/lynn/quant-scanner

Claude Code and agent skill by merkyorlynn/lynn

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Quantitative stock scanner with model-driven adaptive factor scoring. Scans ~100 US large/mid-cap stocks via Finnhub API, detects market regime (volatility, momentum, breadth), dynamically adjusts factor weights, and produces ranked selection/anomaly lists with HTML reports. Use for US stock screening, quantitative stock picking, factor analysis, market regime detection, stock scoring, building a model portfolio, or finding momentum/value/quality plays.

Install

npx vskill@latest install merkyorlynn/lynn/quant-scanner

SKILL.md

Quant Scanner v1.0

Model-driven quantitative stock scanner for US equities. Scans ~100 large/mid-cap stocks, detects the current market regime, adaptively adjusts 5-factor scoring weights, and outputs ranked picks with an HTML report.

Setup

Required: A free Finnhub API key.

  1. Go to https://finnhub.io and sign up (free)
  2. Copy your API key from the dashboard
  3. Set it as an environment variable:
bash
export FINNHUB_API_KEY="your_key_here"

Or pass it directly via --api-key:

bash
python3 {baseDir}/scripts/quant_scan.py --api-key YOUR_KEY

Quick Commands

Full Scan (HTML + JSON report)
bash
python3 {baseDir}/scripts/quant_scan.py

This will:

  1. Fetch quote, metrics, profile, and analyst recommendations for ~100 stocks
  2. Detect market regime (volatility, momentum, breadth)
  3. Score each stock on 5 adaptive factors
  4. Output a ranked list + HTML report
Quick Top 10
bash
python3 {baseDir}/scripts/quant_scan.py --top 10
Specific Tickers Only
bash
python3 {baseDir}/scripts/quant_scan.py --tickers AAPL,NVDA,TSLA,GOOGL,META
Custom Universe File
bash
python3 {baseDir}/scripts/quant_scan.py --universe my_watchlist.txt

Where my_watchlist.txt has one ticker per line.

JSON Output Only (for piping)
bash
python3 {baseDir}/scripts/quant_scan.py --format json

How It Works

5-Factor Adaptive Scoring

Each stock is scored on 5 factors. The weights adapt to the detected market regime:

FactorBase WeightBullish AdjBearish AdjHigh-Vol Adj
Momentum (5D/13W/MTD return + relative strength vs S&P 500)30%x1.3 boostx0.7 dampen—
Value (P/E, forward P/E, PEG, dividend yield)20%x0.8 reducex1.3 boost—
Quality (ROE, net margin, revenue growth, EPS growth)25%——x1.2 boost
Analyst Sentiment (buy/hold/sell consensus ratio)10%———
Risk-Adjusted (beta, volatility, leverage, liquidity)15%——x1.4 penalty
Market Regime Detection

The scanner analyzes the full universe to determine:

  • Volatility Level — HIGH / MEDIUM / LOW (3-month average annualized std dev)
  • Momentum Regime — BULLISH / NEUTRAL / BEARISH (13-week return distribution)
  • Market Breadth — BROAD RALLY / MIXED / BROAD DECLINE (5-day positive percentage)
Data Sources (all free-tier Finnhub)
EndpointData
quoteCurrent price, daily change, high/low
stock/metric5D/13W/26W/52W/YTD returns, P/E, ROE, margins, beta, volatility, growth rates, relative to S&P 500
stock/profile2Company name, sector, market cap
stock/recommendationAnalyst buy/hold/sell consensus
Default Universe (~100 stocks)

Mega Tech: AAPL, MSFT, GOOGL, AMZN, NVDA, META, TSLA Semiconductors: AVGO, AMD, INTC, QCOM, MU, MRVL, AMAT, LRCX, KLAC, ON, ARM Software/Cloud: CRM, ORCL, ADBE, NOW, SNOW, PLTR, PANW, CRWD, DDOG, NET, ZS, SHOP Financials: JPM, V, MA, BAC, GS, MS, BLK, SCHW, AXP, C Healthcare: UNH, LLY, JNJ, ABBV, PFE, MRK, TMO, ABT, BMY, GILD, AMGN, ISRG, VRTX Consumer: WMT, COST, HD, MCD, NKE, SBUX, TGT, LOW, PG, KO, PEP Energy: XOM, CVX, COP, SLB, EOG, OXY Industrials: CAT, GE, HON, UNP, BA, RTX, LMT, DE Others: NFLX, DIS, ABNB, UBER, COIN, SOFI, SMCI, MSTR China ADR: BABA, PDD, JD, BIDU, NIO, LI, XPEV

Output

HTML Report (default)

A styled, responsive HTML file with:

  • KPI dashboard (top pick, market regime, key metrics)
  • Market regime detection panel
  • Model portfolio (top 5 with factor decomposition)
  • Full selection ranking (top 30)
  • Anomaly ranking (top 20)
  • Sector distribution
  • Regime-adaptive weight explanation table
JSON Report

Machine-readable output with all scored stocks, regime detection, and portfolio.

Limitations

  • Finnhub free tier: 60 API calls/minute — scanning 100 stocks takes ~2 minutes
  • No intraday candle data on free tier — uses metric endpoint for returns
  • Returns are point-in-time snapshots, not a real backtest
  • Not investment advice — research and monitoring only

Examples

User: scan the market and find me the best momentum plays
→ /quant_scan
User: what's the market regime right now?
→ /quant_regime
User: analyze NVDA AVGO AMD in detail
→ /quant_analyze NVDA AVGO AMD
User: give me a quick top 10 stock ranking
→ /quant_top

Use with Lynn (Zero Config)

Part of Lynn — a personal AI agent with memory and soul. Lynn has this built-in by default.

With Lynn desktop agent, quant-scanner works seamlessly:

  • Natural language — just say "scan US stocks" or "what should I buy", Lynn auto-triggers the skill
  • Memory integration — Lynn remembers your preferred tickers, past scan results, and investment style
  • Multi-model routing — Lynn uses the best model for analysis (reasoning model for factor interpretation, fast model for data fetching)
  • Scheduled scans — set up daily pre-market scans that run automatically
  • Combined with A-share scanner — Lynn also has a Tushare-powered A-share quantitative scanner for Chinese stocks
bash
# Install Lynn
git clone https://github.com/LynnMerkyor/Lynn.git
cd Lynn && npm install
# Then just chat:
# "scan the US market for me"
# "compare NVDA and AMD"
# "set up a daily pre-market scan"

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/merkyorlynn/lynn/quant-scanner/badge)](https://verified-skill.com/skills/merkyorlynn/lynn/quant-scanner)

Something wrong with this skill or its page? Tell us.