Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

vnstock-env-setupvnstock 环境设置

Agent Skill

vnstock-env-setup 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,209

周安装

264

GitHub Stars

公开资料未说明

下载量

2,175
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vnstock-env-setup(vnstock 环境设置)
来源仓库:https://github.com/thinh-vu/vnstock-env-setup
安装命令:
openclaw skills install vnstock-env-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install vnstock-env-setup

简介

诊断 Vnstock 生态系统运行环境并完成代理配置。

  • 涵盖操作系统、Python 环境和网络代理等基础组件检测。
  • 提供完整的依赖包安装和性能调优指导方案。vnstock-env-setup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 部分功能可能需要付费 API 密钥才能正常使用。
  • 建议在隔离环境中测试配置避免污染主开发环境。

SKILL.md

name
vnstock-env-setup
description
Comprehensive environment diagnostic, setup, and agent guide installation for the Vnstock ecosystem (Free or Sponsored). Validates OS, Python, venv, and performs migrations. Fully English documented.

Vnstock Environment Setup & Diagnostics

PURPOSE: This skill transforms you into the Vnstock Environment Doctor & Setup Expert. You are responsible for ensuring users have the perfect local or cloud setup for vnstock (Free) or vnstock_data (Sponsor). You will run diagnostics, set up python/venv, migrate legacy code, and optionally install the latest Agent Guide. All actions must be CLI-driven; do not ask users to run UI installers unless explicitly requested.

⚡ TRIGGER DETECTION

✅ ACTIVATE WHEN:

  1. User reports an installation error ("error installing vnstock", "ModuleNotFoundError: vnstock_data", "pip error").
  2. User asks you to initialize or check their environment ("chuẩn bị môi trường", "cài đặt vnstock", "setup project").
  3. User asks you to install or update the Agent Guide ("cài đặt agent guide", "tải docs mới").

❌ DO NOT ACTIVATE WHEN:

  1. User is asking a pure finance or data visualization question (Use vnstock-solution-architect).
  2. User wants to write code logic right away (Unless they explicitly suffer from an import error).

📊 QUICK REFERENCE: COMMANDS

TaskCommand / Script to Execute
1. Diagnostics CheckMac/Linux: python3 .agents/skills/vnstock-env-setup/scripts/diagnostics.py<br>Win: py .agents/skills/vnstock-env-setup/scripts/diagnostics.py (if py fails, test python)
2. Create Venv (Mac/Linux)python3 -m venv ~/.venv && source ~/.venv/bin/activate
3. Create Venv (Win)py -m venv $env:USERPROFILE\.venv; & "$env:USERPROFILE\.venv\Scripts\Activate.ps1"
4. Install Dependenciespip install -r https://vnstocks.com/files/requirements.txt
5. Free Tier Setuppip install vnstock -U
6. Sponsor Tier SetupLinux: `wget -qO- https://vnstocks.com/files/vnstock-cli-installer.run \bash -s -- --non-interactive --api-key "API_KEY"<br>**Mac**: curl -fsSL https://vnstocks.com/files/vnstock-cli-installer.run \bash -s -- --non-interactive --api-key "API_KEY"<br>**Win (PowerShell)**: pip install -r https://vnstocks.com/files/requirements.txt; pip install --extra-index-url https://vnstocks.com/api/simple vnstock_installer; py -m vnstock_installer`
7. Agent Guide InstallMac/Linux: python3 .agents/skills/vnstock-env-setup/scripts/setup_agent_guide.py --confirm-docs-overwrite<br>Win: py .agents/skills/vnstock-env-setup/scripts/setup_agent_guide.py --confirm-docs-overwrite

⚠️ CRITICAL RULES

[!CRITICAL] 1. THE VENV MANDATE If the user is on a Local machine (macOS, Linux, Windows), they MUST use a virtual environment (~/.venv). NEVER use --break-system-packages globally.
[!CRITICAL] 2. THE MIGRATION CHECK MANDATE If you detect the user is on the Sponsor Tier (vnstock_data), you MUST search the workspace for legacy from vnstock import ... code. If found, you must immediately reference and invoke vnstock-migration-expert to migrate their script to vnstock_data and Unified UI.
[!IMPORTANT] 3. AGENT GUIDE SAFE OVERWRITE When asked to install the Agent Guide, if the docs/ directory already exists in their workspace, you MUST ask the user via notify_user for explicit permission to overwrite it.

⛔ ANTI-PATTERNS (COMMON TRAPS)

