You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
How to Validate Future Code Changes
The Validation Prompt
After you finish development, copy and paste this ENTIRE prompt to your AI assistant:
I have finished developing new features in the ATOMS Flutter application.
Please analyze my changes against the optimization patterns in ATOMS_OPTIMIZATION_COMPLETE_GUIDE.md
Validate these 8 areas:
- PROVIDER ANALYSIS - Check if new providers use lazy: true and have proper dispose()
- WIDGET REBUILD ANALYSIS - Find Consumer usage that should be Selector
- API CALL ANALYSIS - Verify lookup APIs use useCache: true and JSON parsed once
- MEMORY MANAGEMENT - Check controllers/connections are disposed properly
- CODE QUALITY - Verify kDebugMode guards and error handling
- PERFORMANCE REGRESSION - Check metrics: launch under 1.5s, memory under 120MB, dashboard under 2s
- DETAILED REPORT - List issues with severity ratings and fixes
- SUMMARY - Grade code quality and approve or request fixes
Be thorough and provide specific line-by-line fixes for any violations.
That is the prompt to use!