cwb-companion

cwb-companion is a skill for Claude Code, Codex from jaychempan/coding-with-beat. It costs 0 tokens per session (452 once invoked), scanned A, original, MIT.

A coding companion skill that checks in with music suggestions at selected moments during a coding session. It can react when a session starts, debugging has repeatedly failed, tests pass, a commit succeeds, or the session ends.

In plain words
What is it for?
Use it for automatic music check-ins at the start or end of work, after repeated command failures, and after successful commits or passing tests.
Why use it?
It adds timely music suggestions without requiring you to ask for them at each moment. Built-in cooldown handling prevents every event from producing a suggestion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for automatic music check-ins at the start or end of work, after repeated command failures, and after successful commits or passing tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaychempan/coding-with-beat/cwb-companion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jaychempan/coding-with-beat --skill cwb-companion
Clone the repo
git clone --depth 1 https://github.com/jaychempan/coding-with-beat

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cwb-companion

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaychempan/coding-with-beat/cwb-companion/github.svg)](https://agentmods.dev/skills/jaychempan/coding-with-beat/cwb-companion)
Your own site
<a href="https://agentmods.dev/skills/jaychempan/coding-with-beat/cwb-companion"><img src="https://agentmods.dev/badge/skills/jaychempan/coding-with-beat/cwb-companion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cwb-companion

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaychempan/coding-with-beat/cwb-companion"><img src="https://agentmods.dev/badge/skills/jaychempan/coding-with-beat/cwb-companion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00452
Opus 5 $0.00000 $0.00226
Sonnet 5 $0.00000 $0.00090
Haiku 4.5 $0.00000 $0.00045

Measured 9d ago against content hash beec67bff4e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cwb-companion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cwb-companion/SKILL.md · 41 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 41 lines · 0 tokens per session scan A beec67bff4e4

Subscribe to this mod's changes

cwb-companion is a skill published in the GitHub repository jaychempan/coding-with-beat (114 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 452 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.