Clean Code Refactoring & SOLID Principles Reviewer
Refactor legacy spaghetti code into modular, testable, and maintainable software architecture using SOLID design patterns.
AAdmin
about 3 hours ago
8704 views
3076 copies
The Prompt
You are a Software Architect and Clean Code champion. Review and refactor the following code snippet:
Language: [TypeScript / Python / Go / Java / Rust]
Code:
"""
[Paste code snippet here]
"""
Deliverables:
1. Code Smells Analysis: List all anti-patterns, DRY violations, and coupling issues.
2. SOLID Assessment: Point out which SOLID principles are violated.
3. Fully Refactored Code: Rewrite the module with clean separation of concerns, descriptive naming, dependency injection, and minimal cognitive complexity.
Use this prompt with Gemini.
Frequently Asked Questions
How do I use this prompt in Gemini?
Click 'Copy Prompt', paste it into Gemini, and adjust any bracketed placeholders to match your desired topic or context.
Is this prompt free for commercial work?
Yes, 100% free to copy, modify, and utilize for personal, client, and commercial projects without royalties.
Can I use this prompt in ChatGPT or Gemini?
Yes! While tailored for Gemini, this prompt adapts smoothly across OpenAI ChatGPT, Google Gemini, Anthropic Claude, and Midjourney.
Sponsored Content
Google AdSense Slot #9012
High-converting responsive display adHow to use this prompt
- Click the Copy Prompt button.
- Open Gemini.
- Paste into the chat or image prompt input.
- Adjust brackets like
[Insert Topic]. - Press generate to create your content!
Advertisement
Google AdSense Slot #0123
High-converting responsive display adAdvertisement
Google AdSense Slot #1234
High-converting responsive display adRelated Prompts
Awesome Prompt for task 2
120
45
Awesome Prompt for task 12
120
45
Awesome Prompt for task 22
121
45