The last line is the whole trick. Asking for the output of the command instead of a description turns "I have refactored this cleanly" into something you can check in two seconds.
Prompt
Copied 15 times
Refactor [target] so that [goal].
Rules:
- Behaviour must not change. The existing tests pass untouched.
- Do not rename public exports, database columns or routes.
- One file per response.
Acceptance: after your change `npm run check` passes and `git diff --stat` shows only the files you named in your plan. Paste that output, do not describe it.