Overview
This prompt aims to guide developers in creating a robust AI auto-trade bot on Ubuntu using Docker Compose. Programmers and software engineers will benefit from the structured approach to code analysis, Docker configuration, and documentation.
Prompt Overview
Purpose: This report aims to enhance the robustness and reliability of the AI auto-trade bot for deployment on Ubuntu.
Audience: The intended audience includes developers and system administrators familiar with programming, Docker, and trading systems.
Distinctive Feature: The focus is on ensuring seamless integration and operation of the bot in a Dockerized environment on Ubuntu servers.
Outcome: The final deliverable will be a comprehensive guide with code enhancements, Docker configurations, and deployment instructions.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Development Tools & DevOps, Property Development
- Techniques: Decomposition, Self-Critique / Reflection, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
You want to create an AI auto-trade bot that runs on Ubuntu, focusing on ensuring that your code is robust, functions reliably, and can be deployed smoothly using Docker Compose on an Ubuntu server.
Please provide the current structure and source code of your AI auto-trade bot.
**Tasks:**
1. Code Analysis:
– Analyze the provided code thoroughly.
– Identify any potential issues or inefficiencies.
– Suggest improvements to guarantee correct and efficient operation in the target environment.
2. Docker Configuration:
– Verify and enhance your Docker and Docker Compose configuration files (e.g., Dockerfile, docker-compose.yml).
– Ensure seamless deployment and operation on Ubuntu servers.
– Make sure all dependencies, environment variables, and network configurations required for the bot’s operation are correctly handled.
3. Documentation:
– Explain any changes or recommendations clearly, with reasoning, for easy understanding and implementation.
**Steps:**
4. Review the full code and architecture of the auto-trade bot, including:
– AI components
– Trading logic
– Input/output handling
5. Check for any errors, logic flaws, or security vulnerabilities.
6. Assess system requirements and dependencies.
7. Analyze the existing Dockerfile and docker-compose.yml to validate proper setup.
8. Recommend improvements to code, structure, or deployment manifest for enhanced reliability and maintainability.
9. Provide guidance for running and troubleshooting the bot on an Ubuntu server within Docker Compose.
**Output Format:**
Provide a comprehensive report that includes:
– Detailed code review with suggested fixes and enhancements.
– Revised code snippets or files where applicable.
– Optimized Dockerfile and docker-compose.yml configurations.
– Instructions on how to build, deploy, and run the bot inside Docker on Ubuntu.
– Explanations of improvements and rationale.
**Notes:**
– Assume the codebase includes AI logic, trading APIs, and system integrations.
– Focus on robustness, error handling, and deployment best practices.
– Ensure instructions are compatible with Ubuntu LTS versions.
– Use clear technical terminology suitable for developers deploying and maintaining the bot.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste the prompt into your preferred code editor.
- Review the tasks and steps outlined in the prompt.
- Follow the instructions to analyze and improve the code.
- Document your changes and recommendations clearly.
- Prepare the final report as specified in the output format.
Tips for Best Results
- Code Review: Thoroughly analyze the code for logic flaws and security vulnerabilities, ensuring robust error handling and efficient algorithms.
- Docker Optimization: Enhance Dockerfile and docker-compose.yml for seamless deployment, ensuring all dependencies and environment variables are correctly configured.
- Documentation Clarity: Provide clear explanations of changes and recommendations to facilitate understanding and implementation for developers.
- Deployment Guidance: Offer step-by-step instructions for building, deploying, and troubleshooting the bot on Ubuntu using Docker Compose.
FAQ
- What are the key components of an AI auto-trade bot?
The key components include AI algorithms, trading logic, input/output handling, and API integrations. - How can Docker improve the deployment of the bot?
Docker ensures consistent environments, simplifies dependency management, and enhances scalability for the bot. - What should be included in the Dockerfile?
The Dockerfile should include base images, dependencies, environment variables, and the bot's entry point. - Why is error handling important in trading bots?
Error handling ensures the bot can recover from unexpected issues, maintaining reliability and preventing financial losses.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


