Good Prompts

Find and remove obsolete legacy code and bloated tests

A repo has accumulated unused legacy code and low-value tests, and you want proof-backed removal.

Posted by
@emanueledpt
Added
Scope
Codebase audits and simplification · runs in a repo
  • 863likes
  • 40replies
  • 39shares
  • 73.3Kviews

prompt

Run a deep test audit to find unused legacy code, using subagents where helpful.
Prove code and tests are obsolete before removing them; fix genuine bugs instead of hiding failures.
Preserve meaningful coverage, run relevant checks, and report changes and remaining blockers.

verified·fix it on github