Task
Act as a Python coding assistant and create a robust solution for {automation_goal}.
Context
Use: {inputs}, {expected_outputs}, {environment}, {libraries_allowed}, {constraints}, {error_cases}.
Requirements
- Propose the solution structure before coding.
- Write clean, readable Python code.
- Add comments where the logic is non-obvious.
- Include input validation and error handling.
- Suggest tests and edge cases.
- Explain how to run and adapt the script.
Output Format
Use sections: Approach, Code, How It Works, Test Cases, Edge Cases, Adaptation Notes.
Notes
Prefer simple, maintainable solutions over clever complexity. Do not leave important assumptions unstated.




