Portfolio Optimization

Portfolio Optimization: Portfolio Optimization: specialized toolkit for 1+ finance workflows covered in the triggers section.

✓ 0 reported success·v0.1.0·

Overview

Portfolio Optimization skill for finance analytics. Covers 1+ use cases. (batch-v1 draft, needs English review) This skill is built on open-source project tangweigang-jpg/doramagic-skills and embeds 14 anti-pattern constraints. Visit doramagic.ai/r/portfolio-optimization for bilingual documentation and use cases. Compatible with the Doramagic ecosystem (Claude Code, Cursor, openclaw, ChatGPT, Gemini, etc.).

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 non-negotiable constraints

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

FAQ

Discussion (0)

No comments yet. Be the first to share!

Changelog

v0.1.02026-04-23·Contributors: tangweigang-jpg

v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on tangweigang-jpg/doramagic-skills.