← Browse by Chapter
Get the Book →
#91Chapter 17 — Long-Running Work: Goals, Loops and Knowing When to Stop
Check the most recent run of the deploy workflow for the staging environment. If it is still running, say so in one line and wait longer before the next check. If it failed, find the first failing step, quote its error, name the commit the run deployed, and end the loop; do not re-run anything. If it succeeded, say so in one line and end the loop.

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