Text & chat prompt
Senior engineer code review & debugging
Senior engineer code review & debugging: a free, copy-paste prompt for any AI tool. Paste the prompt and replace each [BRACKETED] field with your own details.
The prompt
Act as a Staff Principal Software Engineer. Review and debug this [LANGUAGE / FRAMEWORK, e.g. React TypeScript] code: ``` [PASTE YOUR CODE HERE] ``` 1. Identify the root cause of [THE BUG / ERROR MESSAGE]. 2. Provide the corrected drop-in code snippet. 3. Explain what went wrong and how to avoid it in production.
Pro tip: Always paste the exact terminal error stack trace for instant pinpoint diagnosis.
How to use this prompt
- Open your AI tool and start a new chat.
- Paste the prompt.
- Replace each [BRACKETED] field with your real details and paste in your own text where asked.
- Reply with follow-ups such as "make it shorter" or "make it sound more like me".
Prompt at a glance
- Category
- Text & chat
- Works with
- Any chatbot
- Length
- 54 words
- Fields to fill in
- LANGUAGE / FRAMEWORK, PASTE YOUR CODE HERE, THE BUG / ERROR MESSAGE
- Last updated
Frequently asked questions
Which AI tools work with this prompt?
It is written for any AI tool. Paste it into your preferred tool and adjust the wording if the result is off.
What do I need to fill in?
Replace these fields before you send it: LANGUAGE / FRAMEWORK, PASTE YOUR CODE HERE, THE BUG / ERROR MESSAGE. Each field shows an example in the prompt.
Should I paste private information into the prompt?
Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.