us-etf-flow
What it does
This skill follows money moving in and out of US exchange-traded funds. It is for investors who want to see where large institutions are putting capital.
When to use it
- ✓When you want to see whether money is flowing into or out of broad US stock funds.
- ✓When you are checking which sectors are attracting or losing ETF money.
- ✓When you want an early read on shifts in risk appetite.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/us-etf-flow/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Which US sector ETFs have seen the biggest inflows over the past two weeks?”
5 new skills a week. 1 minute to read.
How it works
It reads daily creation and redemption activity, which shows whether big funds are gaining or losing money. It then compares sector breadth and style flows to spot rotation.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
US ETF Flow & Sector Breadth Analysis
Overview
Track capital flows through US ETFs to identify institutional positioning, sector rotation trends, and risk appetite shifts. ETF flows are a real-time proxy for institutional capital allocation — unlike 13F filings (45-day lag), ETF creation/redemption data is available daily.
Core Concepts
1. ETF Flow Mechanics
Creation / Redemption process:
- Inflows (creation): Authorized Participants (APs) deliver baskets of underlying securities to the ETF issuer → receive new ETF shares → sell on exchange. This happens when ETF trades at a premium to NAV.
- Outflows (redemption): APs buy ETF shares on exchange → redeem with issuer for underlying securities → sell securities. This happens when ETF trades at a discount to NAV.
- Signal interpretation: sustained large inflows = institutional demand; sustained large outflows = institutional liquidation.
Key distinction:
- ETF price movement ≠ ETF flow. Price can rise on low volume (momentum). Flows require actual capital commitment.
- Flows are a quantity signal (how much money is moving), not a price signal.
2. Major ETF Flow Categories
Broad Market ETFs
| ETF | Tracking Index | AUM | Flow Signal |
|---|---|---|---|
| SPY | S&P 500 | ~$500B | Broadest equity risk appetite |
| IVV | S&P 500 | ~$400B | Long-term institutional allocation |
| VOO | S&P 500 | ~$400B | Retail + advisor allocation |
| QQQ | Nasdaq 100 | ~$250B | Tech / growth appetite |
| IWM | Russell 2000 | ~$60B | Small-cap risk appetite |
| DIA | Dow Jones 30 | ~$30B | Value / blue-chip sentiment |
Interpretation rules:
# Broad market flow signals
if spy_flow > 0 and iwm_flow > 0:
signal = "risk_on" # Both large and small cap getting inflows
elif spy_flow > 0 and iwm_flow < 0:
signal = "quality_flight" # Money rotating to large-cap safety
elif spy_flow < 0 and iwm_flow < 0:
signal = "risk_off" # Broad equity outflows
elif spy_flow < 0 and iwm_flow > 0:
signal = "risk_seeking" # Rotation from large to small (rare, usually early cycle)
Sector ETFs (SPDR Select Sector)
| ETF | Sector | Economic Sensitivity | Cycle Phase |
|---|---|---|---|
| XLK | Technology | Growth / late cycle | Expansion |
| XLF | Financials | Rate sensitive | Early recovery |
| XLE | Energy | Commodity linked | Late cycle / inflation |
| XLV | Healthcare | Defensive | Recession |
| XLY | Consumer Discretionary | Cyclical | Recovery |
| XLP | Consumer Staples | Defensive | Recession |
| XLI | Industrials | Cyclical | Early expansion |
| XLU | Utilities | Defensive / rate sensitive | Late cycle / recession |
| XLB | Materials | Commodity linked | Early cycle |
| XLRE | Real Estate | Rate sensitive | Rate-cut cycle |
| XLC | Communication Services | Growth (META, GOOGL) | Expansion |
Style & Factor ETFs
| ETF | Factor | Signal |
|---|---|---|
| IVW / SPYG | S&P 500 Growth | Growth appetite |
| IVE / SPYV | S&P 500 Value | Value rotation |
| MTUM | MSCI USA Momentum | Trend following |
| QUAL | MSCI USA Quality | Quality flight |
| USMV / SPLV | Min Volatility | Defensive positioning |
| SIZE | MSCI USA Size | Small-cap factor |
Fixed Income ETFs
| ETF | Segment | Signal |
|---|---|---|
| TLT | 20+ Year Treasury | Duration / rate expectations |
| IEF | 7-10 Year Treasury | Intermediate rate view |
| SHY | 1-3 Year Treasury | Cash proxy / safe haven |
| LQD | Investment Grade Corp | Credit appetite |
| HYG / JNK | High Yield Corp | Risk appetite / credit cycle |
| TIP | TIPS | Inflation expectations |
| EMB | EM Sovereign Debt | EM risk appetite |
3. Sector Rotation Signals
Sector breadth analysis:
# Sector breadth = number of sectors with positive flows / total sectors
sector_flows = {
"XLK": +500, # $500M inflow
"XLF": +200,
"XLE": -100,
"XLV": +50,
"XLY": -300,
"XLP": +100,
"XLI": +150,
"XLU": -50,
"XLB": +80,
"XLRE": -200,
"XLC": +300,
}
positive_sectors = sum(1 for v in sector_flows.values() if v > 0)
breadth = positive_sectors / len(sector_flows)
# Interpretation
# breadth > 0.7: broad-based inflows → healthy bull market
# breadth 0.4-0.7: selective rotation → stock/sector picker's market
# breadth < 0.4: broad outflows → risk-off environment
Cyclical vs Defensive ratio:
cyclical = ["XLK", "XLY", "XLI", "XLF", "XLB"]
FAQ
Why use ETF flows instead of 13F filings?
ETF flow data is available daily, while 13F filings are published with about a 45-day lag.
Is ETF price movement the same as flow?
No. Price can rise on low volume, while flows show real capital moving in or out.
Which funds are covered?
It covers broad market ETFs such as SPY and IVV, along with sector and thematic funds.
Details
Original description by the author
US ETF fund flow analysis, sector rotation breadth, and style factor flows — track institutional capital movement via ETF creation/redemption, sector breadth signals, and thematic momentum.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7563
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.