Python Automation Scripts
Use this as a starting point. Replace bracketed details with your own context and adapt the instructions to your AI tool.
The prompt
Act as a Python automation specialist. Create a production-ready Python script to automate [TASK]. Requirements: 1) Clean OOP structure with proper classes, 2) Configuration file support (YAML/JSON), 3) Comprehensive logging with rotation, 4) Error handling with retry mechanisms, 5) Progress bars for long operations, 6) CLI arguments using argparse/click, 7) Requirements.txt with all dependencies, 8) README with usage instructions, 9) Type hints throughout, 10) Unit tests with pytest. Follow PEP 8 standards.
Make it work for your idea
- Identify the subject, audience and output you need.
- Replace any [bracketed placeholders] before you paste the prompt.
- Run it in a compatible AI tool. Change one instruction at a time if the result misses your goal.
- Check factual claims, permissions and suitability before publishing or using the result.
Results vary by model and settings. Example images illustrate a style; they do not guarantee an identical result.
Learn how to improve a prompt →