0x-shashi/web3-audit-skills/fix-review
Claude Code and agent skill by 0x-shashi/web3-audit-skills
- community
Checking that the SKILL.md file is still in the repository.
Verify that bug fixes correctly address reported vulnerabilities without introducing new issues. Use when reviewing protocol team fix submissions, during re-audit engagements, or in contest mitigation review phases on Sherlock and Code4rena.
Install
npx vskill@latest install 0x-shashi/web3-audit-skills/fix-reviewSKILL.md
Fix Review Skill
Purpose
Verify that bug fixes correctly address reported vulnerabilities without introducing new issues. A fix review is not a rubber stamp — it requires the same rigor as the original audit, focused on the change boundary and its ripple effects.
When to Trigger
- After a protocol team submits fixes for audit findings
- During re-audit engagement for upgraded contracts
- When reviewing a PR that addresses a security issue
- Contest mitigation review phase (Sherlock, Code4rena)
- Any code change to a previously-audited contract
Fix Review Framework
Phase 1: Understand the Finding
Before reviewing the fix, re-read the original finding completely:
Phase 2: Analyze the Fix
Apply the 5-Point Fix Validation:
1. Root Cause Resolution
2. Completeness Check
Check against the variant analysis from the original finding.
3. No New Vulnerabilities Introduced
Common patterns where fixes introduce new bugs:
| Original Fix | New Vulnerability Introduced | |
|---|---|---|
Added require(amount > 0) | Now users cannot withdraw dust amounts, funds permanently locked | |
Changed transfer to safeTransfer | ERC777 tokensReceived hook now enables reentrancy | |
Added nonReentrant modifier | Cross-contract reentrancy still possible if guard is per-contract | |
| Added access control to function | Legitimate users now blocked from valid operations | |
| Changed rounding direction | Opposite rounding error now created for different user type | |
| Added deadline check | Deadline is in wrong units (milliseconds vs seconds) | |
| Moved state update before call | Read-only reentrancy still returns stale state in view functions |
4. No Regressions
5. Minimality
Phase 3: Test the Fix
Manual Verification
Reproduce Original PoC Against Fix
Write Regression Tests
Phase 4: Severity Re-Assessment
After reviewing the fix, update the finding status:
| Status | Meaning | |
|---|---|---|
| Fixed | Root cause fully addressed, all instances covered, no regressions | |
| Partially Fixed | Some instances fixed, others remain; or fix is incomplete | |
| Not Fixed | Fix does not address the root cause at all | |
| Acknowledged | Team accepts the risk, chose not to fix (document reasoning) | |
| Disputed | Team disagrees with finding validity (document both positions) | |
| New Issue | Fix introduces a new, different vulnerability |
Phase 5: Report Fix Review Results
Template for each finding:
Common Fix Patterns and Their Risks
Reentrancy Fixes
| Fix Pattern | Risk Level | Notes | |
|---|---|---|---|
Add nonReentrant modifier | Low risk | Best approach — prevents all reentrancy in that function | |
| Reorder to CEI | Low risk | Good but may miss cross-function reentrancy | |
| Both CEI + nonReentrant | Lowest risk | Defense in depth — recommended | |
| Add mutex lock | Medium risk | Custom implementation may have bugs | |
Use transfer() (2300 gas) | High risk | Breaks with EIP-1884 and future gas changes |
Access Control Fixes
| Fix Pattern | Risk Level | Notes | |
|---|---|---|---|
Add onlyOwner modifier | Low risk | Standard, but check if owner is multisig | |
| Add role-based access | Low risk | Use OpenZeppelin AccessControl | |
Add initializer modifier | Low risk | Also call _disableInitializers() in constructor | |
Add require(msg.sender == x) | Medium risk | Inline checks are error-prone vs modifiers |
Oracle Fixes
| Fix Pattern | Risk Level | Notes | |
|---|---|---|---|
| Switch to Chainlink TWAP | Low risk | Ensure heartbeat and staleness checks added | |
| Add staleness check | Low risk | Use updatedAt from latestRoundData() | |
| Add deviation threshold | Medium risk | Must be tuned per asset — too tight = DoS, too loose = manipulation | |
| Switch from spot to TWAP | Low risk | Verify TWAP window is sufficient (30 min minimum) |
Arithmetic Fixes
| Fix Pattern | Risk Level | Notes | |
|---|---|---|---|
Use mulDivUp/mulDivDown | Low risk | Explicit rounding direction | |
| Add dead shares / virtual offset | Low risk | For ERC4626 first depositor — check amount is sufficient | |
| Add minimum deposit | Medium risk | May block legitimate small deposits | |
Switch to SafeCast | Low risk | Reverts on overflow instead of silent truncation |
Upgrade-Specific Fix Review
When the fix is deployed via proxy upgrade:
Integration Points
| Skill | How It's Used | |
|---|---|---|
variant-analysis/ | Check if fix covers all variant instances | |
differential-review/ | Compare old vs new code systematically | |
severity/ | Re-assess severity after fix | |
methodology/ | Apply standard verification methodology | |
checklists/ | Use protocol-specific checklist for regression |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fix-review/SKILL.md
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
[](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/fix-review)