sophhub 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/package.json +1 -1
  2. package/skills/consensus/skill.json +20 -0
  3. package/skills/consensus/src/SKILL.md +93 -0
  4. package/skills/deepwiki/skill.json +20 -0
  5. package/skills/deepwiki/src/SKILL.md +45 -0
  6. package/skills/deepwiki/src/_meta.json +6 -0
  7. package/skills/deepwiki/src/scripts/deepwiki.js +135 -0
  8. package/skills/feishu-bitable/skill.json +20 -0
  9. package/skills/feishu-bitable/src/CHECKLIST.md +150 -0
  10. package/skills/feishu-bitable/src/README.md +178 -0
  11. package/skills/feishu-bitable/src/SKILL.md +113 -0
  12. package/skills/feishu-bitable/src/_meta.json +6 -0
  13. package/skills/feishu-bitable/src/api.js +381 -0
  14. package/skills/feishu-bitable/src/bin/cli.js +284 -0
  15. package/skills/feishu-bitable/src/description.md +143 -0
  16. package/skills/feishu-bitable/src/examples/create-records.json +52 -0
  17. package/skills/feishu-bitable/src/examples/create-table.json +64 -0
  18. package/skills/feishu-bitable/src/package-lock.json +324 -0
  19. package/skills/feishu-bitable/src/package.json +33 -0
  20. package/skills/feishu-bitable/src/publish-config.json +14 -0
  21. package/skills/feishu-bitable/src/test-simple.js +61 -0
  22. package/skills/feishu-bitable/src/utils.js +261 -0
  23. package/skills/flight-booking/skill.json +9 -2
  24. package/skills/flight-booking/src/scripts/flight_booking.py +2 -1
  25. package/skills/google-maps/skill.json +20 -0
  26. package/skills/google-maps/src/SKILL.md +237 -0
  27. package/skills/google-maps/src/_meta.json +6 -0
  28. package/skills/google-maps/src/lib/map_helper.py +912 -0
  29. package/skills/large-task-router/skill.json +20 -0
  30. package/skills/large-task-router/src/SKILL.md +79 -0
  31. package/skills/large-task-router/src/templates/plan.md +74 -0
  32. package/skills/skillhub/skill.json +11 -4
  33. package/skills/skillhub/src/SKILL.md +11 -1
  34. package/skills/sophnet-dailynews/skill.json +20 -0
  35. package/skills/sophnet-dailynews/src/SKILL.md +179 -0
  36. package/skills/sophnet-dailynews/src/cache.json +151 -0
  37. package/skills/sophnet-dailynews/src/sources.json +230 -0
  38. package/skills/sophnet-schedule/skill.json +20 -0
  39. package/skills/sophnet-schedule/src/ARCHITECTURE.md +321 -0
  40. package/skills/sophnet-schedule/src/IMPROVEMENTS.md +145 -0
  41. package/skills/sophnet-schedule/src/SKILL.md +1050 -0
  42. package/skills/sophnet-schedule/src/_meta.json +6 -0
  43. package/skills/sophnet-schedule/src/api/__init__.py +0 -0
  44. package/skills/sophnet-schedule/src/api/models.py +245 -0
  45. package/skills/sophnet-schedule/src/apps/add_event.py +237 -0
  46. package/skills/sophnet-schedule/src/apps/check_reminders.py +112 -0
  47. package/skills/sophnet-schedule/src/apps/check_roc.py +246 -0
  48. package/skills/sophnet-schedule/src/apps/generate_daily_plan.py +342 -0
  49. package/skills/sophnet-schedule/src/apps/import_events.py +216 -0
  50. package/skills/sophnet-schedule/src/apps/monitor_calendar_changes.py +140 -0
  51. package/skills/sophnet-schedule/src/apps/register_tasks.py +169 -0
  52. package/skills/sophnet-schedule/src/apps/sync_roc_to_gcal.py +174 -0
  53. package/skills/sophnet-schedule/src/compat.py +66 -0
  54. package/skills/sophnet-schedule/src/config/__init__.py +0 -0
  55. package/skills/sophnet-schedule/src/config/reminder_rules.yaml +96 -0
  56. package/skills/sophnet-schedule/src/config/roc_events.yaml +44 -0
  57. package/skills/sophnet-schedule/src/config/settings.py +133 -0
  58. package/skills/sophnet-schedule/src/config/task_registry.yaml +92 -0
  59. package/skills/sophnet-schedule/src/docs/FRONTEND_INTEGRATION_GUIDE.md +437 -0
  60. package/skills/sophnet-schedule/src/gcal/__init__.py +0 -0
  61. package/skills/sophnet-schedule/src/gcal/client.py +374 -0
  62. package/skills/sophnet-schedule/src/gcal/models.py +91 -0
  63. package/skills/sophnet-schedule/src/requirements.txt +6 -0
  64. package/skills/sophnet-schedule/src/scripts/setup_gcal_token.py +85 -0
  65. package/skills/sophnet-schedule/src/server.py +669 -0
  66. package/skills/sophnet-schedule/src/services/__init__.py +0 -0
  67. package/skills/sophnet-schedule/src/services/calendar_backend.py +139 -0
  68. package/skills/sophnet-schedule/src/services/conflict_detector.py +96 -0
  69. package/skills/sophnet-schedule/src/services/datetime_utils.py +117 -0
  70. package/skills/sophnet-schedule/src/services/event_classifier.py +100 -0
  71. package/skills/sophnet-schedule/src/services/event_diff.py +160 -0
  72. package/skills/sophnet-schedule/src/services/google_integration.py +500 -0
  73. package/skills/sophnet-schedule/src/services/job_store.py +100 -0
  74. package/skills/sophnet-schedule/src/services/local_event_store.py +266 -0
  75. package/skills/sophnet-schedule/src/services/reminder_planner.py +116 -0
  76. package/skills/sophnet-schedule/src/services/runtime_utils.py +31 -0
  77. package/skills/sophnet-schedule/src/services/table_parser.py +286 -0
  78. package/skills/sophnet-schedule/src/services/task_builder.py +167 -0
  79. package/skills/sophnet-schedule/src/services/time_window.py +72 -0
  80. package/skills/sophnet-stock/skill.json +20 -0
  81. package/skills/sophnet-stock/src/App-Plan.md +442 -0
  82. package/skills/sophnet-stock/src/README.md +214 -0
  83. package/skills/sophnet-stock/src/SKILL.md +236 -0
  84. package/skills/sophnet-stock/src/TODO.md +394 -0
  85. package/skills/sophnet-stock/src/_meta.json +6 -0
  86. package/skills/sophnet-stock/src/docs/ARCHITECTURE.md +408 -0
  87. package/skills/sophnet-stock/src/docs/CONCEPT.md +233 -0
  88. package/skills/sophnet-stock/src/docs/HOT_SCANNER.md +288 -0
  89. package/skills/sophnet-stock/src/docs/README.md +95 -0
  90. package/skills/sophnet-stock/src/docs/USAGE.md +465 -0
  91. package/skills/sophnet-stock/src/scripts/analyze_stock.py +2565 -0
  92. package/skills/sophnet-stock/src/scripts/dividends.py +365 -0
  93. package/skills/sophnet-stock/src/scripts/hot_scanner.py +582 -0
  94. package/skills/sophnet-stock/src/scripts/portfolio.py +548 -0
  95. package/skills/sophnet-stock/src/scripts/rumor_scanner.py +342 -0
  96. package/skills/sophnet-stock/src/scripts/test_stock_analysis.py +409 -0
  97. package/skills/sophnet-stock/src/scripts/watchlist.py +336 -0
  98. package/skills/xiaohongshu/skill.json +20 -0
  99. package/skills/xiaohongshu/src/SKILL.md +91 -0
  100. package/skills/xiaohongshu/src/_meta.json +6 -0
  101. package/skills/xiaohongshu/src/assets/card.html +216 -0
  102. package/skills/xiaohongshu/src/assets/cover.html +82 -0
  103. package/skills/xiaohongshu/src/assets/example.md +84 -0
  104. package/skills/xiaohongshu/src/assets/styles.css +318 -0
  105. package/skills/xiaohongshu/src/scripts/render_xhs_v2.py +737 -0
  106. package/skills/xiaohongshu/src/scripts/sign_server.py +158 -0
  107. package/skills/xiaohongshu/src/scripts/stealth.min.js +7 -0
  108. package/skills/xiaohongshu/src/scripts/xhs_tool.py +186 -0
  109. package/skills/xiaohongshu/src/workflow.py +185 -0
