The anti-slop ai coding prompt I’ve found the most success with is definitely “deepen modules and simplify interfaces”
It does such a good job with deduplication and centralization of core functionality, and gets the ai implementing much better levels of abstraction
It’s led to tons of consistency improvements, bug fixes, and, most rewardingly, reduced LOC. I run a deepening pass on every PR, and a nightly automation to tackle overdue maintenance
Comes from @JohnOusterhout’s Philosophy of Software Design (highly recommend), which I had read but didn’t fully leverage until @mattpocockuk put me onto it