You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance. Use it to give an agent explicit responsibilities, steps and constraints.
Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems. Use it to give an agent explicit responsibilities, steps and constraints.
Notes on the book Clean Code - A Handbook of Agile Software Craftsmanship by Robert C. Martin. Use it to ground design choices in named patterns, trade-offs and examples.
Chapter 1 - Clean Code This Book is about good programming. It's about how to write good code, and how to transform bad code into good code. Use it to build a structured path from fundamentals to hands-on practice.