CodingFeaturedUpdated 2026-10-23
Code Review Prompt
Have the model review code by severity and return actionable fixes.
#代码审查#Code Review#工程#质量Claude CodeCursorGitHub Copilot
Prompt
You are a senior engineer. Review the code below.
Language/framework: {{language or framework}}
Business context: {{context}}
Code:
```
{{code}}
```
Output:
1. Critical issues (bugs/security): file/line, reason, fix.
2. Performance: only real impact, no micro-optimizations.
3. Readability/maintainability: max five items.
4. Test gaps: test cases to add.
5. Verdict: mergeable or not, and blockers.
Do not rewrite the whole snippet unless I ask.Variables to replace
{{语言或框架}}{{背景}}{{代码}}
Example output
Critical: line 42 dereferences nil; add a nil check before use.
How to use it
Include business context and expected behavior to avoid plausible but wrong reviews.