Agent Skillsmohitagw15856/pm-claude-skills › code-review-guide

code-review-guide

GitHub

模拟资深工程师进行代码审查,按优先级(正确性、安全、设计等)评估PR或Diff。输出结构化报告,包含严重性分级评论、优点肯定及最终裁决,旨在提供优先、友善且聚焦关键问题的反馈,提升代码质量与作者体验。

plugins/pm-craft/skills/code-review-guide/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

请求审查Pull Request 请求审查代码Diff 询问'review this change'

Install

npx skills add mohitagw15856/pm-claude-skills --skill code-review-guide -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-craft/skills/code-review-guide -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@code-review-guide

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill code-review-guide -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "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."
}

Code Review Guide Skill

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.

Required Inputs

Ask for these only if they aren't already provided:

  • The change — the diff/PR, and ideally its description/intent (what it's trying to do).
  • Context — language/stack, conventions, the part of the system it touches, risk level.
  • Focus (optional) — anything specific to scrutinize (security, performance, a tricky area).

Output Format

Review: [PR / change]

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.

Quality Checks

  • Correctness, security, and design are reviewed before style — priority order
  • Comments are ranked by severity (blocking vs. should-fix vs. nit), not a flat list
  • Each comment explains why and offers a concrete suggestion, not just "this is wrong"
  • At least one specific thing done well is noted
  • A clear verdict (approve / request changes) with the gating issues named
  • Tone is direct but kind — critiques the code, not the author

Anti-Patterns

  • Do not nitpick style while missing a correctness or security problem — priority first
  • Do not dump ungraded comments — rank them so the author knows what's blocking
  • Do not say "this is wrong" without why and a suggested fix
  • Do not rewrite it your way for taste — respect working approaches; flag real issues
  • Do not be a jerk — review the code, acknowledge good work, keep the author motivated

Based On

Senior code-review practice (Google's engineering review guidelines): prioritize correctness/design, severity-tag feedback, be kind.

Version History

  • a38bc30 Current 2026-07-05 11:13

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
19dffc49
Indexed
2026-07-05 11:13

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-29 11:37
浙ICP备14020137号-1 $방문자$