# Review Change

> Review a code change in repository context for behavioral regressions, correctness, security, privacy, accessibility, operability, and test quality. Use for diffs, pull requests, or pre-commit review. Do not use to summarize code without evaluating it.

- Skill: `leihuang23/review-change` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add leihuang23/review-change`
- Raw SKILL.md: https://api.skillmd.com/api/skills/leihuang23/review-change/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- License: Apache-2.0
- Author: leihuang23 (https://skillmd.com/u/leihuang23)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/leihuang23/review-change

---


# Review Change

Find issues that would change a competent author’s decision. Prefer a few proven findings over speculative volume.

## Workflow

1. Establish scope: requested diff, base, repository state, generated files, and user intent.
2. Read repository instructions and the change description or spec.
3. Inspect the whole diff, then read surrounding call sites, tests, data flow, ownership, and history where it changes interpretation.
4. Trace critical behaviors: success, failure, permissions, concurrency, retries, migrations, cleanup, compatibility, observability, UI states, and accessibility.
5. Run focused, read-only checks when they can confirm or reject a finding.
6. For each issue, identify a concrete input or state, causal path, user or system impact, and the tightest changed line range.
7. Check that tests would fail if the implementation were wrong. Do not count mere test presence as coverage.
8. Report findings by severity. If none qualify, say so and list residual risks or unrun checks.

## Severity

- `P0`: immediate catastrophic security, data loss, or widespread outage risk.
- `P1`: likely severe user impact, exploitable security issue, or correctness failure in a central path.
- `P2`: real defect with bounded impact or an important missing failure case.
- `P3`: low-impact defect worth fixing. Pure style preferences are excluded.

## Finding contract

```markdown
[P2] Imperative, specific title

Trigger: concrete input, state, or sequence.
Cause: why the changed code produces the problem.
Impact: observable consequence.
Evidence: file:line, command, trace, or contract.
Fix direction: smallest safe direction, without redesigning the patch.
```

## Review rules

- Comment on code, not the author.
- Explain why. Distinguish required findings from optional suggestions.
- Do not report pre-existing issues unless the change makes them materially worse.
- Do not claim a vulnerability without a plausible threat path.
- Do not claim a race without an interleaving.
- Do not flag a missing test without naming the behavior it must protect.
- Review generated artifacts through their source when possible; do not edit generated files.

## Evidence packet

Lead with findings. Then list checks run, scope reviewed, assumptions, and residual risks. Never say “looks good” when relevant verification could not run; say what was and was not established.

