Logo: Capital Rotation

Capital Rotation

Organisatioun
kansoku-trade
capital-rotation

Benotzt dëst, fir haut d'Kapitalflëss um US-Maart a verschiddene Secteuren ze analyséieren an d'Rotatiounsrichtung z'identifizéieren — z. B. „今天资金流向“, „板块强弱“, „rotation map“, „卖芯买云“, „where is money moving today“, „scan flows across sectors“. Erstellt eng sektoriwwergräifend Iwwersiicht vun den Nettozouflëss no Gruppen (Indizes / Halbleiter / Software a Cloud / Mega-Tech / AI-Applikatiounen), identifizéiert dat dominéierend Narrativ a schreift eng datéiert Journaldatei. Ënnerscheet sech vum `market-session-tracker` (Live-Iwwerwaachung vun enger eenzeger Watchlist am Laf vum Dag) — dëst ass eng eemoleg Rotatiounsanalyse um Enn vum Handelssëtzung.

Iwwersiicht

Editeurkansoku-trade
Repositorykansoku
Skill-Nummcapital-rotation
Stären
329
Forks
40
Matgeliwwert Dateien
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    kansoku-trade huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Capital Rotation an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kansoku-trade/kansoku.git /tmp/kansoku
mkdir -p .claude/skills
cp -r /tmp/kansoku/.claude/skills/capital-rotation .claude/skills/capital-rotation
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Capital Rotation an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Capital Rotation automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Capital Rotation net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

CohortSymbols
IndicesSPY, QQQ, DIA, IWM
SemisNVDA, AMD, MU, MRVL, TSM, AVGO, SMH, SOXX, AMKR, ASX
Software / CloudNOW, ORCL, CRM, ADBE, SNOW, DDOG, MDB, PLTR, PANW, CRWD, NET, IGV, CLOU
Mega-techAAPL, MSFT, GOOGL, AMZN, META, TSLA
Risk-off proxyVXX, 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:

PatternLabel
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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Capital Rotation?

Benotzt dëst, fir haut d'Kapitalflëss um US-Maart a verschiddene Secteuren ze analyséieren an d'Rotatiounsrichtung z'identifizéieren — z. B. „今天资金流向“, „板块强弱“, „rotation map“, „卖芯买云“, „where is money moving today“, „scan flows across sectors“. Erstellt eng sektoriwwergräifend Iwwersiicht vun den Nettozouflëss no Gruppen (Indizes / Halbleiter / Software a Cloud / Mega-Tech / AI-Applikatiounen), identifizéiert dat dominéierend Narrativ a schreift eng datéiert Journaldatei. Ënnerscheet sech vum `market-session-tracker` (Live-Iwwerwaachung vun enger eenzeger Watchlist am Laf vum Dag) — dëst ass...

Firwat Capital Rotation op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Capital Rotation besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Capital Rotation an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Capital Rotation benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Capital Rotation benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Capital Rotation domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Capital Rotation gratis?

kansoku-trade huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