← Back to Skills Marketplace
liuhaonan00

vibetrading-ai-trading-code-generator

by Haonan Liu · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
789
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install vibetrading-code-gen
Description
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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install vibetrading-code-gen
  3. After installation, invoke the skill by name or use /vibetrading-code-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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).
Metadata
Slug vibetrading-code-gen
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 789 downloads so far.

How do I install vibetrading-ai-trading-code-generator?

Run "/install vibetrading-code-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is vibetrading-ai-trading-code-generator free?

Yes, vibetrading-ai-trading-code-generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does vibetrading-ai-trading-code-generator support?

vibetrading-ai-trading-code-generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created vibetrading-ai-trading-code-generator?

It is built and maintained by Haonan Liu (@liuhaonan00); the current version is v1.0.0.

💬 Comments