❌ AVOID✅ PREFER
Asking the user "Are you in a venv?"Running diagnostics.py to check for VIRTUAL_ENV automatically.
Overwriting docs/ blindly during guide setupAsking: *"Thư mục docs/ đã tồn tại, bạn có muốn ghi đè để cập nhật Agent Guide không?"*
Assuming pip installs successfully globallyAlways activate Venv explicitly before running pip.
Ignoring Windows aliases loopsTelling users to turn off "App Execution Aliases" for Python in Windows Settings, or using py command instead of python.
Assuming ~ maps to home dir on Windows nativelyUsing $env:USERPROFILE\.venv instead of ~/.venv when interacting via PowerShell on Windows.

⚙️ THE UNIFIED SETUP WORKFLOW

Follow this exact sequence to ensure a flawless setup for any user.

Step 1: Run Diagnostics

Run the provided python script to detect OS, Python version, Venv, and installed packages.

# Mac/Linux
python3 .agents/skills/vnstock-env-setup/scripts/diagnostics.py

# Windows
# Note: Try 'py' first to avoid Windows Store aliases. If it fails, fallback to 'python' or prompt user.
py .agents/skills/vnstock-env-setup/scripts/diagnostics.py

Step 2: Ensure Python & Git exist

*Evaluate output from Step 1:*

  • If Python < 3.10, suggest brew install python@3.12 (Mac) or winget install Python.Python.3.12 (Win).
  • Ensure git is installed (the Agent Guide script in Step 3 will also verify this).

Step 3: Install/Update Agent Guide

Before proceeding, install the latest Agent Guide to provide the AI with the deepest context ($docs/$ and skills).

  1. Check for existing docs: ls -d docs/ 2>/dev/null
  2. Request Permission: If docs/ exists, you MUST pause and ask the user (e.g. using notify_user): *"Thư mục docs/ đã tồn tại. Quá trình cài đặt Agent Guide sẽ ghi đè thư mục này (nhưng tự động sao lưu Git trước). Bạn có đồng ý không?"*
  3. Execute Setup:
# Mac/Linux (append --confirm-docs-overwrite if permission was granted)
python3 .agents/skills/vnstock-env-setup/scripts/setup_agent_guide.py

Windows (append --confirm-docs-overwrite if permission was granted)

py .agents/skills/vnstock-env-setup/scripts/setup_agent_guide.py

> **AI Instruction**: Once the guide is installed, actively reference the setup instructions in `docs/setup-and-debug` for the remainder of this setup process if needed.

### Step 4: Establish Virtual Environment & Requirements
Create a virtual environment (`~/.venv`) to isolate dependencies. Install the baseline requirements to ensure no package conflicts happen later.

Mac/Linux

python3 -m venv ~/.venv source ~/.venv/bin/activate pip install -r https://vnstocks.com/files/requirements.txt

Windows

py -m venv $env:USERPROFILE\.venv & "$env:USERPROFILE\.venv\Scripts\Activate.ps1" pip install -r https://vnstocks.com/files/requirements.txt


### Step 5: Install Vnstock Packages
Based on the user's tier discovered in Step 1 (or if they provided an API key):

**If they are a Free User:**

pip install vnstock -U


**If they are a Sponsor User (requires API key):**

Linux

wget -qO- https://vnstocks.com/files/vnstock-cli-installer.run | bash -s -- --non-interactive --api-key "USER_API_KEY" --accept

Mac

curl -fsSL https://vnstocks.com/files/vnstock-cli-installer.run | bash -s -- --non-interactive --api-key "USER_API_KEY" --accept

Windows (PowerShell)

pip install --extra-index-url https://vnstocks.com/api/simple vnstock_installer py -m vnstock_installer

⚠️ Note on Windows: If the installer runs successfully on the browser but the terminal shows "uv install failed... Access is denied", it is due to a Windows file lock issue. Inform the user that they can safely ignore it if the main packages (vnstock_data) were successfully installed, or suggest they close terminal/VSCode and retry.


### Step 6: Verification & Migration Check (⭐ CRITICAL)
Run `diagnostics.py` again. If `vnstock_data` is now installed, BẮT BUỘC search the workspace for legacy imports (`grep -r "from vnstock import" .`). If found, run `vnstock-migration-expert` to migrate the user's code.

---

## ✅ QUALITY CHECKLIST

Before concluding your interaction, verify:
- [ ] Did you properly diagnose using `diagnostics.py` instead of guessing?
- [ ] If setting up Python, did you ensure they are in a `.venv`?
- [ ] If Sponsor tier was detected, did you trigger the `vnstock-migration-expert`?
- [ ] During Agent Guide setup, did you warn the user before overwriting `docs/` and run the backup script?

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.69%
按下载量换算1,581

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills