How to write maintainable code with AI

Coding with AI is becoming more and more a necessity. The new challenge is making sure the AI writes type-safe and maintainable code. Well, it's possible, here is how.