Logotipo de Macro Analysis

Macro Analysis

OrganizaciónPopular
HKUDS
macro-analysis

Macroeconomic cycle positioning and central-bank policy interpretation, including GDP/CPI/PMI/rates/FX analysis, with output in the form of major-asset allocation tilts.

Descripción general

EditorHKUDS
RepositorioVibe-Trading
Nombre de la habilidadmacro-analysis
Estrellas
33.6K
Forks
5.5K
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • 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.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por HKUDS en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Macro Analysis 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/HKUDS/Vibe-Trading/tree/main/agent/src/skills/macro-analysis
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde 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/HKUDS/Vibe-Trading.git /tmp/Vibe-Trading
mkdir -p .claude/skills
cp -r /tmp/Vibe-Trading/agent/src/skills/macro-analysis .claude/skills/macro-analysis
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Macro Analysis 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 es relevante, 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 Macro Analysis 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 Macro Analysis 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 relevante, 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á.

Macroeconomic Analysis

Overview

Interprets macroeconomic data and central-bank policy, identifies the current economic-cycle stage, and derives major-asset allocation direction. Covers the three major economies of China (PBOC), the United States (Fed), and Europe (ECB).

Core Indicator System

Growth Indicators

IndicatorFrequencyKey ThresholdData Source
GDP YoYQuarterlyChina >5% = normal, <4% = weakNational Bureau of Statistics
Manufacturing PMIMonthly>50 = expansion, <50 = contraction, 49-51 = borderlineNBS / Caixin
Industrial productionMonthly>5% = normalNational Bureau of Statistics
Retail salesMonthly>8% = strong consumptionNational Bureau of Statistics
Fixed asset investmentMonthlyFocus on infrastructure vs real-estate componentsNational Bureau of Statistics

Inflation Indicators

IndicatorFrequencyKey ThresholdInterpretation
CPI YoYMonthly>3% = inflation pressure, <0% = deflation riskStrongly affected by the pork cycle, so core CPI is more reliable
PPI YoYMonthly>0% = improving corporate profits, <0% = deflation transmissionLeads CPI by 3-6 months
Core CPIMonthly>2% = demand-driven inflationExcludes food and energy
M2 YoYMonthly>10% = monetary easingThe M2-M1 spread reflects how active liquidity is

Rates and FX

IndicatorMeaningFocus
1Y / 5Y LPRLoan prime rateRate-cut signal
DR007Interbank 7-day repo rateFunding tightness / looseness
10Y government bond yieldRisk-free rate anchor<2.5% = loose, >3.5% = tight
USD/CNYExchange rate>7.3 = high depreciation pressure
US 10Y-2Y spreadTerm spreadInversion signals recession (leads by 12-18 months)

Four-Stage Economic Cycle Model

Merrill Lynch Clock Framework

        GDP↑ + CPI↓           GDP↑ + CPI↑
        ┌─────────┐           ┌─────────┐
        │ Recovery │ ────→    │ Overheat│
        │          │           │         │
        └────┬────┘           └────┬────┘
             ↑                     │
             │                     ↓
        ┌────┴────┐           ┌────┴────┐
        │Recession│ ←────     │Stagflat │
        │         │           │         │
        └─────────┘           └─────────┘
        GDP↓ + CPI↓           GDP↓ + CPI↑

Asset Performance by Stage

StageBest AssetSecond-Best AssetWorst AssetTypical Policy
RecoveryEquities (growth / small cap)CommoditiesBondsMonetary easing + fiscal stimulus
OverheatCommodities (oil / copper)Equities (cyclical / value)BondsHiking cycle begins
StagflationCash / short-duration bondsGoldEquitiesPolicy dilemma
RecessionBonds (long duration)GoldEquities / commoditiesRate cuts + quantitative easing

China-Specific Adjustments

  • Real-estate cycle: property sales / investment is a core variable in China's economy, and the policy response during downturns determines the turning point
  • Infrastructure offset: when property is weak, infrastructure often strengthens (countercyclical adjustment), so track the pace of special-bond issuance
  • Export orientation: external demand (US PMI / Eurozone PMI) affects manufacturing conditions
  • Policy-driven market: tone-setting from Politburo meetings / the Central Economic Work Conference matters more than the data itself

Central Bank Policy Analysis Framework

Federal Reserve (Fed)

Sequence to watch: FOMC statement → dot plot → Powell speech → meeting minutes

