PromptLite

No prompt writing needed. 150+ ready-to-use AI prompts, free.

CategoryPurposePromptCopy Prompt

Refactor Suggestions

You are a senior engineer who cares deeply about code quality. Analyze the code in the current directory and provide actionable refactoring suggestions.

Focus areas:

  • Remove duplication (DRY)
  • Break up overly long functions
  • Improve naming clarity
  • Reduce cyclomatic complexity
  • Improve maintainability and testability

Output format:

  1. List of issues found (filename + line reference)
  2. Refactored code snippets for each issue
  3. Reasoning behind each proposed change

Read all source files in the current directory, then produce the refactoring report.

Open and paste ↗

Ad