free-ai-lab free-ai-lab
Coding Hot Chinese prompt Recommended: AI tool

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.
No account? Open AI tool ↗

Variables to fill in

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

Related prompts

Coding
ZH

Error Diagnosis Doctor

Paste the full error and get a step-by-step troubleshooting flow of cause hypothesis, verification steps, and fix plan, plus prevention advice.

#debugging#error reporting#debugging
Coding
ZH

Regex Generator & Explainer

Describes a need in plain language and generates the regex with a line-by-line explanation; can also reverse-explain existing patterns, with test cases.

#regex#tool#development
Coding
ZH

ARIA Accessibility Code Auditor

Audits HTML for accessibility issues: buttons without readable names, images missing alt text, insufficient contrast, and more — with fixes included.

#accessibility#ARIA#compliance