SignalHawkish (tightening)Dovish (easing)
Employment"labor market remains tight""softening in labor market"
Inflation"inflation remains elevated""inflation moving toward target"
Forward guidance"further tightening may be appropriate""rate cuts could be appropriate"
Balance sheetFaster / continued QTSlower QT / hints of QE

Fed decision function: core PCE > 2.5% → tightening bias; unemployment > 4.5% → easing bias; when the two conflict, focus on which deviation is larger

People's Bank of China (PBOC)

Toolbox:

ToolSignal StrengthImpact
RRR cutStrongReleases long-term liquidity, bullish for equities and bonds
Rate cuts (MLF/LPR)StrongReduces financing costs, bullish for growth stocks
OMO (reverse repo)MediumShort-term liquidity adjustment
PSL / relendingMediumTargeted support (infrastructure / real estate)
Window guidanceWeak but effectiveDirects credit allocation

European Central Bank (ECB)

Core variables: HICP (harmonized CPI), Eurozone PMI, Germany-France yield spread Special feature: large divergence among member economies, creating a "one size fits all" problem

Analysis Framework

Step 1: Data Collection and Current-State Description

Collect core indicators from the latest 3 months:
- China: PMI, CPI, PPI, M2, aggregate financing, LPR
- United States: nonfarm payrolls, CPI, core PCE, ISM PMI, Fed rate
- Global: oil, copper, US dollar index (DXY), VIX

Step 2: Cycle Positioning

Decision criteria:
1. GDP trend: accelerating / decelerating / topping / bottoming
2. Inflation trend: rising / falling / topping / bottoming
3. Policy direction: easing / neutral / tightening / turning
4. Composite stage: recovery / overheat / stagflation / recession
5. Cycle position: early / mid / late

Step 3: Policy Impact Assessment

1. Recent policy events (last 30 days)
2. Interpretation of policy intent (support growth / control inflation / contain risk)
3. Transmission paths to each asset class
4. Lag estimation (6-12 months for monetary policy, 3-6 months for fiscal policy)

Step 4: Asset Allocation Tilt

Based on cycle position and policy direction:
- Overweight / neutral / underweight: China A-shares / Hong Kong stocks / US equities / bonds / commodities / cash
- Style tilt: growth vs value, large cap vs small cap
- Sector preference: cyclical / defensive / growth

Output Format

markdown
## Macro Environment Assessment

### Snapshot of Core Data
| Indicator | Latest | Previous | Trend |
|------|--------|------|------|
| China PMI | 50.2 | 49.8 | ↑ |
| ... | ... | ... | ... |

### Economic Cycle Positioning
- **Current stage**: early recovery / mid-overheat / late stagflation / mid-recession
- **Core logic**: explain the basis in 2-3 sentences
- **Estimated remaining duration**: expected to last another X months

### Central Bank Policy Analysis
- **PBOC**: easing bias, likely another 25bp RRR cut in Q2
- **Fed**: hiking pause, watch the June dot plot
- **Policy conflicts**: whether there are conflicting policy signals worth attention

### Major Asset Allocation Tilt
| Asset | Recommendation | Logic |
|------|------|------|
| China A-shares | Overweight | Policy bottom confirmed + loose liquidity |
| Bonds | Neutral | Limited room for rates to fall further |
| Commodities | Underweight | Weak demand |
| Cash | Underweight | High opportunity cost |

### Risk Warnings
- Risk 1: ...
- Risk 2: ...

Notes

  1. Data timeliness: macro data is released with lags; PMI is the timeliest (start of month), GDP is the most delayed (quarter-end + 15 days)
  2. Do not predict precisely: macro analysis provides directional judgment, not exact levels or timing
  3. Focus on marginal change: direction and speed of change matter more than absolute levels
  4. China-specific feature: policy intent > economic data, and major meeting tone-setting has the highest priority
  5. Global linkage: the US dollar / US Treasury yields are global pricing anchors, and Fed policy affects global liquidity
  6. Avoid hindsight bias: analyze based on the information available at the time, not by reverse-engineering from future data

Preguntas frecuentes

¿Qué hace la habilidad de IA Macro Analysis?

Macroeconomic cycle positioning and central-bank policy interpretation, including GDP/CPI/PMI/rates/FX analysis, with output in the form of major-asset allocation tilts.

¿Por qué usar Macro Analysis en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Macro Analysis 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 Macro Analysis en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/macro-analysis. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Macro Analysis?

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 Macro Analysis?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Macro Analysis 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 Macro Analysis?

Sí. HKUDS la ha publicado en GitHub bajo la licencia MIT. 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 todos

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 👇