AI-Powered Multi-Agent Stock Analysis for Claude Code
Features β’ Installation β’ Usage β’ Agents β’ How It Works
Super Hedge Fund Skill is a Claude Code skill that transforms Claude into a multi-agent hedge fund analyst. It combines rule-based precision with Claude-powered insight to deliver comprehensive stock analysis.
User: "Analyze AAPL, MSFT, NVDA"
β 8 AI Agents Analyze in Parallel
β Risk-Adjusted Position Sizing
β Comprehensive Markdown Report
β οΈ Disclaimer: Educational and research purposes only. NOT investment advice.
| Feature | Description |
|---|---|
| π€ 8 Analysis Agents | Fundamental, Technical, Valuation, Sentiment + 4 Investor Personas |
| π Rule-Based Precision | Deterministic calculations for financial metrics |
| π§ Claude-Powered Insight | Interpretive analysis from famous investor perspectives |
| βοΈ Risk Management | Volatility-based position sizing and limits |
| π Professional Reports | Markdown format with executive summary |
| π Multi-Source Data | Yahoo Finance integration with caching |
# Clone the repository
git clone https://github.com/StanleyChanH/super-hedge-fund-skill.git
# Copy to Claude Code skills directory
cp -r super-hedge-fund-skill/super-hedge-fund-skill ~/.claude/skills/# Create skills directory if not exists
mkdir -p ~/.claude/skills
# Download and extract
curl -L https://github.com/StanleyChanH/super-hedge-fund-skill/archive/refs/heads/main.tar.gz | tar xz
# Install
cp -r super-hedge-fund-skill-main/super-hedge-fund-skill ~/.claude/skills/Simply mention stock tickers or investment questions in Claude Code:
User: Analyze AAPL
User: Should I buy TSLA?
User: What's the signal for NVDA and GOOGL?
User: Compare MSFT and AMZN
User: Analyze AAPL with brief mode
User: Full analysis for TSLA, NVDA, META with $100k portfolio
User: What would Warren Buffett think of NVDA?
# π¦ AI Hedge Fund Analysis Report
**Ticker**: AAPL
**Action**: π‘ Hold
**Confidence**: 55%
## Agent Signals
| Agent | Signal | Confidence | Reasoning |
|-------|--------|------------|-----------|
| Fundamental | π’ Bullish | 82% | ROE 54%, Net Margin 25% |
| Technical | π‘ Neutral | 52% | EMA trend mixed, RSI 55 |
| Valuation | π΄ Bearish | 68% | P/E 34x above historical |
| Buffett | π’ Bullish | 75% | Wide moat, excellent ROE |
| Wood | π‘ Neutral | 60% | AI potential but expensive |
| Burry | π΄ Bearish | 70% | Overvalued, no catalyst |
| Lynch | π‘ Neutral | 55% | PEG > 1, growth slowing |
**Consensus**: Neutral (Bullish: 2 / Bearish: 2 / Neutral: 3)| Agent | Metrics | Signal Logic |
|---|---|---|
| Fundamental | ROE, Net Margin, Debt/Equity, Revenue Growth | Score β₯ 60 β Bullish |
| Technical | EMA, RSI, MACD, Bollinger, Momentum | Weighted signal aggregation |
| Valuation | DCF, Owner Earnings, EV/EBITDA | Gap > 15% from intrinsic value |
| Sentiment | News headlines, Insider trades | Weighted positive/negative |
| Investor | Philosophy | Focus |
|---|---|---|
| π§ Warren Buffett | Value Investing | Moat, ROE > 15%, Margin of Safety |
| π Cathie Wood | Growth Investing | Disruptive Tech, AI, Innovation |
| π Michael Burry | Contrarian Investing | Deep Value, Against Consensus |
| π Peter Lynch | GARP | PEG < 1, Understandable Business |
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Input ββββββΆβ Fetch Data ββββββΆβ Run Agents β
β (Tickers) β β(Price/Fin) β β(Rule+Claude)β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β
βΌ
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Output βββββββ Aggregate βββββββRisk Analysisβ
β (Report) β β Signals β β(Vol/Limits) β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
# Count signals from all agents
bullish_count = count(bullish signals)
bearish_count = count(bearish signals)
neutral_count = count(neutral signals)
# Determine consensus
if bullish_count > bearish_count + 2:
consensus = "BULLISH"
elif bearish_count > bullish_count + 2:
consensus = "BEARISH"
else:
consensus = "NEUTRAL"| Volatility | Risk Level | Max Position |
|---|---|---|
| < 15% | Low | 25% |
| 15-30% | Medium | 20% |
| 30-50% | High | 15% |
| > 50% | Very High | 10% |
super-hedge-fund-skill/
βββ README.md # This file
βββ README_CN.md # Chinese documentation
βββ super-hedge-fund-skill/ # Skill directory
β βββ SKILL.md # Main skill file
β βββ scripts/ # Python modules
β β βββ analysts.py # Rule-based analysts
β β βββ data_fetcher.py # Data fetching
β β βββ investor_prompts.py # Claude investor prompts
β β βββ report_generator.py # Report generation
β βββ references/ # Reference docs
β β βββ investor-agents.md # Investor personas
β β βββ analysis-methods.md # Analysis methods
β βββ assets/ # Output templates
β βββ report-template.md # Report template
Works with any US stock ticker available on Yahoo Finance:
- Large Cap: AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META
- Mid/Small Cap: Most NYSE/NASDAQ listed stocks
- ETFs: SPY, QQQ, IWM, etc.
| Data Type | Source | Notes |
|---|---|---|
| Price Data | Yahoo Finance | OHLCV, 60+ days |
| Financials | Yahoo Finance | ROE, P/E, margins, debt |
| News | Yahoo Finance | Recent headlines |
# Run module tests
cd super-hedge-fund-skill/super-hedge-fund-skill/scripts
python -m analysts
python -m data_fetcher
python -m report_generatorContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
IMPORTANT: This software is for educational and research purposes only.
- β NOT financial advice
- β NOT a recommendation to buy or sell securities
- β NOT a guarantee of future performance
Investing involves substantial risk. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making investment decisions.
- Inspired by AI Hedge Fund project
- Built for Claude Code
- Data provided by Yahoo Finance
Made with β€οΈ by StanleyChanH