Logotipo de Capital Rotation

Capital Rotation

Organización
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.

Descripción general

Editorkansoku-trade
Repositoriokansoku
Nombre de la habilidadcapital-rotation
Estrellas
329
Forks
40
Archivos incluidos
1
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 1

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por kansoku-trade en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Capital Rotation en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Capital Rotation en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Capital Rotation automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Capital Rotation no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Capital Rotation en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Capital Rotation está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Capital Rotation en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/kansoku-trade/kansoku/tree/main/.claude/skills/capital-rotation. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Capital Rotation?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Capital Rotation?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Capital Rotation con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Capital Rotation?

kansoku-trade la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