← 返回 Skills 市场
tangweigang-jpg

Portfolio Optimization

作者 Tang Weigang · GitHub ↗ · v0.3.3 · MIT-0
cross-platform ⚠ suspicious
118
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install portfolio-optimization
功能描述
提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。
安全使用建议
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.
功能分析
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.
能力标签
crypto
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install portfolio-optimization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /portfolio-optimization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug portfolio-optimization
版本 0.3.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Portfolio Optimization 是什么?

提供多策略投资组合优化框架,支持均值-方差、Black-Litterman 和分层风险平价(HRP)算法,内置多种协方差估计方法对比分析。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 118 次。

如何安装 Portfolio Optimization?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install portfolio-optimization」即可一键安装,无需额外配置。

Portfolio Optimization 是免费的吗?

是的,Portfolio Optimization 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Portfolio Optimization 支持哪些平台?

Portfolio Optimization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Portfolio Optimization?

由 Tang Weigang(@tangweigang-jpg)开发并维护,当前版本 v0.3.3。

💬 留言讨论