hue-lights

hue-lights is a skill for Claude Code from diillson/chatcli. It costs 73 tokens per session (703 once invoked), scanned B, original, Apache-2.0.

A local-network controller for Philips Hue smart lights through a Hue Bridge.

In plain words
What is it for?
Listing lights and rooms, switching lights on or off, changing brightness or color, and activating scenes.
Why use it?
It lets an agent control lights without relying on a cloud service or a separate web dashboard.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Listing lights and rooms, switching lights on or off, changing brightness or color, and activating scenes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/diillson/chatcli/hue-lights
Install

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.

Any agent
npx skills add diillson/chatcli --skill hue-lights
Clone the repo
git clone --depth 1 https://github.com/diillson/chatcli

Made for: Claude Code.

Wrote 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.

agentmods badge for hue-lights

README.md
[![agentmods](https://agentmods.dev/badge/skills/diillson/chatcli/hue-lights/github.svg)](https://agentmods.dev/skills/diillson/chatcli/hue-lights)
Your own site
<a href="https://agentmods.dev/skills/diillson/chatcli/hue-lights"><img src="https://agentmods.dev/badge/skills/diillson/chatcli/hue-lights/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.

agentmods 80×15 button for hue-lights

Your own site · 80×15
<a href="https://agentmods.dev/skills/diillson/chatcli/hue-lights"><img src="https://agentmods.dev/badge/skills/diillson/chatcli/hue-lights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 25
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00703
Opus 5.5 $0.00029 $0.00281
Sonnet 5.5 $0.00015 $0.00141
Haiku 4.5 $0.00007 $0.00070

Measured 1mo ago against content hash d00afe98b14d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

hue-lights scanned grade B with 2 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 1mo 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -X POST http://<BRIDGE_IP>/api -d '{"devicetype":"chatcli#host"}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. Find the bridge IP: `curl -s https://discovery.meethue.com` (returns LAN IP), or check the router.
pkg/persona/builtin/skills/hue-lights/SKILL.md · 60 lines

What it actually says

Philips Hue (local control)

Control Hue lights via the local Bridge REST API — no cloud account, no API key. Auth is a locally-generated username/application key bound to your LAN.

One-time setup

  1. Find the bridge IP: curl -s https://discovery.meethue.com (returns LAN IP), or check the router.
  2. Generate a local user: press the bridge's link button, then within 30 s:
    curl -s -X POST http://<BRIDGE_IP>/api -d '{"devicetype":"chatcli#host"}'
    
    Save the returned username as HUE_BRIDGE_IP + HUE_USER (env vars).

(If openhue CLI is installed, openhue set ... / openhue get lights wraps all of this — detect command -v openhue and prefer it.)

List lights / rooms

curl -s "http://$HUE_BRIDGE_IP/api/$HUE_USER/lights"
curl -s "http://$HUE_BRIDGE_IP/api/$HUE_USER/groups"   # rooms/zones

Control

# On + warm white, full brightness (light id 3)
curl -s -X PUT "http://$HUE_BRIDGE_IP/api/$HUE_USER/lights/3/state" -d '{"on":true,"bri":254,"ct":366}'
# Off
curl -s -X PUT "http://$HUE_BRIDGE_IP/api/$HUE_USER/lights/3/state" -d '{"on":false}'
# Color (hue 0-65535, sat 0-254): blue ≈ hue 46920
curl -s -X PUT "http://$HUE_BRIDGE_IP/api/$HUE_USER/lights/3/state" -d '{"on":true,"hue":46920,"sat":254}'
# Whole room (group 1)
curl -s -X PUT "http://$HUE_BRIDGE_IP/api/$HUE_USER/groups/1/action" -d '{"on":true,"bri":150}'

Rules

  • It's LAN-only — the host must be on the same network as the bridge.
  • Resolve names→ids first (list lights/groups) so "the kitchen lights" maps to the right group.
  • bri 1–254, ct (warm↔cool) ~153–500, hue/sat for color. Confirm the target before changing.
Changes

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.

  1. 1mo ago First seen · 60 lines · 73 tokens per session scan B d00afe98b14d

Subscribe to this mod's changes

hue-lights is a skill published in the GitHub repository diillson/chatcli (93 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 703 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

agent-state-bar

A design guide for an agent status bar: a short, automatically updated summary of progress, remaining tasks, tool counts, errors, and system state placed near the latest model input.

bojieli/ai-agent-book · 105 tokens

reward-design

A guide to defining the scores that an AI agent receives during trial-and-error training. It covers checks based on rules, human preferences, or another model, and distinguishes rewarding the final result from rewarding the steps taken.

bojieli/ai-agent-book · 131 tokens

agent-evolution

A guide to making an AI agent improve from its past runs. It covers how to judge results, extract reusable lessons, and decide whether to store them as knowledge, instructions, code, or model training.

bojieli/ai-agent-book · 126 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

post-training-strategy

A guide to choosing and planning ways to improve an AI model after its initial training. It explains when to add knowledge, teach a response format, use trial-and-error training, or use a smaller model to learn from a larger one.

bojieli/ai-agent-book · 159 tokens

ai-style

A Chinese-language writing guide for producing or revising reader-facing text such as product announcements, public-account articles, emails, and README files. It focuses on reducing patterns that make writing sound machine-generated.

bojieli/ai-agent-book · 25 tokens