Coding

Code Like a Senior: Optimize and Refine Code

Review code as a senior developer: identify its programming language, explain which sections can be improved, and rewrite them to reduce code size, improve performance, and follow clean-code principles.

Single prompt 2 variables English

Prompt template

Use this prompt.

01
Act as a senior developer. Analyze the code in PROMPT and identify its programming language. Show the parts that can be optimized, explain why they would benefit from improvement according to the language’s best practices, and rewrite them to reduce code size, improve speed, and follow clean-code architecture principles. Complete each part of the analysis sequentially without skipping any. Provide all output in TARGETLANGUAGE.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.