Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

asset-allocation资产配置

Agent Skill

asset-allocation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,376

周安装

78

GitHub Stars

58

下载量

832
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:asset-allocation(资产配置)
来源仓库:https://github.com/joellewis/finance_skills
仓库路径:skills/asset-allocation
安装命令:
npx skills add https://github.com/joellewis/finance_skills --skill asset-allocation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/joellewis/finance_skills --skill asset-allocation

简介

asset-allocation 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件读写。
  • 可结合来源仓库和 README 进一步核验具体用法。

SKILL.md

Asset Allocation

Purpose

Provides frameworks for determining how to distribute capital across asset classes and strategies. Covers strategic and tactical allocation, mean-variance optimization, Black-Litterman, risk parity, glide paths, and practical implementation approaches. Asset allocation is the primary driver of long-term portfolio performance and risk.

Layer

4 — Portfolio Construction

Direction

both

When to Use

  • Setting long-term strategic asset allocation targets
  • Making tactical allocation decisions based on market views
  • Running mean-variance optimization with constraints
  • Implementing Black-Litterman to blend market equilibrium with investor views
  • Building risk parity or equal risk contribution portfolios
  • Designing glide paths for target-date or lifecycle strategies
  • Evaluating core-satellite portfolio structures
  • Matching assets to liabilities for pensions or insurance portfolios

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'*Sigma*w

subject to: sum(w_i) = 1, w_i >= 0 (if long-only), and any additional constraints.

Where:

  • w = weight vector
  • mu = expected return vector
  • Sigma = covariance matrix
  • lambda = risk aversion parameter

MVO requires three inputs: expected returns, the covariance matrix, and risk aversion. The solution is highly sensitive to expected return inputs.

