Prompts that restructure code safely.
13votes
0answers
3.1kviews

Prompt for reviewing a diff with severity levels instead of vague nitpicks

Our AI code reviews were noise: a wall of "consider renaming this" and "you could add a comment" mixed in with the occasional actual security bug, all weighted the same. People started ignoring the bo
5votes
0answers
969views

Splitting a 600-line god function into pure units without behavior drift

The worst function in our codebase does input parsing, three network calls, retry logic, formatting, and logging in one 600-line block. I wanted GPT to carve it into small pure functions plus a thin o