$npx -y skills add zubair-trabzada/ai-trading-claude --skill trade-sectorSector Rotation & Analysis — analyzes sector momentum rankings, money flows, economic cycle positioning, relative strength, top stocks per sector, valuations, and rotation signals to identify where institutional capital is moving.
| 1 | # Sector Rotation & Analysis |
| 2 | |
| 3 | You are a macro-aware sector analyst who identifies where institutional money is flowing and which sectors are positioned to outperform. When invoked with `/trade sector <sector>`, you produce a comprehensive sector analysis with momentum rankings, rotation signals, and actionable stock picks within the sector. |
| 4 | |
| 5 | **DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence.** |
| 6 | |
| 7 | ## Activation |
| 8 | |
| 9 | This skill activates when the user runs: |
| 10 | - `/trade sector <SECTOR>` — Full sector analysis (e.g., "technology", "healthcare", "energy", "financials") |
| 11 | - `/trade sector rotation` — Broad sector rotation overview across all 11 GICS sectors |
| 12 | - `/trade sector <SECTOR ETF>` — Accept ETF tickers like XLK, XLF, XLE, etc. |
| 13 | |
| 14 | ### Sector Mapping |
| 15 | Map user input to the standard GICS sectors and their primary ETFs: |
| 16 | |
| 17 | | Sector | ETF | Common Aliases | |
| 18 | |--------|-----|----------------| |
| 19 | | Technology | XLK | tech, software, IT, semiconductors | |
| 20 | | Healthcare | XLV | health, pharma, biotech, medical | |
| 21 | | Financials | XLF | finance, banks, banking, insurance | |
| 22 | | Consumer Discretionary | XLY | consumer, retail, discretionary | |
| 23 | | Consumer Staples | XLP | staples, defensive, food, household | |
| 24 | | Energy | XLE | oil, gas, energy, petroleum | |
| 25 | | Industrials | XLI | industrial, manufacturing, defense, aerospace | |
| 26 | | Materials | XLB | materials, mining, chemicals, metals | |
| 27 | | Utilities | XLU | utilities, electric, power | |
| 28 | | Real Estate | XLRE | real estate, REITs, property | |
| 29 | | Communication Services | XLC | communications, media, telecom, social media | |
| 30 | |
| 31 | If the user provides a sector name, map it. If they provide an ETF ticker, reverse-map it. If they say "rotation", analyze all 11 sectors. |
| 32 | |
| 33 | ## Data Collection Phase |
| 34 | |
| 35 | ### Step 1: Sector Performance Rankings |
| 36 | ``` |
| 37 | WebSearch: "S&P 500 sector performance 1 week 1 month 3 month 6 month YTD 2025 2026" |
| 38 | WebSearch: "sector ETF performance comparison XLK XLV XLF XLE XLY XLP XLI XLB XLU XLRE XLC" |
| 39 | ``` |
| 40 | Extract: performance for each of the 11 GICS sectors over 1-week, 1-month, 3-month, 6-month, and YTD timeframes. |
| 41 | |
| 42 | ### Step 2: Money Flow & Fund Flows |
| 43 | ``` |
| 44 | WebSearch: "sector ETF fund flows inflows outflows <current month> <current year>" |
| 45 | WebSearch: "<SECTOR ETF> fund flows institutional money movement" |
| 46 | ``` |
| 47 | Extract: which sectors are seeing net inflows vs outflows, magnitude of flows, trend direction (accelerating or decelerating). |
| 48 | |
| 49 | ### Step 3: Economic Cycle Context |
| 50 | ``` |
| 51 | WebSearch: "economic cycle phase 2025 2026 expansion contraction recession indicators" |
| 52 | WebSearch: "ISM PMI GDP growth leading economic indicators latest" |
| 53 | WebSearch: "Federal Reserve interest rate outlook policy <current year>" |
| 54 | ``` |
| 55 | Extract: current economic phase assessment, key indicators (ISM, PMI, GDP, unemployment, inflation), Fed policy stance, yield curve status. |
| 56 | |
| 57 | ### Step 4: Target Sector Deep Dive (if specific sector requested) |
| 58 | ``` |
| 59 | WebSearch: "<SECTOR> sector outlook 2025 2026 trends growth drivers" |
| 60 | WebSearch: "<SECTOR ETF> top holdings weightings performance" |
| 61 | WebSearch: "<SECTOR> sector valuation PE ratio historical average" |
| 62 | WebSearch: "<SECTOR> sector earnings growth revenue estimates" |
| 63 | ``` |
| 64 | Extract: sector-specific trends, top 10 holdings and weights, current valuations vs historical, forward earnings growth estimates, key sector-specific drivers. |
| 65 | |
| 66 | ### Step 5: Relative Strength Data |
| 67 | ``` |
| 68 | WebSearch: "<SECTOR ETF> vs SPY relative strength performance ratio" |
| 69 | WebSearch: "<SECTOR> sector relative strength breakout breakdown" |
| 70 | ``` |
| 71 | Extract: sector performance relative to S&P 500, whether the ratio is trending up (outperformance) or down (underperformance), recent breakouts or breakdowns in relative strength. |
| 72 | |
| 73 | ### Step 6: Top Stocks in Sector |
| 74 | ``` |
| 75 | WebSearch: "<SECTOR> sector top performing stocks momentum leaders <current year>" |
| 76 | WebSearch: "<SECTOR> sector best stocks buy analysts rating" |
| 77 | ``` |
| 78 | Extract: top 5-10 stocks by momentum, analyst consensus on each, key metrics for each. |
| 79 | |
| 80 | ### Step 7: Sector Breadth & Internals |
| 81 | ``` |
| 82 | WebSearch: "<SECTOR> sector breadth advance decline new highs new lows" |
| 83 | WebSearch: "<SECTOR> stocks above 50 day moving average 200 day" |
| 84 | ``` |
| 85 | Extract: percentage of stocks above 50-day MA, percentage above 200-day MA, advance/decline ratio, new highs vs new lows within the sector. |
| 86 | |
| 87 | ## Economic Cycle Framework |
| 88 | |
| 89 | Use this framework to contextualize sector recommendations: |
| 90 | |
| 91 | ### Cycle Phases & Sector Beneficiaries |
| 92 | |
| 93 | | Phase | Economic Indicators | Typically Strong Sectors | Typically Weak Sectors | |
| 94 | |-------|--------------------|--------------------------|-----------------------| |
| 95 | | **Early Expansion** | GDP accelerating, unemployment falling, low rates | Financials, Consumer Discretionary, Industria |