Claudelight
Description
Get Tuya lights working with claude code hooks
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
claudelight
Control a Tuya smart light to show Claude Code status. Your light changes color when Claude is thinking, running tools, asking a question, or encounters an error — and glows a warm dim yellow when idle.
Colors
| State | Color |
|---|---|
| Thinking | Purple |
| Running | Blue |
| Question | Yellow |
| Success | Green |
| Error | Red |
| Done | Warm Yellow (dim) |
Install
npm install -g claudelight
Setup
1. Get your Tuya credentials
You'll need the **device ID**, **local key**, and **local IP** of your Tuya smart light. The easiest way to get these is with [tinytuya](https://github.com/jasonacox/tinytuya):
pip install tinytuya
python -m tinytuya wizard
This will walk you through linking your [Tuya IoT Platform](https://iot.tuya.com/) account and scanning your local network for devices. You'll need to:
- Create a Tuya IoT Platform account and a Cloud project
- Link your Tuya/Smart Life app account to the project
- Run the wizard — it outputs a
devices.jsonwith each device'sid,key, andip
2. Configure your credentials
Create a config file at `~/.config/claudelight/.env`:
mkdir -p ~/.config/claudelight
cat > ~/.config/claudelight/.env << 'EOF'
CLAUDELIGHT_DEVICE_ID=your_device_id
CLAUDELIGHT_KEY=your_local_key
CLAUDELIGHT_IP=192.168.1.100
CLAUDELIGHT_VERSION=3.5
EOF
`CLAUDELIGHT_VERSION` is optional and defaults to `3.5`.
For multiple devices, use comma-separated values:
CLAUDELIGHT_DEVICE_ID=id1,id2
CLAUDELIGHT_KEY=key1,key2
CLAUDELIGHT_IP=192.168.1.100,192.168.1.101
Alternatively, you can set these as environment variables in your shell profile.
3. Set up Claude Code hooks
claude-light setup-hooks
This adds hooks to `~/.claude/settings.json` so Claude Code automatically triggers the light on lifecycle events.
Manual usage
claude-light thinking # Purple
claude-light running # Blue
claude-light question # Yellow
claude
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development