{"slug":"capital-rotation","title":"capital-rotation","summary":"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 ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-01T17:41:55.833151Z","repo":{"url":"https://github.com/kansoku-trade/kansoku","stars":319,"forks":38,"license":null,"updatedAt":"2026-09-19T13:43:53Z"},"bodyHtml":"<hr>\n<h2>name: capital-rotation\ndescription: 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 <code>market-session-tracker</code> (intraday live monitoring of a single watchlist) — this is a one-shot end-of-session rotation read.</h2>\n<h1>Capital Rotation Scanner (US-only)</h1>\n<p>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.</p>\n<blockquote>\n<p><strong>Scope</strong>: US-only. Do NOT query HK / CN / SG markets (user preference).\n<strong>Sources</strong>: Longbridge <code>capital</code>, <code>market-temp</code>. Cite as <code>长桥证券</code>.\n<strong>Units</strong>: ambiguous — see <strong>TD-UNIT-01</strong> in <code>trading-discipline</code>. Longbridge does not label the unit. Record the raw API number and the unit you inferred; <strong>do NOT silently convert</strong> (no 亿).</p>\n</blockquote>\n<h2>When to use</h2>\n<ul>\n<li>\"今天的资金流向\", \"板块强弱\", \"rotation map\"</li>\n<li>\"卖芯买云\", \"AI 资金挪去哪了\"</li>\n<li>\"软件 / 云强不强\", \"半导体板块今天主力撤了吗\"</li>\n<li>End-of-session debrief or pre-Asia-open prep</li>\n<li><strong>Not</strong> for single-symbol deep-dive (use <code>longbridge-capital-flow</code> directly)</li>\n<li><strong>Not</strong> for live intraday tracking (use <code>market-session-tracker</code>)</li>\n</ul>\n<h2>Standard cohorts</h2>\n<table>\n<thead>\n<tr>\n<th>Cohort</th>\n<th>Symbols</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Indices</strong></td>\n<td><code>SPY</code>, <code>QQQ</code>, <code>DIA</code>, <code>IWM</code></td>\n</tr>\n<tr>\n<td><strong>Semis</strong></td>\n<td><code>NVDA</code>, <code>AMD</code>, <code>MU</code>, <code>MRVL</code>, <code>TSM</code>, <code>AVGO</code>, <code>SMH</code>, <code>SOXX</code>, <code>AMKR</code>, <code>ASX</code></td>\n</tr>\n<tr>\n<td><strong>Software / Cloud</strong></td>\n<td><code>NOW</code>, <code>ORCL</code>, <code>CRM</code>, <code>ADBE</code>, <code>SNOW</code>, <code>DDOG</code>, <code>MDB</code>, <code>PLTR</code>, <code>PANW</code>, <code>CRWD</code>, <code>NET</code>, <code>IGV</code>, <code>CLOU</code></td>\n</tr>\n<tr>\n<td><strong>Mega-tech</strong></td>\n<td><code>AAPL</code>, <code>MSFT</code>, <code>GOOGL</code>, <code>AMZN</code>, <code>META</code>, <code>TSLA</code></td>\n</tr>\n<tr>\n<td><strong>Risk-off proxy</strong></td>\n<td><code>VXX</code>, <code>TLT</code>, <code>GLD</code> (optional, for cross-asset confirmation)</td>\n</tr>\n</tbody>\n</table>\n<p>User watchlist override: read <code>stocks/</code> directory for symbols the user already tracks; promote those to first-tier in their respective cohort.</p>\n<h2>Workflow</h2>\n<ol>\n<li><p><strong>Time check</strong> — <code>date</code> + confirm US session state (pre / intraday / post / closed). Adjust analysis date in filename: use the <strong>US session date</strong>, not Asia local date.</p>\n</li>\n<li><p><strong>Market temperature</strong> — single call:</p>\n<pre><code>longbridge market-temp US --format json\n</code></pre>\n<p>Report Temperature / Valuation / Sentiment.</p>\n</li>\n<li><p><strong>Index baseline</strong> — snapshot mode (gives large/medium/small breakdown):</p>\n<pre><code>longbridge capital SPY.US --format json\nlongbridge capital QQQ.US --format json\n</code></pre>\n<p>Net large = <code>capital_in.large - capital_out.large</code>. Flag distribution if large net ≪ 0 while small net &gt; 0 (主力—散户背离).</p>\n</li>\n<li><p><strong>Cohort scan</strong> — for each cohort, <code>longbridge capital &lt;SYM&gt; --flow --format json | tail -8</code> to grab the latest cumulative <code>inflow</code> value (the last array element is the running total in 万 USD). Parallelize across symbols.</p>\n</li>\n<li><p><strong>Rotation classification</strong> — for each cohort, sum net flows; rank symbols within cohort; identify:</p>\n<ul>\n<li><strong>Cohort net</strong> (sector-level direction)</li>\n<li><strong>Cohort leader</strong> (largest +)</li>\n<li><strong>Cohort outlier</strong> (largest −, especially if cohort net is positive)</li>\n<li><strong>Cross-cohort rotation</strong>: which cohort gained vs lost net flow</li>\n</ul>\n</li>\n<li><p><strong>Narrative identification</strong> — pick ONE of:</p>\n<ul>\n<li>卖芯买云 (semis − / software +)</li>\n<li>卖云买芯 (inverse)</li>\n<li>全板派发 (all cohorts negative + indices large-out)</li>\n<li>全板吸金 (all positive + indices large-in)</li>\n<li>窄口集中 (one cohort dominated by 1-2 names; rest flat)</li>\n<li>风险偏好切换 (cyclicals out / defensives in)</li>\n<li><strong>AI 已变现 vs 未变现</strong> (rank by AI revenue maturity, see §Narrative criteria)</li>\n</ul>\n</li>\n<li><p><strong>Write journal file</strong> — <code>~/git/trade/journal/YYYY-MM-DD-flow.md</code> using the <strong>US session date</strong>. Use <code>templates/rotation-snapshot.md</code> as scaffold. If the file exists (e.g. re-run same day), append a new section with timestamp; do not overwrite.</p>\n</li>\n<li><p><strong>Surface 3 insights + tomorrow watch</strong> — concise, actionable. No vague \"市场分化\", always name the split.</p>\n</li>\n</ol>\n<h2>Distribution detection rules</h2>\n<p>Use these triggers to label index behavior:</p>\n<table>\n<thead>\n<tr>\n<th>Pattern</th>\n<th>Label</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>SPY large net &lt; 0 AND <code>\\|large net\\|</code> &gt; 5 × small net</td>\n<td><strong>机构派发</strong></td>\n</tr>\n<tr>\n<td>All 3 buckets (large / medium / small) net &lt; 0</td>\n<td><strong>全档抛压</strong></td>\n</tr>\n<tr>\n<td>Large net &lt; 0, small net &gt; 0, magnitudes similar</td>\n<td><strong>主力—散户背离</strong></td>\n</tr>\n<tr>\n<td>Large net &gt; 0, small net &lt; 0</td>\n<td><strong>主力吸筹</strong></td>\n</tr>\n<tr>\n<td>All 3 buckets &gt; 0</td>\n<td><strong>全档吸金</strong></td>\n</tr>\n</tbody>\n</table>\n<p>Always state the pattern explicitly; do not say \"weak / strong\" vaguely.</p>\n<h2>Narrative criteria — \"AI 已变现 vs 未变现\"</h2>\n<p>A common useful narrative axis. Classify cohort flow winners / losers by AI revenue maturity:</p>\n<ul>\n<li><strong>已变现 (likely to attract flow)</strong>: MU (HBM revenue confirmed), NOW (AI workflow ARR), ORCL (AI cloud bookings), AMD (MI-series sales), AMZN (AWS Bedrock), PLTR (gov + commercial AIP)</li>\n<li><strong>未变现 / 纯叙事</strong>: SNOW, MRVL (AI guidance hasn't translated), CRWD (AI security narrative), AAPL (Apple Intelligence vague), GOOGL (Gemini monetization weak)</li>\n</ul>\n<p>When flow winners cluster in \"已变现\" and losers in \"未变现\", call out <strong>\"narrative 收敛至 AI 已变现窄口\"</strong> — this is a key macro signal of late-cycle AI selectivity.</p>\n<h2>CLI quick reference</h2>\n<pre><code>longbridge market-temp US --format json\nlongbridge capital SPY.US --format json                       # snapshot (large/med/small)\nlongbridge capital QQQ.US --flow --format json | tail -8      # time-series cumulative\nlongbridge capital --flow --format json &lt; SYM &gt; .US | tail -8 # per-symbol\n</code></pre>\n<p>The <code>--flow</code> last-row <code>inflow</code> field is the cumulative net for the session in 万 USD. No date parameter — today's data only.</p>\n<h2>Failure modes</h2>\n<ul>\n<li><code>Error: request timeout</code> / <code>connect timeout</code> → retry 1-2 times; do not block the report. Mark unavailable symbols with <code>n/a</code> and proceed.</li>\n<li>Cohort scan during US pre-market (04:00–09:30 ET) → data exists but thin; flag report as \"pre-market preliminary, not full-session\".</li>\n<li>Symbol unavailable on Longbridge (e.g. <code>.SOX.US</code>) → substitute ETF proxy (<code>SMH</code>/<code>SOXX</code>).</li>\n</ul>\n<h2>Output format (chat reply)</h2>\n<ol>\n<li>Header: market state + session date</li>\n<li>Index baseline table</li>\n<li>Cohort tables (one per cohort)</li>\n<li><strong>Narrative label</strong> in bold</li>\n<li>3 insights — each with a number and 1-2 sentence claim</li>\n<li>Tomorrow watch — 4-6 bullets, each with explicit symbol + condition</li>\n</ol>\n<p>Tone: 中文白话, no jargon — see <strong>TD-LANG-01 / TD-LANG-02</strong> in <code>trading-discipline</code>.</p>\n<h2>Anti-patterns</h2>\n<ul>\n<li>❌ Querying HK / CN / SG markets (user said US-only)</li>\n<li>❌ Reporting \"市场分化\" without naming the split</li>\n<li>❌ Treating one-symbol-dominated cohort net as broad strength (e.g. semis \"+3.4 亿\" but MU alone is +4.2 亿)</li>\n<li>❌ Skipping the journal write step</li>\n<li>❌ Skipping the narrative label (must pick one)</li>\n<li>❌ Single-point prediction; use scenario language for tomorrow watch</li>\n</ul>\n<h2>Related skills</h2>\n<ul>\n<li><code>market-session-tracker</code> — live intraday monitoring of one watchlist</li>\n<li><code>longbridge-capital-flow</code> — single-symbol drill-down</li>\n<li><code>longbridge-market-temp</code> — sentiment-only snapshot</li>\n<li><code>stock-deep-dive</code> — multi-lens single-name research</li>\n</ul>\n<h2>File layout</h2>\n<pre><code>capital-rotation/\n├── SKILL.md\n└── templates/\n    └── rotation-snapshot.md\n</code></pre>\n","files":[{"path":"SKILL.md","sizeBytes":8079,"isText":true},{"path":"templates/rotation-snapshot.md","sizeBytes":2839,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-01T17:42:03.948962Z","sha256":"B123F16378D3AB84B6DB7FC05E2131E7D1C5DA4E78E7127ACF2E2A94219E0477","sizeBytes":5280},"review":null,"source":{"repositoryUrl":"https://github.com/kansoku-trade/kansoku","path":".claude/skills/capital-rotation","license":null,"commit":"9f4f3a4498a132f38b54354de04335e0e5439dee","subtreeSha":"2B17EABB83B9E50520985C6A0A15018889FC3C664828EB1EDA0CB7AFEDD7CD55","lastSyncedAt":"2026-09-25T23:11:53.908188Z"},"reviewedAt":"2026-09-01T17:42:43.239214Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install kansoku-trade-kansoku@llmmart"},{"target":"git","command":"git clone https://github.com/kansoku-trade/kansoku.git"}]}