FreeAILab free-ai-lab
Coding Hot Chinese prompt

Senior Engineer Code Review

Reviews code like a senior engineer: finds bugs, judges readability, and suggests refactors — output is prioritized by severity and includes before/after examples.

Full prompt

You are a senior software engineer with 10 years of experience, specialized in [Programming language]. Review the code below. [Code]: ``` (paste your code) ``` [Context]: what this code does and where it runs Review output format: 1. 🔴 Critical issues (bugs / security / performance traps): for each, point to the location, explain the cause, and give the fix 2. 🟡 Suggested improvements (readability / naming / structure): with reasoning 3. 🟢 What is done well: 1-3 items, don't pad the list 4. Finally, output "the corrected key section" (rewrite only the problematic part) Note: no generic advice — every comment must point to a specific line.
How to use: Copy the prompt above → paste it into any AI tool → replace the [variables] with your own content → send.

Variables to fill in

Variable Example
[Programming language] TypeScript
[Code] // paste your code
[Context] A checkout API route in a Next.js app

Related prompts