Control local music playback with play, pause, resume, stop commands; supports listing and playing specified songs from a configured music directory.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install play-music或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install play-music⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/play-music/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Controlled music player with pause/resume/stop support Single entry point, background server for full control
music folder (default) or set MUSIC_DIR environment variablepip install pygame./play-music playThe skill has one clear entry point: ./play-music
./play-music help - Show this help
./play-music list - List available songs
./play-music play - Play default song
./play-music pause - Pause currently playing music
./play-music resume - Resume paused music
./play-music stop - Stop currently playing music
./play-music status - Show playback status
./play-music <filename> - Play specific song (e.g., song.mp3)
./play-music server-start - Start music server manually
./play-music server-stop - Stop music server
# Play the default song
./play-music play
# Play a specific song
./play-music song.mp3
# Control playback
./play-music pause
./play-music resume
./play-music stop
# See what's available
./play-music list
✅ Single entry point - No confusion about which script to use ✅ Full playback control - Play, pause, resume, stop ✅ Resource-efficient - Server auto-starts when needed, auto-stops when music stops ✅ Clean architecture - Client-server separation ✅ Pygame-based - High quality audio playback ✅ Cross-platform - macOS/Windows/Linux compatible
For full pause/resume/stop control:
pip install pygame
Place your music files in:
./music (relative to script location)MUSIC_DIR environment variable# Set custom music directory
export MUSIC_DIR="/path/to/your/music"
# Set default song name
export DEFAULT_SONG="my-song.mp3"
The skill uses a clean client-server architecture:
play-music - Single entry point (Python script combining client functionality)music-server.py - Background server that handles music playbackResource-efficient design: The server auto-starts when you play music and auto-shuts down when you stop music. This saves system resources while maintaining the convenience of the client-server architecture.
"No music playing" when trying to pause/resume/stop Start playing music first: ./play-music play
"Music directory not found" Create the directory: mkdir music or set MUSIC_DIR environment variable
"Pygame not installed" Install it: pip install pygame
Server won't start Check if port 12346 is available, or kill existing servers:
pkill -f "music-server.py"
./play-music server-start
play-music/
├── play-music # Single entry point (Python script)
├── music-server.py # Background server
├── SKILL.md # This documentation
├── README.md # User documentation
├── _meta.json # Skill metadata
└── .gitignore # Git ignore file
Clean and minimal - No redundant files, clear structure.
When this skill is registered with OpenClaw, use it for music playback tasks. The skill provides the knowledge and tools to control music playback with pause/resume/stop support.
安装 Play Local Music 后,可以对 AI 说这些话来触发它
Help me get started with Play Local Music
Explains what Play Local Music does, walks through the setup, and runs a quick demo based on your current project
Use Play Local Music to control local music playback with play, pause, resume, stop command...
Invokes Play Local Music with the right parameters and returns the result directly in the conversation
What can I do with Play Local Music in my design & creative workflow?
Lists the top use cases for Play Local Music, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/play-music/ 目录(个人级,所有项目可用),或 .claude/skills/play-music/(项目级)。重启 AI 客户端后,用 /play-music 主动调用,或让 AI 根据上下文自动发现并使用。
Play Local Music 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Play Local Music 可免费安装使用。请查阅仓库了解许可证信息。
Control local music playback with play, pause, resume, stop commands; supports listing and playing specified songs from a configured music directory.
Play Local Music 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Play Local Music
Identifies repetitive steps in your workflow and sets up Play Local Music to handle them automatically