sector-rotation
Skill17 starsChanged 4 months agoApache-2.0View on GitHub
Rotate between sectors based on economic and market cycles. Use when optimizing sector allocation, understanding cyclical trends, or positioning for macro shifts.
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Weaxs/stock-analysis-plugintheir own version, first seen Nov 15, 2026
- Shubhamkumartrichy/claude-trading-skills-indiatheir own version, first seen Nov 1, 2026
- awslabs/agentcore-samplestheir own version, first seen Oct 13, 2026
- awslabs/amazon-bedrock-agentcore-samplestheir own version, first seen Oct 8, 2026
- IngAs8/ClaudeSkilledited, first seen Sep 28, 2026
- tusharagg1/aifolimizertheir own version, first seen Jun 11, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- IngAs8/ClaudeSkill★ 062% same
Wrote their own version · 5
- awslabs/amazon-bedrock-agentcore-samples★ 3.5ksame name
- awslabs/agentcore-samples★ 3.5ksame name
- Weaxs/stock-analysis-plugin★ 95same name
- Shubhamkumartrichy/claude-trading-skills-india★ 64same name
- tusharagg1/aifolimizer★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- candlestick-patternsSkill
- channel-tradingSkill
- cup-and-handleSkill
- double-top-bottomSkill
- flag-pennantSkill
- head-and-shouldersSkill
- triangle-patternsSkill
- wedge-patternsSkill
- altcoin-rotationSkill
- arbitrage-tradingSkill
- dca-strategySkill
- funding-rate-tradingSkill
- on-chain-analysisSkill
- breakout-tradingSkill
- gap-tradingSkill
- momentum-tradingSkill
- news-tradingSkill
- pullback-tradingSkill
- range-tradingSkill
- scalping-strategySkill
- earnings-tradingSkill
- economic-calendar-tradingSkill
- insider-activity-tradingSkill
- market-correlation-tradingSkill
- sentiment-analysisSkill
- breaker-blocksSkill
- fair-value-gapsSkill
- kill-zonesSkill
- liquidity-zonesSkill
- market-structure-shiftSkill
- optimal-trade-entrySkill
- order-blocksSkill
- premium-discountSkill
- correlation-riskSkill
- drawdown-managementSkill
- leverage-managementSkill
- partial-profit-takingSkill
- position-sizingSkill
- risk-reward-ratioSkill
- stop-loss-strategiesSkill
- trailing-stopSkill
- bollinger-bandsSkill
- divergence-tradingSkill
- fibonacci-tradingSkill
- ichimoku-cloudSkill
- macd-tradingSkill
- market-regime-detectionSkill
- mean-reversionSkill
- moving-average-crossoverSkill
- multi-timeframe-analysisSkill
- rsi-divergenceSkill
- stochastic-tradingSkill
- supply-demand-zonesSkill
- volume-profile-tradingSkill
- vwap-tradingSkill
- skill-nameSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Treat this map as an economic hypothesis, not a deterministic allocation rule.
- Distinctive: line 63
Use the current 11-sector GICS universe.
- Distinctive: line 76
When normally uncorrelated sectors start moving together, a macro factor is dominating individual sector dynamics:
- Distinctive: line 78
All sectors falling together = risk-off regime, defensive positioning matters less
- Distinctive: line 81
When correlation regime shifts are detected, prioritize macro analysis over traditional rotation signals.
- Distinctive: line 89
Treat the setup as a testable hypothesis, not a prediction.
- Distinctive: line 99
NEVER rely solely on historical cycle patterns -- confirm with current relative strength data and macro context
- Distinctive: line 101
When all sectors correlate (crisis mode), standard rotation logic breaks down -- prioritize capital preservation
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sector Rotation
Rotate sector allocation based on economic cycle phase, relative strength, and macro catalysts.
Economic Cycle Sectors
| Phase hypothesis | Economy | Sectors often evaluated |
| Early Expansion | Recovery begins | Financials, Consumer Discretionary, Information Technology |
| Mid Expansion | Growth accelerates | Industrials, Materials, Tech |
| Late Expansion | Growth peaks | Energy, Materials, Financials |
| Contraction | Slowdown/recession | Utilities, Healthcare, Consumer Staples |
Treat this map as an economic hypothesis, not a deterministic allocation rule. Classifications, constituents, and sensitivities change.
Cyclical (economy-sensitive): Consumer Discretionary, Financials, Industrials, Materials, Energy, Information Technology Defensive (recession-resistant): Utilities, Healthcare, Consumer Staples, Real Estate
Rotation Signals
| Signal | Indicates |
| Yield curve steepening | Early cycle -- favor cyclicals |
| Yield curve flattening | Late cycle -- rotate to defensives |
| Fed cutting rates | Early cycle starting |
| Fed raising rates | Late cycle |
| Commodities rallying | Late cycle inflation |
Sector ETFs
| Sector | ETF |
| Technology | XLK |
| Healthcare | XLV |
| Financials | XLF |
| Consumer Discretionary | XLY |
| Consumer Staples | XLP |
| Energy | XLE |
| Industrials | XLI |
| Utilities | XLU |
| Materials | XLB |
| Communication Services | XLC |
| Real Estate | XLRE |
Workflow
1. Build Relative Strength Rankings
get_candles(symbol=<sector_etf>, exchange=<exchange>, interval="1D", count=260)
get_candles(symbol="SPY", exchange=<exchange>, interval="1D", count=260)Use the current 11-sector GICS universe. Rank predeclared total-return horizons relative to the benchmark, with volatility, drawdown, liquidity, and turnover. Prevent look-ahead by using classifications and constituents known on each date; compare with equal-weight and benchmark baselines.
2. Research Macro Context
get_financial_news(topic="sector rotation economic cycle <current year>", max_results=15)
get_economics_calendar(from_date=<start>, to_date=<end>, impact="high")Identify cycle phase, Fed policy direction, and upcoming macro catalysts that could shift rotation.
3. Detect Correlation Regime Shifts
When normally uncorrelated sectors start moving together, a macro factor is dominating individual sector dynamics:
- Tech and Utilities both rising strongly = macro factor (Fed policy, liquidity) overriding sector rotation
- All sectors falling together = risk-off regime, defensive positioning matters less
- Defensive and cyclical diverging sharply = normal rotation is active, standard cycle strategy applies
When correlation regime shifts are detected, prioritize macro analysis over traditional rotation signals.
4. Report Recommendations
Provide the as-of date, classification universe, relative-strength/volatility table, uncertain cycle assessment, turnover/tax assumptions, and proposed weights or no change. Derive weights from the portfolio mandate and concentration limits rather than always selecting three winners and losers.
Evidence and Validation
- Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes.
- Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried.
- Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter.
- Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status.
- Research basis: Moskowitz & Grinblatt documented industry momentum; use the current GICS methodology for classification rather than assuming a fixed business-cycle map.
Key Rules
- Enforce the portfolio mandate's sector and issuer concentration limits; do not invent a universal cap.
- Rebalance on a fixed schedule and include turnover, spread, taxes, and tracking error.
- NEVER rely solely on historical cycle patterns -- confirm with current relative strength data and macro context
- Choose and validate the review frequency before testing.
- When all sectors correlate (crisis mode), standard rotation logic breaks down -- prioritize capital preservation
Related Skills
- market-correlation-trading -- Cross-asset correlations reveal regime shifts
- economic-calendar-trading -- Fed and macro data are primary rotation catalysts
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

