Stock API
zhangxiangliang/stock-api
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets.
Sector Rotation & Analysis — analyzes sector momentum rankings, money flows, economic cycle positioning, relative strength, top stocks per sector, valuations, and rotation signals to identify where…
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sector --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/trade-sector .claude/skills/trade-sector && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .claude/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sectorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sector --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/trade-sector .agents/skills/trade-sector && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .agents/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sector --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/trade-sector .cursor/skills/trade-sector && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .cursor/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/zubair-trabzada/ai-trading-claude.git --path skills/trade-sector--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sector --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/trade-sector .gemini/skills/trade-sector && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .gemini/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sectorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/trade-sector .github/skills/trade-sector && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .github/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install zubair-trabzada/ai-trading-claude trade-sector --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zubair-trabzada/ai-trading-claude.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/trade-sector .opencode/skills/trade-sector && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trade-sector" agent skill from https://github.com/zubair-trabzada/ai-trading-claude/tree/main/skills/trade-sector into .opencode/skills/trade-sector/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trade-sector", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
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…
Trade Sector is an agent skill from zubair-trabzada/ai-trading-claude. Sector 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.
Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR, covering Stock and market analysis. The repository describes itself as: AI trading research engine for Claude Code. Analyze stocks (technical, fundamental, sentiment, risk, thesis), options strategies, sector rotation, portfolio analysis, and PDF… The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c6d7252. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trade Sector loads about 4.3k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 792 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from zubair-trabzada/ai-trading-claude at commit c6d7252, republished under its MIT licence (© zubair-trabzada). 792 words, ~4,332 tokens.
.claude/skills/trade-sector/SKILL.md (or your agent's skills folder).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.
DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence.
This skill activates when the user runs:
/trade sector <SECTOR> — Full sector analysis (e.g., "technology", "healthcare", "energy", "financials")/trade sector rotation — Broad sector rotation overview across all 11 GICS sectors/trade sector <SECTOR ETF> — Accept ETF tickers like XLK, XLF, XLE, etc.Map user input to the standard GICS sectors and their primary ETFs:
| Sector | ETF | Common Aliases |
|---|---|---|
| Technology | XLK | tech, software, IT, semiconductors |
| Healthcare | XLV | health, pharma, biotech, medical |
| Financials | XLF | finance, banks, banking, insurance |
| Consumer Discretionary | XLY | consumer, retail, discretionary |
| Consumer Staples | XLP | staples, defensive, food, household |
| Energy | XLE | oil, gas, energy, petroleum |
| Industrials | XLI | industrial, manufacturing, defense, aerospace |
| Materials | XLB | materials, mining, chemicals, metals |
| Utilities | XLU | utilities, electric, power |
| Real Estate | XLRE | real estate, REITs, property |
| Communication Services | XLC | communications, media, telecom, social media |
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.
WebSearch: "S&P 500 sector performance 1 week 1 month 3 month 6 month YTD 2025 2026"
WebSearch: "sector ETF performance comparison XLK XLV XLF XLE XLY XLP XLI XLB XLU XLRE XLC"Extract: performance for each of the 11 GICS sectors over 1-week, 1-month, 3-month, 6-month, and YTD timeframes.
WebSearch: "sector ETF fund flows inflows outflows <current month> <current year>"
WebSearch: "<SECTOR ETF> fund flows institutional money movement"Extract: which sectors are seeing net inflows vs outflows, magnitude of flows, trend direction (accelerating or decelerating).
WebSearch: "economic cycle phase 2025 2026 expansion contraction recession indicators"
WebSearch: "ISM PMI GDP growth leading economic indicators latest"
WebSearch: "Federal Reserve interest rate outlook policy <current year>"Extract: current economic phase assessment, key indicators (ISM, PMI, GDP, unemployment, inflation), Fed policy stance, yield curve status.
WebSearch: "<SECTOR> sector outlook 2025 2026 trends growth drivers"
WebSearch: "<SECTOR ETF> top holdings weightings performance"
WebSearch: "<SECTOR> sector valuation PE ratio historical average"
WebSearch: "<SECTOR> sector earnings growth revenue estimates"Extract: sector-specific trends, top 10 holdings and weights, current valuations vs historical, forward earnings growth estimates, key sector-specific drivers.
WebSearch: "<SECTOR ETF> vs SPY relative strength performance ratio"
WebSearch: "<SECTOR> sector relative strength breakout breakdown"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.
WebSearch: "<SECTOR> sector top performing stocks momentum leaders <current year>"
WebSearch: "<SECTOR> sector best stocks buy analysts rating"Extract: top 5-10 stocks by momentum, analyst consensus on each, key metrics for each.
WebSearch: "<SECTOR> sector breadth advance decline new highs new lows"
WebSearch: "<SECTOR> stocks above 50 day moving average 200 day"Extract: percentage of stocks above 50-day MA, percentage above 200-day MA, advance/decline ratio, new highs vs new lows within the sector.
Use this framework to contextualize sector recommendations:
| Phase | Economic Indicators | Typically Strong Sectors | Typically Weak Sectors |
|---|---|---|---|
| Early Expansion | GDP accelerating, unemployment falling, low rates | Financials, Consumer Discretionary, Industrials, Real Estate | Utilities, Consumer Staples, Healthcare |
| Mid Expansion | Steady growth, rising employment, moderate inflation | Technology, Communication Services, Industrials | Utilities, Energy (early) |
| Late Expansion | Peak growth, full employment, rising inflation/rates | Energy, Materials, Healthcare | Consumer Discretionary, Technology, Real Estate |
| Contraction/Recession | GDP declining, rising unemployment, Fed cutting | Utilities, Consumer Staples, Healthcare, Gold | Financials, Consumer Discretionary, Industrials |
Based on the economic data gathered, determine the current phase and note which sectors should theoretically benefit. Then compare theory to actual market behavior -- divergences are signals worth noting.
Generate a file named TRADE-SECTOR-<SECTOR>.md (or TRADE-SECTOR-ROTATION.md for the broad overview):
# Sector Analysis: <SECTOR NAME>
**Generated:** <current date and time>
**Primary ETF:** <ticker> | **Current Price:** $<price>
**Sector YTD Performance:** <+/-X%> | **vs S&P 500:** <+/-X% relative>
> **DISCLAIMER:** This is for educational and research purposes only. Not financial advice. Always do your own due diligence.
---
## Sector Performance Dashboard
### All-Sector Rankings (by Momentum)
| Rank | Sector | ETF | 1-Week | 1-Month | 3-Month | 6-Month | YTD | Trend |
|------|--------|-----|--------|---------|---------|---------|-----|-------|
| 1 | <sector> | <ETF> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <arrow up/down/flat> |
| 2 | <sector> | <ETF> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <arrow> |
| 3 | <sector> | <ETF> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <arrow> |
| ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 11 | <sector> | <ETF> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <+/-X%> | <arrow> |
**Current Leader:** <sector> (+<X%> YTD)
**Current Laggard:** <sector> (-<X%> YTD)
**Biggest Momentum Shift (3M vs 1M):** <sector> — <explanation>
---
## 1. Money Flow Analysis
### Sector Fund Flows (Recent 4 Weeks)
| Sector | ETF | Net Flow | Direction | Trend |
|--------|-----|----------|-----------|-------|
| <sector> | <ETF> | +$<X>M | Inflow | Accelerating/Steady/Decelerating |
| <sector> | <ETF> | -$<X>M | Outflow | Accelerating/Steady/Decelerating |
| ... | ... | ... | ... | ... |
### Flow Interpretation
<3-4 sentences. Where is institutional money going? Are there divergences between price performance and fund flows (e.g., sector rising but seeing outflows = potential distribution)? Which flow trends are most significant?>
### Smart Money vs Retail Signals
- **Institutional accumulation signals:** <which sectors show signs of institutional buying>
- **Retail enthusiasm signals:** <which sectors show heavy retail interest (could be contrarian warning)>
- **Divergences to watch:** <sectors where flows and price disagree>
---
## 2. Economic Cycle Positioning
### Current Economic Phase Assessment
**Phase:** <Early Expansion / Mid Expansion / Late Expansion / Contraction>
**Confidence:** <High / Medium / Low>
**Key Indicators:**
| Indicator | Latest Reading | Trend | Signal |
|-----------|---------------|-------|--------|
| GDP Growth (QoQ) | <X%> | <rising/falling> | <expansionary/contractionary> |
| ISM Manufacturing PMI | <X> | <rising/falling> | <above/below 50> |
| ISM Services PMI | <X> | <rising/falling> | <above/below 50> |
| Unemployment Rate | <X%> | <rising/falling> | <signal> |
| Core CPI (YoY) | <X%> | <rising/falling> | <inflationary/deflationary> |
| Fed Funds Rate | <X%> | <hiking/cutting/pausing> | <restrictive/neutral/accommodative> |
| Yield Curve (2Y-10Y) | <X bps> | <steepening/flattening/inverted> | <signal> |
| Leading Economic Index | <X> | <rising/falling> | <signal> |
### Cycle-Favored Sectors (Current Phase)
1. **<Sector>** — <why it benefits in this phase>
2. **<Sector>** — <why>
3. **<Sector>** — <why>
### Cycle-Challenged Sectors (Current Phase)
1. **<Sector>** — <why it struggles in this phase>
2. **<Sector>** — <why>
3. **<Sector>** — <why>
### Theory vs Reality Check
<2-3 sentences. Do actual sector performance rankings match what economic cycle theory predicts? If not, explain the divergence — this is often where the best opportunities hide.>
---
## 3. Relative Strength vs S&P 500
### Target Sector Relative Strength
**<SECTOR> vs S&P 500 (Relative Performance):**
- **1-Month Relative:** <+/-X%> — <outperforming/underperforming>
- **3-Month Relative:** <+/-X%> — <outperforming/underperforming>
- **6-Month Relative:** <+/-X%> — <outperforming/underperforming>
- **Relative Strength Trend:** <Improving / Deteriorating / Stable>
- **RS Breakout/Breakdown:** <e.g., "Relative strength breaking out of 6-month downtrend" or "No clear signal">
### Sector Breadth Indicators
| Metric | Value | Signal |
|--------|-------|--------|
| % of Stocks Above 50-Day MA | <X%> | <Healthy (>60%) / Neutral (40-60%) / Weak (<40%)> |
| % of Stocks Above 200-Day MA | <X%> | <signal> |
| Sector Advance/Decline Ratio | <X> | <signal> |
| New 52-Week Highs | <X> | <signal> |
| New 52-Week Lows | <X> | <signal> |
### Breadth Assessment
<2-3 sentences. Is the sector's performance broad-based or driven by a few mega-caps? Narrow leadership is a warning sign. Broad participation confirms the trend.>
---
## 4. Sector Valuation
### Current Valuation Metrics
| Metric | Current | 5-Year Avg | 10-Year Avg | vs History |
|--------|---------|-----------|-------------|------------|
| Forward P/E | <X>x | <X>x | <X>x | <Premium/Discount of X%> |
| Trailing P/E | <X>x | <X>x | <X>x | <Premium/Discount> |
| Price/Sales | <X>x | <X>x | <X>x | <Premium/Discount> |
| Price/Book | <X>x | <X>x | <X>x | <Premium/Discount> |
| EV/EBITDA | <X>x | <X>x | <X>x | <Premium/Discount> |
| Dividend Yield | <X%> | <X%> | <X%> | <Above/Below avg> |
### Earnings Growth Trajectory
| Metric | Last Quarter | Current FY Est | Next FY Est |
|--------|-------------|----------------|-------------|
| Revenue Growth (YoY) | <X%> | <X%> | <X%> |
| Earnings Growth (YoY) | <X%> | <X%> | <X%> |
| Earnings Revision Trend | <positive/negative — X% revised up/down in last 30 days> |
### Valuation Verdict
<2-3 sentences. Is the sector cheap or expensive relative to its own history? Is it cheap or expensive relative to the broader market? Is the valuation justified by growth rates (PEG analysis)?>
---
## 5. Top 5 Stocks by Momentum
| Rank | Ticker | Company | Mkt Cap | 1M Return | 3M Return | Fwd P/E | Analyst Rating | Signal |
|------|--------|---------|---------|-----------|-----------|---------|---------------|--------|
| 1 | <ticker> | <name> | $<X>B | +<X%> | +<X%> | <X>x | <rating> | <Buy/Hold/Sell> |
| 2 | <ticker> | <name> | $<X>B | +<X%> | +<X%> | <X>x | <rating> | <signal> |
| 3 | <ticker> | <name> | $<X>B | +<X%> | +<X%> | <X>x | <rating> | <signal> |
| 4 | <ticker> | <name> | $<X>B | +<X%> | +<X%> | <X>x | <rating> | <signal> |
| 5 | <ticker> | <name> | $<X>B | +<X%> | +<X%> | <X>x | <rating> | <signal> |
### Stock Spotlights
**#1 <TICKER> — <Company Name>**
<3-4 sentences on why this stock is leading the sector. What is driving the momentum? Is it sustainable? Key catalyst ahead.>
**#2 <TICKER> — <Company Name>**
<3-4 sentences.>
**#3 <TICKER> — <Company Name>**
<3-4 sentences.>
### Contrarian Picks (Laggards with Potential)
| Ticker | Company | 3M Return | Why It Could Turn |
|--------|---------|-----------|-------------------|
| <ticker> | <name> | -<X%> | <1-sentence thesis> |
| <ticker> | <name> | -<X%> | <1-sentence thesis> |
---
## 6. Rotation Signals
### Sectors Gaining Momentum (Rotate INTO)
| Sector | Signal Strength | Evidence |
|--------|----------------|----------|
| <sector> | Strong / Moderate | <e.g., "3-month relative strength breakout, fund inflows accelerating, cycle-favored"> |
| <sector> | Strong / Moderate | <evidence> |
### Sectors Losing Momentum (Rotate OUT OF)
| Sector | Signal Strength | Evidence |
|--------|----------------|----------|
| <sector> | Strong / Moderate | <e.g., "Relative strength breaking down, outflows for 4 consecutive weeks, late-cycle headwinds"> |
| <sector> | Strong / Moderate | <evidence> |
### Rotation Playbook
<3-5 sentences describing the current rotation thesis. Which sectors are institutions moving into and why? Which are they leaving? What macro narrative is driving the rotation? How long might this rotation persist?>
---
## 7. Sector Risk Factors
### Key Risks to This Sector
| Risk | Probability | Impact | Timeframe |
|------|-------------|--------|-----------|
| <risk 1 — e.g., "Rising interest rates compress valuations"> | <H/M/L> | <H/M/L> | <near/medium/long-term> |
| <risk 2> | <H/M/L> | <H/M/L> | <timeframe> |
| <risk 3> | <H/M/L> | <H/M/L> | <timeframe> |
| <risk 4> | <H/M/L> | <H/M/L> | <timeframe> |
### Sector-Specific Macro Sensitivity
- **Interest Rate Sensitivity:** <High/Medium/Low — explanation>
- **Dollar Sensitivity:** <High/Medium/Low — explanation>
- **Commodity Sensitivity:** <High/Medium/Low — explanation>
- **Regulatory Risk:** <High/Medium/Low — explanation>
- **Geopolitical Risk:** <High/Medium/Low — explanation>
---
## 8. Sector Scorecard
| Dimension | Score (1-10) | Notes |
|-----------|-------------|-------|
| Momentum (price trend) | <X> | <1-line> |
| Money Flow | <X> | <1-line> |
| Economic Cycle Fit | <X> | <1-line> |
| Relative Strength | <X> | <1-line> |
| Valuation | <X> | <1-line> |
| Breadth | <X> | <1-line> |
| Earnings Trend | <X> | <1-line> |
| **SECTOR SCORE** | **<avg>/10** | |
**Sector Signal:** <Overweight / Market Weight / Underweight>
**Conviction:** <High / Medium / Low>
---
## 9. Action Plan
### If Bullish on <SECTOR>:
- **ETF Play:** Buy <ETF> — broad sector exposure, liquid, low cost
- **Concentrated Play:** Top picks: <Ticker 1>, <Ticker 2>, <Ticker 3>
- **Options Play:** <e.g., "Buy XLK $200 calls, 60 DTE" or "Sell XLE puts at support">
- **Entry Timing:** <e.g., "Enter on next pullback to sector 20-day MA" or "Buy strength above $X">
### If Bearish on <SECTOR>:
- **Avoid/Reduce:** Trim exposure to <sector> names
- **Hedge:** <e.g., "Buy XLE puts" or "Short sector via inverse ETF">
- **Rotation Target:** Move capital into <alternative sector> instead
---
*Generated by AI Trading Analyst — Sector Rotation Engine*
*DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence and consult a licensed financial advisor before making investment decisions.*DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence.
© zubair-trabzada, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/trade-sector of zubair-trabzada/ai-trading-claude.
Open the folder on GitHubat commit c6d7252
Trade Sector next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trade Sector this skillzubair-trabzada/ai-trading-claude | 268 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Stock APIzhangxiangliang/stock-api | 2k | — | ~507 | Automated safety check: Pass | MIT | |
| Tushare Datazillionare/zillionare | 322 | 2 repos | ~2.3k | Automated safety check: Pass | None | |
| Tradingview MCPatilaahmettaner/tradingview-mcp | 5k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Digital Oraclekomako-workshop/digital-oracle | 878 | — | ~5.9k | Automated safety check: Pass | MIT | |
| Longbridge Researchhelsome/folio | 271 | 3 repos | ~2.1k | Automated safety check: Pass | MIT |
zhangxiangliang/stock-api
Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets.
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
atilaahmettaner/tradingview-mcp
AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…
komako-workshop/digital-oracle
Answer prediction questions using market trading data, not opinions.
helsome/folio
Institution ratings, consensus price targets, EPS/revenue forecasts, finance calendar, shareholder data, fund holders, insider trades (SEC Form 4), short interest, industry rankings, peer group…
helsome/folio
Earnings analysis — pre- and post-earnings. An agent skill from helsome/folio.
zubair-trabzada/ai-trading-claude
Full Stock Analysis Orchestrator — launches 5 parallel subagents for comprehensive multi-dimensional stock analysis with composite Trade Score
zubair-trabzada/ai-trading-claude
Head-to-Head Stock Comparison — takes two tickers and compares them across valuation, growth, profitability, technical setup, sentiment, risk profile, and analyst consensus with a scored comparison…
zubair-trabzada/ai-trading-claude
Fundamental Analysis Agent — valuation, growth, profitability, balance sheet, competitive moat, and management quality analysis with Fundamental Score (0-100)
zubair-trabzada/ai-trading-claude
60-Second Stock Snapshot — fast assessment with signal, key factors, and levels without launching subagents
zubair-trabzada/ai-trading-claude
Risk Assessment & Position Sizing — analyzes volatility, drawdown scenarios, correlation, liquidity, and provides position sizing calculators (Kelly Criterion, fixed percentage, volatility-adjusted)…
zubair-trabzada/ai-trading-claude
Sentiment & Momentum Analysis Agent — news sentiment, social media buzz, analyst ratings, institutional activity, insider trading, and short interest with Sentiment Score (0-100)
Categories
Sector Rotation & Analysis — analyzes sector momentum rankings, money flows, economic cycle positioning, relative strength, top stocks per sector, valuations, and rotation signals to identify where…. Trade Sector is an agent skill from zubair-trabzada/ai-trading-claude. Sector 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.
Trade Sector fits situations like: tasks that involve Stock and market analysis.
Run `npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a claude-code`. Or copy the skill folder (skills/trade-sector in zubair-trabzada/ai-trading-claude) into .claude/skills/trade-sector in your project. Claude Code loads it when a task matches its description.
Run `npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a codex`. Or copy the skill folder (skills/trade-sector in zubair-trabzada/ai-trading-claude) into .agents/skills/trade-sector in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zubair-trabzada/ai-trading-claude --skill trade-sector -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trade-sector, .gemini/skills/trade-sector, .github/skills/trade-sector and .opencode/skills/trade-sector in your project.
SKILL.md names no scripts, command-line tools or credentials: Trade Sector is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trade Sector is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trade Sector: Stock API (zhangxiangliang/stock-api, 2k stars), Tushare Data (zillionare/zillionare, 322 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars) and Digital Oracle (komako-workshop/digital-oracle, 878 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
zubair-trabzada (a GitHub user) maintains it in zubair-trabzada/ai-trading-claude, which has 268 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on April 7, 2026.
Source: zubair-trabzada/ai-trading-claude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.