trust-asset-allocation

## 描述

105 stars

Best use case

trust-asset-allocation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

## 描述

Teams using trust-asset-allocation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/trust-asset-allocation/SKILL.md --create-dirs "https://raw.githubusercontent.com/aifinlab/FinClaw/main/skillsChoice/trust-suite/trust-asset-allocation/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/trust-asset-allocation/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How trust-asset-allocation Compares

Feature / Agenttrust-asset-allocationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

## 描述

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# trust-asset-allocation

## 描述
信托资产配置优化工具,基于现代投资组合理论(MPT)、风险平价模型和Black-Litterman框架,为信托产品提供战略/战术资产配置方案。

## 功能
- 均值-方差优化(Markowitz模型)
- 风险平价配置(Risk Parity)
- Black-Litterman贝叶斯资产配置
- 目标日期/生命周期策略
- 再平衡策略与触发条件
- 约束条件管理(投资比例、久期匹配、监管限制)
- 蒙特卡洛模拟与情景分析

## 使用场景
- 信托经理设计新产品资产配置方案
- 家族信托长期资产配置规划
- 养老信托目标日期策略
- 慈善信托保值增值配置
- FOF/MOM组合构建

## 输入输出

### 输入
```json
{
  "strategy": "mean_variance|risk_parity|black_litterman|target_date",
  "target_return": 7.5,
  "risk_tolerance": 15.0,
  "investment_horizon": 36,
  "asset_classes": [
    {"name": "现金管理类", "expected_return": 3.0, "volatility": 1.0},
    {"name": "固收类", "expected_return": 5.5, "volatility": 4.0},
    {"name": "权益类", "expected_return": 10.0, "volatility": 18.0},
    {"name": "另类投资", "expected_return": 8.0, "volatility": 12.0}
  ],
  "constraints": {
    "min_weights": {"现金管理类": 0.05, "固收类": 0.3},
    "max_weights": {"权益类": 0.4, "另类投资": 0.2},
    "max_volatility": 12.0,
    "max_drawdown": 15.0
  },
  "correlation_matrix": [...],
  "views": []  // Black-Litterman观点
}
```

### 输出
```json
{
  "status": "success",
  "data": {
    "optimal_weights": {
      "现金管理类": 0.08,
      "固收类": 0.42,
      "权益类": 0.35,
      "另类投资": 0.15
    },
    "portfolio_metrics": {
      "expected_return": 7.52,
      "volatility": 8.35,
      "sharpe_ratio": 0.72,
      "max_drawdown": 12.8,
      "calmar_ratio": 0.59
    },
    "risk_contribution": {
      "现金管理类": 0.02,
      "固收类": 0.28,
      "权益类": 0.52,
      "另类投资": 0.18
    },
    "rebalancing": {
      "frequency": "季度",
      "threshold": 0.05,
      "next_review": "2026-06-20"
    },
    "efficient_frontier": [...],
    "scenario_analysis": {...}
  }
}
```

## 运行方式

```bash
# 均值方差优化
python scripts/main.py --strategy mean_variance --target-return 7.5 --risk-tolerance 10

# 风险平价配置
python scripts/main.py --strategy risk_parity --asset-classes data/assets.json

# Black-Litterman配置
python scripts/main.py --strategy black_litterman --views data/views.json

# 目标日期策略
python scripts/main.py --strategy target_date --target-year 2045 --current-age 35
```

## 依赖
- numpy>=1.23.0
- pandas>=1.5.0
- scipy>=1.9.0
- cvxpy>=1.2.0
- matplotlib>=3.5.0
- plotly>=5.10.0
- pyportfolioopt>=1.5.0

## 算法说明

### 1. 均值-方差优化 (Markowitz)
```
minimize:  w^T * Σ * w
subject to:
  w^T * μ = target_return
  sum(w) = 1
  w >= 0 (可选)
```

### 2. 风险平价 (Risk Parity)
```
minimize:  sum((RC_i - target_RC)^2)
where RC_i = w_i * (Σ * w)_i / portfolio_volatility
```

### 3. Black-Litterman
```
E(R) = [(τΣ)^-1 + P^T * Ω^-1 * P]^-1 * [(τΣ)^-1 * Π + P^T * Ω^-1 * Q]
```

## 免责声明
本工具提供的资产配置方案仅供参考,不构成投资建议。实际投资需考虑流动性、税收、交易成本等因素。

## 许可证
MIT License

Related Skills

trust-valuation-engine

105
from aifinlab/FinClaw

## 描述

trust-risk-manager

105
from aifinlab/FinClaw

## 描述

trust-product-analyzer

105
from aifinlab/FinClaw

## 描述

trust-income-calculator

105
from aifinlab/FinClaw

## 描述

trust-compliance-checker

105
from aifinlab/FinClaw

## 描述

family-trust-designer

105
from aifinlab/FinClaw

## 描述

charity-trust-manager

105
from aifinlab/FinClaw

## 描述

fund-portfolio-allocation

105
from aifinlab/FinClaw

基金组合配置 - 智能基金组合构建与优化工具。 当用户需要构建基金组合、资产配置、投资组合优化、战略/战术资产配置、风险平价配置时使用此技能。 支持Markowitz均值方差优化、Black-Litterman模型、风险平价、目标日期/目标风险策略。 触发关键词:基金组合、资产配置、组合优化、Markowitz、风险平价、Black-Litterman、战略配置、战术配置。

underlying-asset-lookthrough-real-asset

105
from aifinlab/FinClaw

用于信托领域项目尽调中的底层资产穿透助手-不动产版场景。支持结构化输入处理、规则分析与Markdown结果输出。

underlying-asset-lookthrough-equity

105
from aifinlab/FinClaw

用于信托领域项目尽调中的底层资产穿透助手-股权版场景。支持结构化输入处理、规则分析与Markdown结果输出。

underlying-asset-lookthrough-debt

105
from aifinlab/FinClaw

用于信托领域项目尽调中的底层资产穿透助手-债权版场景。支持结构化输入处理、规则分析与Markdown结果输出。

underlying-asset-lookthrough-beneficial-right

105
from aifinlab/FinClaw

用于信托领域项目尽调中的底层资产穿透助手-收益权版场景。支持结构化输入处理、规则分析与Markdown结果输出。