@@ -0,0 +1,214 @@
1
+ # 📈 Stock Analysis v6.1
2
+
3
+ > AI-powered stock & crypto analysis with portfolio management, watchlists, dividend analysis, and **viral trend detection**.
4
+
5
+ [![ClawHub Downloads](https://img.shields.io/badge/ClawHub-1500%2B%20downloads-blue)](https://clawhub.ai)
6
+ [![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-green)](https://openclaw.ai)
7
+
8
+ ## What's New in v6.1
9
+
10
+ - 🔥 **Hot Scanner** — Find viral stocks & crypto across multiple sources
11
+ - 🐦 **Twitter/X Integration** — Social sentiment via bird CLI
12
+ - 📰 **Multi-Source Aggregation** — CoinGecko, Google News, Yahoo Finance
13
+ - ⏰ **Cron Support** — Daily trend reports
14
+
15
+ ## What's New in v6.0
16
+
17
+ - 🆕 **Watchlist + Alerts** — Price targets, stop losses, signal change notifications
18
+ - 🆕 **Dividend Analysis** — Yield, payout ratio, growth rate, safety score
19
+ - 🆕 **Fast Mode** — Skip slow analyses for quick checks
20
+ - 🆕 **Improved Commands** — Better OpenClaw/Telegram integration
21
+ - 🆕 **Test Suite** — Unit tests for core functionality
22
+
23
+ ## Features
24
+
25
+ | Feature | Description |
26
+ |---------|-------------|
27
+ | **8-Dimension Analysis** | Earnings, fundamentals, analysts, momentum, sentiment, sector, market, history |
28
+ | **Crypto Support** | Top 20 cryptos with market cap, BTC correlation, momentum |
29
+ | **Portfolio Management** | Track holdings, P&L, concentration warnings |
30
+ | **Watchlist + Alerts** | Price targets, stop losses, signal changes |
31
+ | **Dividend Analysis** | Yield, payout, growth, safety score |
32
+ | **Risk Detection** | Geopolitical, earnings timing, overbought, risk-off |
33
+ | **Breaking News** | Crisis keyword scanning (last 24h) |
34
+
35
+ ## Quick Start
36
+
37
+ ### Analyze Stocks
38
+ ```bash
39
+ uv run scripts/analyze_stock.py AAPL
40
+ uv run scripts/analyze_stock.py AAPL MSFT GOOGL
41
+ uv run scripts/analyze_stock.py AAPL --fast # Skip slow analyses
42
+ ```
43
+
44
+ ### Analyze Crypto
45
+ ```bash
46
+ uv run scripts/analyze_stock.py BTC-USD
47
+ uv run scripts/analyze_stock.py ETH-USD SOL-USD
48
+ ```
49
+
50
+ ### Dividend Analysis
51
+ ```bash
52
+ uv run scripts/dividends.py JNJ PG KO
53
+ ```
54
+
55
+ ### Watchlist
56
+ ```bash
57
+ uv run scripts/watchlist.py add AAPL --target 200 --stop 150
58
+ uv run scripts/watchlist.py list
59
+ uv run scripts/watchlist.py check --notify
60
+ ```
61
+
62
+ ### Portfolio
63
+ ```bash
64
+ uv run scripts/portfolio.py create "My Portfolio"
65
+ uv run scripts/portfolio.py add AAPL --quantity 100 --cost 150
66
+ uv run scripts/portfolio.py show
67
+ ```
68
+
69
+ ### 🔥 Hot Scanner (NEW)
70
+ ```bash
71
+ # Full scan with all sources
72
+ python3 scripts/hot_scanner.py
73
+
74
+ # Fast scan (skip social media)
75
+ python3 scripts/hot_scanner.py --no-social
76
+
77
+ # JSON output for automation
78
+ python3 scripts/hot_scanner.py --json
79
+ ```
80
+
81
+ ## Analysis Dimensions
82
+
83
+ ### Stocks (8 dimensions)
84
+ 1. **Earnings Surprise** (30%) — EPS beat/miss
85
+ 2. **Fundamentals** (20%) — P/E, margins, growth, debt
86
+ 3. **Analyst Sentiment** (20%) — Ratings, price targets
87
+ 4. **Historical Patterns** (10%) — Past earnings reactions
88
+ 5. **Market Context** (10%) — VIX, SPY/QQQ trends
89
+ 6. **Sector Performance** (15%) — Relative strength
90
+ 7. **Momentum** (15%) — RSI, 52-week range
91
+ 8. **Sentiment** (10%) — Fear/Greed, shorts, insiders
92
+
93
+ ### Crypto (3 dimensions)
94
+ - Market Cap & Category
95
+ - BTC Correlation (30-day)
96
+ - Momentum (RSI, range)
97
+
98
+ ## Dividend Metrics
99
+
100
+ | Metric | Description |
101
+ |--------|-------------|
102
+ | Yield | Annual dividend / price |
103
+ | Payout Ratio | Dividend / EPS |
104
+ | 5Y Growth | CAGR of dividend |
105
+ | Consecutive Years | Years of increases |
106
+ | Safety Score | 0-100 composite |
107
+ | Income Rating | Excellent → Poor |
108
+
109
+ ## 🔥 Hot Scanner
110
+
111
+ Find what's trending RIGHT NOW across stocks & crypto.
112
+
113
+ ### Data Sources
114
+
115
+ | Source | What it finds |
116
+ |--------|---------------|
117
+ | **CoinGecko Trending** | Top 15 trending coins |
118
+ | **CoinGecko Movers** | Biggest gainers/losers (>3%) |
119
+ | **Google News** | Breaking finance & crypto news |
120
+ | **Yahoo Finance** | Top gainers, losers, most active |
121
+ | **Twitter/X** | Social sentiment (requires auth) |
122
+
123
+ ### Output
124
+
125
+ ```
126
+ 📊 TOP TRENDING (by buzz):
127
+ 1. BTC (6 pts) [CoinGecko, Google News] 📉 bearish (-2.5%)
128
+ 2. ETH (5 pts) [CoinGecko, Twitter] 📉 bearish (-7.2%)
129
+ 3. NVDA (3 pts) [Google News, Yahoo] 📰 Earnings beat...
130
+
131
+ 🪙 CRYPTO HIGHLIGHTS:
132
+ 🚀 RIVER River +14.0%
133
+ 📉 BTC Bitcoin -2.5%
134
+
135
+ 📈 STOCK MOVERS:
136
+ 🟢 NVDA (gainers)
137
+ 🔴 TSLA (losers)
138
+
139
+ 📰 BREAKING NEWS:
140
+ [BTC, ETH] Crypto crash: $2.5B liquidated...
141
+ ```
142
+
143
+ ### Twitter/X Setup (Optional)
144
+
145
+ 1. Install bird CLI: `npm install -g @steipete/bird`
146
+ 2. Login to x.com in Safari/Chrome
147
+ 3. Create `.env` file:
148
+ ```
149
+ AUTH_TOKEN=your_auth_token
150
+ CT0=your_ct0_token
151
+ ```
152
+
153
+ Get tokens from browser DevTools → Application → Cookies → x.com
154
+
155
+ ### Automation
156
+
157
+ Set up a daily cron job for morning reports:
158
+ ```bash
159
+ # Run at 8 AM daily
160
+ 0 8 * * * python3 /path/to/hot_scanner.py --no-social >> /var/log/hot_scanner.log
161
+ ```
162
+
163
+ ## Risk Detection
164
+
165
+ - ⚠️ Pre-earnings warning (< 14 days)
166
+ - ⚠️ Post-earnings spike (> 15% in 5 days)
167
+ - ⚠️ Overbought (RSI > 70 + near 52w high)
168
+ - ⚠️ Risk-off mode (GLD/TLT/UUP rising)
169
+ - ⚠️ Geopolitical keywords (Taiwan, China, etc.)
170
+ - ⚠️ Breaking news alerts
171
+
172
+ ## Performance Options
173
+
174
+ | Flag | Speed | Description |
175
+ |------|-------|-------------|
176
+ | (default) | 5-10s | Full analysis |
177
+ | `--no-insider` | 3-5s | Skip SEC EDGAR |
178
+ | `--fast` | 2-3s | Skip insider + news |
179
+
180
+ ## Data Sources
181
+
182
+ - [Yahoo Finance](https://finance.yahoo.com) — Prices, fundamentals, movers
183
+ - [CoinGecko](https://coingecko.com) — Crypto trending, market data
184
+ - [CNN Fear & Greed](https://money.cnn.com/data/fear-and-greed/) — Sentiment
185
+ - [SEC EDGAR](https://www.sec.gov/edgar) — Insider trading
186
+ - [Google News RSS](https://news.google.com) — Breaking news
187
+ - [Twitter/X](https://x.com) — Social sentiment (via bird CLI)
188
+
189
+ ## Storage
190
+
191
+ | Data | Location |
192
+ |------|----------|
193
+ | Portfolios | `~/.clawdbot/skills/stock-analysis/portfolios.json` |
194
+ | Watchlist | `~/.clawdbot/skills/stock-analysis/watchlist.json` |
195
+
196
+ ## Testing
197
+
198
+ ```bash
199
+ uv run pytest scripts/test_stock_analysis.py -v
200
+ ```
201
+
202
+ ## Limitations
203
+
204
+ - Yahoo Finance may lag 15-20 minutes
205
+ - Short interest lags ~2 weeks (FINRA)
206
+ - US markets only
207
+
208
+ ## Disclaimer
209
+
210
+ ⚠️ **NOT FINANCIAL ADVICE.** For informational purposes only. Consult a licensed financial advisor before making investment decisions.
211
+
212
+ ---
213
+
214
+ Built for [OpenClaw](https://openclaw.ai) 🦞 | [ClawHub](https://clawhub.ai)
@@ -0,0 +1,236 @@
1
+ ---
2
+ name: sophnet-stock
3
+ description: Analyze stocks and cryptocurrencies using Yahoo Finance data. Use when the user asks about stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
4
+ metadata: {"openclaw":{"emoji":"📈","requires":{"bins":["uv"]},"install":[{"id":"uv-brew","kind":"brew","formula":"uv","bins":["uv"],"label":"Install uv (brew)"}]}}
5
+ ---
6
+
7
+ # Stock Analysis v6.1
8
+
9
+ Analyze US stocks and cryptocurrencies with 8-dimension analysis, portfolio management, watchlists, alerts, dividend analysis, and **viral trend detection**.
10
+
11
+ ## What's New in v6.2
12
+
13
+ - 🔮 **Rumor Scanner** — Early signals before mainstream news
14
+ - M&A rumors and takeover bids
15
+ - Insider buying/selling activity
16
+ - Analyst upgrades/downgrades
17
+ - Twitter/X "hearing that...", "sources say..." detection
18
+ - 🎯 **Impact Scoring** — Rumors ranked by potential market impact
19
+
20
+ ## What's in v6.1
21
+
22
+ - 🔥 **Hot Scanner** — Find viral stocks & crypto across multiple sources
23
+ - 🐦 **Twitter/X Integration** — Social sentiment via bird CLI
24
+ - 📰 **Multi-Source Aggregation** — CoinGecko, Google News, Yahoo Finance
25
+ - ⏰ **Cron Support** — Daily trend reports
26
+
27
+ ## What's in v6.0
28
+
29
+ - 🆕 **Watchlist + Alerts** — Price targets, stop losses, signal changes
30
+ - 🆕 **Dividend Analysis** — Yield, payout ratio, growth, safety score
31
+ - 🆕 **Fast Mode** — `--fast` skips slow analyses (insider, news)
32
+ - 🆕 **Improved Performance** — `--no-insider` for faster runs
33
+
34
+ ## Quick Commands
35
+
36
+ ### Stock Analysis
37
+ ```bash
38
+ # Basic analysis
39
+ uv run {baseDir}/scripts/analyze_stock.py AAPL
40
+
41
+ # Fast mode (skips insider trading & breaking news)
42
+ uv run {baseDir}/scripts/analyze_stock.py AAPL --fast
43
+
44
+ # Compare multiple
45
+ uv run {baseDir}/scripts/analyze_stock.py AAPL MSFT GOOGL
46
+
47
+ # Crypto
48
+ uv run {baseDir}/scripts/analyze_stock.py BTC-USD ETH-USD
49
+ ```
50
+
51
+ ### Dividend Analysis (NEW v6.0)
52
+ ```bash
53
+ # Analyze dividends
54
+ uv run {baseDir}/scripts/dividends.py JNJ
55
+
56
+ # Compare dividend stocks
57
+ uv run {baseDir}/scripts/dividends.py JNJ PG KO MCD --output json
58
+ ```
59
+
60
+ **Dividend Metrics:**
61
+ - Dividend Yield & Annual Payout
62
+ - Payout Ratio (safe/moderate/high/unsustainable)
63
+ - 5-Year Dividend Growth (CAGR)
64
+ - Consecutive Years of Increases
65
+ - Safety Score (0-100)
66
+ - Income Rating (excellent/good/moderate/poor)
67
+
68
+ ### Watchlist + Alerts (NEW v6.0)
69
+ ```bash
70
+ # Add to watchlist
71
+ uv run {baseDir}/scripts/watchlist.py add AAPL
72
+
73
+ # With price target alert
74
+ uv run {baseDir}/scripts/watchlist.py add AAPL --target 200
75
+
76
+ # With stop loss alert
77
+ uv run {baseDir}/scripts/watchlist.py add AAPL --stop 150
78
+
79
+ # Alert on signal change (BUY→SELL)
80
+ uv run {baseDir}/scripts/watchlist.py add AAPL --alert-on signal
81
+
82
+ # View watchlist
83
+ uv run {baseDir}/scripts/watchlist.py list
84
+
85
+ # Check for triggered alerts
86
+ uv run {baseDir}/scripts/watchlist.py check
87
+ uv run {baseDir}/scripts/watchlist.py check --notify # Telegram format
88
+
89
+ # Remove from watchlist
90
+ uv run {baseDir}/scripts/watchlist.py remove AAPL
91
+ ```
92
+
93
+ **Alert Types:**
94
+ - 🎯 **Target Hit** — Price >= target
95
+ - 🛑 **Stop Hit** — Price <= stop
96
+ - 📊 **Signal Change** — BUY/HOLD/SELL changed
97
+
98
+ ### Portfolio Management
99
+ ```bash
100
+ # Create portfolio
101
+ uv run {baseDir}/scripts/portfolio.py create "Tech Portfolio"
102
+
103
+ # Add assets
104
+ uv run {baseDir}/scripts/portfolio.py add AAPL --quantity 100 --cost 150
105
+ uv run {baseDir}/scripts/portfolio.py add BTC-USD --quantity 0.5 --cost 40000
106
+
107
+ # View portfolio
108
+ uv run {baseDir}/scripts/portfolio.py show
109
+
110
+ # Analyze with period returns
111
+ uv run {baseDir}/scripts/analyze_stock.py --portfolio "Tech Portfolio" --period weekly
112
+ ```
113
+
114
+ ### 🔥 Hot Scanner (NEW v6.1)
115
+ ```bash
116
+ # Full scan - find what's trending NOW
117
+ python3 {baseDir}/scripts/hot_scanner.py
118
+
119
+ # Fast scan (skip social media)
120
+ python3 {baseDir}/scripts/hot_scanner.py --no-social
121
+
122
+ # JSON output for automation
123
+ python3 {baseDir}/scripts/hot_scanner.py --json
124
+ ```
125
+
126
+ **Data Sources:**
127
+ - 📊 CoinGecko Trending — Top 15 trending coins
128
+ - 📈 CoinGecko Movers — Biggest gainers/losers
129
+ - 📰 Google News — Finance & crypto headlines
130
+ - 📉 Yahoo Finance — Gainers, losers, most active
131
+ - 🐦 Twitter/X — Social sentiment (requires auth)
132
+
133
+ **Output:**
134
+ - Top trending by mention count
135
+ - Crypto highlights with 24h changes
136
+ - Stock movers by category
137
+ - Breaking news with tickers
138
+
139
+ **Twitter Setup (Optional):**
140
+ 1. Install bird: `npm install -g @steipete/bird`
141
+ 2. Login to x.com in Safari/Chrome
142
+ 3. Create `.env` with `AUTH_TOKEN` and `CT0`
143
+
144
+ ### 🔮 Rumor Scanner (NEW v6.2)
145
+ ```bash
146
+ # Find early signals, M&A rumors, insider activity
147
+ python3 {baseDir}/scripts/rumor_scanner.py
148
+ ```
149
+
150
+ **What it finds:**
151
+ - 🏢 **M&A Rumors** — Merger, acquisition, takeover bids
152
+ - 👔 **Insider Activity** — CEO/Director buying/selling
153
+ - 📊 **Analyst Actions** — Upgrades, downgrades, price target changes
154
+ - 🐦 **Twitter Whispers** — "hearing that...", "sources say...", "rumor"
155
+ - ⚖️ **SEC Activity** — Investigations, filings
156
+
157
+ **Impact Scoring:**
158
+ - Each rumor is scored by potential market impact (1-10)
159
+ - M&A/Takeover: +5 points
160
+ - Insider buying: +4 points
161
+ - Upgrade/Downgrade: +3 points
162
+ - "Hearing"/"Sources say": +2 points
163
+ - High engagement: +2 bonus
164
+
165
+ **Best Practice:** Run at 07:00 before US market open to catch pre-market signals.
166
+
167
+ ## Analysis Dimensions (8 for stocks, 3 for crypto)
168
+
169
+ ### Stocks
170
+ | Dimension | Weight | Description |
171
+ |-----------|--------|-------------|
172
+ | Earnings Surprise | 30% | EPS beat/miss |
173
+ | Fundamentals | 20% | P/E, margins, growth |
174
+ | Analyst Sentiment | 20% | Ratings, price targets |
175
+ | Historical | 10% | Past earnings reactions |
176
+ | Market Context | 10% | VIX, SPY/QQQ trends |
177
+ | Sector | 15% | Relative strength |
178
+ | Momentum | 15% | RSI, 52-week range |
179
+ | Sentiment | 10% | Fear/Greed, shorts, insiders |
180
+
181
+ ### Crypto
182
+ - Market Cap & Category
183
+ - BTC Correlation (30-day)
184
+ - Momentum (RSI, range)
185
+
186
+ ## Sentiment Sub-Indicators
187
+
188
+ | Indicator | Source | Signal |
189
+ |-----------|--------|--------|
190
+ | Fear & Greed | CNN | Contrarian (fear=buy) |
191
+ | Short Interest | Yahoo | Squeeze potential |
192
+ | VIX Structure | Futures | Stress detection |
193
+ | Insider Trades | SEC EDGAR | Smart money |
194
+ | Put/Call Ratio | Options | Sentiment extreme |
195
+
196
+ ## Risk Detection
197
+
198
+ - ⚠️ **Pre-Earnings** — Warns if < 14 days to earnings
199
+ - ⚠️ **Post-Spike** — Flags if up >15% in 5 days
200
+ - ⚠️ **Overbought** — RSI >70 + near 52w high
201
+ - ⚠️ **Risk-Off** — GLD/TLT/UUP rising together
202
+ - ⚠️ **Geopolitical** — Taiwan, China, Russia, Middle East keywords
203
+ - ⚠️ **Breaking News** — Crisis keywords in last 24h
204
+
205
+ ## Performance Options
206
+
207
+ | Flag | Effect | Speed |
208
+ |------|--------|-------|
209
+ | (default) | Full analysis | 5-10s |
210
+ | `--no-insider` | Skip SEC EDGAR | 3-5s |
211
+ | `--fast` | Skip insider + news | 2-3s |
212
+
213
+ ## Supported Cryptos (Top 20)
214
+
215
+ BTC, ETH, BNB, SOL, XRP, ADA, DOGE, AVAX, DOT, MATIC, LINK, ATOM, UNI, LTC, BCH, XLM, ALGO, VET, FIL, NEAR
216
+
217
+ (Use `-USD` suffix: `BTC-USD`, `ETH-USD`)
218
+
219
+ ## Data Storage
220
+
221
+ | File | Location |
222
+ |------|----------|
223
+ | Portfolios | `~/.clawdbot/skills/stock-analysis/portfolios.json` |
224
+ | Watchlist | `~/.clawdbot/skills/stock-analysis/watchlist.json` |
225
+
226
+ ## Limitations
227
+
228
+ - Yahoo Finance may lag 15-20 minutes
229
+ - Short interest lags ~2 weeks (FINRA)
230
+ - Insider trades lag 2-3 days (SEC filing)
231
+ - US markets only (non-US incomplete)
232
+ - Breaking news: 1h cache, keyword-based
233
+
234
+ ## Disclaimer
235
+
236
+ ⚠️ **NOT FINANCIAL ADVICE.** For informational purposes only. Consult a licensed financial advisor before making investment decisions.