← Back to Skills Marketplace
Portfolio Optimization
by
Tang Weigang
· GitHub ↗
· v0.3.3
· MIT-0
118
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install portfolio-optimization
Description
提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。
Usage Guidance
This skill appears to be a legitimate portfolio-optimization blueprint, but its runtime instructions ask the agent to run environment checks and potentially install packages and write files on your host. Before installing or running it: 1) Inspect references/seed.yaml and SKILL.md yourself to confirm you accept the described execution protocol. 2) Run the skill in an isolated environment (dedicated VM or container) so its pip installs and data recorders cannot affect your main system. 3) Be prepared to supply any data-provider credentials manually; the skill does not declare them but will interact with providers like eastmoney/joinquant and may attempt network fetches. 4) If you don’t want the agent to auto-install packages, deny or review any pip install steps and perform installs manually after vetting package sources (verify zvt package origin and version). 5) Confirm you are comfortable with the semantic locks and fatal preconditions (e.g., next‑bar execution, T+1 rule) because they enforce strict behavior that can halt runs. If you want higher assurance, ask the author for an explicit install recipe, a minimal runtime manifest (declared env vars like ZVT_HOME), and signed package sources before use.
Capability Analysis
Type: OpenClaw Skill
Name: portfolio-optimization
Version: 0.3.3
The portfolio-optimization skill bundle is a highly structured framework for financial analytics using the zvt library. It contains extensive safety documentation, including 14 anti-patterns (references/ANTI_PATTERNS.md) and 43 fatal constraints (references/seed.yaml) designed to prevent common quantitative trading errors like look-ahead bias and numerical instability. The shell commands in the preconditions (PC-01 to PC-04) are limited to environment validation and directory permission checks, and the instructions for the AI agent are focused on enforcing code quality and regulatory compliance rather than unauthorized actions.
Capability Tags
Capability Assessment
Purpose & Capability
The name/description and the included reference files (components, anti-patterns, use cases) are coherent with a portfolio optimization framework (mean-variance, Black‑Litterman, HRP). References to ZVT, PyPortfolioOpt, covariance methods, and backtest flows fit the stated purpose. Minor mismatch: SKILL.md requires 'Python 3.12+ with uv package manager' and Doramagic-host compatibility but the registry lists no install or runtime constraints — acceptable but worth noting.
Instruction Scope
The SKILL.md / seed.yaml execution protocol instructs the agent to: re-read seed.yaml, run precondition checks that execute Python commands (import zvt, call zvt.recorders), run pip install if preconditions fail, initialize data directories, and run data recorders that fetch external market data. Those runtime actions involve filesystem writes, package installation, and network I/O beyond pure local computation. The instructions also reference host_workspace paths and state-machine steps that grant broad discretion to modify the agent host environment. The SKILL.md also references the ZVT_HOME env var (checked in preconditions) but this env var is not declared in the skill metadata.
Install Mechanism
There is no formal install spec (the skill is instruction-only), which reduces static install risk. However, the runtime instructions expect the agent to run pip installs (e.g., install zvt) if preconditions fail. That means installs will occur implicitly at runtime if the preconditions path is followed; relying on ad-hoc pip installs is higher-risk than an explicit vetted install recipe.
Credentials
The skill declares no required environment variables, but the runtime preconditions check and use ZVT_HOME and expect library/network access to data providers (eastmoney, joinquant, qmt) which may require credentials. Not declaring ZVT_HOME or any provider credentials is an inconsistency: the agent will read ZVT_HOME and may prompt or attempt to install/configure data access, but the skill metadata does not enumerate these needs.
Persistence & Privilege
always:false and normal autonomous invocation are set (no forced global presence). The skill's execution protocol asks to modify host_workspace paths and to run initialization commands (pip install, zvt.init_dirs), but it does not request explicit persistent privileges or to change other skills' configs. Still, runtime package installation and directory initialization mean it can change the environment if allowed.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install portfolio-optimization - After installation, invoke the skill by name or use
/portfolio-optimization - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.3.3
v0.3.3: bilingual metadata injected. H1 shows 投资组合优化; tagline replaced with skill-specific Chinese hook; tags upgraded to Level 1-4.
v0.3.1
Remove install.sh — knowledge-only bundle. Host AI consumes directly from URL; no user-side installation needed. Fixes ClawHub suspicious flag.
v0.3.0
Doramagic crystal portfolio v0.3.0. Full 5-layer bp-009 standard. github.com/tangweigang-jpg/doramagic-skills
Metadata
Frequently Asked Questions
What is Portfolio Optimization?
提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。 It is an AI Agent Skill for Claude Code / OpenClaw, with 118 downloads so far.
How do I install Portfolio Optimization?
Run "/install portfolio-optimization" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Portfolio Optimization free?
Yes, Portfolio Optimization is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Portfolio Optimization support?
Portfolio Optimization is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Portfolio Optimization?
It is built and maintained by Tang Weigang (@tangweigang-jpg); the current version is v0.3.3.
More Skills