with one click
cd /path/to/sector-rotation
npx skills add https://github.com/JansenAnalytics/claudex --skill sector-rotationCopy and paste this command into Claude Code to install the skill
cd /path/to/sector-rotation
npx skills add https://github.com/JansenAnalytics/claudex --skill sector-rotationCopy and paste this command into Claude Code to install the skill
Semantic memory search across all agent memories and conversation history. Use BEFORE answering questions about prior work, decisions, dates, people, preferences, projects, or past conversations. Also use when asked "do you remember", "what did we discuss", "when did we", etc.
Get current weather and forecasts. Use when the user asks about weather, temperature, or forecasts for any location.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Accessibility auditing: WCAG compliance checking, contrast ratios, ARIA labels, keyboard navigation, semantic HTML, screen reader compatibility.
ADR Manager Skill
Autonomous API testing and evaluation. Tests any REST API for correctness, security, performance, error handling, and standards compliance. Discovers endpoints, probes with valid/invalid/edge-case payloads, checks auth, response times, injection vulnerabilities, and generates severity-scored reports with actionable fixes. Use before any API "done" claim.
| description | cd /path/to/sector-rotation |
| name | sector-rotation |
| category | trading-finance |
| maturity | stable |
| tags | ["relative-strength","yfinance","business-cycle","money-flow","etf"] |
cd /path/to/sector-rotation
python3 scripts/collect.py --db data/sectors.db
Then use the JSON output (or DB) to write analysis per references/analysis-prompt.md.
python3 scripts/query.py heatmap # RS heatmap, all sectors × all periods
python3 scripts/query.py leaders --n 3 # top 3 sectors by 1M RS
python3 scripts/query.py cycle --days 90 # cycle phase history
scripts/collect.py — Data Collector & AnalyzerFetches 3 months of daily data for 17 tickers via yfinance. Computes:
Flags: --db PATH, --no-db, --json
Dependency: pip3 install yfinance
scripts/query.py — Database Query APIHistorical queries for analysis and backtesting.
Commands:
snapshot [--date] — full snapshot JSONsector XLE --days 30 [--csv] — single sector historyrankings --period 1w|2w|1m|3m — RS rankingscycle --days 90 [--csv] — cycle phase historysignals --days 30 — rotation signals logheatmap — RS heatmap (all sectors, all periods)leaders --n 3 / laggards --n 3 — top/bottom sectorscompare XLE XLK --days 60 — head-to-headbreadth --days 30 [--csv] — breadth/risk appetite historyexport --days 365 --csv — full export for backtestsSQLite at data/sectors.db. 4 tables:
snapshots — full JSON per run + cycle phase + risk appetitesector_series — flat rows per sector: close, returns, RS, flow, RSI, volcycle_history — phase, confidence, component scores, breadth metricsrotation_signals — timestamped signal log (accelerating/decelerating/etc.)When generating reports, read references/analysis-prompt.md for the full analysis template.
Read references/cycle-model.md for the business cycle sector rotation model (Fidelity/Stovall).
The agent writes analysis covering: cycle phase, rotation scorecard, money flow themes, cross-asset confirmation, risk appetite, actionable rotation trades, and signals to watch.
query.py or read data/sectors.db directlycollect.py provides structured data for programmatic consumptionWeekly collection (Sunday evening or Monday pre-market) for the main rotation report. Optional mid-week check (Wednesday) to catch intra-week shifts.
references/analysis-prompt.md — analysis template for report generationreferences/cycle-model.md — business cycle sector rotation model, thresholds, interpretation