tuya/tuyaopen-dev-skills/env-setup

Claude Code and agent skill by tuya/tuyaopen-dev-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Set up and activate the TuyaOpen development environment, install system dependencies, and initialize tos.py. Use when the user mentions environment setup, activating the SDK, installing dependencies, export.sh, or when tos.py is not found. 环境搭建、环境初始化、激活开发环境、安装依赖。

Install

npx vskill@latest install tuya/tuyaopen-dev-skills/env-setup

SKILL.md

TuyaOpen Environment Setup

Docs: <https://tuyaopen.ai/docs/quick-start/enviroment-setup>

Step 0: Check if already activated (do this first)

VariableSet by activationMeaning
$OPEN_SDK_ROOTyesSDK root path
$OPEN_SDK_PYTHONyesvenv Python executable
$VIRTUAL_ENVyesactive venv path

Linux / macOS:

bash
if [ -n "$OPEN_SDK_ROOT" ] && [ -n "$VIRTUAL_ENV" ]; then
echo "Already activated"
else
cd "$(git rev-parse --show-toplevel)" && . ./export.sh
fi

Windows PowerShell:

powershell
if ($env:OPEN_SDK_ROOT -and $env:VIRTUAL_ENV) {
Write-Host "Already activated"
} else {
Set-Location (git rev-parse --show-toplevel); . .\export.ps1
}

Windows CMD:

batch
if defined OPEN_SDK_ROOT if defined VIRTUAL_ENV (echo Already activated) else (
for /f "delims=" %%i in ('git rev-parse --show-toplevel') do cd /d "%%i"
call export.bat
)

Step 1: Install system dependencies

Ubuntu / Debian:

bash
sudo apt-get install lcov cmake-curses-gui build-essential ninja-build \
wget git python3 python3-pip python3-venv libc6-i386 libsystemd-dev

macOS / Windows: see official docs linked above.

Step 2: Activate

Run once per terminal session from the SDK root:

bash
. ./export.sh # Linux / macOS
.\export.ps1 # Windows PowerShell
export.bat # Windows CMD

After activation: $OPEN_SDK_ROOT, $OPEN_SDK_PYTHON, $OPEN_SDK_PIP are set; SDK root is in PATH.

Step 3: Verify

bash
tos.py version # e.g. v1.3.0-23-g6bcb5aa
tos.py check # validates tool versions + runs git submodule update --init

Or run the bundled check script:

PlatformCommand
Linux / macOS.agents/skills/tuyaopen/env-setup/scripts/check_env.sh
Windows CMD.agents\skills\tuyaopen\env-setup\scripts\check_env.bat
Windows PowerShell.agents/skills/tuyaopen/env-setup/scripts/check_env.ps1

Troubleshooting

SymptomFix
python3-venv missingsudo apt-get install python3-venv
Activation fails, .venv/ existsrm -rf .venv/ && . ./export.sh
tos.py: command not foundRe-run . ./export.sh
Submodule download failsgit submodule update --init
[Unknown version]No git tags — harmless

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tuya/tuyaopen-dev-skills/env-setup/badge)](https://verified-skill.com/skills/tuya/tuyaopen-dev-skills/env-setup)

Something wrong with this skill or its page? Tell us.