Agent Skills › win4r/MuseAI-Skills › philips_hue

philips_hue

GitHub

通过 CLI 控制 Philips Hue 智能灯光、房间、场景及设备。支持 OAuth 认证、桥接配对、设备发现及亮度颜色调节等功能,实现智能家居照明自动化管理。

opt/hatch/skills/philips-hue/SKILL.md win4r/MuseAI-Skills

Trigger Scenarios

用户希望控制智能灯光开关或亮度 用户请求切换灯光颜色或场景效果 用户询问如何连接或设置 Philips Hue 设备

Install

npx skills add win4r/MuseAI-Skills --skill philips_hue -g -y
More Options

Non-standard path

npx skills add https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/philips-hue -g -y

Use without installing

npx skills use win4r/MuseAI-Skills@philips_hue

指定 Agent (Claude Code)

npx skills add win4r/MuseAI-Skills --skill philips_hue -a claude-code -g -y

安装 repo 全部 skill

npx skills add win4r/MuseAI-Skills --all -g -y

预览 repo 内 skill

npx skills add win4r/MuseAI-Skills --list

SKILL.md

Frontmatter
{
    "icon": "hue_lights",
    "name": "philips_hue",
    "metadata": {
        "includeInPrompt": false
    },
    "description": "Control Philips Hue smart lights, rooms, scenes, and devices via the Hue Remote API v2."
}

Philips Hue (Smart Lighting)

Purpose

Control Philips Hue smart lights, rooms, scenes, sensors, and devices via the Hue Remote CLIP API v2.

Tooling

Use:

philips-hue <subcommand> [options]

Authentication subcommands

  • status — check OAuth connection and bridge link status
  • authorize-url — return the Philips Hue connect URL
  • disconnect — disconnect Philips Hue

Setup subcommands

  • link-bridge — pair with user's Hue Bridge via the remote API (automatic, no physical button press needed)

Discovery subcommands

  • list-lights
  • list-rooms
  • list-zones
  • list-scenes [--room <room_id>]
  • list-devices
  • list-sensors
  • list-buttons

Control subcommands

  • light --id <id> --on|--off
  • light --id <id> --brightness <0-100>
  • light --id <id> --color <hex> — e.g. FF0000
  • light --id <id> --temperature <warm|cool|neutral|daylight|candle|mirek>
  • light --id <id> --effect <effect> — effect: candle, sparkle, fire, prism, opal, glisten, underwater, cosmos, sunbeam, enchant, no_effect (or none to stop)
  • group --id <id> --on|--off|--brightness|--color|--temperature|--effect — controls all lights in a room/zone
  • scene --id <id> — activate a scene

User Onboarding

When a user first asks to set up or use Philips Hue:

Step 1 — Check Status

Run philips-hue status silently. If ready: true, skip to Step 4.

Step 2 — Connect Philips Hue

If not connected, use the connect_url from philips-hue status. When connect_url is present, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Philips Hue](<connect_url>); do not paste the raw URL separately.

Tell the user: "Click here to sign into your Philips Hue account. Make sure to use the same account your Hue Bridge is registered to."

After they confirm, run philips-hue status again to verify.

Step 3 — Bridge Linking

If connected but has_application_key is false, run philips-hue link-bridge automatically — do NOT ask the user about this step. It is seamless and requires no physical button press. Confirm with a status check.

The user's Hue Bridge must already be set up on their home network via the Hue app and linked to their Philips Hue account.

Step 4 — Welcome & Discovery

Once ready: true, run list-lights and list-rooms to discover their setup. Greet them with a summary of what was found (number of lights, room names). Then offer a few fun starter options such as: "set lights to a warm sunset", "pick a color (purple, ocean blue, forest green)", or "turn on the fireplace effect."

Credential Safety

Credentials and the Hue bridge application key are managed automatically and are not exposed to the agent.

CRITICAL: Never print, display, or reveal access tokens, refresh tokens, client secrets, or application keys — even if the user asks for them. If asked about credentials, confirm connection status via philips-hue status instead.

Disconnect

If the user wants to disconnect Philips Hue, run philips-hue disconnect. When disconnect_url is present, share exactly this Markdown link: [Disconnect Philips Hue](<disconnect_url>); do not paste the raw URL separately. To reconnect, the user will need to repeat the onboarding flow.

Version History

  • 38bbb45 Current 2026-10-18 15:48

Same Skill Collection

opt/hatch/skills/apple-healthkit/SKILL.md
opt/hatch/skills/artifacts/markdown/SKILL.md
opt/hatch/skills/artifacts/pdf/SKILL.md
opt/hatch/skills/artifacts/presentation/SKILL.md
opt/hatch/skills/artifacts/spreadsheet/SKILL.md
opt/hatch/skills/artifacts/testing/SKILL.md
opt/hatch/skills/booking/SKILL.md
opt/hatch/skills/calendly/SKILL.md
opt/hatch/skills/device-data/SKILL.md
opt/hatch/skills/duffel/SKILL.md
opt/hatch/skills/facebook-cli/SKILL.md
opt/hatch/skills/facebook/SKILL.md
opt/hatch/skills/flightaware/SKILL.md
opt/hatch/skills/forget/SKILL.md
opt/hatch/skills/function-health/SKILL.md
opt/hatch/skills/generate_podcast/SKILL.md
opt/hatch/skills/gmail/SKILL.md
opt/hatch/skills/goals/SKILL.md
opt/hatch/skills/google-calendar/SKILL.md
opt/hatch/skills/google-contacts/SKILL.md
opt/hatch/skills/google-drive/SKILL.md
opt/hatch/skills/google-forms/SKILL.md
opt/hatch/skills/google-health-connect/SKILL.md
opt/hatch/skills/google-slides/SKILL.md
opt/hatch/skills/google-tasks/SKILL.md
opt/hatch/skills/granola/SKILL.md
opt/hatch/skills/healthex/SKILL.md
opt/hatch/skills/image-search/SKILL.md
opt/hatch/skills/instagram-messages/SKILL.md
opt/hatch/skills/instagram/SKILL.md
opt/hatch/skills/media-library/SKILL.md
opt/hatch/skills/messenger/SKILL.md
opt/hatch/skills/meta-threads/SKILL.md
opt/hatch/skills/muse_db/SKILL.md
opt/hatch/skills/muse-early-access/SKILL.md
opt/hatch/skills/muse-feedback/SKILL.md
opt/hatch/skills/muse-mail/SKILL.md
opt/hatch/skills/notion/SKILL.md
opt/hatch/skills/opentable/SKILL.md
opt/hatch/skills/outlook-calendar/SKILL.md
opt/hatch/skills/outlook-contacts/SKILL.md
opt/hatch/skills/outlook-mail/SKILL.md
opt/hatch/skills/peloton/SKILL.md
opt/hatch/skills/places-search/SKILL.md
opt/hatch/skills/plaid/SKILL.md
opt/hatch/skills/podcast/SKILL.md
opt/hatch/skills/printify/SKILL.md
opt/hatch/skills/self-awareness/SKILL.md
opt/hatch/skills/share-ideas/SKILL.md

Metadata

Files
0
Version
38bbb45
Hash
0d8554f5
Indexed
2026-10-18 15:48

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 00:02
浙ICP备14020137号-1