codingChatGPTClaude
Senior Engineer Code Refactor
Comprehensive refactoring prompt focusing on performance and edge-cases.
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 builderHow to use in 3 steps
- 1.Copy the prompt above (or fill in your custom variables).
- 2.Open ChatGPT or your preferred AI generator.
- 3.Paste into the prompt box and submit.
Works with
ChatGPTClaude
Related Prompt Templates
More tested prompts in coding and adjacent categories.