Original Reddit post

I kept getting the same garbage feedback from AI — “consider adding error handling” like okay thanks man really helpful. The fix was stupid simple. Instead of asking “review my code” I gave it a framework to follow. Here’s the one I use now: You are a principal engineer with 15+ years experience. Review my code using SPARTA: S - Security: injection risks, auth flaws, data exposure P - Performance: slow queries, memory leaks, blocking ops A - Architecture: SOLID violations, bad coupling R - Reliability: unhandled errors, race conditions T - Testability: what would be painful to mock A - Aesthetics: naming, dead code, consistency Score each out of 10. Mark findings CRITICAL / HIGH / MEDIUM / LOW. End with an overall score and top 3 things to fix before this ships. Code: PASTE_YOUR_CODE_HERE Language: YOUR_LANGUAGE Context: WHAT_IT_DOES been using this for a few weeks and honestly haven’t gone back to reviewing code manually since. Let me know if this helped or if there’s anything you’d change about it — genuinely curious what others think. also built similar ones for debugging, unit tests, system design prep and a few others. dm me if you want those too. dm me if you want the rest 😄 submitted by /u/Either_Mark1885

Originally posted by u/Either_Mark1885 on r/ClaudeCode