0x-shashi/web3-audit-skills/differential-review

Claude Code and agent skill by 0x-shashi/web3-audit-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Compare two versions of a codebase to identify security implications of changes. Use when reviewing protocol upgrades, verifying bug fixes, auditing dependency updates, or when only a subset of code has changed since the last audit.

Install

npx vskill@latest install 0x-shashi/web3-audit-skills/differential-review

SKILL.md

Differential Review Skill

Compare two versions of a codebase to identify security implications of changes. Essential for protocol upgrades, bug fix verification, and dependency updates.


Why Differential Review?

A full audit of an already-audited codebase is wasteful if only 5% of the code changed. Differential review focuses effort on:

Change TypeRisk LevelExamples
Logic changesHIGHModified calculation, new branching, changed access control
State variable changesHIGHNew storage, modified types, reordered variables
Dependency updatesMEDIUM-HIGHOpenZeppelin upgrade, Solidity version change
Configuration changesMEDIUMChanged thresholds, updated addresses, new roles
Formatting onlyNONEWhitespace, comments, variable renames
New codeHIGHEntirely new functions/contracts
Removed codeMEDIUMDeleted security checks, removed functionality

Change Classification Matrix

ChangeSecurity Relevant?Needs Review?
Function body modifiedYESALWAYS
New function addedYESFULL AUDIT
Function removedMAYBECheck if security-critical
Access control modifiedYESALWAYS
Storage variable addedYES (upgrade compat)ALWAYS
Storage variable removedYES (dangerous)ALWAYS
Storage variable reorderedYES (proxy breakage)ALWAYS
Import changedMAYBECheck changelog
Compiler version changedMAYBECheck breaking changes
Comment changedNOSkip
Whitespace changedNOSkip
Event added/modifiedLOWQuick review
Error message changedNOSkip
Constant changedMAYBEVerify new value

Differential Review Strategy

Step 1: Generate the Diff
bash
# Between two git tags/commits
git diff v1.0..v2.0 -- '*.sol'
git diff v1.0..v2.0 --stat # Summary of changed files
# Between two branches
git diff main..feature-branch -- 'contracts/'
# Exclude non-code changes
git diff v1..v2 -- '*.sol' ':!test/' ':!script/'
Step 2: Categorize Changes

Sort the diff output into categories:

  1. Modified contracts → Primary review target
  2. New contracts → Full audit required
  3. Deleted contracts → Check for orphaned references
  4. Modified tests → Understand what changed and why
  5. Config changes → Deployment parameter review
Step 3: Impact Analysis

For each modified function:

  • What did it do before?
  • What does it do now?
  • What invariants could break?
  • Does the change affect other functions?
  • Are existing tests still valid?

Common Upgrade Pitfalls

PitfallExampleImpact
Storage slot collisionAdding variable before existing ones in upgradeable proxyCritical — corrupted state
Initializer re-callableinitialize() without initializer guard after upgradeCritical — protocol takeover
selfdestruct in new implAttacker calls selfdestruct on implementationCritical — proxy bricked
Removed security checkDeleted onlyOwner modifier in upgradeCritical — access control loss
Changed function selectorRenamed function breaks integrationsHigh — broken integrations
Immutable value changedConstructor value differs in new deploymentMedium — unexpected behavior

Resources

Workflows

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
46
Repository forks
6
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0x-shashi/web3-audit-skills/differential-review/badge)](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/differential-review)

Something wrong with this skill or its page? Tell us.