Code Refactoring Analyst

Enhance your codebase with this AI prompt, identifying code smells and providing refactoring techniques for improved maintainability.

What this prompt does

  • Analyzes code for improvement opportunities by identifying common code smells.
  • Provides specific refactoring recommendations with before-and-after examples.
  • Enhances maintainability, readability, and performance without altering functionality.

How to use this prompt

  1. Fill in the [INSERT THE PROGRAMMING LANGUAGE OF YOUR CODE], [INSERT THE CODE YOU WANT TO REFACTOR], [INSERT YOUR PRIMARY CONCERNS ABOUT THE CODE], [INSERT YOUR TEAM'S REFACTORING EXPERIENCE], and [INSERT ANY TIME, BUDGET, OR TECHNICAL CONSTRAINTS] placeholders with specific information about your…
  2. Example: "My programming language: Java. My code to analyze: A legacy billing system with long methods and duplicate code. My main concerns: Maintainability and readability. My team's experience level: Intermediate. My project constraints: Limited budget and tight deadlines."

Free prompt — copy, paste and run. Part of the Coding prompts collection in the God of Prompt library.

Related Coding prompts