← Back to Skills Marketplace
Zipline Daily Backtest
by
Tang Weigang
· GitHub ↗
· v0.3.3
· MIT-0
108
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install zipline-daily-backtest
Description
使用 Zipline 框架执行日频股票策略回测,支持多市场数据接入、因子研究、可视化绩效分析,默认本金千万级。。
Usage Guidance
Before installing or running this skill:
- Clarify scope: ask the publisher whether this is a Zipline-only skill or a Zipline+ZVT blueprint. The SKILL.md mixes Zipline and ZVT concepts — that matters for runtime behavior.
- Expect local side effects: the skill's runtime instructions will check for and may create ~/.zvt and run python import checks; run it in an isolated virtualenv or sandbox to avoid contaminating your global Python environment.
- Credentials: if you plan to use paid data providers (joinquant, broker APIs), confirm where/how you must supply API keys — the skill metadata does not declare required env vars but the workflow references providers that need credentials.
- Review seed.yaml and references: the package includes a large seed.yaml and many constraint/anti-pattern documents; read those to understand semantic locks (fatal constraints) that the skill enforces (e.g., no look-ahead, T+1 rules, MACD parameter lock).
- Evidence quality & safety: the skill notes Evidence verify ratio = 48.1% and audit failures; treat generated code/results as needing independent verification.
- If you need least privilege: run any backtests locally with your own controlled data and an explicit virtualenv; don't supply unrelated credentials or allow the agent to run system-wide installers.
If you want, I can: (1) extract the exact precondition commands and show the file paths/actions it will perform; (2) produce a safe minimal wrapper (virtualenv + pip requirements) to test the skill in isolation; or (3) draft questions to ask the skill author to resolve the Zipline/ZVT mixing and missing install/credential declarations.
Capability Analysis
Type: OpenClaw Skill
Name: zipline-daily-backtest
Version: 0.3.3
The skill bundle is a highly structured framework for performing financial backtesting using the Zipline and ZVT libraries. It employs a sophisticated 'Doramagic' instruction set (crystals, blueprints, and semantic locks) designed to ensure the AI agent generates technically accurate and logically sound trading strategies. The bundle includes extensive documentation on avoiding common quant pitfalls (anti-patterns) and enforces strict 'fatal' constraints to prevent errors like look-ahead bias and survivorship bias. No indicators of malicious intent, data exfiltration, or unauthorized execution were found; instead, the bundle includes security-positive features such as shell operator restrictions and explicit warnings against hardcoding credentials.
Capability Tags
Capability Assessment
Purpose & Capability
The skill advertises 'Zipline 日频回测' (Zipline daily backtest) and backtesting/factor-research capabilities, which aligns with the included content. However the instructions and many reference files are heavily ZVT-specific (zvt commands, ZVT_HOME, recorders, ZVT anti-patterns) and the seed.yaml mentions 'zipline-reloaded' and a Doramagic host ecosystem. This mixing of Zipline, ZVT, and host-specific orchestration is unexpected: a Zipline-only helper would not normally embed ZVT-specific preconditions and a host execution protocol. The requirement for Python 3.12+ with an 'uv' package manager is also declared but not reconciled with the more typical Zipline/ZVT runtime assumptions.
Instruction Scope
SKILL.md and seed.yaml include explicit runtime steps: agents are instructed to reload seed.yaml, run precondition python -c checks (import zvt, get_kdata etc.), check/create ZVT_HOME, and touch a file under that directory. These runtime actions access environment variables (ZVT_HOME), local filesystem (creating ~/.zvt/.write_test), and attempt to verify installed packages. The skill declares no required env vars/config paths yet its instructions read/write local config and run arbitrary python checks — a mismatch that expands the agent's scope beyond what the metadata declares. There are also execution_protocol directives (install_trigger, host_adapter.install_recipes[]) referenced despite there being no install spec included.
Install Mechanism
There is no install spec and no code files to execute, which lowers supply-chain risk. However seed.yaml and SKILL.md reference host-side install triggers and package verification steps (host_adapter.install_recipes[], 'python3 -m pip install zvt') that are not provided in the package; this is an inconsistency (documentation asks the host to install things but the skill doesn't declare or bundle an install recipe).
Credentials
The registry metadata lists no required environment variables or credentials, yet the instructions and preconditions implicitly rely on ZVT_HOME, on installed Python packages (zvt), and on external data providers (eastmoney, joinquant, akshare, qmt). Some data providers mentioned (joinquant, qmt/broker) require account credentials, but the skill does not declare or request them. The skill may therefore prompt the agent (or user) to supply sensitive API keys during use without that being evident from the metadata.
Persistence & Privilege
always:false (no forced global inclusion) and disable-model-invocation is not set, which is standard. The execution steps reference creating or writing to ~/.zvt (precondition PC-04) and initialize directories via zvt.init_dirs — actions that persist data/config under a user home directory. This is a modest privilege but is not declared in requires.config. There is no indication the skill will alter other skills or system-wide settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install zipline-daily-backtest - After installation, invoke the skill by name or use
/zipline-daily-backtest - 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 Zipline 日频回测; 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 Zipline Daily Backtest?
使用 Zipline 框架执行日频股票策略回测,支持多市场数据接入、因子研究、可视化绩效分析,默认本金千万级。。 It is an AI Agent Skill for Claude Code / OpenClaw, with 108 downloads so far.
How do I install Zipline Daily Backtest?
Run "/install zipline-daily-backtest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Zipline Daily Backtest free?
Yes, Zipline Daily Backtest is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Zipline Daily Backtest support?
Zipline Daily Backtest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Zipline Daily Backtest?
It is built and maintained by Tang Weigang (@tangweigang-jpg); the current version is v0.3.3.
More Skills