ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 2/5

my_stock_tradeagents_rebuild_skill

当且仅当用户明确提出“重新构建tradeagents”或类似高度相关指令时触发。主要功能为在 ~/TradingAgents 目录下重新创建并激活 Python 虚拟环境,安装包及依赖,最后总结修改并推送到远程仓库。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/canonxu/my-stock-tradeagents-rebuild-skill
Or

What This Skill Does

The my_stock_tradeagents_rebuild_skill is a specialized automation utility designed for developers and quantitative traders managing the TradingAgents codebase. Its primary function is to handle the full lifecycle of a clean environment re-initialization. When invoked, the skill navigates to the ~/TradingAgents directory, purges any existing virtual environment to ensure no stale artifacts remain, and creates a fresh Python 3.13 virtual environment. It then proceeds to install the project dependencies via pip and automatically commits the environment changes to a version-controlled Git branch, streamlining the setup process for consistent development builds.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/canonxu/my-stock-tradeagents-rebuild-skill Ensure you have the necessary write permissions in your home directory and existing Git authentication configured, as the skill performs automated commits and pushes to your remote repository.

Use Cases

This skill is ideal for scenarios where the Python dependencies have drifted, the virtual environment has become corrupted, or you need to ensure that the production-equivalent environment is perfectly synchronized with your latest code updates. It is particularly useful when onboarding new changes to trading algorithms that require fresh library versions or specific build flags available in Python 3.13.

Example Prompts

  1. "OpenClaw, please run the rebuild for the tradeagents environment to fix the missing dependencies."
  2. "I've updated the requirements; please trigger the rebuild process for my TradingAgents workspace."
  3. "重新构建tradeagents,并把更新后的环境推送到远程仓库。"

Tips & Limitations

  • Safety First: Because this skill performs destructive actions like rm -rf venv and automated git push commands, ensure you are in the correct branch or working state before triggering it.
  • Directory Dependency: The skill is hardcoded to work specifically within the ~/TradingAgents directory. If your repository resides elsewhere, you will need to relocate it before usage.
  • Version Requirements: It explicitly utilizes python3.13. Please ensure this version is installed on your host system before deployment.
  • Git Auth: Since the skill pushes to a remote repository, ensure your SSH keys are correctly configured in the ~/TradingAgents environment to avoid interaction prompts that could hang the agent.

Metadata

Author@canonxu
Stars4072
Views1
Updated2026-04-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-canonxu-my-stock-tradeagents-rebuild-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#python#automation#git#trading#deployment
Safety Score: 2/5

Flags: file-write, file-read, code-execution