if youve been using a coding assistant for long enough, u'll notice that rarely does your 1st output make it to prod. maybe its technically correct but stylistically wrong or missing an edge case ur team cares about too risky (touches many files) written in maintainable code ♀️
most teams deal with this by pasting the original back, then grumbling for a sentence: "another iteration needed"
i think its worth taking 5 mins to document what went wrong and how u fixed it. makes troubleshooting next time easier & helps train ur ai better
anyone else have any hacks or templates they use? share 'em!
link:
https://dev.to/novaelvaris/the-postmortem-prompt-turn-bad-outputs-into-better-workflows-template-included-2a41