/install play-music
🎵 Play Music Skill
Controlled music player with pause/resume/stop support
Single entry point, background server for full control
Quick Start
- Place music files in a
musicfolder (default) or setMUSIC_DIRenvironment variable - Install pygame (recommended for full control):
pip install pygame - Use:
./play-music play
Single Entry Point
The skill has one clear entry point: ./play-music
Command Interface
./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 \x3Cfilename> - Play specific song (e.g., song.mp3)
./play-music server-start - Start music server manually
./play-music server-stop - Stop music server
Examples
# 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
Features
✅ 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
Setup
1. Install Pygame (Recommended)
For full pause/resume/stop control:
pip install pygame
2. Add Music Files
Place your music files in:
- Default:
./music(relative to script location) - Custom: Set
MUSIC_DIRenvironment variable
3. Configuration
# Set custom music directory
export MUSIC_DIR="/path/to/your/music"
# Set default song name
export DEFAULT_SONG="my-song.mp3"
How It Works
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 playback- Pygame mixer - For high-quality audio with full control
Resource-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.
Troubleshooting
"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
File Structure
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.
Integration with OpenClaw
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install play-music - 安装完成后,直接呼叫该 Skill 的名称或使用
/play-music触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Play Local Music 是什么?
Control local music playback with play, pause, resume, stop commands; supports listing and playing specified songs from a configured music directory. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1077 次。
如何安装 Play Local Music?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install play-music」即可一键安装,无需额外配置。
Play Local Music 是免费的吗?
是的,Play Local Music 完全免费(开源免费),可自由下载、安装和使用。
Play Local Music 支持哪些平台?
Play Local Music 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Play Local Music?
由 awspace(@awspace)开发并维护,当前版本 v0.1.0。