global-macro
できること
このスキルは、政策金利と通貨の変化が、経済と市場をどう動かすかを説明します。特定の資産を選ぶ前に、大きな視点を持ちたい投資家向けです。
使う場面
- ✓FRB、ECB、日銀などの中央銀行が、金利を変更したばかりのとき。
- ✓通貨の動きが、自分の投資にどう影響するかを知りたいとき。
- ✓今後数か月の株式、債券、現金の配分を計画しているとき。
スキルのリンク
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/global-macro/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“FRBの最新の金利決定は、私の株式と債券の比率にとってどういう意味がありますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、政策金利から債券の利回り、信用コスト、企業の利益、株価までのつながりをたどります。その全体像を、主要な各資産に向けた単純なシグナルにまとめます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Global Macro Analysis
Overview
Builds a macro analysis framework from three dimensions: central-bank policy, exchange-rate regimes, and geopolitics. Outputs quantifiable macro factor signals to drive cross-asset allocation decisions. Core logic: macro cycles determine major asset direction, while micro-level timing is delegated to other skills.
Core Concepts
1. Central Bank Policy Transmission Chain
Policy-rate changes → government bond yield curve → credit spreads → financing costs for the real economy → corporate earnings → equity valuation
Monitoring framework for the three major central banks:
| Central Bank | Core Indicators | Forward Signals | Lagging Confirmation |
|---|---|---|---|
| Federal Reserve (Fed) | FFR, dot plot, SEP | CME FedWatch probabilities | nonfarm payrolls / CPI / PCE |
| European Central Bank (ECB) | Main refinancing rate | Eurozone PMI, HICP | credit growth |
| Bank of Japan (BOJ) | YCC band, policy rate | JPY exchange rate, JGB yields | core CPI |
Historical transmission of Fed hiking / cutting cycles to China A-shares (empirical):
- Late in a Fed hiking cycle (the last 1-2 hikes), China A-shares often have already priced it in, and the average drawdown of the CSI 300 narrows to -3%
- In the 3 months after the first Fed cut, the CSI 300 has averaged +8.2% (mean of the 2001 / 2007 / 2019 cycles)
- But rate cuts do not automatically mean gains. In 2008, cuts came with recession and China A-shares still fell
2. Exchange Rate Forecasting Framework
Three-layer model:
| Model | Applicable Horizon | Core Variables | Accuracy |
|---|---|---|---|
| Purchasing Power Parity (PPP) | 3-5 years | CPI gap between two countries | Long-term anchor |
| Interest Parity (UIP/CIP) | 3-12 months | rate differential + forward premium/discount | Medium-term direction |
| BEER model | 1-3 years | terms of trade + net foreign inflows + productivity | Equilibrium estimate |
USD/CNY practical checklist:
- China-US 10Y spread > 0: appreciation pressure on the RMB (capital inflows)
- China-US 10Y spread < -150bp: rising depreciation pressure on the RMB
- Net FX settlement surplus / deficit: directly reflects conversion direction of corporates and households
- PBOC fixing vs market expectation: signal that the countercyclical factor has been activated
3. Geopolitical Risk Assessment
Quantitative approach (proxy for the GPR index):
# Geopolitical risk proxy indicators
risk_indicators = {
"vix": "Fear index > 25 = high risk",
"gold_oil_ratio": "Gold / oil > 25 = rising risk aversion",
"usd_index": "DXY jump > 2% / week = capital flowing back to USD",
"credit_spread": "IG spread > 150bp = credit tightening",
"em_spread": "EMBI spread widening > 50bp / month = emerging-market stress"
}
Typical asset impacts of geopolitical events (historical averages):
- Local conflicts: gold +3-5%, oil +5-15%, equities -2-5%, with impact lasting 1-4 weeks
- Trade friction: affected sectors -10-20%, beneficiary substitute sectors +5-10%, lasting 3-6 months
- Financial sanctions: sanctioned-country currency -10-30%, commodity supply side hit
4. Global Capital Flow Tracking
Key data sources:
- EPFR fund flows: weekly net inflows into global equity / bond funds
- Northbound flows (Shanghai-Shenzhen-Hong Kong Stock Connect): daily, with net buying > 10 billion RMB in a day as a strong signal
- US Treasury TIC data: monthly, showing changes in foreign holdings of Treasuries
- FX reserve changes: quarterly, indicating central-bank asset allocation direction
Northbound flow signal rules (China A-share practice):
| Signal | Condition | Meaning |
|---|---|---|
| Strong buy | Net buying for 5 consecutive days and cumulative amount > 20 billion RMB | Foreign investors are building positions trendwise |
| Weak buy | Single-day net buying > 8 billion RMB | Short-term sentiment is bullish |
| Warning | Net selling for 5 consecutive days and cumulative amount > 15 billion RMB | Foreign investors are reducing positions trendwise |
| Neutral | Daily net flow within ±3 billion RMB | No directional signal |
5. Dollar Cycle and Emerging Markets
Four-stage dollar cycle model:
Strong-dollar phase (DXY rising) → capital outflows from emerging markets → EM currency depreciation → EM equities and bonds both sell off
Weak-dollar phase (DXY falling) → capital flows back into EM → EM curren
よくある質問
どの中央銀行を扱いますか?
連邦準備制度、欧州中央銀行、日本銀行を、それぞれの主要な指標とともに扱います。
何を買うべきかを正確に教えてくれますか?
いいえ。大まかな配分を導くマクロの見通しを与えます。正確なタイミングは他のツールが担当します。
投資を始めたばかりの人にも役立ちますか?
金融の読者を想定して書かれているため、初心者には利回りや為替などの用語について短い説明が必要かもしれません。
詳細
作者による元の説明
Global macro analysis framework (central bank policy transmission / FX forecasting / geopolitical risk / capital flows), used to build macro factor signals that drive cross-asset allocation.
repo: HKUDS/Vibe-Trading
人気
- GitHubのスター
- 37k
- ランキング
- #7522
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
vibe-trading
37kバックテスト、ファクター分析、オプション価格、多くの市場にまたがる市場データを含む、金融リサーチの完全なツールキットをエージェントに与えます。
adr-hshare
37k中国企業が複数の市場に上場している価格差、例えば米国のADRと香港株の差を比べる方法をエージェントに示します。
akshare
37kエージェントが、APIキーなしで、中国と世界の株式、先物、外国為替、経済指標の無料の市場データを取得できるよう支援します。
alpha-zoo
37k既製のストックファクターのライブラリを閲覧し、選んだ市場で一群のファクターがリターンをどれだけ予測するかを検証できるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。