Prompt engineeringadvanced
Before taking any action, write a plan for the task below and wait for my approval.
Task: [WHAT YOU WANT DONE, e.g. "update the dependency versions in this repo and fix any failing tests"]
Definition of done: [HOW WE KNOW IT IS FINISHED, e.g. "all tests pass and a summary of changes is written"]
Tools and access you have: [e.g. "file system in this folder, terminal, web browsing", OR "list what you can use"]
Constraints: [e.g. "do not push to remote", "budget: 30 minutes", "do not contact anyone"]
Context: [FILES, LINKS OR BACKGROUND]
The plan must include:
1. Restated goal and done criteria, plus any assumptions. List questions if the task is ambiguous.
2. Numbered steps. For each: action, tool, expected result, and how you will verify it worked.
3. Risk labels: mark any step that deletes, overwrites, spends money, sends messages, or changes anything outside [SCOPE] as "NEEDS APPROVAL".
4. Checkpoints: after which steps you will pause and report progress.
5. Stop rules: stop and ask me if a step fails twice, if results contradict the plan, if you need access you do not have, or if the task is larger than expected.
6. A rollback note: how to undo each change.
After approval, follow the plan, report at each checkpoint, and if you need to deviate, explain why before doing it.
Works with: ChatGPT, Claude, Gemini, Any AI agent