us-stock-analysislisted
Install: claude install-skill KCNyu/clawock
# US Stock Analysis
Workspace-native US stock analyst. Always uses kcn's local pipeline for price/RSI/MA/signal — uses web search only for news, peer data, fundamentals.
## Required reads before answering
In this order:
1. `/root/.openclaw/workspace/MEMORY.md` — data rules and traps (especially the "禁止用 portfolio.json 缓存价" rule)
2. `/root/.openclaw/workspace/TOOLS.md` — script paths, provider fallback chains, skill routing table
3. `/root/.openclaw/workspace/INVESTMENT_SOP.md` — standard startup sequence for investment questions
4. `/root/.openclaw/workspace/portfolio.json` — if the ticker is in the active book, cost basis and PnL matter
## Data source rule (non-negotiable)
**Default path — use the workspace script, not web search:**
```bash
# Full analysis: refreshes price + RSI-14 / MA20 / MA50 + Finnhub news + signal
python3 /root/.openclaw/workspace/scripts/data/analyze_us_stocks.py {TICKER}
python3 /root/.openclaw/workspace/scripts/data/analyze_us_stocks.py {TICKER} --no-news # skip news (save Finnhub quota)
# Price-only refresh
python3 /root/.openclaw/workspace/scripts/data/fetch_us_stocks.py {TICKER}
```
The script internally runs the 7-route fallback (Nasdaq API → Eastmoney → Finnhub → Yahoo v8 → yfinance → Alpha Vantage → Polygon), pulls `prev_close` independently from Polygon's `/prev` endpoint (so `today_change` is trustworthy after close), and writes back to `portfolio.json` if the ticker is held. Bypassing it re-introduces every bug it was written to f