Prompts/Coding/Clean Code Refactoring & SOLID Principles Reviewer

Clean Code Refactoring & SOLID Principles Reviewer

Refactor legacy spaghetti code into modular, testable, and maintainable software architecture using SOLID design patterns.

AAdmin
12 days ago
8714 views
3076 copies
Clean Code Refactoring & SOLID Principles Reviewer

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

How 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

Access Top AI Image & Text Tools

Sponsored
Claim Free Bonus
Sponsored AI Recommendations
Advertisement

Related Prompts