name: code-review-guide description: "Review a pull request or diff like a thoughtful senior engineer — prioritized, kind, and focused on what matters. Use when reviewing code, giving PR feedback, or asked to 'review this change'. Produces a structured review: a correctness/design pass, comments ranked by severity (blocking → nit), what's done well, and a clear approve / request-changes call — feedback that improves the code and the author." homepage: https://mohitagw15856.github.io/pm-claude-skills/skill/code-review-guide.html metadata: { "openclaw": { "emoji": "🪚" } }
Bad code review nitpicks style while missing the design flaw, or dumps 40 ungraded comments. Good review is prioritized and kind: it catches what actually matters (correctness, security, design), separates blocking issues from nits, explains the why, and leaves the author better. This skill runs that review.
Ask for these only if they aren't already provided:
小蔥技能有更好的技能skills外掛。
Summary — in 1–2 lines: what the change does and your overall read (solid / needs work / risky).
Review passes — scan in priority order and note findings: 1. Correctness — does it do what it claims? Edge cases, error handling, off-by-ones, concurrency. 2. Security & data — input validation, authz, secrets, injection, PII handling. 3. Design — is this the right approach? Coupling, the seam, simpler alternative, future pain. 4. Tests — do they cover the behavior and the edges? Would they catch a regression? 5. Readability — names, clarity, dead code, docs where non-obvious.
Comments (ranked by severity) — each with file/line, the issue, why it matters, and a concrete suggestion:
| Severity | Where | Comment & why | Suggested change |
|---|---|---|---|
| 🔴 Blocking | |||
| 🟡 Should-fix | |||
| 🔵 Nit / optional |
What's done well — genuinely (specific, not flattery). Reviews are also for morale and learning.
Verdict — ✅ Approve / 🔁 Request changes / 💬 Comment — with the one or two things that gate it.
Senior code-review practice (Google's engineering review guidelines): prioritize correctness/design, severity-tag feedback, be kind.
這個程式碼審查技能整體質量良好,能幫助生成結構清晰、重點突出的審查意見,對輸入輸出格式的規定比較完善。優點是強調按嚴重性分級評論、提供明確判定結果;不足之處在於缺少實際案例參考,面對複雜程式碼場景時的指導深度有限,實際使用效果可能因具體情況而異。適合作為程式碼審查輔助工具,但不宜完全替代人工審查。