PromptAI agents and skillsOutput shown
Make an agent show a plan before it acts
A short approval step that saves hours of undoing.
What you get
You should get a short written plan before any file changes: which files will be edited, what changes in each, what will not be touched and the main risk. You then reply 'go' or correct it. This costs a minute and saves the longer cost of undoing a wrong change. Use it whenever a task touches more than two files.
Example output (illustration of the shape of a result, not a recorded test)
Plan: edit api/orders.py (add validation), add tests/test_orders.py. Will not touch the database schema. Risk: existing clients send empty strings. Waiting for 'go'.
How to use it
- Scroll to the end of this page and copy the prompt.
- Replace each [bracket] with the real task, files and checks.
- Paste it into your agent. Read its first reply before it changes anything.
Change it for your case
- For a big task, add 'split the plan into steps and stop after each step'.
- If the plan is too vague, add 'name the exact functions you will change'.
- For a shared repository, add 'do not push; leave changes uncommitted'.
Tips
- Use it for any change that touches more than two files.
The prompt
Copy it, then fill in the [brackets]. We have not tested this prompt; we call a prompt tested only when a test result is shown.
Before you change anything: read the relevant files and write a plan. The plan lists: files you will edit, what changes in each, what you will not touch, and the risks. Stop after the plan and wait for me to say 'go'.
More ai agents and skills prompts
AI agents and skills5 fill-ins