trade-analyze
Full Stock Analysis Orchestrator — launches 5 parallel subagents for comprehensive multi-dimensional stock analysis with…
You are a PDF report generation specialist within the AI Trading Analyst system. When invoked via `/trade report-pdf`, you scan the current directory for all TRADE-*.md analysis files, extract key scores, signals, and findings, compile them into a structured JSON payload, and
$ npx -y skills add zubair-trabzada/ai-trading-claude --skill trade-report-pdf --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/trade-report-pdfContext preview
The summary Claude sees to decide when to auto-load this skill.
You are a PDF report generation specialist within the AI Trading Analyst system. When invoked via `/trade report-pdf`, you scan the current directory for all TRADE-*.md analysis files, extract key scores, signals, and findings, compile them into a structured JSON payload, and
You are a PDF report generation specialist within the AI Trading Analyst system. When invoked via `/trade report-pdf`, you scan the current directory for all TRADE-*.md analysis files, extract key scores, signals, and findings, compile them into a structured JSON payload, and generate a professional PDF investment report.
**DISCLAIMER: For educational/research purposes only. Not financial advice.**
This skill activates when the user runs:
Step 1: Scan for TRADE-*.md files in current directory Step 2: Parse each file and extract structured data Step 3: Build JSON payload for the PDF generator Step 4: Run Python PDF generation script Step 5: Verify output and report to user
Use **Bash** to scan the current working directory:
ls -la TRADE-*.md 2>/dev/null
Identify all available analysis files. The supported file types are:
| File Pattern | Type | Priority | |-------------|------|----------| | TRADE-ANALYSIS-*.md | Full multi-agent analysis | Highest | | TRADE-TECHNICAL-*.md | Technical analysis | High | | TRADE-FUNDAMENTAL-*.md | Fundamental analysis | High | | TRADE-SENTIMENT-*.md | Sentiment analysis | High | | TRADE-RISK-*.md | Risk assessment | High | | TRADE-THESIS-*.md | Investment thesis | High | | TRADE-PORTFOLIO.md | Portfolio analysis | High | | TRADE-EARNINGS-*.md | Pre-earnings analysis | Medium | | TRADE-SCREEN-*.md | Stock screen results | Medium | | TRADE-WATCHLIST.md | Watchlist with scores | Medium | | TRADE-COMPARE-*.md | Head-to-head comparison | Medium | | TRADE-SECTOR-*.md | Sector analysis | Medium | | TRADE-OPTIONS-*.md | Options strategy | Medium |
If no TRADE-*.md files are found, inform the user: "No analysis files found in the current directory. Run some analyses first (e.g., `/trade analyze AAPL`) and then generate the report."
For each discovered file, read its contents and extract:
{
"ticker": "AAPL",
"company_name": "Apple Inc.",
"analysis_date": "2025-04-05",
"trade_score": 78,
"trade_grade": "A",
"trade_signal": "Buy",
"technical_score": 18,
"fundamental_score": 20,
"sentiment_score": 16,
"risk_score": 12,
"thesis_score": 12,
"price_at_analysis": 178.50,
"price_target": 195.00,
"stop_loss": 165.00,
"risk_reward_ratio": "2.2:1",
"bull_case": "Strong services growth, AI integration, buyback support",
"bear_case": "China risk, iPhone saturation, regulatory pressure",
"key_levels": {"support": 170.00, "resistance": 185.00},
"catalyst": "Q2 earnings on July 25",
"position_size_pct": 5
}{
"ticker": "AAPL",
"technical_score": 78,
"trend_direction": "Bullish",
"key_pattern": "Bull flag on daily chart",
"support": 170.00,
"resistance": 185.00,
"rsi": 58,
"volume_assessment": "Accumulation"
}{
"ticker": "AAPL",
"fundamental_score": 82,
"forward_pe": 28.5,
"revenue_growth": "8.2%",
"operating_margin": "30.1%",
"moat_rating": "Wide",
"valuation_assessment": "Fair value"
}{
"total_value": 150000,
"holdings_count": 12,
"portfolio_health_score": 72,
"portfolio_beta": 1.15,
"dividend_yield": "2.3%",
"annual_income": 3450,
"top_holding": "AAPL (18%)",
"sector_concentration": "Technology (42%)",
"rebalancing_needed": true,
"top_recommendation": "Reduce tech overweight"
}{
"ticker": "AAPL",
"earnings_date": "2025-07-25",
"days_until": 15,
"eps_estimate": 1.35,
"historical_beat_rate": "87.5%",
"average_move": "4.2%",
"implied_move": "5.1%",
"conviction": "MEDIUM",
"setup_recommendation": "Long straddle"
}{
"screen_name": "Growth",
"matches_count": 15,
"top_3": ["NVDA (95/100)", "PLTR (88/100)", "CRWD (85/100)"],
"screen_date": "2025-04-05"
}{
"watchlist_count": 12,
"average_score": 68,
"top_stock": "NVDA (87/100)",
"active_alerts": 3,
"alert_details": ["NVDA: Earnings approaching", "TSLA: Breakout alert", "AMZN: Volume spike"]
}{
"ticker_1": "AAPL",
"ticker_2": "MSFT",
"winner": "MSFT",
"winner_score": 82,
"loser_score": 75,
"key_differentiator": "Stronger cloud growth trajectory"
}Compile all extracted data into a single JSON structure:
{
"report_metadata": {
"generated_date": "2025-04-05",
"generated_time": "14:30:00",
"total_analyses": 8,
"report_type": "Comprehensive Trading Research Report",
"disclaimer": "For educational/research purposes only. Not financial advice."
},
"analyses": [...],
"portfolio": {...},
"watchlist": {...},
"screens": [...],
"comparisons": [...],
"earnings": [...],
"executive_summary": {
"total_stocks_analyzed": 5,
"strong_buys": ["NVDA", "MSFT"],
"buys": ["AAPL"],
"holds": ["GOOGL"],
"avoids": ["SNAP"],
"top_conviction_pick": "NVDA (Score: 92/100)",
"biggest_risk_flag": "SNAP — fundamental deterioration",
"portfolio_action_needed": "Rebalance tech overweight",
"upcoming_catalysts": ["AAPL earnings July 25", "NVDA earnings Aug 15"]
}
}Write the compiled JSON to a temporary file:
cat > /tmp/trade_report_data.json << 'JSONEOF'
{...the compiled JSON...}
JSONEOFExecute the Python PDF gene
AI trading research engine for Claude Code. Analyze stocks (technical, fundamental, sentiment, risk, thesis), options strategies, sector rotation, portfolio analysis, and PDF reports. 16 skills, 5 parallel agents. Research tool only — not financial advice.
Full Stock Analysis Orchestrator — launches 5 parallel subagents for comprehensive multi-dimensional stock analysis with…
Head-to-Head Stock Comparison — takes two tickers and compares them across valuation, growth, profitability, technical setup,…
You are a pre-earnings analysis specialist within the AI Trading Analyst system. When invoked via `/trade earnings <ticker>`, you…
Fundamental Analysis Agent — valuation, growth, profitability, balance sheet, competitive moat, and management quality analysis…
Options Strategy Advisor — analyzes implied volatility, IV rank/percentile, expected moves, put/call ratios, max pain, unusual…
You are a portfolio analysis specialist within the AI Trading Analyst system. When invoked via `/trade portfolio`, you perform a…