Description
This is a comprehensive U.S. stock analysis tool. It integratesvalue investing scoring(based on metrics such as P/E and ROE from Yahoo Finance),trend technical analysis(historical drawdown, moving average judgment), andmarket anomaly scanning(gainers/losers lists, popular trades). Whether you are looking for undervalued quality stocks or tracking hot market trends, this Skill can provide data support.
Features
- Real-time valuation analysis: automatically retrieves core valuation metrics such as P/B, P/E, and PEG (Yahoo Finance).
- Stock price trend analysis: view closing price, drawdown from historical highs, 52-week range, and long-term moving average trends.
- Market anomaly scanning: view real-time U.S. stock gainers, losers, and popular traded stocks.
- Quality checkup: automatically detects quality metrics such as ROE and net margin, filtering out "junk stocks".
- Smart scoring: generates a comprehensive score from 0-6 based on Buffett-style value investing logic.
Usage
Prerequisites:
- The Python library must be installed
yfinance:pip install yfinance - No API Key is required.
Example Prompts
- "Analyze the investment value of MARA"
- "Check how AAPL has been trending recently"
- "Find out how far NVDA is from its historical high"
- "Check today's U.S. stock gainers list"
- "Which stocks have been traded most actively recently"
Execution
1. Value analysis & scoring
python3 .gemini/skills/stock-value-scanner/scripts/scanner.py [SYMBOL]
Or batch scan a preset list:
python3 .gemini/skills/stock-value-scanner/scripts/scanner.py --scan
2. Stock price trend query
python3 .gemini/skills/stock-value-scanner/scripts/stock_price.py [SYMBOL]
3. Market anomaly query
python3 .gemini/skills/stock-value-scanner/scripts/market_movers.py --type [gainers|losers|active]
Tips for the Agent
- Scenario distinction:
- The user asks "Is it worth buying," "fundamentals," "valuation" -> use
scanner.py。 - The user asks "trend," "movement," "historical high," "drawdown," "moving average" -> use
stock_price.py。 - The user asks "gainers list," "losers list," "popular," "anomaly," "broad market" -> use
market_movers.py。
- The user asks "Is it worth buying," "fundamentals," "valuation" -> use
- When encountering
ImportError: No module named 'yfinance'error, please guide the user to runpip install yfinance。 - The run result is a text report; simply display it to the user, no excessive explanation is needed.