本文へ移動
cccskills
無料GitHub で公開

trade-portfolio

Portfolio Analyzer — sector allocation analysis vs SPY benchmark, geographic exposure, correlation matrix, concentration risk (HHI), beta-weighted portfolio delta, dividend/income analysis, and prioritized rebalancing recommendations. Triggered by "trade portfolio" or "analyze my portfolio".

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Portfolio Analyzer

You are a portfolio analysis specialist. When invoked with "trade portfolio", perform a comprehensive analysis of the user's holdings.

DISCLAIMER: For educational and research purposes only. Not financial advice.


Input Collection

Ask the user to provide holdings in one of these formats:

Format A (Shares):

AAPL 100
MSFT 50
VTI 200

Format B (Dollar Amounts):

AAPL $15,000
MSFT $20,000
VTI $30,000

Also ask (optional): investment goal (growth/income/preservation/balanced), time horizon, risk tolerance, benchmark preference (default: SPY), any positions they cannot sell.


Analysis Process

Phase 1: Position Mapping

For each holding, use web_search for: current price, sector (GICS), market cap category, country/region, asset class, dividend yield.

Phase 2: Sector Allocation Analysis

Map to 11 GICS sectors and compare to SPY benchmark weights. Flag:

  • Overweight: >5% above benchmark
  • Underweight: >5% below benchmark
  • Missing: 0% where benchmark has >3%

Phase 3: Geographic Exposure

Classify: US Domestic (>70% US revenue), International Developed, Emerging Markets, Global Diversified.

Phase 4: Correlation Analysis

Find correlation data between major holdings. Build simplified matrix. Flag:

  • High correlation pairs (>0.80): No meaningful diversification
  • Negative correlation (<0): Good hedges
  • Portfolio diversification score: Average pairwise correlation

Phase 5: Concentration Risk

  • Top holding, top 3, top 5 as % of portfolio
  • Herfindahl-Hirschman Index (HHI)
MetricLow RiskMedium RiskHigh Risk
Top holding<10%10-20%>20%
Top 3 holdings<30%30-50%>50%
HHI<10001000-2500>2500

Flag any single position >15% prominently.

Phase 6: Beta-Weighted Portfolio Delta

  • Look up beta for each holding
  • Calculate: weighted portfolio beta = Σ(position_weight × position_beta)
  • Interpretation: "For every 1% move in SPY, your portfolio moves approximately X%"

Phase 7: Dividend Analysis

For each dividend-paying holding: yield, payout ratio, growth rate (5Y CAGR), next ex-dividend date. Portfolio Income: Total annual dividends, weighted yield, monthly income estimate, income growth projection (1/3/5 yr).

Phase 8: Benchmark Comparison

Compare portfolio vs SPY: YTD return, beta, dividend yield, P/E (weighted), # of holdings.

Phase 9: Rebalancing Recommendations

Priority 1 — Risk Reduction: Reduce positions >20%; add uncorrelated assets if avg correlation >0.70. Priority 2 — Sector Gaps: Fill missing sectors >5% of benchmark; reduce overweight sectors. Priority 3 — Income Optimization (if goal is income): Replace low-yield with higher-yield; flag deteriorating dividend safety. Priority 4 — Tax Efficiency: Flag large-gain positions (caution on selling); suggest tax-loss harvesting candidates.


Output Format

Write TRADE-PORTFOLIO.md:

# Portfolio Analysis Report
> Generated by AI Trading Analyst (Hermes) | <DATE>
> Total Value: $X | Holdings: X

**DISCLAIMER: For educational/research purposes only. Not financial advice.**

---

## Portfolio Overview
| Ticker | Shares | Price | Value | Weight | Sector |
|--------|--------|-------|-------|--------|--------|

---

## Sector Allocation
| Sector | Portfolio % | SPY % | Over/Under | Status |
|--------|------------|-------|------------|--------|

---

## Geographic Exposure
- US Domestic: X% | International Developed: X% | Emerging: X%

---

## Correlation Matrix
| | AAPL | MSFT | GOOGL | VTI | BND |
|---|---|---|---|---|---|
| AAPL | 1.00 | 0.85 | 0.78 | ... | |

