Readability Review

Naming, structure and comment suggestions for a piece of code, with rewritten snippets.

Beginner · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Suggest naming, structure and comment improvements for this code, with a rewritten snippet for each suggestion.

Say what this code, as written, would make harder to modify six months from now.

Code to review:
{{CODE}}

Language and conventions:
{{STACK}}

Why this prompt works

Asking what becomes harder to modify later grounds readability feedback in a concrete future cost instead of taste.

How to customize it

  • Apply the rewritten snippets rather than just the naming suggestions in isolation.
  • Skip suggestions that conflict with stated team conventions.

Common mistakes

  • Treating every suggestion as mandatory rather than picking the ones with real payoff.
  • Reviewing generated or vendor code where readability isn't your concern.

Example

Input

Code to review: A 60-line function with nested conditionals and single-letter variable names

What a good answer looks like

A short list of naming/structure suggestions, each with a before/after snippet.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts