obai-portfolio

Analyzes portfolio exposure, risk metrics, and allocation via the OBaI portfolio MCP server.

11|6|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/sixteen-dev/obai --skill obai-portfolio-sixteen-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: obai-portfolio
Source: https://github.com/sixteen-dev/obai/tree/main/skills/obai-portfolio
Command: npx skills add https://github.com/sixteen-dev/obai --skill obai-portfolio-sixteen-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Understanding a portfolio's true exposure is hard when holdings include ETFs that bundle hundreds of underlying stocks. This Skill parses free-form portfolio descriptions and computes effective exposure with ETF look-through, concentration risk, risk metrics, and allocation breakdowns through the OBaI portfolio MCP server. ## Core Features & Use Cases - Effective Exposure Analysis: Parses positions, expands ETFs into underlying holdings, and flags concentration risks such as a single stock above 25% or top three holdings above 60%. - Risk Metrics: Computes volatility, Sharpe ratio, Sortino ratio, beta, max drawdown, VaR (95%), and Calmar ratio against a configurable benchmark. - Allocation Breakdown: Shows sector exposure, asset class distribution, HHI concentration, and ETF attribution using look-through analysis. - Supporting Data: Retrieves single-ETF holdings with metadata and current US Treasury rates for risk-free rate inputs. - Use Case: A user states "AAPL 40%, QQQ 35%, BND 25%" and asks about diversification; the Skill expands QQQ into its constituents, reveals the true per-stock exposure, and reports sector concentration. ## Quick Start Ask the assistant to analyze the effective exposure and concentration risk of your portfolio, for example "Analyze my portfolio: AAPL 40%, QQQ 35%, BND 25%".

Frequently Asked Questions about obai-portfolio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze my portfolio's true exposure including ETFs?▼

Use the effective exposure tool, which parses your positions, expands each ETF into its underlying stocks, and sums direct plus via-ETF exposure per stock. It also flags concentration risks such as a single stock above 25% or the top three holdings above 60%.

What portfolio risk metrics can I calculate?▼

The risk analysis tool computes volatility, Sharpe ratio, Sortino ratio, beta, R-squared, max drawdown, VaR at 95%, Calmar ratio, and total or annualized return. It uses your held tickers against a configurable benchmark, defaulting to SPY over 252 trading days.

What portfolio input formats are supported?▼

Positions can be stated as percentages (AAPL 40%), decimals (0.40), dollar amounts ($50,000), or share counts (100 shares), separated by commas, semicolons, newlines, or colons. Risk and allocation analysis require one consistent format across all positions.

What is the difference between risk analysis and allocation breakdown?▼

Risk metrics use the held instruments you actually own, while allocation uses look-through exposure that expands ETFs into underlying stocks. They answer different questions: risk measures historical behavior of your tickers, allocation shows where your money is actually invested.

Why does portfolio analysis fail with mixed position formats?▼

Mixing formats like "40% AAPL, 100 shares MSFT" is ambiguous without a total portfolio value, so the tool returns an error. Restate all positions in one consistent format, such as all percentages or all dollar amounts.

Can I get current Treasury rates for risk-free rate calculations?▼

Yes, the Treasury rates tool returns current US Treasury yields across all maturities from 1-month to 30-year. The 3-month rate is commonly used as the risk-free rate in Sharpe ratio and other calculations.