如何給出真正讓工程師變得更好的代碼審查
代碼審查做錯了會產生怨恨。做得對了,它們是提升整個工程團隊水平最快的方式。
The Hidden Value of Code Reviews
[BLOCKER]
Must fix before merging. Security vulnerabilities, logic errors, breaking changes, missing tests for critical paths. Explain clearly why it must be fixed, not just that it must be.
[SUGGESTION]
Should strongly consider. Performance improvements, better abstractions, more maintainable patterns. Author has the final call, but this is worth discussion.
[NITPICK]
Purely stylistic or personal preference. Include but signal clearly these are not required. Helps new engineers understand team conventions without feeling attacked.
Praise What Works
Great reviews note what was done well. "Loved the error handling here — this pattern is exactly what we should use across the codebase." Positive signals create psychological safety for next review.
Star Prompt: Staff-Level Code Review
Perform a staff-level code review for [stack] PR "[pr_description]" with the code [code], covering correctness, performance, security, maintainability, design, with BLOCKER/SUGGESTION/NITPICK labels.