Optimizes and validates agent prompt files by enforcing prompt engineering best practices and security patterns.