← 返回 Skills 市场
vibetrading-ai-trading-code-generator
作者
Haonan Liu
· GitHub ↗
· v1.0.0
789
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install vibetrading-code-gen
功能描述
Generate executable Hyperliquid trading strategy code from natural language prompts. Use when a user wants to create automated trading strategies for Hyperliquid exchange based on their trading ideas, technical indicators, or VibeTrading signals. The skill generates complete Python code with proper error handling, logging, and configuration using actual Hyperliquid API wrappers.
安全使用建议
This skill is functionally aligned with its purpose but has several red flags and outright coding issues — do not run it with live exchange credentials or on an unrestricted machine yet. Specifically:
- Inspect api_wrappers/hyperliquid_api.py carefully to verify where network requests go and whether secrets are used or exfiltrated. Ensure endpoints are legitimate.
- Review code_validator.py: it creates and runs a temporary script that imports target modules. That import may execute arbitrary code with side effects (network calls, filesystem, order placement). Avoid running the validator on untrusted/generated modules until audited, or run it inside an isolated sandbox/container without network access.
- Fix the obvious mismatches and syntax issues (examples: malformed return values like {"filepath"(filepath)}, missing imports of Path in validator, and truncated/ malformed blocks). Several files contain syntax/logic errors and will likely crash or behave unpredictably.
- Do not provide production Hyperliquid API keys or account addresses to this code until you (or a trusted developer) have audited and corrected the code and run it in a testnet/sandbox environment. Prefer testnet API keys, or mock the API layer when validating/generating code.
- Ask the publisher (or request an updated package) to: (1) declare required env vars in the registry metadata, (2) fix SKILL.md to reference the actual script names, (3) remove or clearly document any validation steps that import/execute user code, and (4) fix the syntax/logic errors before using in production.
If you want, I can: point out specific lines with likely bugs, list the exact files that appear to execute imports/subprocesses, or draft an isolated test plan (container + dummy keys) you can use to safely evaluate the skill.
功能分析
Type: OpenClaw Skill
Name: vibetrading-code-gen
Version: 1.0.0
The skill is classified as suspicious due to its core functionality involving dynamic code generation and execution, which inherently carries high risks. Specifically, `backtest_engine/historical_backtest.py` and `scripts/backtest_runner.py` use `importlib.util.spec_from_file_location` and `spec.loader.exec_module` to load and run generated strategies, while `scripts/code_validator.py` uses `subprocess.run` to execute Python commands for validation. These capabilities, though necessary for a code generator and backtester, represent significant Remote Code Execution (RCE) vulnerabilities if input (e.g., user prompts, generated code content) is not perfectly sanitized. While there is no clear evidence of intentional malicious behavior like data exfiltration to unauthorized endpoints or backdoor installation, the presence of these high-risk, exploitable capabilities warrants a 'suspicious' classification.
能力评估
Purpose & Capability
The skill claims to generate executable Hyperliquid strategies and includes templates, a Hyperliquid API wrapper, price fetcher, and generator/formatter/validator scripts — which is coherent with the description. However the SKILL.md and README reference scripts (e.g., scripts/strategy_generator.py) that are not present in the file manifest (the repo contains strategy_generator_with_prices.py and other similarly named files). Also templates and examples expect environment variables (HYPERLIQUID_API_KEY, HYPERLIQUID_ACCOUNT_ADDRESS) and API access even though the registry declares no required env vars; that mismatch should be resolved.
Instruction Scope
Runtime instructions tell the agent to run generator, validator, price fetcher, and other scripts. The code_validator creates and executes a temporary Python script which imports the target module (import {module_name}) to detect import/runtime errors — this will execute arbitrary module code during validation (side effects, network calls, order placement, etc.). That's expected for an aggressive import-based import-checker but is dangerous if untrusted code (templates or generated strategies) is present. Additionally, SKILL.md commands reference a missing script name (strategy_generator.py), giving the agent ambiguous instructions. Several files and validator behavior refer to writing and executing generated code in generated_strategies/ and running backtests — all of which can cause network connections, filesystem changes, or order placements if run with live credentials.
Install Mechanism
No install spec is provided (instruction-only), so the skill does not download or install external binaries automatically. That lowers installation risk. It does require python3 to be present as declared.
Credentials
The code and templates expect Hyperliquid API credentials to be provided via environment variables (HYPERLIQUID_API_KEY, HYPERLIQUID_ACCOUNT_ADDRESS) and the SKILL.md's validation rules explicitly check for API keys loaded from env. Yet the registry lists no required env vars or primary credential. This omission is a coherence issue: the skill will prompt for/expect sensitive credentials at runtime but does not declare them. You should expect to supply API keys to actually run strategies; do not provide live keys until code is audited and executed in a safe environment.
Persistence & Privilege
The skill is not marked always:true and does not request unusual system privileges in the manifest. It will create directories (generated_strategies, logs, sessions, simulation_results) and write files; that file-write behavior is consistent with a code generator. Nothing in the manifest indicates modification of other skills or system-wide configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install vibetrading-code-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/vibetrading-code-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of vibetrading-code-gen: Generate executable Hyperliquid trading strategy code from natural language prompts.
- Produces complete Python trading strategy files, configs, usage docs, and requirements.
- Includes an automatic code validation and auto-fix system for syntax, imports, and Python 3.5+ compatibility.
- Supports technical indicator, grid, mean reversion, arbitrage, and signal-driven strategies.
- Enforces best practices: API keys via environment, error handling, logging, configuration, and no hardcoded credentials.
- Automatic validator fixes common code issues (imports, f-strings, encoding, pathlib, logger init order).
元数据
常见问题
vibetrading-ai-trading-code-generator 是什么?
Generate executable Hyperliquid trading strategy code from natural language prompts. Use when a user wants to create automated trading strategies for Hyperliquid exchange based on their trading ideas, technical indicators, or VibeTrading signals. The skill generates complete Python code with proper error handling, logging, and configuration using actual Hyperliquid API wrappers. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 789 次。
如何安装 vibetrading-ai-trading-code-generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install vibetrading-code-gen」即可一键安装,无需额外配置。
vibetrading-ai-trading-code-generator 是免费的吗?
是的,vibetrading-ai-trading-code-generator 完全免费(开源免费),可自由下载、安装和使用。
vibetrading-ai-trading-code-generator 支持哪些平台?
vibetrading-ai-trading-code-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 vibetrading-ai-trading-code-generator?
由 Haonan Liu(@liuhaonan00)开发并维护,当前版本 v1.0.0。
推荐 Skills