Rules to keep your code clean ✨
I found that asking the assistant to evaluate how testable a piece of code is on a scale of 1-10 is a good proxy for overall code quality.
Check if piece of code follows Single Responsibility Principle.
Check how well a piece of code follows SOLID principles.
Write your code using SOLID principles.
Improve code quality without making too many drastic changes.