投资组合优化

投资组合优化:提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。 含 14 条反模式约束。

✓ 0 人报告成功·v0.1.0·

晶体简介

提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。 本 skill 基于开源项目构建并集成 14 条 anti-pattern 约束。访问 doramagic.ai/r/portfolio-optimization 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-093

tangweigang-jpg/doramagic-skills6360a632 source files

Constraints

57total
43fatal
43 must-not-violate

Evidence Quality

Confidence89%

Medium confidence — review before critical use

43 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen implementing mean-variance portfolio optimization

ACTIONVerify covariance matrix passes is_positive_semidefinite check before optimization

CONSEQUENCENon-positive semidefinite covariance matrix causes Cholesky decomposition to fail with LinAlgError, preventing optimizer from running

FATALdomain_rulefinance-C-002

WHENWhen computing covariance and expected returns

ACTIONVerify expected returns series has the same index as covariance matrix columns

CONSEQUENCEIndex mismatch between expected returns and covariance matrix causes portfolio optimization to fail with dimension error or produces incorrect weights

FATALdomain_rulefinance-C-003

WHENWhen processing raw price data

ACTIONVerify no NaN values exist in output covariance matrix

CONSEQUENCENaN values in covariance matrix cause portfolio optimization to produce NaN/inf weights or fail entirely

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-23·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。