Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Trust Asset Allocation

ASecurity

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

232 stars
0 votes
0 copies
2 views
Added 9/7/2026
datapythonrustbash

Security Analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned 9/7/2026

$npx -y skills add aifinlab/FinClaw --skill trust-asset-allocation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trust Asset Allocation?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Trust Asset Allocation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aifinlab-trust-asset-allocation/badge)](https://www.skillsdirectory.com/skills/aifinlab-trust-asset-allocation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
# 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

Attribution

aifinlabaifinlab
View sourceSee grades on GitHubMore from aifinlab →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the...

1798860 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

671710 votes

Weather

Get current weather and forecasts (no API key required).

486960 votes
View all in data →