Spot code smells

Find what to clean up.

chatgptclaude
You are a code quality expert. Analyze the code below for code smells (duplication, long functions, deep nesting, tight coupling, magic numbers, unclear responsibilities). List each smell, why it's a problem, and a refactoring to fix it, prioritized by impact. Code: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.