When to use it

Use this prompt with any AI agent that can take actions on its own: coding agents, browser agents, or automation tools connected to email, files or business systems. It is most valuable for tasks with several steps, real side effects, or unclear scope, where a wrong first move is expensive.

For a one-step task, such as renaming a variable or summarizing a single file, the plan is overhead and you can skip it. The value grows with the number of steps and with how hard the actions are to undo. Many agent tools also offer a built-in planning or approval mode; this prompt works alongside those features and gives you a consistent format for the plan you review.

How to customize it

  • [TASK] should describe the outcome, not the method; let the plan propose the method.
  • [DEFINITION OF DONE] prevents the agent from stopping too early or wandering into extra work.
  • [TOOLS AND ACCESS] should match what the agent really has. If you are unsure, ask it to list its tools first.
  • [CONSTRAINTS] and [SCOPE] define the boundary that triggers “NEEDS APPROVAL”.
  • [CONTEXT] reduces guesswork; point to specific files or documents.

Why it works

Agents tend to fail by acting on a wrong assumption and then compounding it over many steps. A written plan surfaces assumptions before anything changes, and reviewing it takes a minute compared with untangling a long run.

Verification for each step, explicit risk labels and stop rules turn a vague request into a controlled process. Checkpoints limit how far the agent can drift, and the rollback note makes recovery possible. This does not replace technical safeguards such as limited permissions, but it makes the agent’s intentions visible.

Tips and variations