Start, stop and read Rhythm focus blocks (pomodoros, optionally tied to a task) and their breaks. Use when someone asks for a pomodoro, a focus block, a break, or whether a block is running.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Walnut Rhythm?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/evanzhang008-walnut-rhythm)
---
name: walnut-rhythm
description: Start, stop and read Rhythm focus blocks (pomodoros, optionally tied to a task) and their breaks. Use when someone asks for a pomodoro, a focus block, a break, or whether a block is running.
---
# Rhythm: focus blocks the person starts
Rhythm is a Walnut plugin. It is off until the person starts a focus block (a pomodoro), optionally tied to a task. Walnut goes quiet while the block runs, the break follows by itself, and when the break ends Rhythm asks once whether to start the next block; with no answer it stays off. It counts nothing on its own: no keyboard time, no sitting time.
Every op below is called with `walnut tools call <op> '<json args>'`. Read `walnut_rhythm_status` first whenever the answer depends on what is running.
## When to call what
| The person says | Call |
|---|---|
| "start a pomodoro", "focus on this for 25 minutes", "start a focus block on this task" | `walnut_rhythm_focus_start` with `taskId` (the task you are working in, if any) and optional `minutes` / `breakMinutes` / `goal` (their words for what the block is for) |
| "my goal for this block is …", "change the goal", "clear the goal" (a block is running) | `walnut_rhythm_focus_goal` with `goal` (empty clears) |
| "pause the music", "resume the music" (a block plays Spotify) | `walnut_rhythm_focus_music_pause` with `paused` |
| "star Brown Noise", "keep Deep Focus on top" | `walnut_rhythm_music_star` with `key` and `on` |
| "start a block with Deep Focus", "play my Spotify focus playlist with it" | `walnut_rhythm_focus_start` with `spotify` (a playlist link or URI from `music_tracks`' `spotify.playlists`) |
| "stop the timer", "cancel the pomodoro", "I'm done focusing" | `walnut_rhythm_focus_stop` |
| "end the break", "I'm back" during a break | `walnut_rhythm_break_skip`, or `walnut_rhythm_focus_start` if they want the next block now |
| "I need a break now", "rest early", "start with a rest" | `walnut_rhythm_focus_rest` with optional `minutes` |
| "give me 10 more minutes", "longer break" | `walnut_rhythm_focus_extend` with `minutes` |
| "how much did I focus today", "is a block running", "when does it end" | `walnut_rhythm_status` |
| "what focus music do I have", "is my brown noise there" | `walnut_rhythm_music_tracks` |
| "switch to Deep Focus", "stop the Spotify music" (a block is running) | `walnut_rhythm_focus_music` with `spotify` (or empty) |
## Ops
- `walnut_rhythm_status` `{ refresh?: boolean }`: read-only. Returns the run (`focus.phase` is `idle` (off), `focus` or `break`, with `focus.runStartedAt`, `focus.endsAt`, `focus.title`, and `focus.lastRun` when off), quiet mode (`quiet.holds`), macOS state, and `today` (focus minutes, blocks, breaks, blocks stopped early).
- `walnut_rhythm_focus_start` `{ taskId?: string, minutes?: integer, breakMinutes?: integer, spotify?: string, remember?: boolean }`: starts a block, then its break of `breakMinutes`. `spotify` plays that playlist in Spotify on the Mac until the block ends; the answer says when Spotify did not play (`spotifyError`), and the block runs anyway. Pass `remember: true` only when the person asked to change their default lengths. Refused while one is already running; stop it first only if the person asked for a new one.
- `walnut_rhythm_focus_stop` `{}`: stops the block or break and ends the cycle. Rhythm is off after it. A stopped block does not count as completed.
- `walnut_rhythm_break_skip` `{}`: ends the running break early. Rhythm is off after it.
- `walnut_rhythm_focus_rest` `{ minutes?: integer }`: rest now. During a block it ends there and its break starts; while off, a rest of its own. Refused during a break. Only when the person asked.
- `walnut_rhythm_focus_extend` `{ minutes?: integer }`: adds time (default 5) to the block or break running now. Refused while off; it never starts a run.
- `walnut_rhythm_music_tracks` `{}`: read-only. The audio files in the focus music folder (`folder`, `tracks[].title`, `tracks[].file`), in play order, and `spotify` (`available`, `reason`, `playlists[].uri`, `playlists[].name`).
- `walnut_rhythm_focus_music` `{ spotify?: string }`: during a running block, switch its Spotify music to that playlist, or pass an empty `spotify` to pause the Spotify the block was playing. The block keeps running. Refused when no block runs (it never starts one).
- `walnut_rhythm_focus_goal` `{ goal: string }`: set, change or (empty) clear the goal of the block running now. It shows in the ring's popover, the App and the block's notices, and goes into the day log and the task's log. Refused when no block runs.
- `walnut_rhythm_focus_music_pause` `{ paused: boolean }`: pause or play on the block's Spotify music on the Mac; the block keeps running. A folder track pauses in the window that plays it (its Pause button), not from an op.
- `walnut_rhythm_music_star` `{ key: string, on: boolean }`: star a sound (it sits on top of the music list on every device) or unstar it. `key` is `track:<id>` (a `music_tracks` track id) or `spotify:<uri>`. `status` lists the stars in `starred`.
- `walnut_rhythm_spotify_preview` `{ uri?: string, stop?: boolean }`: 15 seconds of a playlist in Spotify on the Mac so the person hears it, then the block's own playlist comes back (or Spotify pauses). Only when the person asks to hear one.
- `walnut_rhythm_spotify_playlist_add` `{ link, name? }` / `walnut_rhythm_spotify_playlist_remove` `{ uri }`: keep or drop a playlist in the Start form's list, when the person asks.
Each mutating op answers `{ message, state }`; relay `message` in one sentence.
## Rules
- Start a block only when the person asked for one in their own words. Never start one from a routine, a schedule, a guess that they are working, or to "keep the rhythm going". Rhythm is off until they start it, by design.
- Tie a block to a task only with a real task id (the task you are in, or one the person named). Never invent one.
- Do not add your own break or stand-up reminders on top of Rhythm. It asks once after each break; that is all the person wants.
- Folder music plays in the person's browser or phone, never from an op: you cannot start or stop that sound. Tell them to pick it in the Start form (the sidebar ring's popover or the Rhythm app; on the phone, Settings, Focus music). To add music, they put m4a, mp3 or wav files in the folder `music_tracks` names. A Spotify playlist is the one music an op can start, with `focus_start`, on the Mac. Never download music from Spotify or other services.
- "turn on do not disturb for this block" / "turn it off": `walnut_rhythm_focus_dnd` with `on`. It never replaces a Focus the person turned on, and it answers why when it could not turn on. `walnut_rhythm_focus_start` takes `dnd` for the block it starts.
- `macos_shortcuts_install` is not for you: it opens dialogs on the Mac's screen, so it only runs from the Install shortcuts button in the Rhythm app.
- Settings (block and break lengths, quiet, music) live under `plugins.walnut-rhythm` and are edited in the Rhythm app. Point the person there rather than changing config yourself.