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.
cloudsolutions-atoms/HOW_TO_VALIDATE_FUTURE_CODE.md

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:

  1. PROVIDER ANALYSIS - Check if new providers use lazy: true and have proper dispose()
  2. WIDGET REBUILD ANALYSIS - Find Consumer usage that should be Selector
  3. API CALL ANALYSIS - Verify lookup APIs use useCache: true and JSON parsed once
  4. MEMORY MANAGEMENT - Check controllers/connections are disposed properly
  5. CODE QUALITY - Verify kDebugMode guards and error handling
  6. PERFORMANCE REGRESSION - Check metrics: launch under 1.5s, memory under 120MB, dashboard under 2s
  7. DETAILED REPORT - List issues with severity ratings and fixes
  8. 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!