wait-for-itlisted
Install: claude install-skill technicalpickles/pickled-claude-plugins
# wait-for-it
Turn "tell me when X happens" into a shell probe that emits only when X
actually happens.
## The failure this exists to prevent
A scheduled task or a dynamic `/loop` re-evaluates a **prompt** every tick. A
tick where nothing happened still costs a full model turn and still emits a
message. Observed: a 26-second Opus turn whose entire output was "No new hits."
`Monitor` and `Bash(run_in_background)` cost **zero tokens** while nothing is
happening, because they run a command and only your printed lines become
notifications.
## Step 1: pick the tool
| What the user wants | Use |
|---|---|
| One notification total, then done | `Bash` with `run_in_background: true`, running `watch-loop.sh --once` |
| One per occurrence, indefinite | `Monitor` with `timeout_ms` at the max, re-armed on each expiry |
| One per occurrence, until a known time/tick budget runs out | `Monitor`, with `--max-ticks` set from that budget |
| One per occurrence, until the target reaches a known terminal state | `Monitor` with `timeout_ms` at the max, re-armed on each expiry, open-ended (no `--once`/`--max-ticks`) — `watch-loop.sh` has no "stop when terminal" flag, so judge completion from the emitted lines and stop the `Monitor` yourself with `TaskStop` |
| Must survive the session ending | **Stop.** See "The session ceiling" below. |
Ask which, if it is not obvious. "Ping me when the first hits come in" is
ambiguous between row 1 and row 2: the user says *first*, which sounds
one-shot, b