Pair with it. Review it.
AI is a strong pair programmer. Treat its code like a pull request from a fast, confident junior: helpful, and always reviewed.
Explain and debug
Causes Before Fixes
“Here's the error and the method. List likely causes before suggesting any fix.”
You learn the why, not just a patch.
Tests
Edge Cases
“Write xUnit tests for this service method, including edge cases.”
Tests that find what you forgot.
Review
A Second Pair Of Eyes
“Review this diff for bugs, security issues and readability.”
Before a human reviewer spends their time.
If you can't explain it, don't merge it.