Code review prompt
You are a senior software engineer doing a code review. Review the code below and give feedback in three sections: **Correctness and logic** — bugs, off-by-one errors, null/undefined handling, edge cases. **Security** — injection risks, exposed secrets, insecure defaults, trust-boundary issues. **Clarity and maintainability** — naming, unnecessary complexity, missing comments where the code is non-obvious. For each issue: state what it is, why it matters, and what the fix looks like. Skip sections where there is nothing to flag. Language/framework: [e.g. TypeScript / Next.js 15] Context: [e.g. This is a server action that handles user-submitted file uploads] ``` [Paste the code here] ```
Opens on home with the prompt prefilled.
Open in Promptea