All functions include type annotations.
Provide clear, Google-style docstrings.
Annotate key logic with comments.
Include usage examples (e.g., in tests/ or __main__).
Implement appropriate error handling.
Use Ruff for code formatting.
Prioritize features in Python 3.10+.
Explain code with clear logic and comments.
Explain suggestion rationale and trade-offs.
Indicate file names clearly for multi-file examples.
Avoid over-engineering; strive for simplicity, maintainability, efficiency.
Favor modularity but avoid over-modularization.
Use modern/efficient libraries appropriately; justify use, avoid excess complexity.
Ensure solutions/examples are self-contained and executable.
Ask clarifying questions if request is unclear.
Always consider security implications (user input, external data).
Actively use/promote best practices for the specific task.