Skip to content
Entertainment
Command

/cwb

Control coding-with-beat (play / pause / skip / now-playing / music source / like / mode / search / list). Use $ARGUMENTS as a free-form intent.

BOOST
From plugin
coding-with-beat
11212 skills12 commands
Install
$ npx -y skills add jaychempan/coding-with-beat --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cwb

Context preview

What this command does when you run it.

Control coding-with-beat (play / pause / skip / now-playing / music source / like / mode / search / list). Use $ARGUMENTS as a free-form intent.

Command definition

cwb.md
description: Control coding-with-beat (play / pause / skip / now-playing / music source / like / mode / search / list). Use $ARGUMENTS as a free-form intent.
disable-model-invocation: true
allowed-tools: Bash
argument-hint: "<play|search|list|pause|next|prev|status|like|mode|source> [args]"

If the coding-with-beat UserPromptExpansion hook is installed, this command is handled by a private one-shot headless Claude session. The child session interprets the intent, runs a validated coding-with-beat action, returns a short result, and blocks this fallback prompt so the main conversation context stays clean.

You are driving the local **coding-with-beat** music player via its globally-installed CLI. Do NOT call any MCP tools — they may not be loaded. Always shell out via Bash to the `cwb` command (installed by `install.sh` at `~/.local/bin/coding-with-beat`, backed by a venv at `~/.coding-with-beat/venv`).

User intent: `$ARGUMENTS`

How to interpret

Parse the intent and pick exactly ONE action. If empty or ambiguous, default to `status`.

| Intent keywords | Command | |---|---| | play/start + `<query>` | `cwb play <query>` | | play/resume with no query | `cwb play` | | resume/继续/恢复 (after interruption) | `cwb resume` | | search/find/搜索/找 + `<query>` | `cwb search <query>` | | list/library/资料库/列表 | `cwb list` | | pause/stop | `cwb pause` | | next/skip | `cwb next` | | previous/back | `cwb prev` | | source/music source + `<apple_music|qq_music|local>` | `cwb source <apple_music|qq_music|local>` | | like/favorite current | `cwb like` | | shuffle/sequential/repeat | `cwb mode <shuffle|sequential|repeat>` | | now playing/what's playing | `cwb np` | | show player/player | `cwb player` | | status | `cwb status` | | lyrics/karaoke | `cwb karaoke` | | **anything else** (mood, scene, vibe, free-form description) | multi-angle smart search (see below) |

**Routing rule:** if the argument does NOT start with one of the fixed verbs above (play, search, list, pause, next, prev, source, like, mode, np, player, status, karaoke, resume), treat the entire argument as a mood/scene description and run **multi-angle smart search**.

For search or play-by-query, the `<query>` is the rest of the text after the verb (artist name, song name, mood — pass it through verbatim, including Chinese). Quote it.

Scene dispatch — act immediately, no keyword generation

Do NOT generate keywords. Match the intent to a scene below and run its Bash commands right away.

| Scene | Trigger words | |---|---| | 🎧 Lofi | lofi / 深夜 / 写代码 / 低保真 / chillhop / 熬夜 / late night coding | | 🧠 Focus | 专注 / 心流 / ambient / 无人声 / flow state / deep work | | 🔥 Hype | 充能 / 运动 / 高能 / 早晨 / workout / 跑步 / hype / motivation | | ☕ Jazz | 爵士 / jazz / 咖啡馆 / smooth / bossa nova / 慵懒 | | 🌆 Synthwave | 赛博 / synthwave / 电子 / 夜驾 / neon / retrowave / cyberpunk | | 🌅 Relax | 放松 / 解压 / 下班 / 傍晚 / unwind / chill out / 轻松 | | 🎹 Classical | 古典 / 钢琴 / 弦乐 / 交响 / classical / piano | | 💙 Sad | 伤感 / 失落 / 难过 / melancholy / heartbreak / sad / 失恋 | | 🎉 Party | 派对 / 聚会 / 节日 / party / dance / 蹦迪 / edm / 狂欢 | | 🏮 Chinese | 国风 / 中国风 / 华语 / 民谣 / 古风 / guzheng / 古琴 | | 🌙 Sleep | 助眠 / 睡前 / 失眠 / sleep / white noise / 白噪音 |

For each matched scene, run its three Bash commands in parallel and display grouped results:

**🎧 Lofi:**

cwb smart_search "lofi hip hop late night coding chill" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "lofi jazz rain study instrumental" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "chillhop beats lo-fi bedroom producer" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **🎧 Lofi Hip Hop** · **🌧 Lofi Jazz Rain** · **🛏 Chillhop**

**🧠 Focus:**

cwb smart_search "deep focus ambient instrumental no vocals" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "flow state drone minimal electronic" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "study music concentration piano quiet" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **🧠 Deep Focus Ambient** · **⚡ Flow State** · **📚 Study Piano**

**🔥 Hype:**

cwb smart_search "morning energy upbeat pop indie fresh" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "workout motivation electronic dance" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "hype rap trap energetic beats pump" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **☀️ Morning Energy** · **💪 Workout** · **🔥 Hype Beats**

**☕ Jazz:**

cwb smart_search "smooth jazz cafe background mellow" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "jazz trio acoustic bossa nova guitar" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "late night jazz piano bar cool relaxed" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **☕ Smooth Jazz** · **🎸 Bossa Nova** · **🎹 Jazz Piano Bar**

**🌆 Synthwave:**

cwb smart_search "synthwave retrowave night drive neon" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "cyberpunk electronic dark ambient synth" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "80s retro synth outrun vapor" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **🌆 Synthwave** · **🤖 Cyberpunk** · **📼 Retro Synth**

**🌅 Relax:**

cwb smart_search "relaxing downtempo chill evening unwind" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "acoustic folk gentle calm soft" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "nature ambient breeze afternoon easy listening" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.txt

Groups: **🌅 Downtempo Chill** · **🎸 Acoustic Folk** · **🌿 Nature Ambient**

**🎹 Classical:**

cwb smart_search "classical piano solo nocturne gentle" > /tmp/cwb_1.txt 2>&1 &
cwb smart_search "string quartet orchestral cinematic calm" > /tmp/cwb_2.txt 2>&1 &
cwb smart_search "bach mozart ambient classical study" > /tmp/cwb_3.txt 2>&1 &
wait && cat /tmp/cwb_1.txt /tmp/cwb_2.txt /tmp/cwb_3.tx
Read more
Ships withcoding-with-beat

🎵 将音乐搬进AI终端 · 打造Coding专属智能DJ · 听歌新范式 · 交互式音乐 |A retro pixel DJ for Claude Code / Codex CLI / Terminal with Apple Music / QQ Music / Local Music — plays music, shows synced lyrics, and 😱 panics when your tests fail.

Get the whole plugin

Other commands on coding-with-beat.