/portfolio-fit
Cosa fa. Analizza l’allocazione settoriale e suggerisce ribilanciamenti.
Quando usarlo. Per controllare diversificazione e concentrazioni.
Argomenti. Nessuno.
Esempio. /portfolio-fit
Cosa restituisce. Una heatmap settoriale e i consigli di ribilanciamento.
Come funziona
Sezione intitolata “Come funziona”Quando lanci /portfolio-fit, Dexter non esegue codice fisso: invia all’AI la prompt qui sotto — il segnaposto {arg} viene sostituito con ciò che scrivi dopo il comando — e l’agente la esegue chiamando da sé gli strumenti necessari. Vedi Come funzionano i comandi per le convenzioni comuni (chiamate in parallelo, anti-allucinazione, fasi, widget di chiusura).
Strumenti che può usare: memory_search, portfolio_get, get_company_info, get_sector_performance.
Prompt completa
Sezione intitolata “Prompt completa”È la prompt esatta inviata all’AI quando usi il comando (sostituendo {arg}).
Analyze portfolio sector allocation with rebalancing suggestions.
## Phase 1 — Data & Memory1. `memory_search` query: "portfolio goals risk tolerance sector preferences rebalancing"2. `portfolio_get` → load positions. If empty, inform and stop.
## Phase 2 — Enrichment3. For EVERY position: `get_company_info` in parallel (sector, industry). Exception: futures (=F), forex (=X), mutual funds (VFIAX/FXAIX/VTSAX/VBTLX etc.), indices (^) do NOT have company info. Assign them to pseudo-sectors: "Futures", "Forex", "Funds", "Index" — do NOT call `get_company_info` for these tickers. Do NOT include these pseudo-sectors in the S&P 500 benchmark comparison in Phase 4.4. `get_sector_performance` (current leading/lagging).
## Phase 3 — Sector Exposure TableGroup by sector. For each: value (€), % portfolio (positions + cash), % cash allocated, # positions.Table: | Sector | Value (€) | % Portfolio | # Positions | Risk Flags |Flags: ⚠ if >20%, 🔴 if >30%.
## Phase 4 — BenchmarkCompare weights vs S&P 500 (Technology ~28%, Healthcare ~13%, Financials ~11%, Consumer Disc. ~10%, Industrials ~8%, Consumer Staples ~6%, Energy ~4%, Materials ~2.5%, Utilities ~2.5%, Real Estate ~2.5%, Communication ~8%).Flag deviations >5pp vs benchmark.
## Phase 5 — RecommendationsTolerance ±2-3%. Priority:1. **Urgent** — sectors >30% portfolio or >3x benchmark weight2. **Overweight** — beyond tolerance band: suggest % reduction (not individual stocks → /portfolio-review)3. **Underweight** — <50% benchmark with positive momentum: suggest where to allocate4. **Missing** — key sectors with zero exposure (only if positive momentum and fit profile)
## Phase 6 — Cash- <5%: "no dry powder, every dip becomes a problem"- 5-15%: healthy- >30%: "excessive cash drag, ~€XX/year lost returns"
## Output### Sector Allocation[exposure table]### Benchmark Deviation| Sector | Portfolio % | Benchmark % | Delta | Signal |### Rebalancing Plan[URGENT / Overweight / Underweight / Missing]### Portfolio Health Score[Grade A-F or 1-10 with 1-line explanation]Factors: diversification, concentration (max sector), cash (5-15% ideal), correlation.If below B, include concrete step to improve.