espressif/esp-claw/light-switch
Claude Code and agent skill by espressif/esp-claw
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install espressif/esp-claw/light-switchSKILL.md
The same SKILL.md was published earlier as espressif/esp-claw/light-switch.
Light Switch
Use this skill when the user asks to turn a board light on or off, change an LED strip color, or adjust light brightness.
Run exactly one script with lua_run_script after reading board_hardware_info.
You MUST pass args when using lua_run_script to control the light, as specified in the input schema shown below in the section LED Strip Script Args Schema and GPIO Light Script Args Schema.
If lua_run_script returns an error, report that error directly to the user. Do not retry, change arguments, or run another light script in the same turn unless the user explicitly asks.
LED Strip Script Args Schema
GPIO Light Script Args Schema
GPIO lights are binary. Ignore color for GPIO lights. Treat brightness: 0 as off and any non-zero brightness as on.
LED Strip Tool Call Inputs
Use args as the JSON object shown below.
Turn off:
Turn on white:
Set red at half brightness:
Set all pixels in a 3-pixel LED strip to red at half brightness:
GPIO Light Tool Call Inputs
Turn off an active-high GPIO light:
Turn on an active-low GPIO light:
Recommended Flow
- Activate the
board_hardware_infoskill and query the board hardware info before operating hardware. - Use the
Device Inventoryheadings and occupied IO lines fromboard_hardware_info; do not guess pins outside that skill. - Prefer an
led_stripdevice when present. Use its occupied IO, typically the referenced RMT TXgpioline, asio. - Use
max_ledsfrom hardware info asled_countwhen available; otherwise keep the defaultled_count: 1. - If no
led_stripdevice exists, look for a GPIO light by device name, such asflashlight,led_*,*_led, or names containinglight. - If
chip: gpio_ledortype: gpio_ctrlis visible in hardware info, treat that as a GPIO light signal when the name also indicates a light. - For GPIO lights, use the GPIO from the device occupied IO such as
gpioorpin. - Use
active_levelfrom hardware info when available. If explicit active-high or active-low text is visible, map it to1or0. - If no active-level information is available, use the script default
active_level: 1and do not claim active-low behavior. - Do not use the default
iovalue ifboard_hardware_infoprovides one. - For LED strips, run
{CUR_SKILL_DIR}/scripts/led_strip_switch.luawith the resolvedio,led_count, and any requested color or brightness. - For GPIO lights, run
{CUR_SKILL_DIR}/scripts/gpio_light_switch.luawith the resolvedio,active_level, and requested enabled state. - For GPIO lights, ignore color and map
brightness: 0to off. - If neither LED strip nor GPIO light hardware is listed, inform the user that the board does not declare a controllable light and stop.
- Report the result or error directly to the user.
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
- SKILL.md in the repositoryCheckingapplication/edge_agent/fatfs_image/storage/skills/light_switch/SKILL.md
Popularity
- Repository stars
- 2,096
- Repository forks
- 442
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. 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
[](https://verified-skill.com/skills/espressif/esp-claw/light-switch)