Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Content

Code Refactoring: Turning 'Spaghetti' into 'Clean Code'

Customize the variables below to instantly engineer your prompt.

Required Variables

code-refactoring-clean-principles-carousel.txt
Act as a Clean Code Evangelist and Staff Engineer. Produce an elite 'Code Refactoring' carousel specifically targeting [PROGRAMMING_LANGUAGE]. Anchor the entire presentation around the strict enforcement of the [CLEAN_CODE_PRINCIPLE] (e.g., DRY, SOLID, KISS, Cyclomatic Complexity). On Slide 2, present a horrifyingly messy, deeply flawed, real-world 'Spaghetti' code snippet. Dedicate Slides 3-6 to surgically refactoring it line-by-line. You must explicitly explain the architectural 'Why' behind every single mutation to fundamentally upgrade the viewer's mental model of software design.

Example Text Output

"A Python-based carousel refactoring a massive function into smaller, testable modules using the Single Responsibility Principle."

More Social Media Prompts

View all →

Frequently Asked Questions

What is the "Code Refactoring: Turning 'Spaghetti' into 'Clean Code'" prompt used for?

A Python-based carousel refactoring a massive function into smaller, testable modules using the Single Responsibility Principle.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.