Customize this prompt (fill variables)
How to use this prompt
Replace each {{placeholder}} with your language of choice, deployment context, code snippet, and your primary engineering priority.
2. How to customize variables:
- programming_language: Works with Python, TypeScript, Go, Rust, Java, C++, or SQL.
- system_environment: Specify environment (e.g., AWS Lambda, embedded IoT, Kubernetes cluster, browser client).
- source_code_snippet: Paste any function, class, or API endpoint that needs review.
- primary_optimization_goal: Target memory usage, thread safety, testability, algorithmic efficiency, or database performance.
3. Compatible AI Tools:
Claude 3.5 Sonnet, ChatGPT (GPT-4o), Cursor, GitHub Copilot.
4. Expected Result:
A senior-level code review breakdown with edge-case detection, complexity analysis, and a drop-in refactored code block with automated unit tests.
Example: what to expect
Example input
Example output
Variables explained
| Variable | What to enter |
|---|---|
{{programming_language}} |
Specify language (e.g. TypeScript, Python 3.12, Go, Rust). |
{{system_environment}} |
Describe where this code runs. |
{{source_code_snippet}} |
Paste the code to be audited and refactored. |
{{primary_optimization_goal}} |
Specify focus: performance, security, clean code, memory. |
Tips for better results
Best used for: Software engineering and code quality
- Give the AI context first: who you are, who the audience is, and what “good” looks like for you.
- Ask for output in a specific format (bullets, table, markdown) when you need structure.
- If the result is close but not perfect, reply with “keep the structure, make it more…” — do not start over.
- For long tasks, split the prompt into steps instead of expecting one giant answer.
- Different tools behave differently — ChatGPT, Claude and Gemini each have their own style. Try this prompt on the tool you use most.
How to use this Coding prompt effectively
What this prompt does
Conduct rigorous staff-engineer code reviews, identifying performance bottlenecks, security vulnerabilities, edge cases, and clean refactoring plans.
Getting the most out of it
- Copy the prompt and paste it into your AI tool of choice (ChatGPT, Claude or Gemini).
- Fill the variables in curly brackets with your own topic, audience and tone — the customize button above builds a ready version for you.
- Review the first draft for facts and style before using it. AI output is a starting point, not a final product.
- Iterate: tell the AI what to keep and what to change. Small corrections beat re-typing the whole prompt.
Common mistakes to avoid
- Leaving the {{variables}} unfilled — the AI then guesses your topic.
- Expecting one output to be perfect — plan for 2–3 rounds of refinement.
- Pasting confidential information into public AI tools.