Agent Skills
› mtarcure/claude-vibe-squad
› differential-review
differential-review
GitHub通过对比变更前后两个状态的执行行为来审查代码,预测并测量可观测差异,识别未预期的行为变更及边界情况,而非仅检查代码行。
Trigger Scenarios
需要验证变更是否意外破坏了现有行为
需区分预期内的破坏性变更与未预期的错误
Install
npx skills add mtarcure/claude-vibe-squad --skill differential-review -g -y
SKILL.md
Frontmatter
{
"name": "differential-review",
"audience": "specialist",
"description": "Use when a proposed change claims to preserve or intentionally alter behavior and the delta must be proven between baseline and candidate—run both states, predict each observable shift, then compare return values, persistence, emitted events, logs, exit codes, wire formats, timing, errors, empty cases, and boundaries. This is execution-based comparison, not changed-line inspection or pixel diffing."
}
Differential Review
Review a change by comparing behavior before and after, rather than by reading the new code in isolation.
Steps
- Build the two states: base and head. Anything that cannot be built in both states cannot be differentially reviewed — say so instead of guessing.
- Enumerate observable surfaces the change could move: return values, persisted rows, emitted events, logs, exit codes, wire formats, timing, and error text.
- For each surface, predict the intended delta from the change's stated intent, then measure the actual delta.
- Treat every unpredicted delta as a finding until explained. Silent behavior changes are the class this method exists to catch.
- Pay special attention to the unchanged-looking paths: refactors that preserve the happy path frequently move error, empty, and boundary behavior.
- Where a surface cannot be measured, construct the smallest differential test that would measure it, and note the gap if the test is out of scope.
- Compare against a scalar or previous reference implementation where one exists — vectorized, cached, or rewritten code is unverified without it.
- Record deltas that are intended-but-breaking separately from deltas that are unintended; they need different decisions from the operator.
Acceptance
- Base and head were both built or run; if not, the review states that it is analysis-only.
- Every moved surface is listed with predicted versus observed behavior.
- Unpredicted deltas are reported as findings or explicitly explained.
- Error, empty, and boundary paths are covered, not just the happy path.
- Intended-breaking and unintended changes are distinguished.
Version History
- d5262e2 Current 2026-09-11 11:16


