/wealth-management:asset-allocationfrom wealth-management
Determines how to distribute capital across asset classes using strategic and tactical allocation frameworks. Covers mean-variance optimization, Black-Litterman, risk parity, and glide paths.
Ships in wealth-management. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The long-term policy portfolio based on an investor's risk tolerance, return objectives, time horizon, and constraints. SAA determines the baseline target weights (e.g., 60% equity / 30% bonds / 10% alternatives) and is the dominant driver of long-term portfolio returns. SAA should be revisited when investor circumstances change, not in response to market movements.
Short-to-medium-term deviations from the SAA based on market views, valuations, or momentum signals. TAA requires a disciplined process to avoid becoming ad hoc market timing. Key considerations:
Markowitz's framework for finding optimal portfolio weights that maximize risk-adjusted return:
max w'*mu - (lambda/2) * w'Sigmaw
subject to: sum(w_i) = 1, w_i >= 0 (if long-only), and any additional constraints.
Where:
MVO requires three inputs: expected returns, the covariance matrix, and risk aversion. The solution is highly sensitive to expected return inputs.
Combines market equilibrium returns with investor views to produce more stable, intuitive portfolio weights. Two-step process:
Step 1 — Implied Equilibrium Returns: Pi = lambda * Sigma * w_mkt
where w_mkt is the market-capitalization weight vector, lambda is the risk aversion parameter, and Sigma is the covariance matrix. These are the returns the market implicitly expects given current prices.
Step 2 — Blending with Views: E(R) = [(tau*Sigma)^(-1) + P'*Omega^(-1)P]^(-1) * [(tauSigma)^(-1)*Pi + P'*Omega^(-1)*Q]
where:
The result is a posterior expected return vector that tilts away from equilibrium toward the investor's views, proportional to confidence.
Equalizes the risk contribution from each asset (or factor) rather than equalizing capital allocation:
RC_i = w_i * (Sigma*w)_i / sigma_p
Set RC_i = RC_j for all i, j.
In a simple two-asset case with no correlation: w_i is proportional to 1/sigma_i
Risk parity portfolios allocate more capital to lower-volatility assets (typically bonds) and often require leverage to achieve competitive return targets.
An age-based or time-based allocation that systematically shifts from growth assets to defensive assets as the investor ages or the target date approaches:
Common rule of thumb: Equity % = 110 - Age
Target-date fund glide paths typically:
A hybrid approach combining:
This structure captures the market return efficiently (core) while allowing alpha generation or specific exposures (satellites).
For investors with defined liabilities (pensions, insurance, endowments with spending rules):
| Formula | Expression | Use Case |
|---|---|---|
| MVO Objective | max w'*mu - (lambda/2)*w'Sigmaw | Optimal portfolio weights |
| Equilibrium Returns | Pi = lambda * Sigma * w_mkt | Black-Litterman starting point |
| BL Posterior | E(R) = [(tau*Sigma)^(-1) + P'*Omega^(-1)P]^(-1) * [(tauSigma)^(-1)*Pi + P'*Omega^(-1)*Q] | Blended expected returns |
| Risk Contribution | RC_i = w_i * (Sigma*w)_i / sigma_p | Risk parity target |
| Risk Parity Condition | RC_i = RC_j for all i, j | Equal risk contribution |
| Glide Path Rule | Equity % = 110 - Age | Age-based allocation |
Given:
Calculate: Optimal weights
Solution:
Covariance matrix:
MVO with lambda=4 (solving numerically or via quadratic programming):
Optimal weights (long-only):
Portfolio: expected return = 5.60%, volatility = 8.71%
Note: International equity is driven to zero — it is highly correlated with US equity (0.75) but has a lower expected return, so the optimizer sees no reason to hold it. This is classic MVO behavior: small input differences produce corner solutions. Adding a maximum-weight or minimum-allocation constraint would force diversification. The high bond allocation reflects the heavy variance penalty (lambda=4); reducing lambda shifts toward equities.
Given: The same three assets and covariance matrix as Example 1.
Calculate: Equilibrium and posterior expected returns
Solution:
Step 1 — Equilibrium returns, Pi = lambda × Sigma × w_mkt:
Step 2 — View specification: P = [0, 1, -1], Q = [3%].
The equilibrium already implies Int'l beats Bonds by 5.23%, so a 3% view is bearish relative to equilibrium. Applying the Black-Litterman posterior formula:
The posterior tilts returns toward the view in proportion to confidence. Fed into MVO, these returns shift weights away from equities and toward bonds relative to market-cap weights — moderately, avoiding the extreme corner solutions that raw MVO produces (compare Example 1). Note that views are always evaluated relative to what equilibrium already implies, not in isolation.
uv run scripts/asset_allocation.py # run the demo (uses PEP 723 inline deps)
uv run scripts/asset_allocation.py --verify # check demo outputs against the worked examples (exit 1 on mismatch)
python3 scripts/asset_allocation.py # alternative (requires: pip install numpy scipy)
The demo prints the calculations covered above; its values match the worked examples in this skill. Run --help for a list of the classes and functions. For programmatic use, import the module rather than running it — the demo only executes under python asset_allocation.py.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub joellewis/finance_skills --plugin wealth-management38 skills in this plugin
/alternativesAnalyze alternative investments including hedge funds, private equity, and venture capital. Use when the user asks about hedge fund strategies (long/short, macro, event-driven), PE or VC performance metrics (IRR, TVPI, DPI), fee structures ('2-and-20', carry, hurdle rates), the J-curve effect, illiquidity premiums, lock-up periods, or hedge fund replication. Also trigger when users mention 'managed futures', 'CTA', 'fund of funds', 'vintage year', 'capital calls', 'distributions', 'carried interest', or ask how to evaluate an alternative investment manager./bet-sizingDetermine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional Kelly, risk budgeting, or conviction weighting. Also trigger when users mention 'how much to put in one stock', 'maximum position size', 'how concentrated should my portfolio be', 'number of holdings', 'VaR budget per position', 'how big a bet', or ask about scaling position sizes with volatility./commoditiesAnalyze commodity markets including futures curve dynamics, roll yield, and supply/demand fundamentals. Use when the user asks about commodity investing, commodity ETFs, contango, backwardation, roll yield, commodity indices (GSCI, BCOM), or commodities as an inflation hedge. Also trigger when users mention 'oil prices', 'gold as a safe haven', 'agricultural futures', 'convenience yield', 'storage costs', 'natural gas', 'copper demand', or ask why commodity ETF returns differ from spot price changes./currencies-and-fxAnalyze currency markets, exchange rate mechanics, and FX risk management for international portfolios. Use when the user asks about exchange rates, FX hedging, interest rate parity, carry trades, forward premiums, cross rates, or currency overlay programs. Also trigger when users mention 'strong dollar', 'weak euro', 'hedging foreign stocks', 'purchasing power parity', 'currency risk in my portfolio', 'EUR/USD', 'yen carry trade', or ask whether to hedge international investments./debt-managementProvide frameworks for managing and paying off personal debt effectively. Use when the user asks about debt payoff strategies (avalanche vs snowball), refinancing decisions, debt consolidation, debt-to-income ratios, or the opportunity cost of paying off debt vs investing. Also trigger when users mention 'which debt to pay first', 'should I refinance', 'credit card debt', 'student loan payoff', 'DTI for mortgage', 'balance transfer', 'good debt vs bad debt', or ask how to get out of debt faster./digital-assetsAnalyze digital assets including cryptocurrency fundamentals, blockchain mechanics, DeFi protocols, and on-chain metrics. Use when the user asks about crypto investing, Bitcoin, Ethereum, staking yields, DeFi lending, impermanent loss, or on-chain valuation metrics. Also trigger when users mention 'blockchain', 'proof of stake', 'proof of work', 'smart contracts', 'NFTs', 'stablecoins', 'NVT ratio', 'TVL', 'crypto portfolio allocation', 'halving', or ask about risks and returns of cryptocurrency.Other plugins' skills for the same job