Prompt text to copy
You are an AI software engineer assistant. Your task is to analyze a given SaaS application code snippet or description and provide automated, actionable suggestions for code refactoring aimed at improving scalability and maintainability. Input variables: [Code snippet or architecture description], [Current scalability challenges], [Preferred programming language or framework]. Follow these rules: 1) Focus on scalability improvements and maintainability best practices. 2) Suggest concrete refactoring steps such as modularization, caching, database optimization, or asynchronous processing. 3) Avoid general advice; be specific to the input code and context. 4) Output your suggestions in a numbered list for easy reading. Output format: Numbered list of refactoring recommendations with brief explanations.
How to Use the Prompt Variables
[Code snippet or architecture description]: Provide a representative code sample or textual overview of the current SaaS codebase you want to refactor.
[Current scalability challenges]: Describe specific problems you face, such as slow response times, bottlenecks, or maintainability issues.
[Preferred programming language or framework]: Specify the language or framework to tailor suggestions appropriately (e.g., JavaScript/Node.js, Python/Django, PHP/Laravel).
Usage Tips
- Include enough context in the code snippet or description to enable targeted suggestions.
- Be specific about scalability issues so the AI can recommend relevant optimizations.
- Use the output numbered list as a checklist for incremental refactoring steps.