## Problem Statement AI-generated code may have performance issues: - N+1 queries in loops - Expensive operations in hot paths - Memory leaks from improper cleanup - Blocking operations on main thread AI can't run code to detect these issues. ## Proposed Solution ### Static Performance Analysis 1. **Pattern Detection** - Database calls in loops - Synchronous I/O in async context - Missing cleanup in useEffect/lifecycle hooks - Large array operations without streaming 2. **Integration Points** - Run during `implement` validation - Warn before committing problematic code 3. **Project-specific Rules** - Define custom performance patterns to detect - Learn from past performance issues ## Success Criteria - [ ] Common performance anti-patterns detected - [ ] Warnings during implementation - [ ] Configurable pattern rules --- 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Problem Statement
AI-generated code may have performance issues:
AI can't run code to detect these issues.
Proposed Solution
Static Performance Analysis
Pattern Detection
Integration Points
implementvalidationProject-specific Rules
Success Criteria
🤖 Generated with Claude Code