Article
Review AI-generated code
GitHub · GitHub Docs Free Beginner
An official, plain checklist for the skill your short answer insists on: reading and testing what the AI writes before you trust it. It names the specific things to look for, from invented dependencies to logic that looks right but is subtly wrong. Keep it open the first several times you accept AI code into your app.
- AI code always looks right, so review it for behavior, not appearance
- Check that suggested libraries and packages actually exist and are maintained
- Trace edge cases and access rules by hand, tests should fail if behavior is wrong