English | 中文
AI-powered development skills for building TuyaOpen hardware projects faster with Cursor IDE. Each skill teaches the AI assistant how to handle a specific part of the TuyaOpen development workflow — from environment setup to device debugging.
Skills are structured knowledge files (SKILL.md) that give AI coding assistants deep, contextual understanding of specific tools, frameworks, and workflows. When loaded into Cursor IDE, the assistant can:
- Set up the TuyaOpen development environment automatically
- Build, flash, and monitor firmware with correct parameters
- Navigate Kconfig dependencies and board configurations
- Diagnose device errors from serial logs
- Follow TuyaOpen coding standards and security practices
| Skill | Directory | Description |
|---|---|---|
| Environment Setup | tuyaopen/env-setup |
Install dependencies, activate environment (Linux/macOS/Windows) |
| Build | tuyaopen/build |
Compile projects, configure Kconfig options |
| Project & Config | tuyaopen/project-config |
Create new projects, manage build configurations |
| Code Check | tuyaopen/code-check |
Validate formatting, file headers, no Chinese characters |
| Add Board | tuyaopen/add-board |
Add new board BSP: Kconfig, drivers, pin config |
| Dev Loop | tuyaopen/dev-loop |
Build→flash→monitor→analyze iteration cycle |
| Device Auth | tuyaopen/device-auth |
Write UUID/AuthKey/PID to device (source code or serial KV flash) |
| Debug Helper | tuyaopen/debug-helper |
Non-blocking background serial log capture for agents |
The skills cover the complete TuyaOpen development lifecycle:
flowchart LR
envSetup["1. env-setup"] --> projectConfig["2. project-config"]
projectConfig --> build["3. build"]
build --> codeCheck["code-check"]
build --> flashMonitor["4. flash-monitor"]
flashMonitor --> deviceAuth["device-auth"]
flashMonitor --> devLoop["5. dev-loop"]
devLoop -->|"fix & rebuild"| build
projectConfig --> addBoard["add-board"]
Typical flow: Set up environment → Create/configure project → Build → Flash to device → Monitor logs → Analyze & iterate.
| Platform | Chips |
|---|---|
| T5AI | T5AI series |
| ESP32 | ESP32, ESP32-S3, ESP32-C3, ESP32-C6 |
| LINUX | Ubuntu, Raspberry Pi, DshanPi |
| T2 | T2-U |
| T3 | T3 LCD Devkit |
| LN882H | LN882H, EWT103-W15 |
| BK7231X | BK7231X |
Cursor automatically loads skills from the following directories:
| Location | Scope |
|---|---|
.agents/skills/ |
Project |
.cursor/skills/ |
Project |
~/.cursor/skills/ |
User (global) |
Install the skill for this project: https://github.com/tuya/TuyaOpen-dev-skills.git
Copy the skills/tuyaopen directory into your TuyaOpen project as .agents/skills/:
git clone https://github.com/tuya/TuyaOpen-dev-skills.git
mkdir -p /path/to/TuyaOpen/.agents/skills
cp -r TuyaOpen-dev-skills/skills/tuyaopen /path/to/TuyaOpen/.agents/skills/tuyaopenCreate a symbolic link so skills stay in sync with this repo:
git clone https://github.com/tuya/TuyaOpen-dev-skills.git
mkdir -p /path/to/TuyaOpen/.agents
ln -s /path/to/TuyaOpen-dev-skills/skills/tuyaopen/ /path/to/TuyaOpen/.agents/skills/tuyaopenCopy only the skills you need:
mkdir -p /path/to/TuyaOpen/.agents/skills/tuyaopen
cp -r TuyaOpen-dev-skills/skills/tuyaopen/build/ /path/to/TuyaOpen/.agents/skills/tuyaopen/
cp -r TuyaOpen-dev-skills/skills/tuyaopen/env-setup/ /path/to/TuyaOpen/.agents/skills/tuyaopen/TuyaOpen-dev-skills/
├── README.md
├── README_zh.md
├── LICENSE
└── skills/
└── tuyaopen/
├── env-setup/ SKILL.md + scripts/{check_env.sh,.bat,.ps1}
├── build/ SKILL.md + references/KCONFIG_GUIDE.md
├── project-config/ SKILL.md + references/TOS_COMMANDS.md
├── code-check/ SKILL.md + scripts/check_files.py
├── add-board/ SKILL.md + references/BOARD_LAYERS.md
├── dev-loop/ SKILL.md + scripts/build_run.py + references/ERROR_CODES.md
├── device-auth/ SKILL.md + references/PROVISIONING.md
└── debug-helper/ SKILL.md + scripts/monitor_helper.py
Each skill follows the Agent Skills standard:
SKILL.md— concise core instructions loaded automatically by the agentreferences/— detailed documentation loaded on demand for context efficiencyscripts/— executable scripts the agent can run directly
- TuyaOpen — Main SDK repository
- TuyaOpen Documentation — Official docs
- Tuya IoT Platform — Cloud platform for device management
- Cursor IDE — AI-powered code editor
Contributions are welcome! To add or improve a skill:
- Fork this repository
- Edit or create a
SKILL.mdinskills/<skill-name>/ - Follow the YAML front-matter format (
name,description,license,compatibility) - Keep
SKILL.mdconcise — move detailed reference material toreferences/ - Add agent-executable scripts to
scripts/when automatable workflows exist - Submit a Pull Request
This project is licensed under the Apache License 2.0.