ipIterPrompt

Improve the following code

Turn any AI chat into an improve the following code with this community persona prompt.

can-acar · awesome-chatgpt-promptsUpdated 2026-05-123,409 copies

Improve the following code is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The prompt

Improve the following code

```
${selectedText}
```

Please suggest improvements for:
1. Code readability and maintainability
2. Performance optimization
3. Best practices and patterns
4. Error handling and edge cases

Provide the improved code along with explanations for each enhancement.

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

Senior Frontend Debugger for SPA Websites (Angular, React, Vite)

Turn any AI chat into a senior frontend debugger for spa websites (angular, react, vite) with this community persona prompt.

4,326 copiesOpen ↗

Version Review

Turn any AI chat into a version review with this community persona prompt.

5,292 copiesOpen ↗

Module Wrap-Up & Next Steps Video Generation

Turn any AI chat into a module wrap-up & next steps video generation with this community persona prompt.

5,083 copiesOpen ↗

IT Expert

Turn any AI chat into an it expert with this community persona prompt.

4,061 copiesOpen ↗