Black-Litterman Model

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) * [(tau*Sigma)^(-1)*Pi + P'*Omega^(-1)*Q]

where:

  • tau = scalar (uncertainty of equilibrium, typically 0.025-0.05)
  • P = pick matrix (identifies assets in each view)
  • Q = view vector (expected returns from views)
  • Omega = diagonal matrix of view uncertainties

The result is a posterior expected return vector that tilts away from equilibrium toward the investor's views, proportional to confidence.

Risk Parity

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.

Glide Path

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:

  • Start at 90% equity for young investors
  • Decrease by ~1-2% per year
  • Reach 30-40% equity at retirement
  • Continue to "through" allocation post-retirement

Core-Satellite

A hybrid approach combining:

  • Core (60-80%): Low-cost, broadly diversified index funds or ETFs
  • Satellites (20-40%): Active strategies, factor tilts, alternatives, or concentrated positions

This structure captures the market return efficiently (core) while allowing alpha generation or specific exposures (satellites).

Asset-Liability Matching

For investors with defined liabilities (pensions, insurance, endowments with spending rules):

  • Match asset duration and cash flows to liability duration and timing
  • Surplus optimization: optimize the portfolio relative to liabilities, not absolute return
  • Liability-driven investing (LDI): hedge liability risk with duration-matched bonds, invest surplus in return-seeking assets

Key Formulas

FormulaExpressionUse Case
MVO Objectivemax w'*mu - (lambda/2)*w'*Sigma*wOptimal portfolio weights
Equilibrium ReturnsPi = lambda * Sigma * w_mktBlack-Litterman starting point
BL PosteriorE(R) = [(tau*Sigma)^(-1) + P'*Omega^(-1)*P]^(-1) * [(tau*Sigma)^(-1)*Pi + P'*Omega^(-1)*Q]Blended expected returns
Risk ContributionRC_i = w_i * (Sigma*w)_i / sigma_pRisk parity target
Risk Parity ConditionRC_i = RC_j for all i, jEqual risk contribution
Glide Path RuleEquity % = 110 - AgeAge-based allocation

Worked Examples

Example 1: Three-Asset Mean-Variance Optimization

Given:

  • Assets: US Equity (mu=8%, sigma=16%), Int'l Equity (mu=7%, sigma=18%), US Bonds (mu=3%, sigma=4%)
  • Correlations: US/Intl Equity = 0.75, US Equity/Bonds = 0.10, Intl Equity/Bonds = 0.05
  • Risk aversion: lambda = 4
  • Constraints: long-only, fully invested

Calculate: Optimal weights

Solution:

Covariance matrix:

  • Cov(US,US) = 0.16^2 = 0.0256
  • Cov(Intl,Intl) = 0.18^2 = 0.0324
  • Cov(Bond,Bond) = 0.04^2 = 0.0016
  • Cov(US,Intl) = 0.75 * 0.16 * 0.18 = 0.0216
  • Cov(US,Bond) = 0.10 * 0.16 * 0.04 = 0.00064
  • Cov(Intl,Bond) = 0.05 * 0.18 * 0.04 = 0.00036

MVO with lambda=4 (solving numerically or via quadratic programming):

Optimal weights (approximate):

  • US Equity: 35%
  • Int'l Equity: 15%
  • US Bonds: 50%

Portfolio: expected return = 5.25%, volatility = 7.8%

Note: The high bond allocation results from the optimization penalizing variance heavily (lambda=4). Reducing lambda or adding a minimum equity constraint would shift toward equities.

Example 2: Black-Litterman with a View on Emerging Markets

Given:

  • Market-cap weights: US 55%, Developed Ex-US 30%, EM 15%
  • Equilibrium returns (from Pi = lambda*Sigma*w_mkt): US 6.5%, Dev Ex-US 5.8%, EM 7.2%
  • Investor view: EM will outperform US by 2% (medium confidence)
  • tau = 0.05

Calculate: Posterior expected returns and implied weight shift

Solution:

View specification:

  • P = [-1, 0, 1] (EM minus US)
  • Q = [2%] (EM outperforms US by 2%)
  • Omega = [0.001] (medium confidence; lower = higher confidence)

After applying the Black-Litterman formula:

Posterior expected returns (approximate):

  • US: 6.2% (decreased from 6.5%)
  • Dev Ex-US: 5.9% (slight increase due to correlation effects)
  • EM: 7.8% (increased from 7.2%)

The posterior tilts returns toward the view. When these posterior returns are fed into MVO, the resulting weights shift from market-cap weights toward EM and away from US, but the shift is moderate and proportional to confidence, avoiding the extreme concentrations that raw MVO can produce.

Common Pitfalls

  • MVO is highly sensitive to expected return inputs and has been called an "error maximizer" — small changes in returns produce large changes in weights
  • Unconstrained MVO often produces extreme, concentrated positions — always add constraints (long-only, max weight, turnover limits)
  • Black-Litterman requires the analyst to specify confidence in views (Omega), which is itself uncertain
  • Risk parity portfolios require leverage to achieve equity-like returns, introducing borrowing costs and leverage risk
  • Ignoring implementation costs: transaction costs, bid-ask spreads, and taxes can significantly erode theoretical optimal returns
  • Ignoring liquidity constraints: some asset classes (private equity, real estate) cannot be rebalanced quickly
  • Glide paths assume a generic investor — individual circumstances may require customization
  • Over-reliance on historical covariance matrices that may not reflect future relationships

Cross-References

  • historical-risk (wealth-management plugin, Layer 1a): volatility and correlation inputs for mean-variance optimization
  • forward-risk (wealth-management plugin, Layer 1b): expected return forecasts and scenario analysis for portfolio optimization
  • diversification (wealth-management plugin, Layer 4): diversification principles underpin all allocation frameworks
  • bet-sizing (wealth-management plugin, Layer 4): position sizing within the allocated asset classes
  • rebalancing (wealth-management plugin, Layer 4): maintaining allocation targets over time
  • quantitative-valuation (wealth-management plugin, Layer 3): valuation signals can inform TAA decisions

Reference Implementation

See scripts/asset_allocation.py for computational helpers.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.7%
按下载量换算272

Claude

28.89%
按下载量换算240

Cursor

18.89%
按下载量换算157

Gemini CLI

9.7%
按下载量换算81

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills