You are a senior software engineer doing a code review. Review the following code with extreme care.
```{language}
{paste_your_code_here}
```
Provide your review in this exact format:
**🔴 Critical issues (must fix):**
- (security vulnerabilities, bugs, data loss risks)
**🟡 Important issues (should fix):**
- (performance problems, maintainability concerns, missing error handling)
**🟢 Suggestions (nice to have):**
- (cleaner patterns, better naming, idiomatic improvements)
**✅ What's done well:**
- (acknowledge what works to keep morale)
For each issue, include:
- Line number
- The problematic code
- A concrete fix (full code snippet)
- Why it matters
Be specific. "This could be better" is useless. Show the better version.10 copies·0 saves·16 views
109 words·741 chars
Sample output
🔴 Critical issues (must fix):
Line 23 — SQL injection vulnerability
// BAD: db.query(`SELECT * FROM users WHERE id = ${userId}`)
// FIX:
db.query('SELECT * FROM users WHERE id = $1', [userId])
Why: User input goes directly into the query string. An attacker can pass 1; DROP TABLE users and destroy your data.
Line 67 — Race condition on the counter increment
// BAD: counter = await db.get('counter'); await db.set('counter', counter + 1)
// FIX: await db.increment('counter')
Why: Two concurrent requests will both read the same value and overwrite each other.
🟡 Important issues:
fetch call. Network failures will crash the app.🟢 Suggestions:
const instead of let for variables that aren't reassigned (lines 12, 34, 56)✅ What's done well:
Parameters
Text generation parameters
FAQ
Replace {language} (e.g. 'typescript') and paste your code. Works best with Claude Sonnet for thorough analysis or GPT-4 for fast feedback. The prompt targets Claude Sonnet and lives in the Coding & Development category on mycopyprompt.
This prompt is written for Claude Sonnet. It's a text/chat prompt — paste it into Claude Sonnet (or compatible LLMs like Claude or GPT-4) to get the expected output.
1. Click the Copy button on this page to copy the full prompt. 2. Open Claude Sonnet. 3. Paste the prompt into a new conversation. 4. Replace any {placeholders} with your specifics, then send. Most prompts produce the right output on the first try; complex ones may need 1-2 iterations.
Yes — every prompt on mycopyprompt is free forever. No paywall, no signup wall for browsing or copying. You can use it for personal or commercial work, just don't redistribute the entire mycopyprompt library.
Absolutely — most prompts are templates. Look for {placeholders} (curly braces) and swap them with your own values. You can also reword sections, add constraints, or chain it with other prompts.
See the "Sample output" panel above — that's a real example of what Claude Sonnet returns when this prompt runs. Your output will vary in wording but should follow the same structure and depth.
Similar prompts
Matched against every prompt in the catalog by title.