一键导入
floyd
Play an audio file (.mp3, .wav, or .flac) using the floyd command line player. Use when the user wants to play, listen to, or preview an audio file.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Play an audio file (.mp3, .wav, or .flac) using the floyd command line player. Use when the user wants to play, listen to, or preview an audio file.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | floyd |
| description | Play an audio file (.mp3, .wav, or .flac) using the floyd command line player. Use when the user wants to play, listen to, or preview an audio file. |
| argument-hint | <file> | stop |
| allowed-tools | Bash(floyd *), Bash(kill *), Bash(echo *), Bash(cat *), Bash(rm *), Bash(curl *), Bash(chmod *), Bash(uname *), Bash(which *) |
Play or stop audio using the floyd command line player.
Supported formats: .mp3, .wav, .flac
The PID of any running floyd process is stored in /tmp/floyd.pid.
Check if floyd is on the PATH:
which floyd
If not found, detect the OS and download the appropriate binary from the latest release:
OS=$(uname -s)
if [ "$OS" = "Darwin" ]; then
curl -L https://github.com/robrohan/floyd/releases/tag/v1.0.0/floyd-mac -o /usr/local/bin/floyd
else
curl -L https://github.com/robrohan/floyd/releases/tag/v1.0.0/floyd -o /usr/local/bin/floyd
fi
chmod +x /usr/local/bin/floyd
If /usr/local/bin is not writable, try ~/.local/bin instead (create it if needed) and inform the user they may need to add it to their PATH.
/tmp/floyd.pid exists. If not, tell the user nothing is playing.kill $(cat /tmp/floyd.pid) && rm /tmp/floyd.pid
$ARGUMENTS is empty, ask the user which file or directory they want to play./tmp/floyd.pid exists, stop any currently playing audio first:kill $(cat /tmp/floyd.pid) 2>/dev/null; rm -f /tmp/floyd.pid
floyd only accepts a single file at a time — never pass a directory path to floyd directly.
(floyd -d "$ARGUMENTS") &
echo $! > /tmp/floyd.pid
(find "$ARGUMENTS" -type f \( -iname "*.mp3" -o -iname "*.wav" -o -iname "*.flac" \) | sort | while read f; do floyd -d "$f"; done) &
echo $! > /tmp/floyd.pid
Tell the user what is playing and that they can stop it with /floyd stop.