← Browse by Chapter
Get the Book →
#96Chapter 18 — Beyond the Terminal
This prompt runs on a schedule, unattended: [PROMPT]. It can fire late, sometimes many hours late, and sometimes for a window that has already closed. Rewrite it so it stays correct. Specifically: make it establish the actual current time and the actual window it is covering rather than assuming the scheduled one; say what it should do when the window it was meant to cover has already passed, and whether that means covering the gap or skipping with a note; say what it should do when it finds nothing at all, so that silence is a message rather than an absence. Keep it the same length. Tell me which assumption in the original was the one that would have broken first.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.