kansoku-trade/capital-rotation
Use when reading today's US-market capital flow across multiple sectors to identify rotation direction — e.g. "今天资金流向", "板块强弱", "rotation map", "卖芯买云", "where is money moving today", "scan flows across sectors". Produces a cross-section snapshot of net inflows by cohort (indices / semis / software-cloud / mega-tech / AI applications), names the dominant narrative, and writes a dated journal file. Different from `market-session-tracker` (intraday live monitoring of a single watchlist) — this is a one-shot end-of-session rotation read.
npx skills add https://github.com/kansoku-trade/kansoku --skill capital-rotation
Scans capital flow across standard US cohorts in one session, identifies rotation direction, classifies winners / losers, names the dominant narrative, and logs a journal file.
> Scope: US-only. Do NOT query HK / CN / SG markets (user preference).
> Sources: Longbridge capital, market-temp. Cite as 长桥证券.
> Units: ambiguous — see TD-UNIT-01 in trading-discipline. Longbridge does not label the unit. Record the raw API number and the unit you inferred; do NOT silently convert (no 亿).
longbridge-capital-flow directly)market-session-tracker)| Cohort | Symbols |
| -------------------- | ------------------------------------------------------------------------------------------------- |
| Indices | SPY, QQQ, DIA, IWM |
| Semis | NVDA, AMD, MU, MRVL, TSM, AVGO, SMH, SOXX, AMKR, ASX |
| Software / Cloud | NOW, ORCL, CRM, ADBE, SNOW, DDOG, MDB, PLTR, PANW, CRWD, NET, IGV, CLOU |
| Mega-tech | AAPL, MSFT, GOOGL, AMZN, META, TSLA |
| Risk-off proxy | VXX, TLT, GLD (optional, for cross-asset confirmation) |
User watchlist override: read stocks/ directory for symbols the user already tracks; promote those to first-tier in their respective cohort.
date + confirm US session state (pre / intraday / post / closed). Adjust analysis date in filename: use the US session date, not Asia local date. longbridge market-temp US --format json
Report Temperature / Valuation / Sentiment.
longbridge capital SPY.US --format json
longbridge capital QQQ.US --format json
Net large = capital_in.large - capital_out.large. Flag distribution if large net ≪ 0 while small net > 0 (主力—散户背离).
longbridge capital <SYM> --flow --format json | tail -8 to grab the latest cumulative inflow value (the last array element is the running total in 万 USD). Parallelize across symbols.~/git/trade/journal/YYYY-MM-DD-flow.md using the US session date. Use templates/rotation-snapshot.md as scaffold. If the file exists (e.g. re-run same day), append a new section with timestamp; do not overwrite.Use these triggers to label index behavior:
| Pattern | Label |
| ----------------------------------------------------- | ----------------- |
| SPY large net < 0 AND \|large net\| > 5 × small net | 机构派发 |
| All 3 buckets (large / medium / small) net < 0 | 全档抛压 |
| Large net < 0, small net > 0, magnitudes similar | 主力—散户背离 |
| Large net > 0, small net < 0 | 主力吸筹 |
| All 3 buckets > 0 | 全档吸金 |
Always state the pattern explicitly; do not say "weak / strong" vaguely.
A common useful narrative axis. Classify cohort flow winners / losers by AI revenue maturity:
When flow winners cluster in "已变现" and losers in "未变现", call out "narrative 收敛至 AI 已变现窄口" — this is a key macro signal of late-cycle AI selectivity.
longbridge market-temp US --format json
longbridge capital SPY.US --format json # snapshot (large/med/small)
longbridge capital QQQ.US --flow --format json | tail -8 # time-series cumulative
longbridge capital --flow --format json < SYM > .US | tail -8 # per-symbol
The --flow last-row inflow field is the cumulative net for the session in 万 USD. No date parameter — today's data only.
Error: request timeout / connect timeout → retry 1-2 times; do not block the report. Mark unavailable symbols with n/a and proceed..SOX.US) → substitute ETF proxy (SMH/SOXX).Tone: 中文白话, no jargon — see TD-LANG-01 / TD-LANG-02 in trading-discipline.
market-session-tracker — live intraday monitoring of one watchlistlongbridge-capital-flow — single-symbol drill-downlongbridge-market-temp — sentiment-only snapshotstock-deep-dive — multi-lens single-name researchcapital-rotation/
├── SKILL.md
└── templates/
└── rotation-snapshot.md
Take kansoku-trade/capital-rotation from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.