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
Install
npx skills add https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install kansoku-trade-kansoku@llmmart
git clone https://github.com/kansoku-trade/kansoku.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole kansoku-trade/kansoku collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Capital Rotation Scanner (US-only)
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 intrading-discipline. Longbridge does not label the unit. Record the raw API number and the unit you inferred; do NOT silently convert (no 亿).
When to use
- "今天的资金流向", "板块强弱", "rotation map"
- "卖芯买云", "AI 资金挪去哪了"
- "软件 / 云强不强", "半导体板块今天主力撤了吗"
- End-of-session debrief or pre-Asia-open prep
- Not for single-symbol deep-dive (use
longbridge-capital-flowdirectly) - Not for live intraday tracking (use
market-session-tracker)
Standard cohorts
| 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.
Workflow
Time check —
date+ confirm US session state (pre / intraday / post / closed). Adjust analysis date in filename: use the US session date, not Asia local date.Market temperature — single call:
longbridge market-temp US --format jsonReport Temperature / Valuation / Sentiment.
Index baseline — snapshot mode (gives large/medium/small breakdown):
longbridge capital SPY.US --format json longbridge capital QQQ.US --format jsonNet large =
capital_in.large - capital_out.large. Flag distribution if large net ≪ 0 while small net > 0 (主力—散户背离).Cohort scan — for each cohort,
longbridge capital <SYM> --flow --format json | tail -8to grab the latest cumulativeinflowvalue (the last array element is the running total in 万 USD). Parallelize across symbols.Rotation classification — for each cohort, sum net flows; rank symbols within cohort; identify:
- Cohort net (sector-level direction)
- Cohort leader (largest +)
- Cohort outlier (largest −, especially if cohort net is positive)
- Cross-cohort rotation: which cohort gained vs lost net flow
Narrative identification — pick ONE of:
- 卖芯买云 (semis − / software +)
- 卖云买芯 (inverse)
- 全板派发 (all cohorts negative + indices large-out)
- 全板吸金 (all positive + indices large-in)
- 窄口集中 (one cohort dominated by 1-2 names; rest flat)
- 风险偏好切换 (cyclicals out / defensives in)
- AI 已变现 vs 未变现 (rank by AI revenue maturity, see §Narrative criteria)
Write journal file —
~/git/trade/journal/YYYY-MM-DD-flow.mdusing the US session date. Usetemplates/rotation-snapshot.mdas scaffold. If the file exists (e.g. re-run same day), append a new section with timestamp; do not overwrite.Surface 3 insights + tomorrow watch — concise, actionable. No vague "市场分化", always name the split.
Distribution detection rules
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.
Narrative criteria — "AI 已变现 vs 未变现"
A common useful narrative axis. Classify cohort flow winners / losers by AI revenue maturity:
- 已变现 (likely to attract flow): MU (HBM revenue confirmed), NOW (AI workflow ARR), ORCL (AI cloud bookings), AMD (MI-series sales), AMZN (AWS Bedrock), PLTR (gov + commercial AIP)
- 未变现 / 纯叙事: SNOW, MRVL (AI guidance hasn't translated), CRWD (AI security narrative), AAPL (Apple Intelligence vague), GOOGL (Gemini monetization weak)
When flow winners cluster in "已变现" and losers in "未变现", call out "narrative 收敛至 AI 已变现窄口" — this is a key macro signal of late-cycle AI selectivity.
CLI quick reference
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.
Failure modes
Error: request timeout/connect timeout→ retry 1-2 times; do not block the report. Mark unavailable symbols withn/aand proceed.- Cohort scan during US pre-market (04:00–09:30 ET) → data exists but thin; flag report as "pre-market preliminary, not full-session".
- Symbol unavailable on Longbridge (e.g.
.SOX.US) → substitute ETF proxy (SMH/SOXX).
Output format (chat reply)
- Header: market state + session date
- Index baseline table
- Cohort tables (one per cohort)
- Narrative label in bold
- 3 insights — each with a number and 1-2 sentence claim
- Tomorrow watch — 4-6 bullets, each with explicit symbol + condition
Tone: 中文白话, no jargon — see TD-LANG-01 / TD-LANG-02 in trading-discipline.
Anti-patterns
- ❌ Querying HK / CN / SG markets (user said US-only)
- ❌ Reporting "市场分化" without naming the split
- ❌ Treating one-symbol-dominated cohort net as broad strength (e.g. semis "+3.4 亿" but MU alone is +4.2 亿)
- ❌ Skipping the journal write step
- ❌ Skipping the narrative label (must pick one)
- ❌ Single-point prediction; use scenario language for tomorrow watch
Related skills
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 research
File layout
capital-rotation/
├── SKILL.md
└── templates/
└── rotation-snapshot.md
Files (kansoku)
-
templates
-
rotation-snapshot.md 2.8 KB
# Capital Rotation Snapshot — YYYY-MM-DD (Day, US close|pre|intra|post) **Market**: US-only · **Theme**: <one-line dominant narrative> **Sources**: 长桥证券 (`longbridge market-temp` + `longbridge capital`) **Units**: 万 USD · **Disclaimer**: ⚠️ 仅供参考,不构成投资建议 --- ## 1. Market temperature | Metric | Value | Note | | ----------- | ------: | ----------------------------- | | Temperature | <0-100> | <e.g. 温和持稳 / 偏多 / 偏空> | | Valuation | <0-100> | <满 / 中性 / 偏低> | | Sentiment | <0-100> | <偏多 / 中性 / 偏冷> | --- ## 2. Index 大盘 (snapshot, large-order net) | Symbol | Large net | Medium net | Small net | Read | | ------ | ---------: | ---------: | --------: | --------------------------------------- | | SPY | <±X.XX 亿> | <±X.XX> | <±X.XX> | <主力派发 / 主力吸筹 / 背离 / 全档抛压> | | QQQ | <±X.XX 亿> | <±X.XX> | <±X.XX> | <…> | **Distribution label**: <机构派发 / 主力—散户背离 / 全档抛压 / 主力吸筹 / 全档吸金> **Magnitude**: 机构 ~X 亿 离场 / 进场, 中小单 ~Y 亿 反向。 --- ## 3. Semiconductors 半导体 | Symbol | Net flow | Read | | --------- | ---------: | -------------------------- | | <leader> | <+X.XX 亿> | <one-liner> | | ... | ... | ... | | <outlier> | <−X.XX 亿> | <离群原因 / catalyst hint> | **Cohort net**: ≈ <±X.X 亿> (<被某标的拉动 / 全板> ) --- ## 4. Software / Cloud 软件云 | Symbol | Net flow | Read | | -------- | ---------: | ----------- | | <leader> | <+X.XX 亿> | <one-liner> | | ... | ... | ... | **Cohort net**: ≈ <±X.X 亿> --- ## 5. Mega-tech 大型科技 | Symbol | Net flow | | ------ | ---------: | | AAPL | <±X.XX 亿> | | MSFT | <±X.XX 亿> | | GOOGL | <±X.XX 亿> | | AMZN | <±X.XX 亿> | | META | <±X.XX 亿> | | TSLA | <±X.XX 亿> | <one-line summary> --- ## 6. Insights 1. **<板块梯度 label>**: <cohort A> <X 亿> > <cohort B> <Y 亿> > <cohort C> <Z 亿>. <Rotation interpretation>. 2. **<云三巨 / 半导体分裂 / 其他子分裂>**: <fact + interpretation>. 3. **<Dominant narrative — bold>**: <e.g. 资金 narrative 收敛至 "AI 已变现" 窄口>. <List which symbols fit each side>. 4. **<指数表面 vs 内里>** (optional): <if index temp / sentiment diverges from index large-order flow>. --- ## 7. Watch for tomorrow (YYYY-MM-DD) - **<Symbol 1>**: <specific condition to watch, with price / flow trigger> - **<Symbol 2>**: <…> - **<Symbol 3>**: <…> - **SPY/QQQ**: <continuation vs reversal trigger>
-
-
SKILL.md 7.9 KB
--- name: capital-rotation description: 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. --- # Capital Rotation Scanner (US-only) 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 亿). ## When to use - "今天的资金流向", "板块强弱", "rotation map" - "卖芯买云", "AI 资金挪去哪了" - "软件 / 云强不强", "半导体板块今天主力撤了吗" - End-of-session debrief or pre-Asia-open prep - **Not** for single-symbol deep-dive (use `longbridge-capital-flow` directly) - **Not** for live intraday tracking (use `market-session-tracker`) ## Standard cohorts | 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. ## Workflow 1. **Time check** — `date` + confirm US session state (pre / intraday / post / closed). Adjust analysis date in filename: use the **US session date**, not Asia local date. 2. **Market temperature** — single call: ```bash longbridge market-temp US --format json ``` Report Temperature / Valuation / Sentiment. 3. **Index baseline** — snapshot mode (gives large/medium/small breakdown): ```bash 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 (主力—散户背离). 4. **Cohort scan** — for each cohort, `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. 5. **Rotation classification** — for each cohort, sum net flows; rank symbols within cohort; identify: - **Cohort net** (sector-level direction) - **Cohort leader** (largest +) - **Cohort outlier** (largest −, especially if cohort net is positive) - **Cross-cohort rotation**: which cohort gained vs lost net flow 6. **Narrative identification** — pick ONE of: - 卖芯买云 (semis − / software +) - 卖云买芯 (inverse) - 全板派发 (all cohorts negative + indices large-out) - 全板吸金 (all positive + indices large-in) - 窄口集中 (one cohort dominated by 1-2 names; rest flat) - 风险偏好切换 (cyclicals out / defensives in) - **AI 已变现 vs 未变现** (rank by AI revenue maturity, see §Narrative criteria) 7. **Write journal file** — `~/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. 8. **Surface 3 insights + tomorrow watch** — concise, actionable. No vague "市场分化", always name the split. ## Distribution detection rules 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. ## Narrative criteria — "AI 已变现 vs 未变现" A common useful narrative axis. Classify cohort flow winners / losers by AI revenue maturity: - **已变现 (likely to attract flow)**: MU (HBM revenue confirmed), NOW (AI workflow ARR), ORCL (AI cloud bookings), AMD (MI-series sales), AMZN (AWS Bedrock), PLTR (gov + commercial AIP) - **未变现 / 纯叙事**: SNOW, MRVL (AI guidance hasn't translated), CRWD (AI security narrative), AAPL (Apple Intelligence vague), GOOGL (Gemini monetization weak) When flow winners cluster in "已变现" and losers in "未变现", call out **"narrative 收敛至 AI 已变现窄口"** — this is a key macro signal of late-cycle AI selectivity. ## CLI quick reference ```bash 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. ## Failure modes - `Error: request timeout` / `connect timeout` → retry 1-2 times; do not block the report. Mark unavailable symbols with `n/a` and proceed. - Cohort scan during US pre-market (04:00–09:30 ET) → data exists but thin; flag report as "pre-market preliminary, not full-session". - Symbol unavailable on Longbridge (e.g. `.SOX.US`) → substitute ETF proxy (`SMH`/`SOXX`). ## Output format (chat reply) 1. Header: market state + session date 2. Index baseline table 3. Cohort tables (one per cohort) 4. **Narrative label** in bold 5. 3 insights — each with a number and 1-2 sentence claim 6. Tomorrow watch — 4-6 bullets, each with explicit symbol + condition Tone: 中文白话, no jargon — see **TD-LANG-01 / TD-LANG-02** in `trading-discipline`. ## Anti-patterns - ❌ Querying HK / CN / SG markets (user said US-only) - ❌ Reporting "市场分化" without naming the split - ❌ Treating one-symbol-dominated cohort net as broad strength (e.g. semis "+3.4 亿" but MU alone is +4.2 亿) - ❌ Skipping the journal write step - ❌ Skipping the narrative label (must pick one) - ❌ Single-point prediction; use scenario language for tomorrow watch ## Related skills - `market-session-tracker` — live intraday monitoring of one watchlist - `longbridge-capital-flow` — single-symbol drill-down - `longbridge-market-temp` — sentiment-only snapshot - `stock-deep-dive` — multi-lens single-name research ## File layout ``` capital-rotation/ ├── SKILL.md └── templates/ └── rotation-snapshot.md ```
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.