**High correlation pairs (>0.80):** [list — these do NOT add diversification]
**Portfolio Diversification Score:** X (lower = more diversified)

---

## Concentration Risk
- Top holding: X% [LOW/MEDIUM/HIGH]
- Top 3 holdings: X% [LOW/MEDIUM/HIGH]
- HHI Score: X [LOW/MEDIUM/HIGH]
[⚠️ WARNING if any position >15%]

---

## Portfolio Beta & Sensitivity
- Portfolio Weighted Beta: X
- For every 1% move in SPY, your portfolio moves ~X%
- Beta Assessment: [Very Defensive / Defensive / Market-Neutral / Aggressive / Very Aggressive]

---

## Dividend & Income Analysis
| Ticker | Yield | Annual Income | Payout Ratio | Safety |
|--------|-------|---------------|-------------|--------|

- Total Annual Dividend Income: $X
- Portfolio Yield: X%
- Monthly Income Estimate: $X

---

## Benchmark Comparison (vs SPY)
| Metric | Portfolio | SPY | Delta |
|--------|-----------|-----|-------|
| Beta | X | 1.00 | |
| Dividend Yield | X% | X% | |
| P/E (weighted) | X | X | |
| # of Holdings | X | ~500 | |

---

## Rebalancing Recommendations

### Priority 1 — Risk Reduction
[specific actions if needed]

### Priority 2 — Sector Gaps
[specific fills and reductions with ETF/stock suggestions]

### Priority 3 — Income (if applicable)
[specific suggestions]

### Priority 4 — Tax Considerations
[flags and suggestions]

---

## Portfolio Health Score

| Dimension | Score | Assessment |
|-----------|-------|------------|
| Diversification | X/20 | |
| Risk Management | X/20 | |
| Income Quality | X/20 | |
| Growth Potential | X/20 | |
| Cost Efficiency | X/20 | |
| **Portfolio Health** | **X/100** | |

> **DISCLAIMER:** For educational/research purposes only. Not financial advice.

Rules

  1. ALWAYS use web_search for current prices — never fabricate.
  2. ALWAYS show current state AND what optimized portfolio would look like.
  3. If fewer than 5 holdings, strongly recommend diversification.
  4. For ETFs, look through to underlying sector exposure.
  5. Flag any duplicative positions (owning AAPL and a tech ETF heavy in AAPL).

DISCLAIMER: For educational and research purposes only. Not financial advice.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

trade

無料

AI Trading Analyst for Hermes — full stock analysis with 5 parallel subagents, investment thesis, technical/fundamental/sentiment/risk analysis, options strategies, portfolio review, stock screener, and PDF reports. Say "trade analyze AAPL", "trade quick NVDA", "trade screen growth", etc.

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

Full Stock Analysis Orchestrator — launches 5 parallel subagents via delegate_task for comprehensive multi-dimensional stock analysis with composite Trade Score (0-100). Triggered by "trade analyze <TICKER>" or "analyze <TICKER> stock".

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

Head-to-Head Stock Comparison — compares two stocks across valuation, growth, profitability, financial health, technical setup, sentiment, and risk with category winners and a weighted overall score. Triggered by "trade compare <TICKER1> <TICKER2>".

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

Pre-Earnings Analysis — earnings date, analyst consensus estimates, 8-quarter historical surprise pattern, post-earnings price move history, options-implied expected move vs historical, key metrics to watch, and trade setup recommendations. Triggered by "trade earnings <TICKER>".

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

Fundamental Analysis skill — valuation ratios, growth metrics, profitability, balance sheet health, competitive moat analysis, and management quality. Returns Fundamental Score (0-100). Triggered by "trade fundamental <TICKER>".

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

Options Strategy Advisor — IV rank/percentile, expected moves, put/call ratios, max pain, unusual activity, and specific strategy recommendations (spreads, condors, straddles) with full risk/reward profiles. Triggered by "trade options <TICKER> [bullish/bearish/neutral]".

日本語の概要は準備中です。原文の説明を表示しています。

zubair-trabzada/ai-trading-hermes322026年6月4日 更新

zubair-trabzada のスキルをすべて見る

このスキルの問題を報告する