Перейти к содержимому
TakoAPI
Назад к навыкам

play-music

от awspace

Media & Streaming
808Число загрузок по данным clawskills.sh
0Просмотры
0 лайковВойдите, чтобы поставить лайк навыку
—Ещё нет оценок
Ваша оценка

Кратко

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

Описание

Что делает этот навык

A command-line music player that runs a background server for full playback control. Uses pygame for audio and exposes play, pause, resume, and stop commands through a single entry point script. Works with local audio files stored in a configurable directory.

Unlike launching a new audio process per command, the background server architecture enables true pause and resume without restarting playback from the beginning.

Когда его использовать

  • Playing background music during a terminal work session
  • Pausing music when taking a call without losing your place
  • Resuming playback after a break without restarting the track
  • Listing available songs in the local music folder
  • Stopping music when switching tasks

Пример сценария

ВВОД

User asks: play some music, then pause it

АГЕНТ
  1. 1

    Run ./play-music play to auto-start the server and begin playback

  2. 2

    Confirm playback is active with ./play-music status

  3. 3

    Run ./play-music pause when the user wants to pause

  4. 4

    Confirm paused state with ./play-music status

ВЫВОД

Music plays from the default song file, then pauses on command while the server stays running

Требования

  • pygame Python library — install with pip install pygame
  • Local audio files placed in a music/ directory or at the path set by MUSIC_DIR

Установка

clawhub install awspace/play-music

Выполните команду CLI или вставьте промпт в Claude Code, Cursor, Codex — любой кодинг-агент, которым пользуетесь.

Ссылки