sonos
它能做什么
这个技能使用你项目中已有的本地工具控制 Sonos 音箱,进行音乐播放。适合希望通过 AI 来控制 Sonos 系统的人。
适用场景
- ✓你想在 Sonos 的某个房间或分组中播放音乐的时候。
- ✓你想更改播放队列、音量或当前播放内容的时候。
- ✓你想把播放从一个房间转移到另一个房间的时候。
技能链接
https://github.com/steipete/agent-scripts/blob/main/skills/sonos/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在厨房的 Sonos 音箱上播放我的爵士歌单,并把音量调到舒适的程度。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先读取当前状态,例如房间和正在播放的内容,然后进行所需的更改,并再次检查状态。如果请求不明确,它会询问你使用哪个房间。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Sonos
Use for Sonos music, playback, queue, room/group, and YouTube workflows.
Rules
- Prefer existing local Sonos tooling in the current repo before inventing shell/API calls.
- Do not change speaker groups, queues, or playback unless the user asks for it.
- Confirm target room/group when ambiguous.
- For YouTube, prefer a playable audio URL or local extraction workflow already present in the repo; avoid downloading unless requested.
- Keep network/debug work out of scope unless the user explicitly asks for diagnostics.
- Secrets, service tokens, and account auth: check env/profile first; use
oponly via the repo/AGENTS rules.
Workflow
- Discover repo commands:
rg --files- package scripts or CLI help
- Identify target:
- room/group
- service/source
- query, URL, playlist, album, artist, or track
- Dry-read current state when useful:
- rooms/groups
- now playing
- queue
- Execute the requested playback action.
- Verify by reading current state again.
Common Tasks
- Search and play music by track, album, artist, playlist, or station.
- Add or replace the queue.
- Pause, resume, skip, seek, shuffle, repeat.
- Set volume or mute for a room/group.
- Move/group playback between rooms.
- Play YouTube audio/music through Sonos when supported by local tooling.
YouTube Notes
- Treat YouTube URLs as media sources first, not as download requests.
- If conversion/extraction is needed, prefer the local toolchain already used by the repo.
- State constraints clearly when Sonos/service support blocks direct playback.
常见问题
它会自行更改我的音箱分组吗?
不会。技能规定,除非你要求,否则不更改分组、队列或播放。
YouTube 链接怎么办?
它优先使用本地工具已支持的可播放音频源,除非你要求,否则避免下载。
它会检查更改是否生效吗?
会。做出更改后,它会重新读取当前状态。
详情
作者的原始描述
Sonos control: search, queue, playlists, rooms/groups, volume, YouTube.
repo: steipete/agent-scripts
热度
- GitHub 星标
- 7.4k
- 排名
- #13246
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
beeper
7.4k帮你的智能体搜索本地 Beeper 聊天记录,找到消息,并判断模糊线索指的是哪个聊天或联系人。
cloudflare-registrar
7.4k帮你的智能体查询 Cloudflare Registrar 的域名价格和可用性,并在确认后注册或列出域名。
codexbar
7.4k帮你的智能体查看你在 Codex、Claude、Kimi 等 AI 服务中还剩多少用量,包括限额、额度和重置时间。
create-cli
7.4k帮你的智能体设计命令行工具的命令、参数、帮助文本、输出和错误提示,让人和脚本都能顺利使用。