codingChatGPTClaude

Senior Engineer Code Refactor

Comprehensive refactoring prompt focusing on performance and edge-cases.

Senior engineer code refactor review framework

What this prompt is for

This prompt is engineered to generate a dependable, high-fidelity senior engineer code refactor. It specifies the exact lighting ratios, focal characteristics, and structural constraints required so that generative models produce repeatable output on turn one without manual touch-ups.

Ready-to-use prompt
Act as a Principal Software Engineer. Review and refactor the following [LANGUAGE] code: ``` [CODE_SNIPPET] ``` Provide: 1. Identified bottlenecks, security risks, or memory leaks 2. Refactored implementation with TypeScript typing / docstrings 3. 3 critical unit tests covering boundary conditions

Variables to customize

Type your values below to preview and copy the populated prompt instantly:

Need more customization?

Send this prompt structure into the PromptX builder to adjust tone, add model rules, or expand details.

Open in PromptX builder

How to use in 3 steps

  1. 1.Copy the prompt above (or fill in your custom variables).
  2. 2.Open ChatGPT or your preferred AI generator.
  3. 3.Paste into the prompt box and submit.

Works with

ChatGPTClaude

Related Prompt Templates

More tested prompts in coding and adjacent categories.

All templates →
Cinematic portrait with shallow depth of field and rim lighting
Midjourney

Cinematic Portrait

85mm lens portrait with soft rim lighting and 35mm film grain tone.

View
Clean professional studio headshot on neutral gray background
Midjourney

LinkedIn Headshot

Clean studio headshot against neutral backdrop for executive profiles.

View
Minimalist commercial studio product photograph on textured pedestal
Midjourney

Product Photography

Minimalist commercial studio shot with diffuse shadow box lighting.

View
Stylized anime character illustration with sharp linework and vibrant shading
Midjourney

Anime Character

High-energy stylized character illustration with crisp clean line art.

View