Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tuya/tuya-openclaw-skills --skill tuya-smart-controlgit clone --depth 1 https://github.com/tuya/tuya-openclaw-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tuya/tuya-openclaw-skills/tuya-smart-control)<a href="https://agentmods.dev/skills/tuya/tuya-openclaw-skills/tuya-smart-control"><img src="https://agentmods.dev/badge/skills/tuya/tuya-openclaw-skills/tuya-smart-control/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tuya/tuya-openclaw-skills/tuya-smart-control"><img src="https://agentmods.dev/badge/skills/tuya/tuya-openclaw-skills/tuya-smart-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00123 | $0.05136 |
| Opus 5.5 | $0.00049 | $0.02054 |
| Sonnet 5.5 | $0.00025 | $0.01027 |
| Haiku 4.5 | $0.00012 | $0.00514 |
Grade A, and why
tuya-smart-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 351 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tuya Smart Home Device Control Skill
Basic Information
- Official Website: https://www.tuya.com/
- Source Code: https://github.com/tuya/tuya-openclaw-skills
- Authentication: Via Header
Authorization: Bearer {Api-key} - Credentials: Read from environment variable
TUYA_API_KEY— obtain it at tuyasmart.com (China Mainland) or tuya.ai (International). Base URL is auto-detected from API key prefix. Seereferences/api-conventions.mdfor the prefix-to-region mapping table. You can override by settingTUYA_BASE_URL. - API Reference: See individual files under
references/ - Python SDK: See
scripts/tuya_api.py - Device Message Client: See
scripts/tuya_device_mq_client.py(real-time WebSocket subscription)
Environment Variable Configuration
Set the following environment variable before use:
export TUYA_API_KEY="your-tuya-api-key"
# TUYA_BASE_URL is optional — auto-detected from API key prefix
# Override only if needed: export TUYA_BASE_URL="https://openapi.tuyaus.com"
Where to get an API Key:
| User Type | Where to Get |
|---|---|
| China Mainland | tuyasmart.com |
| International | tuya.ai |
The API Key format is sk-<PREFIX><rest>, where the prefix is used to automatically identify the data center. Make sure the API Key region matches your Tuya account registration region.
The same TUYA_API_KEY is used for both the REST API and WebSocket message subscription. The WebSocket URI is auto-detected from the API key prefix (same 7 data centers as the REST API). See references/device-message.md for the full mapping table.
The skill will not load if the TUYA_API_KEY environment variable is missing.
Usage
Always prefer Method 1 (Command Line) — single command, no boilerplate code. It handles authentication, URL resolution, JSON serialization, and error handling automatically.
Method 1: Via Command Line (Recommended)
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/api-conventions.md 1.7 KB
- references/device-control.md 5.0 KB
- references/device-management.md 1.1 KB
- references/device-message.md 9.2 KB
- references/device-query.md 5.0 KB
- references/error-handling.md 3.2 KB
- references/home-and-space.md 1.8 KB
- references/ipc-cloud-capture.md 8.8 KB
- references/notifications.md 3.7 KB
- references/statistics.md 2.8 KB
- references/weather.md 4.8 KB
- scripts/requirements.txt 41 B
- scripts/tuya_api.py 31 KB runs code
- scripts/tuya_device_mq_client.py 8.8 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago Changed · +9 lines 8cf078de1a7a
- 2mo ago First seen · 342 lines · 123 tokens per session scan A 8a5f4bf7a0ea
tuya-smart-control is a skill published in the GitHub repository tuya/tuya-openclaw-skills (483 stars, last pushed 7d ago), licensed MIT. It adds 123 tokens to every session and 5,136 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
tuya-smart-control compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tuya-smart-controltuya/tuya-openclaw-skills | Skill | 483 | 7d ago | MIT | A | 123 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 22k | yesterday | Apache-2.0 | A | 83 | Claude Code, Codex |
| jetson-diagnosticNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 30 | Claude Code, Codex |
| holoscan-install-wheelNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 34 | Claude Code, Codex |
| offensive-z-waveSnailSploit/Claude-Red | Skill | 10k | 25d ago | MIT | A | 113 | Claude Code, Codex |
| doca-socket-relayNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 236 | Claude Code, Codex |
| hsb-flashNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | B | 94 | Claude Code |