šŸŽµ Play Music Skill

**Controlled music player with pause/resume/stop support**

3,891 stars

Best use case

šŸŽµ Play Music Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

**Controlled music player with pause/resume/stop support**

Teams using šŸŽµ Play Music Skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/play-music/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/awspace/play-music/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/play-music/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How šŸŽµ Play Music Skill Compares

Feature / AgentšŸŽµ Play Music SkillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

**Controlled music player with pause/resume/stop support**

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# šŸŽµ Play Music Skill

**Controlled music player with pause/resume/stop support**  
Single entry point, background server for full control

## Quick Start

1. **Place music files** in a `music` folder (default) or set `MUSIC_DIR` environment variable
2. **Install pygame** (recommended for full control): `pip install pygame`
3. **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 <filename>    - Play specific song (e.g., song.mp3)
./play-music server-start  - Start music server manually
./play-music server-stop   - Stop music server
```

## Examples

```bash
# 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:
```bash
pip install pygame
```

### 2. Add Music Files
Place your music files in:
- Default: `./music` (relative to script location)
- Custom: Set `MUSIC_DIR` environment variable

### 3. Configuration
```bash
# 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:

1. **`play-music`** - Single entry point (Python script combining client functionality)
2. **`music-server.py`** - Background server that handles music playback
3. **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:
```bash
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.

Related Skills

Product Launch Playbook

3891
from openclaw/skills

You are a Product Launch Strategist. You guide users through planning, executing, and optimizing product launches — from pre-launch validation through post-launch growth. This system works for SaaS, physical products, services, marketplaces, and content products.

Workflow & Productivity

M&A Playbook — Merger & Acquisition Framework

3891
from openclaw/skills

You are a mergers and acquisitions advisor. When the user asks about M&A — buying a company, selling their business, due diligence, deal structuring, integration planning, or valuation — use this framework.

Business & Finance

Incident Response Playbook

3891
from openclaw/skills

Structured incident response for business and IT teams. Guides you through detection, triage, containment, resolution, and post-mortem — with auto-generated timelines and action items.

DevOps & Infrastructure

Debt Collection & Recovery Playbook

3891
from openclaw/skills

Generate compliant debt recovery strategies, collection letter sequences, and payment plan frameworks.

Finance & Investing

Customer Success Playbook

3891
from openclaw/skills

Build and run a customer success operation for B2B SaaS. Covers the full lifecycle: onboarding, health scoring, QBRs, churn prevention, and expansion revenue.

Workflow & Productivity

Crisis Management & Communications Playbook

3891
from openclaw/skills

You are the Crisis Management Officer — a specialized agent that helps organizations detect, respond to, contain, and recover from business crises. You provide structured frameworks for PR incidents, data breaches, operational failures, legal threats, executive departures, financial shocks, and reputational damage.

Workflow & Productivity

Crisis Communication Playbook

3891
from openclaw/skills

Generate a crisis communication plan with holding statements, stakeholder messaging, media responses, and internal comms templates.

Workflow & Productivity

AI Agent Manager Playbook

3891
from openclaw/skills

Your company deployed AI agents. Now what? This skill turns you into the person who actually makes them productive — the Agent Manager.

é—®äø“å®¶ęŠ€čƒ½ - 使用 Playwriter ęŽ§åˆ¶å·²ē™»å½•ēš„ęµč§ˆå™Ø

3891
from openclaw/skills

## ęŠ€čƒ½ęčæ°

Workflow & Productivity

cyber-ir-playbook

3891
from openclaw/skills

Build incident response timelines and report packs from event logs. Use for detection-to-recovery reporting, phase tracking, and stakeholder-ready incident summaries.

Security

audio-play

3891
from openclaw/skills

Play audio files using Windows media player. Non-blocking execution.

ohyesai-music

3891
from openclaw/skills

Generate custom music tracks (vocal or instrumental) via OhYesAI asynchronously.