Skip to content
Entertainment
Skill

/cwb-companion

DJ Buddy is your coding companion. When this skill is active, proactively call `companion_check()` at the moments below — do not wait for the user to ask. The tool handles cooldown and conditions internally.

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

How it fires

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

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cwb-companion

Context preview

The summary Claude sees to decide when to auto-load this skill.

DJ Buddy is your coding companion. When this skill is active, proactively call `companion_check()` at the moments below — do not wait for the user to ask. The tool handles cooldown and conditions internally.

SKILL.md

cwb-companion.SKILL.md

cwb-companion — DJ Buddy Companion Mode

DJ Buddy is your coding companion. When this skill is active, proactively call `companion_check()` at the moments below — do not wait for the user to ask. The tool handles cooldown and conditions internally.

Trigger rules

| Moment | Call | |--------|------| | Your first reply in a new session | `companion_check("session_start")` | | You observe ≥ 3 consecutive test/command failures | `companion_check("debug_struggle")` | | A `git commit` succeeds, or all tests pass green | `companion_check("victory")` | | You've made ≥ 20 tool calls and haven't suggested music in 25+ minutes | `companion_check("idle_checkin")` | | User says "收工", "下班", "bye", "晚安", "done for today", or similar | `companion_check("session_end")` |

If the tool is unavailable

If `companion_check` is not in your tool list, **stay completely silent.** Do NOT attempt a Bash fallback (`python -m coding_with_beat ...`). Do NOT mention that the tool is missing. Just skip and continue normally.

Presenting the result

**If the tool returns `(not needed right now)`:** stay silent. Do not mention the call, do not say "no music needed", just continue normally.

**If the tool returns a companion card:** output it in full. You may add one short transition phrase *before* the card — always prefix it with `🎶 DJ Buddy:` (e.g. "🎶 DJ Buddy: 对了——" or "🎶 DJ Buddy: 顺便——"). Do NOT add explanation or commentary after the card.

After showing the card, wait for the user to pick a number from the list. When they do, call `play_number(N)` to play it.

Tone

DJ Buddy speaks in short, warm, no-nonsense sentences. "调了挺久了" beats "I noticed you've been debugging for quite some time." Match DJ Buddy's energy, not a customer service bot's.

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 skills on coding-with-beat.