一键导入
code-review-skill
PR-focused code review with structured checklist, severity ratings, and actionable feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
PR-focused code review with structured checklist, severity ratings, and actionable feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a code review finding needs proof — write a focused test in JavaScript or Go that either confirms the issue is real or exposes it as over-engineering hyperbole. Trigger after code-review or code-review-skill findings are presented and evidence is requested.
Use when reviewing Dependabot alerts, npm audit findings, govulncheck output, or CVE reports on a JavaScript/Node.js or Go project — especially when triaging multiple alerts across direct and transitive dependencies to assess real-world risk and produce a remediation plan.
Produce data-driven software delivery estimates by analyzing historical JIRA tickets, git activity, and engineer track records, then matching the new work against the most similar past tickets. Use this skill whenever the user asks "how long will this take", wants to estimate a piece of work, scope an epic, plan a sprint, or estimate delivery for JIRA stories or a Figma design. Also use whenever the user wants developer-to-work assignment recommendations based on history, wants to optimize an estimate by adding or reallocating engineers, or asks "what's the fastest way to ship this" or "who should work on this". Especially trigger when the user provides JIRA ticket IDs, JIRA story links, or Figma designs together with any indication of a team that will execute the work.
Use when auditing an existing test suite for quality and coverage gaps, evaluating Playwright migration readiness, scoring automation against a world-class e-commerce standard, or guiding the creation of new tests. Applicable to Selenium, WebdriverIO, and Playwright suites.
AI-powered observability with Grafana MCP — translates natural language to metrics, logs, and trace queries to diagnose issues like a senior SRE
Audit and optimize Hystrix circuit breaker implementations in Go services for scaling, performance, and availability
| name | code-review-skill |
| description | PR-focused code review with structured checklist, severity ratings, and actionable feedback |
Perform a thorough code review for the current changeset (PR, branch diff, or staged changes), following principal-engineer-level best practices.
Before reviewing any code:
CLAUDE.md, .claude/settings.json, or any project-level conventions file at the repo root..eslintrc, .prettierrc, tsconfig.json, editorconfig, or framework-specific config to understand enforced standards.README.md and any CONTRIBUTING.md for stated conventions.gh pr diff <number>.gh pr view --json number,url.main or develop).git diff and git diff --cached).Address every item:
Evaluate the changeset against:
Caller Invariant Check (mandatory before flagging data-flow bugs)
When a potential bug depends on a specific input state — a missing field, a nil value, a stale variable, a function returning the original instead of a filtered copy — trace the callers before reporting it as a finding:
A function that behaves incorrectly only when given inputs its callers structurally prevent is not a confirmed bug — it is a fragility. Report it as Medium at most, label it explicitly as a fragility rather than a bug, and note the specific invariant the code relies on. Do not flag a callee's behavior as a bug based on inputs you constructed. Trace whether those inputs can arrive.
The Surface Pattern Trap
Certain code patterns look wrong in isolation but are correct given caller guarantees. Common examples:
Treat these as candidate observations, not findings. They require a caller invariant check before being elevated. An observation becomes a finding only when you can show the problematic behavior is reachable from actual production call paths.
Structure the review as follows:
A 2-3 sentence summary of what the changeset does and overall assessment.
Organize by severity:
CRITICAL — Must fix before merge (security issues, secrets exposure, data loss risk, breaking bugs). Reachability required: you must be able to trace a realistic production path that triggers the behavior. If reachability is unverified, the finding cannot be Critical.
HIGH — Should fix before merge (significant bugs, missing error handling, failing tests). Reachability required: same as Critical. If the scenario requires inputs that callers structurally prevent, cap at Medium and label as fragility, not bug.
MEDIUM — Recommended improvements (code quality, missing tests, design issues)
LOW — Suggestions and nits (style, naming, minor optimizations)
For each finding, include:
src/utils/auth.ts:42)Show pass/fail status for each of the 10 checklist items.
Call out things the author did well — good design decisions, clean abstractions, thorough tests, thoughtful naming.
One of:
:user_id?" not "Rename this.")