joellewis avatar

Asset Allocation

This handles portfolio allocation decisions across asset classes using frameworks like mean-variance optimization, Black-Litterman, and risk parity. You'd reach for it when building strategic allocation targets, running constrained optimizations, or implementing tactical tilts based on market views. It covers the practical stuff like glide path design for target-date funds, core-satellite structures, and asset-liability matching for pension portfolios. The worked examples show actual calculations for three-asset MVO and blending investor views with equilibrium returns. Heavy on the math (covariance matrices, risk contribution formulas) but that's the nature of allocation work. It's a Layer 4 portfolio construction tool, so it assumes you've already handled the security-level analysis elsewhere.

skills.sh installs
911
GitHub stars
224
last updated
Aug 21, 2026

Install

$ npx -y skills add joellewis/finance_skills --skill asset-allocation --agent claude-code

Installs into .claude/skills of the current project.

Files

Asset Allocation

Core Concepts

Strategic Asset Allocation (SAA)

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.

Tactical Asset Allocation (TAA)

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:

  • Define allowable deviation bands (e.g., +/- 10% from SAA)
  • Have a clear signal framework (valuation, momentum, macro)
  • Set reversion rules: when to return to SAA weights

Mean-Variance Optimization (MVO)

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.

Sponsors

Details

Repository
github.com/joellewis/finance_skills
Categories
Python, Finance & Trading
First seen
Jun 3, 2026

More from joellewis/finance_skills

All 84

Recommended

More Python
1davila7 avatarmodaldavila7/claude-code-templatesRun Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-905skills.sh installs
2mindrally avatarbeautifulsoup-parsingmindrally/skillsExpert guidance for HTML/XML parsing using BeautifulSoup in Python with best practices for DOM navigation, data extraction, and efficient scraping workflows.905skills.sh installs
3plastic-labs avatarhoncho-integrationplastic-labs/honchoIntegrate Honcho memory and social cognition into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, i903skills.sh installs
4pulumi avatarprovider-upgradepulumi/agent-skillsUpgrade any Pulumi provider to a newer version and reconcile the resulting diff. Use when users want to upgrade or update a provider (including editing package.885skills.sh installs
5workos avatarworkos-widgetsworkos/skillsUse when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or Adm885skills.sh installs
6mindrally avatarweb-developmentmindrally/skillsWeb development guidelines covering Bootstrap, Django, HTMX, and general web best practices842skills.sh installs