跳到正文
cccskills
免费在 GitHub 公开

cled

Set up and launch CLED, the ambient keyboard daemon that shows your Claude Code agents' status on your keyboard via OpenRGB. Use when the user asks to start, launch, run, or set up CLED.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Launch CLED

CLED is a long-running daemon that must run in the user's GUI terminal session, so launch it in a dedicated iTerm2 window that outlives this turn. Run the preflight in order; stop with the specific fix if any check fails — don't launch a daemon that can't work.

Preflight

  1. macOS — uname -s must print Darwin (agent detection uses iTerm2 + AppleScript). Else stop.
  2. OpenRGB installed — osascript -e 'id of app "OpenRGB"' must succeed. Else offer brew install --cask openrgb and stop.
  3. A controllable keyboard — if nc -z 127.0.0.1 6742 fails, start the server as CLED does: open -a OpenRGB --args --server --noautoconnect, then poll the port (up to ~30s; HID detection on macOS takes ~10s). Then /Applications/OpenRGB.app/Contents/MacOS/OpenRGB --client 127.0.0.1:6742 --list-devices must show a device with Type: Keyboard and Direct in its Modes:. Report the model; else stop — the keyboard isn't OpenRGB-controllable.
  4. iTerm2 — osascript -e 'id of app "iTerm2"' must succeed. Else offer brew install --cask iterm2 and stop.

Launch

Open a dedicated iTerm2 window running the daemon (it persists in the GUI session, independent of this Claude session):

osascript <<'END'
tell application "iTerm2"
  set w to (create window with default profile)
  tell current session of w to write text "uvx cled"
end tell
END

uvx cled fetches CLED from PyPI and starts it. (Before CLED is published to PyPI, use uvx --from git+https://github.com/latent-spaces/cled cled instead.)

Confirm

Tell the user CLED is now running in a new iTerm2 window — number row = agent tabs (red busy / green idle / amber stale / blue other), F-keys = RAM, numpad = per-core CPU, Enter = heartbeat. To stop it: Ctrl-C in that window (OpenRGB keeps running).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题